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

body {
    font-family: 'Vazirmatn', 'Tahoma', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    min-height: 100vh;
    color: #e5e5e5;
    padding-top: 80px;
}

code, pre, .code-block {
    font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace !important;
}

/* Fade Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

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

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: #007BFF;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover {
    color: #007BFF;
    background: rgba(0, 123, 255, 0.1);
}

.nav-link.active {
    color: #007BFF;
    background: rgba(0, 123, 255, 0.15);
    border-bottom: 2px solid #007BFF;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid #333;
    transition: right 0.3s ease;
    z-index: 1001;
    padding: 2rem 1rem;
}

.mobile-drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.drawer-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.drawer-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.drawer-menu {
    list-style: none;
    padding: 0;
}

.drawer-menu li {
    margin-bottom: 1rem;
}

.drawer-menu .nav-link {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.drawer-menu .nav-link:hover {
    background: rgba(0, 123, 255, 0.2);
    transform: translateX(10px);
}

.drawer-menu .nav-link.active {
    background: rgba(0, 123, 255, 0.25);
    border-left: 3px solid #007BFF;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
}

.plans-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.plans-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.plans-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #007BFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.plans-subtitle {
    font-size: 1.2rem;
    color: #999;
}

.current-plan-info {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.info-card {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.info-icon {
    font-size: 1.6rem;
}

.info-header h3 {
    font-size: 1.3rem;
    margin: 0;
}

.info-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.4rem;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.pricing-section {
    margin-bottom: 4rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 900px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.price-card {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(0, 123, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 123, 255, 0.5);
    box-shadow: 0 20px 60px rgba(0, 123, 255, 0.3);
}

.level-1-card:hover,
.level-2-card:hover,
.level-3-card:hover {
    background: rgba(40, 40, 50, 0.9);
}

.free-card {
    border-color: rgba(100, 100, 100, 0.3);
}

.free-card:hover {
    border-color: rgba(100, 100, 100, 0.5);
    box-shadow: 0 20px 60px rgba(100, 100, 100, 0.2);
}

.card-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.card-header {
    margin-bottom: 1.2rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #fff;
}

.card-subtitle {
    color: #888;
    font-size: 0.9rem;
}

.card-price {
    text-align: center;
    margin-bottom: 1.2rem;
    padding: 1rem;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 15px;
}

.price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #007BFF;
}

.price-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #007BFF;
    display: block;
}

.price-label {
    font-size: 1rem;
    color: #888;
    display: block;
    margin-top: 0.5rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2rem 0;
    flex-grow: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.duration-options {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.duration-btn {
    flex: 1;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9rem;
}

.duration-btn:hover {
    background: rgba(0, 123, 255, 0.1);
    border-color: rgba(0, 123, 255, 0.3);
}

.duration-btn.selected {
    background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%);
    border-color: #007BFF;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.price-display-box {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid rgba(173, 216, 230, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.3),
        0 0 16px rgba(173, 216, 230, 0.12),
        0 0 32px rgba(173, 216, 230, 0.06),
        inset 0 1px 0 rgba(173, 216, 230, 0.1);
    transition: all 0.3s ease;
}

.price-display-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(173, 216, 230, 0.6) 0%, 
        rgba(135, 206, 250, 0.8) 50%, 
        rgba(173, 216, 230, 0.6) 100%);
    box-shadow: 0 0 15px rgba(173, 216, 230, 0.4);
}

.price-display-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(173, 216, 230, 0.03), 
        transparent);
    transform: rotate(45deg);
    animation: shimmerMoonlight 3s ease-in-out infinite;
}

@keyframes shimmerMoonlight {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.price-display-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.price-display-label {
    font-size: 0.9rem;
    color: #ADD8E6;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(173, 216, 230, 0.4);
}

.price-display-amount {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #ADD8E6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(173, 216, 230, 0.3));
}

.card-footer {
    margin-top: auto;
}

.select-plan-btn {
    width: 100%;
}

.faq-section {
    margin: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #007BFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(0, 123, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.faq-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #007BFF;
}

.faq-item p {
    color: #bbb;
    line-height: 1.6;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: linear-gradient(135deg, #1f1f2e 0%, #2a2a3a 100%);
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

.modal h3 {
    color: #ffffff;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}

.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 24px;
}

.logout-icon {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 193, 7, 0.1) 100%);
    border: 2px solid rgba(255, 193, 7, 0.4);
    color: #ffc107;
}

.auth-icon {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.2) 0%, rgba(0, 123, 255, 0.1) 100%);
    border: 2px solid rgba(0, 123, 255, 0.4);
    color: #007BFF;
}

.warning-icon {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, rgba(255, 152, 0, 0.1) 100%);
    border: 2px solid rgba(255, 152, 0, 0.4);
    color: #ff9800;
}

.modal-message {
    color: #b3b3b3;
    margin-bottom: 24px;
    line-height: 1.5;
    font-size: 14px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.modal-btn.primary {
    background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%);
    color: white;
}

.modal-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: 1px solid #555;
}

.modal-btn.danger {
    background: linear-gradient(135deg, #ff4757 0%, #c44569 100%);
    color: white;
    border: 1px solid #ff4757;
}

.modal-btn:hover {
    transform: translateY(-1px);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .plans-title {
        font-size: 2rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .price-card {
        padding: 1.2rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .price-number {
        font-size: 1.8rem;
    }

    .price {
        font-size: 1.4rem;
    }

    .feature-item {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }

    .duration-btn {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .duration-options {
        flex-direction: column;
        gap: 0.3rem;
    }

    .price-display-box {
        padding: 0.8rem;
        margin: 0.8rem 0;
    }

    .price-display-label {
        font-size: 0.85rem;
    }

    .price-display-amount {
        font-size: 1.1rem;
    }

    .info-content {
        grid-template-columns: 1fr;
    }

    .modal {
        max-width: 90%;
        padding: 20px;
    }
}
