/* ========================================
   BehinScript - Main Stylesheet
   ======================================== */

/* Import Persian Font */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

/* Root Variables */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #0ea5e9;
    --accent-color: #f59e0b;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-2: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--light-bg);
    color: var(--text-dark);
    direction: rtl;
    min-height: 100vh;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header Styles */
.main-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar {
    padding: 0.8rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.brand-text {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.6rem 1.2rem !important;
    margin: 0 0.2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active {
    background: var(--gradient-1);
    color: white !important;
}

.dropdown-menu {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.8rem;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.dropdown-menu.categories-menu {
    min-width: 320px;
    max-height: 350px;
    overflow-y: auto;
}

.dropdown-menu.categories-menu.show {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
}

.dropdown-item {
    color: var(--text-dark);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    background: var(--light-bg);
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.dropdown-item .cat-icon {
    color: var(--primary-color);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2830, 41, 59, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    background: var(--gradient-2);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    color: white;
}

/* Page Title */
.page-title-section {
    background: var(--card-bg);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* Cards */
.post-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: row;
    box-shadow: var(--shadow-card);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.15);
    border-color: var(--primary-color);
}

.post-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 180px;
    min-width: 180px;
    height: 180px;
    flex-shrink: 0;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image {
    transform: scale(1.08);
}

.post-category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gradient-1);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 500;
}

.post-content {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    line-height: 1.6;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.post-title:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 0.8rem;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.read-more-btn:hover {
    background: var(--primary-color);
    color: white;
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(-5px);
}

/* Single Post Page */
.single-post-container {
    padding: 3rem 0;
}

.single-post-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

.single-post-image-wrapper {
    display: flex;
    justify-content: center;
    padding: 2rem;
    background: var(--light-bg);
}

.single-post-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.single-post-content {
    padding: 2.5rem;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.category-tag {
    background: var(--gradient-1);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

.single-post-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Title Box */
.title-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-radius: 16px;
    border-right: 4px solid var(--primary-color);
    margin-bottom: 2rem;
}

.title-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

/* Download Box */
.download-box {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(14, 165, 233, 0.08) 100%);
    border-radius: 16px;
    border: 1px dashed var(--border-color);
    text-align: center;
    margin-bottom: 2rem;
}

.single-post-body {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 2.2;
    margin-bottom: 2rem;
    text-align: justify;
}

.single-post-body p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.single-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-1);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
    color: white;
}

/* Related Posts */
.related-posts-box {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.related-posts-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--primary-color);
}

.related-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-posts-list li {
    margin-bottom: 0.6rem;
}

.related-posts-list li:last-child {
    margin-bottom: 0;
}

.related-posts-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.7rem 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.related-posts-list a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(-5px);
}

.related-icon {
    color: var(--primary-color);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.related-posts-list span {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Modals */
.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
}

.modal-title {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-dark);
}

.btn-close {
    opacity: 0.6;
}

.modal-body {
    padding: 2rem;
}

.modal-body p {
    color: var(--text-muted);
    line-height: 2;
}

/* Forms */
.form-control {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-dark);
    padding: 0.8rem 1.2rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: var(--card-bg);
    border-color: var(--primary-color);
    color: var(--text-dark);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.btn-submit {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
    color: white;
}

/* Footer */
.main-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-text {
    color: var(--text-muted);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Alert Messages */
.alert-custom {
    border-radius: 12px;
    padding: 1rem 1.5rem;
    border: none;
}

.alert-success-custom {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger-custom {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.empty-state-text {
    color: var(--text-muted);
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination .page-link {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.6rem 1rem;
    margin: 0 3px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-item.active .page-link {
    background: var(--gradient-1);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-item.disabled .page-link {
    background: var(--light-bg);
    color: var(--text-muted);
}

/* Loading Spinner */
.spinner-wrapper {
    display: flex;
    justify-content: center;
    padding: 3rem;
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--card-bg);
        padding: 1rem;
        border-radius: 12px;
        margin-top: 1rem;
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-card);
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .single-post-title {
        font-size: 1.3rem;
    }
    
    .title-box {
        padding: 1.2rem;
        gap: 12px;
    }
    
    .title-icon {
        font-size: 1.2rem;
    }
    
    .post-card {
        flex-direction: column;
    }
    
    .post-image-wrapper {
        width: 100%;
        height: 180px;
    }
    
    .dropdown-menu.categories-menu {
        min-width: 100%;
        max-height: 250px;
    }
    
    .dropdown-menu.categories-menu.show {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 0;
    }
    
    .single-post-content {
        padding: 1.5rem;
    }
    
    .post-content {
        padding: 1rem;
    }
    
    .single-post-image-wrapper {
        padding: 1.5rem;
    }
    
    .download-box {
        padding: 1rem;
    }
    
    .download-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card {
    animation: fadeInUp 0.6s ease forwards;
}

.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }
.post-card:nth-child(4) { animation-delay: 0.4s; }
.post-card:nth-child(5) { animation-delay: 0.5s; }
.post-card:nth-child(6) { animation-delay: 0.6s; }

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Categories Menu Scrollbar */
.categories-menu::-webkit-scrollbar {
    width: 5px;
}

.categories-menu::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 3px;
}

.categories-menu::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* ===================================
   سیستم VIP و احراز هویت
   =================================== */

/* Auth Area در هدر */
.auth-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-auth {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-auth:hover {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-name {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
}

.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #eab308);
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.vip-days {
    font-size: 11px;
    color: var(--text-muted);
    margin-right: 8px;
}

/* مودال احراز هویت */
.auth-modal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.auth-modal .modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
}

.auth-modal .modal-body {
    padding: 24px;
}

.auth-modal .modal-title {
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.otp-input-wrapper {
    margin-bottom: 16px;
}

.otp-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    text-align: center;
    letter-spacing: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.otp-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.otp-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

.otp-msg {
    font-size: 13px;
    color: #ef4444;
    margin-top: 8px;
}

.otp-msg.success {
    color: #22c55e;
}

.hide {
    display: none !important;
}

.d-none {
    display: none !important;
}

#resendTimer {
    font-size: 12px;
    color: var(--primary-color);
    margin-right: 8px;
}

/* مودال خرید اشتراک */
.subscribe-modal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.subscribe-modal .modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
}

.subscribe-modal .modal-body {
    padding: 24px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.plan-card {
    position: relative;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.15);
}

.plan-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

.plan-card.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-duration {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.plan-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.plan-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.plan-price small {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-popular {
    position: absolute;
    top: -10px;
    right: 50%;
    transform: translateX(50%);
    padding: 4px 12px;
    background: linear-gradient(135deg, #f59e0b, #eab308);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
}

/* دکمه پرداخت */
.btn-pay {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: var(--gradient-1);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-pay:hover {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.btn-pay:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* قفل VIP برای دانلود */
.vip-locked {
    position: relative;
    pointer-events: none;
    opacity: 0.5;
}

.vip-locked::after {
    content: '🔒 نیاز به اشتراک';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* ریسپانسیو مودال‌ها */
@media (max-width: 576px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-modal .modal-body,
    .subscribe-modal .modal-body {
        padding: 16px;
    }
    
    .plan-card {
        padding: 16px;
    }
}

/* ===================================
   انتخاب درگاه پرداخت
   =================================== */

.gateway-selection {
    background: var(--light-bg);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--border-color);
}

.gateway-options {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.gateway-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    min-width: 120px;
}

.gateway-option input[type="radio"] {
    display: none;
}

.gateway-option:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.gateway-option.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.gateway-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient-1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.gateway-option.selected .gateway-icon {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.gateway-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

@media (max-width: 576px) {
    .gateway-options {
        flex-direction: column;
    }
    
    .gateway-option {
        flex-direction: row;
        justify-content: center;
        min-width: auto;
        padding: 12px 20px;
    }
    
    .gateway-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}
