    .profile-container { max-width: 1200px; margin: 40px auto 100px auto; padding: 0 20px; direction: rtl; font-family: inherit; }
    .alert { padding: 15px 20px; border-radius: 12px; margin-bottom: 25px; font-weight: bold; transition: opacity 0.5s ease; }
    .alert-success { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
    .alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
    
    .dashboard-layout { display: flex; gap: 30px; align-items: flex-start; }
    
    .profile-sidebar { width: 300px; background: #ffffff; border-radius: 24px; padding: 30px 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); border: 1px solid #f1f5f9; flex-shrink: 0; }
    .profile-avatar-container { text-align: center; margin-bottom: 25px; border-bottom: 1px solid #f1f5f9; padding-bottom: 20px; }
    .profile-avatar { width: 90px; height: 90px; background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: #10b981; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 35px; margin: 0 auto 15px auto; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2); overflow: hidden; }
    .profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
    .profile-avatar-container h1 { font-size: 20px; color: #0f172a; margin: 0 0 5px 0; font-weight: 900; }
    .profile-avatar-container p { font-size: 13px; color: #64748b; margin: 0; }
    .level-badge { display: inline-block; background: #fffbeb; color: #d97706; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: bold; margin-top: 10px; border: 1px solid #fde68a; }
    
    .sidebar-nav { display: flex; flex-direction: column; gap: 10px; }
    .nav-btn { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 14px; background: transparent; border: none; font-size: 15px; font-weight: bold; color: #64748b; cursor: pointer; transition: all 0.3s; text-align: right; width: 100%; }
    .nav-btn:hover { background: #f8fafc; color: #0f172a; }
    .nav-btn.active { background: #10b981; color: #ffffff; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2); }
    .btn-logout { background: #fff1f2; color: #e11d48; margin-top: 15px; text-decoration: none; justify-content: center; }
    .btn-logout:hover { background: #e11d48; color: #ffffff; }
    
    .profile-content { flex-grow: 1; min-width: 0; width: 100%; overflow: hidden; }
    .content-section { display: none; width: 100%; box-sizing: border-box; animation: fadeIn 0.4s ease; }
    .content-section.active { display: block; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
    
    .panel { background: #ffffff; border-radius: 24px; padding: 30px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03); border: 1px solid #f1f5f9; margin-bottom: 25px; }
    .panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
    .panel-header h2 { margin: 0; color: #0f172a; font-size: 22px; }
    .panel-header p { margin: 5px 0 0 0; color: #64748b; font-size: 14px; }
    
    /* افکت‌های آکاردئونی */
    .collapsible-header { cursor: pointer; user-select: none; transition: background 0.3s; padding: 10px; border-radius: 12px; margin-bottom: 0; }
    .collapsible-header:hover { background: #f8fafc; }
    .collapsible-icon { display: inline-block; transition: transform 0.4s; color: #10b981; font-size: 18px; margin-left: 10px; }
    .collapsible-header.active .collapsible-icon { transform: rotate(180deg); }
    .collapsible-content { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-out, opacity 0.3s ease; opacity: 0; }
    .collapsible-content.active { opacity: 1; }
    
    .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
    .stat-card { background: #f8fafc; padding: 25px 20px; border-radius: 20px; text-align: center; border: 1px solid #f1f5f9; transition: all 0.3s ease; }
    .stat-card:hover { transform: translateY(-5px); border-color: #e2e8f0; background: #ffffff; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
    .stat-card .icon { width: 50px; height: 50px; background: #ecfdf5; color: #10b981; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px auto; font-size: 24px; }
    .stat-card.gold .icon { background: #fffbeb; color: #f59e0b; }
    .stat-card h3 { margin: 0 0 8px 0; color: #64748b; font-size: 14px; font-weight: bold; }
    .stat-card .value { font-size: 24px; font-weight: 900; color: #0f172a; }
    
    .progress-box { background: #f8fafc; padding: 25px; border-radius: 20px; border: 1px solid #e2e8f0; }
    .progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
    .progress-header h3 { margin: 0; color: #0f172a; font-size: 18px; }
    .progress-header span { font-size: 14px; color: #64748b; font-weight: bold; }
    .progress-track { background: #e2e8f0; height: 12px; border-radius: 10px; overflow: hidden; width: 100%; position: relative; }
    .progress-fill { background: linear-gradient(90deg, #10b981, #34d399); height: 100%; border-radius: 10px; transition: width 1s ease-in-out; }
    .progress-text { margin-top: 15px; font-size: 14px; color: #334155; line-height: 1.6; }
    .points-info { margin-bottom: 10px; color: #10b981; font-weight: bold; display: block; }
    
    .annual-prize-banner { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); color: #fff; padding: 25px 30px; border-radius: 24px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3); }
    .prize-content h2 { margin: 0 0 8px 0; font-size: 22px; font-weight: 900; color: white; }
    .prize-content p { margin: 0; font-size: 15px; opacity: 0.9; line-height: 1.6; }
    .prize-icon { font-size: 60px; }
    
    .levels-guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-top: 15px; }
    .level-guide-card { background: #f8fafc; border: 1px solid #e2e8f0; padding: 20px; border-radius: 16px; text-align: center; transition: background 0.3s; }
    .level-guide-card:hover { background: #ffffff; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
    .level-guide-card h4 { margin: 10px 0 5px 0; color: #0f172a; font-size: 18px; }
    .level-guide-card .pts { color: #10b981; font-weight: bold; font-size: 14px; margin-bottom: 8px; display: block; }
    .level-guide-card p { font-size: 13px; color: #64748b; margin: 0; line-height: 1.5; }
    
    .env-stats { display: flex; gap: 20px; justify-content: space-around; flex-wrap: wrap; margin-bottom: 20px; margin-top: 15px; }
    .env-stat-item { text-align: center; background: #f8fafc; padding: 20px; border-radius: 16px; flex: 1; border: 1px solid #e2e8f0; min-width: 200px; }
    .env-stat-item strong { display: block; color: #0f172a; font-size: 22px; margin-top: 8px; }
    .info-box { background: #eff6ff; color: #1e3a8a; padding: 15px 20px; border-radius: 12px; border: 1px solid #bfdbfe; font-size: 14px; line-height: 1.7; margin-bottom: 15px; }
    
    .table-responsive { width: 100%; overflow-x: auto; border-radius: 16px; border: 1px solid #e2e8f0; }
    .data-table { width: 100%; border-collapse: collapse; min-width: 600px; background: #ffffff; }
    .data-table th, .data-table td { padding: 18px 16px; text-align: right; border-bottom: 1px solid #f1f5f9; font-size: 14px; color: #334155; }
    .data-table th { background: #f8fafc; color: #475569; font-weight: bold; border-bottom: 2px solid #e2e8f0; }
    .data-table tr:hover td { background: #f8fafc; }
    
    .status-badge { padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: bold; }
    .status-success { background: #ecfdf5; color: #059669; }
    .status-pending { background: #fffbeb; color: #d97706; }
    .status-failed { background: #fef2f2; color: #dc2626; }
    
    .rank-row-me td { background: #ecfdf5 !important; }
    .rank-row-me td:first-child { border-right: 4px solid #10b981; }
    .rank-1 td { background: #fffbeb; font-weight: bold; color: #b45309 !important; }
    
    .referral-input { width: 100%; max-width: 400px; padding: 12px; border: 1px dashed #cbd5e1; border-radius: 8px; margin: 15px 0; direction: ltr; text-align: center; background: #f8fafc; outline: none; }
    .share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; text-decoration: none; color: white; font-weight: bold; font-size: 14px; margin: 5px; border: none; cursor: pointer; transition: opacity 0.3s; }
    .share-btn:hover { opacity: 0.9; }
    .share-tg { background: #0088cc; }
    .share-wa { background: #25D366; }
    .share-cp { background: #64748b; }
    
    .map-container { width: 100%; height: 350px; border-radius: 16px; overflow: hidden; border: 1px solid #cbd5e1; }
    
    .settings-form { display: grid; gap: 20px; max-width: 500px; }
    .form-group label { display: block; margin-bottom: 8px; color: #334155; font-weight: bold; font-size: 14px; }
    .form-group input { width: 100%; padding: 14px; border: 2px solid #e2e8f0; border-radius: 12px; font-family: inherit; font-size: 15px; outline: none; transition: border-color 0.3s; box-sizing: border-box; }
    .form-group input[type="file"] { padding: 10px; background: #f8fafc; cursor: pointer; }
    .form-group input:focus { border-color: #10b981; }
    .form-group input:disabled { background: #f8fafc; color: #94a3b8; cursor: not-allowed; }
    
    .btn-save, .btn-cert { background: #10b981; color: white; border: none; padding: 12px 25px; border-radius: 10px; cursor: pointer; font-weight: bold; font-size: 14px; transition: background 0.3s; text-decoration: none; display: inline-block; }
    .btn-save:hover, .btn-cert:hover { background: #059669; }
    
    @media (max-width: 900px) {
        .dashboard-layout { flex-direction: column; }
        .profile-sidebar { width: 100%; padding: 20px; box-sizing: border-box; }
        .sidebar-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; }
        .nav-btn { width: auto; flex-grow: 1; justify-content: center; font-size: 13px; padding: 12px; }
        .annual-prize-banner { flex-direction: column; text-align: center; gap: 15px; padding: 20px; }
        .panel { padding: 20px; }
    }
    
    .not-logged-in { text-align: center; padding: 80px 20px; background: #ffffff; border-radius: 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03); margin-top: 40px; }
    .btn-primary { background: #10b981; color: #ffffff; padding: 15px 35px; border-radius: 50px; text-decoration: none; font-weight: bold; display: inline-block; margin-top: 15px; }


