/* ========== RESET & VARIABLES ========== */
:root {
    --primary: #00f2fe;
    --secondary: #4facfe;
    --neon-green: #39ff14;
    --neon-gold: #ffd700;
    --neon-gold-dark: #ffaa00;
    --neon-purple: #9d50bb;
    --dark: #0a0a2a;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --neon-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --success: #39ff14;
    --error: #ff4444;
    --warning: #ffaa00;
    
    /* Apple-like blur values */
    --blur-amount: 20px;
    --blur-amount-heavy: 30px;
    
    /* sizing */
    --header-height: 60px;
    --border-radius-sm: 12px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    position: relative;
}

/* پس‌زمینه متحرک */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(79, 172, 254, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(57, 255, 20, 0.1) 0%, transparent 50%),
                linear-gradient(135deg, #0a0a2a 0%, #1a1a4a 100%);
    z-index: -2;
}

/* اسکرول بار زیبا */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--neon-green));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--neon-green), var(--primary));
}

/* ========== UTILITY CLASSES ========== */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--glass-shadow), var(--neon-shadow);
    transition: all 0.3s ease;
}

.glass-effect:hover {
    box-shadow: var(--glass-shadow), 0 0 30px rgba(0, 242, 254, 0.5);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--neon-green), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientFlow 3s linear infinite;
}

.hidden {
    display: none !important;
}

/* ========== ANIMATIONS ========== */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    50% { transform: translateX(8px); }
    75% { transform: translateX(-4px); }
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes glowLine {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes vipGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 50px rgba(255, 215, 0, 0.6); }
}

@keyframes vipShimmer {
    0% { transform: rotate(45deg) translateX(-100%); }
    100% { transform: rotate(45deg) translateX(100%); }
}

/* ========== LOADING SCREEN ========== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    background: var(--dark);
    animation: fadeIn 0.5s ease;
}

.loading-content {
    text-align: center;
    padding: 2rem;
    max-width: 90%;
    animation: float 2s ease-in-out infinite;
}

.loading-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: url('https://s5.uupload.ir/files/kiayt021s9v7/IMG_20250905_163909_235.png') center/cover;
    border-radius: 50%;
    border: 3px solid var(--primary);
    box-shadow: 0 0 30px var(--primary);
    animation: pulse 2s ease-in-out infinite;
}

.loading-bar-container {
    width: 280px;
    margin: 1rem auto;
}

.loading-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.loading-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 1.5s infinite;
}

.loading-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--neon-green));
    border-radius: 20px;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px var(--primary);
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-top: 1rem;
}

/* ========== LOGIN SCREEN ========== */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 9999;
    background: var(--dark);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow-y: auto;
}

.login-screen.show {
    opacity: 1;
    visibility: visible;
}

.brand-section {
    text-align: center;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 400px;
    animation: scaleIn 0.6s ease;
}

.brand-section h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.brand-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.brand-decoration {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.brand-decoration i {
    font-size: 1.5rem;
    color: var(--primary);
    animation: float 3s ease-in-out infinite;
}

.brand-decoration i:nth-child(2) {
    animation-delay: 0.2s;
    color: var(--neon-green);
}

.brand-decoration i:nth-child(3) {
    animation-delay: 0.4s;
    color: var(--neon-gold);
}

.login-container {
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 400px;
    animation: scaleIn 0.6s ease 0.2s both;
}

.login-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.2rem;
    z-index: 2;
}

.text-input, .password-input {
    width: 100%;
    padding: 1rem 3rem 1rem 3.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Vazirmatn', sans-serif;
    transition: all 0.3s ease;
}

.text-input:focus, .password-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.text-input.shake, .password-input.shake {
    animation: shake 0.5s ease;
}

.toggle-password {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary);
}

.login-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.login-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--neon-green));
    border: none;
    border-radius: var(--border-radius-md);
    color: #000;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.3);
}

.login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.4);
}

.login-button i {
    transition: transform 0.3s ease;
}

.login-button:hover i {
    transform: translateX(-5px);
}

.purchase-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--neon-gold), #ffaa00);
    border: none;
    border-radius: var(--border-radius-md);
    color: #000;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.purchase-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

.purchase-button:hover i:last-child {
    transform: translateX(5px);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: scale(1.15) rotate(360deg);
    color: var(--primary);
    box-shadow: 0 0 30px var(--primary);
}

.login-footer {
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
}

/* ========== MAIN PANEL ========== */
.main-panel {
    min-height: 100vh;
    padding: 1rem 1rem 5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    position: relative;
}

.main-panel.show {
    opacity: 1;
    visibility: visible;
}

/* ========== MENU ========== */
.menu-wrapper {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 999;
}

.hamburger-button {
    width: 50px;
    height: 50px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1000;
}

.hamburger-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--primary);
}

.hamburger-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.hamburger-icon span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    left: 0;
}

.hamburger-icon span:nth-child(1) { top: 6px; }
.hamburger-icon span:nth-child(2) { top: 12px; }
.hamburger-icon span:nth-child(3) { top: 18px; }

.hamburger-button.active .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg);
    top: 12px;
    background: var(--primary);
}

.hamburger-button.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger-button.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg);
    top: 12px;
    background: var(--primary);
}

.menu-content {
    position: fixed;
    top: 4.5rem;
    right: -300px;
    width: 260px;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    padding: 1rem;
    transition: right 0.4s ease;
    z-index: 998;
}

.menu-content.active {
    right: 1rem;
}

.menu-header {
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.menu-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.5rem;
    background: url('https://s5.uupload.ir/files/kiayt021s9v7/IMG_20250905_163909_235.png') center/cover;
    border-radius: 50%;
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px var(--primary);
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}

.menu-item i {
    width: 24px;
    color: var(--primary);
    font-size: 1.2rem;
}

/* ========== MENU DIVIDER ========== */
.menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--neon-green), var(--primary), transparent);
    margin: 0.5rem 0;
    opacity: 0.3;
    width: 100%;
}

/* ========== TOP ICONS ========== */
.top-icons {
    position: fixed;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.8rem;
    z-index: 999;
}

.icon-button {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.icon-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--primary);
}

#premiumIcon {
    color: var(--neon-gold);
    animation: pulse 2s ease-in-out infinite;
}

/* ========== SUPPORT FLOAT BUTTON ========== */
.support-float-button {
    position: fixed;
    bottom: 6rem;
    left: 1rem;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--neon-green));
    color: #000;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.support-float-button:hover {
    transform: scale(1.15);
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.6);
}

.support-float-modal {
    position: fixed;
    bottom: 7.5rem;
    left: 1rem;
    width: 250px;
    z-index: 999;
    display: none;
    animation: scaleIn 0.3s ease;
}

.support-float-modal.show {
    display: block;
}

.support-float-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.support-float-header h3 {
    font-size: 1rem;
    color: var(--primary);
}

.close-float-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-float-modal:hover {
    color: var(--error);
    transform: rotate(90deg);
}

.support-float-body {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.support-float-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    width: 100%;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    text-align: right;
}

.support-float-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}

.support-float-item i {
    width: 24px;
    color: var(--primary);
    font-size: 1.2rem;
}

/* ========== SECTIONS ========== */
.sections-container {
    margin-top: 4rem;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.section.active {
    display: block;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-title i {
    color: var(--primary);
    margin-left: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--neon-green), transparent);
    border-radius: 3px;
    animation: glowLine 2s ease-in-out infinite;
}

/* ========== DNS CARDS ========== */
.dns-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dns-card {
    padding: 1.2rem;
    transition: all 0.3s ease;
}

.dns-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.card-header i {
    font-size: 1.5rem;
}

.card-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.badge {
    background: linear-gradient(135deg, var(--neon-green), var(--primary));
    color: #000;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    margin-right: auto;
    font-weight: 700;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.dns-content {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius-sm);
    padding: 0.8rem;
    margin-bottom: 1rem;
}

.dns-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dns-item:last-child {
    border-bottom: none;
}

.dns-item span {
    min-width: 45px;
    color: var(--text-secondary);
}

.dns-item code {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    direction: ltr;
    font-family: monospace;
    color: var(--primary);
    flex: 1;
    text-align: left;
    font-size: 0.85rem;
    overflow-x: auto;
    white-space: nowrap;
}

.copy-single-dns {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-secondary);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-single-dns:hover {
    background: var(--primary);
    color: #000;
    transform: scale(1.1);
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.action-btn {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.3);
}

.dns-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.icon-btn {
    flex: 1;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: var(--primary);
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.3);
}

.icon-btn[data-action="close"]:hover,
.close-dns:hover {
    background: var(--error);
    color: #fff;
}

/* ========== WIREGUARD CARD ========== */
.wireguard-card {
    padding: 1.2rem;
    margin-top: 1.5rem;
}

.wireguard-selector {
    margin-bottom: 1rem;
}

select.glass-effect {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 1.2rem;
    font-family: 'Vazirmatn', sans-serif;
}

select.glass-effect option {
    background: var(--dark);
    color: #fff;
}

.wireguard-content {
    margin-bottom: 1rem;
}

.wireguard-content pre {
    padding: 1rem;
    direction: ltr;
    text-align: left;
    font-family: monospace;
    font-size: 0.8rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--border-radius-sm);
    max-height: 200px;
    overflow-y: auto;
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.wireguard-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wireguard-toolbar {
    display: flex;
    gap: 0.5rem;
}

/* ========== GUIDE CARDS ========== */
.guide-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.guide-card {
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.guide-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), transparent, var(--neon-green), transparent);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.guide-card:hover::before {
    opacity: 0.5;
}

.guide-card:hover {
    transform: translateY(-5px);
}

.guide-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary), var(--neon-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-icon i {
    font-size: 2rem;
    color: #000;
}

.guide-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.guide-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.guide-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
}

.guide-link:hover {
    gap: 0.8rem;
    color: var(--neon-green);
    background: rgba(255, 255, 255, 0.08);
}

/* ========== CONFIGS CARDS ========== */
.configs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.config-card {
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
}

.config-card:hover {
    transform: translateY(-5px);
}

.config-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--neon-green));
    border-radius: 20px;
    color: #000;
    font-size: 0.8rem;
    font-weight: 700;
}

.config-badge.premium {
    background: linear-gradient(135deg, var(--neon-gold), #ffaa00);
}

.config-main-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.config-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.config-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.config-features {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: right;
}

.config-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.config-features i {
    color: var(--neon-green);
    font-size: 1rem;
}

.config-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--neon-gold);
    margin-bottom: 1rem;
    background: rgba(255, 215, 0, 0.1);
    padding: 0.5rem;
    border-radius: 20px;
    display: inline-block;
}

.config-actions {
    display: flex;
    gap: 0.5rem;
}

.config-btn {
    flex: 1;
    padding: 0.8rem;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.config-btn.download {
    background: linear-gradient(135deg, var(--primary), var(--neon-green));
    color: #000;
}

.config-btn.info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.config-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* ========== HOST CARDS ========== */
.host-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.host-grid.single-host {
    max-width: 500px;
    margin: 0 auto;
}

.host-card {
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.host-card:hover {
    transform: translateY(-5px);
}

.host-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.host-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.host-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.host-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: right;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
}

.host-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.host-features i {
    font-size: 1rem;
    margin: 0;
    color: var(--neon-green);
}

.host-actions {
    display: flex;
    gap: 0.5rem;
}

.host-btn {
    flex: 1;
    padding: 0.8rem;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--primary), var(--neon-green));
    color: #000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.host-btn.outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.host-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* ========== UPDATES SECTION ========== */
.updates-categories {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
}

.update-category {
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}

.update-category.active {
    background: linear-gradient(135deg, var(--primary), var(--neon-green));
    color: #000;
    border-color: transparent;
}

.update-category:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary);
}

.updates-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.updates-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    right: 20px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--neon-green));
    opacity: 0.3;
}

.update-item {
    padding: 1.2rem;
    position: relative;
    transition: all 0.3s ease;
    margin-right: 30px;
    cursor: pointer;
}

.update-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.2);
}

.update-item::before {
    content: '';
    position: absolute;
    right: -30px;
    top: 1.5rem;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary);
}

.update-item[data-category="site"]::before { background: var(--primary); }
.update-item[data-category="dns"]::before { background: var(--neon-gold); }
.update-item[data-category="wireguard"]::before { background: var(--neon-green); }
.update-item[data-category="host"]::before { background: var(--neon-purple); }
.update-item[data-category="config"]::before { background: var(--secondary); }
.update-item[data-category="vip"]::before { background: var(--neon-gold); box-shadow: 0 0 20px var(--neon-gold); }

.update-date {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    background: rgba(0, 242, 254, 0.1);
    display: inline-block;
    padding: 0.2rem 1rem;
    border-radius: 20px;
}

.update-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.2rem 1rem;
    background: var(--neon-green);
    border-radius: 20px;
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
}

.update-badge.new {
    background: var(--primary);
    color: #000;
    animation: pulse 2s infinite;
}

.update-badge.مهم {
    background: var(--warning);
    color: #000;
}

.update-badge.ویژه {
    background: var(--neon-gold);
    color: #000;
}

.update-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--neon-gold);
}

.update-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== APMOD LOGIN ========== */
.apmod-login-container {
    padding: 2rem 1.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.apmod-login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.apmod-login-header i {
    font-size: 3rem;
    color: var(--neon-gold);
    margin-bottom: 1rem;
}

.apmod-login-header h3 {
    font-size: 1.5rem;
    color: var(--neon-gold);
}

.apmod-login-desc {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.apmod-input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.apmod-password-input {
    width: 100%;
    padding: 1rem 3rem 1rem 3.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Vazirmatn', sans-serif;
    transition: all 0.3s ease;
}

.apmod-password-input:focus {
    outline: none;
    border-color: var(--neon-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.apmod-password-input.shake {
    animation: shake 0.5s ease;
}

.toggle-apmod-password {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s ease;
}

.toggle-apmod-password:hover {
    color: var(--neon-gold);
}

.apmod-login-actions {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.apmod-login-btn {
    flex: 1;
    padding: 1rem;
    background: linear-gradient(135deg, var(--neon-gold), #ffaa00);
    border: none;
    border-radius: var(--border-radius-md);
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.apmod-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.apmod-cancel-btn {
    flex: 1;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.apmod-cancel-btn:hover {
    background: var(--error);
    color: #fff;
}

.apmod-purchase-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--neon-green));
    border: none;
    border-radius: var(--border-radius-md);
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.apmod-purchase-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.4);
}

/* ========== APMOD CONTENT ========== */
.apmod-box {
    padding: 1.5rem;
}

.apmod-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.apmod-header .icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--neon-purple), var(--primary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    box-shadow: 0 10px 30px rgba(157, 80, 187, 0.4);
}

.apmod-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.apmod-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.apmod-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.apmod-buttons .btn {
    flex: 1;
    min-width: 100px;
    padding: 0.8rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.apmod-download {
    background: linear-gradient(135deg, var(--primary), var(--neon-green));
    color: #000;
}

.apmod-details {
    background: linear-gradient(135deg, var(--neon-gold), #ffaa00);
    color: #000;
}

.apmod-lesson {
    background: linear-gradient(135deg, var(--neon-purple), var(--secondary));
    color: #fff;
}

.apmod-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.apmod-details-toggle {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.apmod-details-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary);
}

.apmod-details-toggle i {
    transition: transform 0.3s ease;
}

.apmod-details-panel {
    margin-top: 1rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.apmod-details-panel h4 {
    margin-bottom: 1rem;
    color: var(--neon-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.apmod-details-panel ul {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.apmod-details-panel li {
    margin-bottom: 0.5rem;
}

.apmod-details-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* ========== VIP SECTION ========== */
.vip-section {
    position: relative;
}

.vip-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.vip-welcome {
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    border: 2px solid var(--neon-gold);
    animation: vipGlow 2s ease-in-out infinite;
}

.vip-welcome i {
    font-size: 4rem;
    color: var(--neon-gold);
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.vip-welcome h3 {
    font-size: 1.8rem;
    color: var(--neon-gold);
    margin-bottom: 1rem;
}

.vip-welcome p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.vip-benefits-list {
    list-style: none;
    text-align: right;
    max-width: 300px;
    margin: 0 auto 2rem;
}

.vip-benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.vip-benefits-list i {
    font-size: 1.2rem;
    margin: 0;
    color: var(--neon-green);
}

.vip-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.vip-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.vip-btn.home-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.vip-btn.enter-btn {
    background: linear-gradient(135deg, var(--neon-gold), #ffaa00);
    color: #000;
}

.vip-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.vip-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.vip-card {
    padding: 1.5rem;
    border-width: 2px;
    border-style: solid;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vip-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: rotate(45deg);
    animation: vipShimmer 3s linear infinite;
}

.vip-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.vip-card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    position: relative;
}

.vip-card-header i {
    font-size: 2rem;
}

.vip-card-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    flex: 1;
}

.vip-badge {
    background: var(--neon-gold);
    color: #000;
    font-size: 0.7rem;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.vip-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.vip-features {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.vip-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.vip-features i {
    font-size: 1rem;
    color: var(--neon-green);
}

.vip-card-actions {
    display: flex;
    gap: 0.5rem;
}

.vip-download-btn, .vip-info-btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.vip-download-btn {
    background: linear-gradient(135deg, var(--neon-gold), #ffaa00);
    color: #000;
}

.vip-info-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.vip-download-btn.small, .vip-info-btn.small {
    flex: 0 1 auto;
    padding: 0.5rem 1rem;
}

.vip-info-btn.close {
    background: var(--error);
    color: #fff;
}

.vip-download-btn:hover, .vip-info-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.vip-wireguard-content {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius-sm);
}

.vip-wireguard-content pre {
    padding: 1rem;
    direction: ltr;
    text-align: left;
    font-family: monospace;
    font-size: 0.8rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--border-radius-sm);
    max-height: 200px;
    overflow-y: auto;
    color: var(--neon-gold);
    margin-bottom: 0.5rem;
}

.vip-wireguard-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* ========== MODALS ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease;
}

.modal-content.modal-chat {
    max-width: 900px;
    width: 95%;
    height: 80vh;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    background: inherit;
    backdrop-filter: inherit;
    z-index: 10;
}

.modal-header h3 {
    font-size: 1.2rem;
    color: var(--primary);
}

.modal-close {
    width: 35px;
    height: 35px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--error);
    color: #fff;
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 0.5rem;
    padding: 1.2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    bottom: 0;
    background: inherit;
    backdrop-filter: inherit;
}

.modal-btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.modal-btn.confirm {
    background: linear-gradient(135deg, var(--primary), var(--neon-green));
    color: #000;
}

.modal-btn.cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-btn.upgrade {
    background: linear-gradient(135deg, var(--neon-gold), #ffaa00);
    color: #000;
}

.modal-btn.logout {
    background: var(--error);
    color: #fff;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* ========== ACCOUNT MODAL ========== */
.profile-avatar {
    text-align: center;
    margin-bottom: 1.5rem;
}

.profile-avatar i {
    font-size: 5rem;
    color: var(--primary);
    border: 3px solid var(--primary);
    border-radius: 50%;
    padding: 0.5rem;
    box-shadow: 0 0 30px var(--primary);
}

.account-info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.8rem;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.info-label i {
    color: var(--primary);
    width: 20px;
}

.info-value {
    font-weight: 700;
    color: var(--neon-gold);
    background: rgba(255, 215, 0, 0.1);
    padding: 0.2rem 1rem;
    border-radius: 20px;
}

/* ========== PREMIUM MODAL ========== */
.premium-icon-large {
    text-align: center;
    margin-bottom: 1rem;
}

.premium-icon-large i {
    font-size: 4rem;
    color: var(--neon-gold);
    text-shadow: 0 0 30px var(--neon-gold);
    animation: pulse 2s infinite;
}

.premium-desc {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.premium-info {
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.premium-info i {
    color: var(--neon-gold);
    font-size: 1.5rem;
}

.premium-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.modal-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Vazirmatn', sans-serif;
}

.modal-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.modal-input.shake {
    animation: shake 0.5s ease;
}

/* ========== PREMIUM WELCOME MODAL ========== */
.premium-welcome-text {
    text-align: center;
    margin-bottom: 1.5rem;
}

.premium-welcome-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.premium-benefits-list {
    list-style: none;
    margin-bottom: 1rem;
}

.premium-benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    color: var(--text-secondary);
}

.premium-benefits-list i {
    color: var(--neon-green);
    font-size: 1.2rem;
}

/* ========== CHAT MODAL ========== */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(80vh - 120px);
    padding: 0;
    overflow: hidden;
}

@media (min-width: 768px) {
    .chat-container {
        flex-direction: row;
    }
}

.chat-sidebar {
    background: rgba(0, 0, 0, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
}

@media (min-width: 768px) {
    .chat-sidebar {
        width: 280px;
        max-height: none;
        height: 100%;
    }
}

.chat-sidebar h4 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1rem;
    position: sticky;
    top: 0;
    background: inherit;
    padding: 0.5rem 0;
}

.faq-list-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-quick-btn {
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: right;
    font-family: 'Vazirmatn', sans-serif;
    width: 100%;
}

.faq-quick-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary);
    transform: translateX(-5px);
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    gap: 0.8rem;
    max-width: 85%;
    animation: slideIn 0.3s ease;
}

.message.bot {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    flex-shrink: 0;
}

.message.user .message-avatar {
    background: var(--neon-gold);
}

.message-content {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.8rem 1rem;
    border-radius: 18px;
    border-top-right-radius: 4px;
    word-wrap: break-word;
    position: relative;
}

.message.user .message-content {
    background: linear-gradient(135deg, var(--primary), var(--neon-green));
    color: #000;
    border-top-left-radius: 4px;
    border-top-right-radius: 18px;
}

.message-content p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.chat-input-area {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.chat-input-area input {
    flex: 1;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: var(--text-primary);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.chat-input-area input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.send-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--neon-green));
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--primary);
}

/* ========== FOOTER ========== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    z-index: 99;
    background: rgba(10, 10, 42, 0.8);
    backdrop-filter: blur(var(--blur-amount-heavy));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-link:hover {
    transform: scale(1.15) rotate(360deg);
    color: var(--primary);
    box-shadow: 0 0 30px var(--primary);
}

/* ========== NOTIFICATION ========== */
.notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--neon-green));
    border-radius: 30px;
    color: #000;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.4);
    text-align: center;
}

.notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.notification.error {
    background: linear-gradient(135deg, var(--error), #ff0000);
}

.notification.success {
    background: linear-gradient(135deg, var(--neon-green), #00ff00);
}

.notification.warning {
    background: linear-gradient(135deg, var(--warning), #ffaa00);
}

/* ========== RESPONSIVE ========== */
@media (min-width: 400px) {
    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .configs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .dns-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .guide-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .configs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vip-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .vip-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .apmod-buttons .btn {
        flex: 1 1 100%;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .vip-actions {
        flex-direction: column;
    }
    
    .vip-card-actions {
        flex-direction: column;
    }
    
    .brand-section h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 360px) {
    html {
        font-size: 13px;
    }
    
    .support-float-modal {
        width: 220px;
    }
}
/* اطلاع‌رسانی سراسری */
.global-updates-section {
    padding: 30px 20px;
    margin-top: 20px;
    background: linear-gradient(135deg, rgba(10, 10, 42, 0.95), rgba(20, 20, 60, 0.95));
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(0, 255, 255, 0.2);
    border-bottom: 2px solid rgba(0, 255, 255, 0.2);
}

.global-updates-section .section-title {
    text-align: center;
    margin-bottom: 30px;
}