:root {
    --primary-color: #00ff88;
    --primary-dark: #00cc6a;
    --dark-bg: #0a0a0a;
    --dark-card: #1a1a1a;
    --dark-border: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --success: #00ff88;
    --danger: #ff4444;
    --warning: #ffbb33;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.dark-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.dark-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.1);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: #000;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.navbar {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--dark-border);
}

.wallet-card {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,255,136,0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary-color), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* استایل‌های مخصوص طلا */
.gold-price-card {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
    position: relative;
    overflow: hidden;
}

.gold-price-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: float 20s linear infinite;
}

.gold-info {
    display: flex;
    gap: 1rem;
}

.info-item {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.quick-buy-btn {
    transition: all 0.3s ease;
    border: 2px solid #10b981;
}

.quick-buy-btn:hover:not(:disabled) {
    background: #10b981;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.quick-buy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quick-buy-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-calculation {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}
/* استایل‌های جدید برای بخش‌های اضافه شده */

/* کارت‌های دسترسی سریع */
.quick-action-card {
    display: block;
    text-align: center;
    padding: 20px 15px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
}

.quick-action-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    color: var(--text-color);
    text-decoration: none;
}

.quick-action-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.5rem;
}

.quick-action-card .icon.bg-success { background: var(--success-color); }
.quick-action-card .icon.bg-warning { background: var(--warning-color); }
.quick-action-card .icon.bg-gold { background: linear-gradient(45deg, #FFD700, #FFA500); }
.quick-action-card .icon.bg-primary { background: var(--primary-color); }

/* کارت‌های درخواست ارز */
.request-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.request-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* آیکون‌های جدید */
.fa-coins { color: #FFD700; }
.fa-money-bill-wave { color: #28a745; }
.fa-shopping-cart { color: #17a2b8; }
.fa-gem { color: #FFD700; }

/* کارت‌های قیمت */
.price-card {
    background: linear-gradient(135deg, var(--card-bg), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.price-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gold-card {
    background: linear-gradient(135deg, #2c2c2c, #4a3c1a);
    border: 1px solid #FFD700;
}

/* استایل‌های responsive */
@media (max-width: 768px) {
    .quick-action-card {
        padding: 15px 10px;
    }
    
    .quick-action-card .icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* استایل برای بخش‌های مدیریت */
.info-box {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.info-box.bg-success {
    background: linear-gradient(135deg, var(--success-color), #1e7e34);
}

.info-box.bg-warning {
    background: linear-gradient(135deg, var(--warning-color), #e0a800);
}

/* استایل‌های دکمه‌های جدید */
.btn-outline-gold {
    color: #FFD700;
    border-color: #FFD700;
}

.btn-outline-gold:hover {
    background-color: #FFD700;
    color: #000;
}
.calculation-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sample-buy {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-20px, -20px) rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.price-up {
    color: var(--success);
}

.price-down {
    color: var(--danger);
}

.trading-view {
    background: var(--dark-card);
    border-radius: 15px;
    padding: 20px;
    height: 500px;
}

.order-book {
    max-height: 400px;
    overflow-y: auto;
}

.order-book .bid {
    color: var(--success);
}

.order-book .ask {
    color: var(--danger);
}

.loading-spinner {
    border: 3px solid var(--dark-border);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* استایل‌های جدید برای سیستم رفرال */
.referral-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
}

.btn-telegram {
    background: #0088cc;
    color: white;
    border: none;
}

.btn-telegram:hover {
    background: #0077b5;
    color: white;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: white;
}

.bonus-item {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.referral-stats {
    display: flex;
    gap: 2rem;
}

/* استایل برای نوتیفیکیشن */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 768px) {
    .referral-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .referral-card {
        padding: 1.5rem;
    }
}