:root {
    --primary: #6a00ff;
    --primary-light: #9d4dff;
    --secondary: #00f5d4;
    --accent: #ff006e;
    --dark: #0d0221;
    --darker: #080116;
    --light: #f8f9fa;
    --success: #38b000;
    --danger: #ef233c;
    --warning: #ff9e00;
    
    --neon-glow: 0 0 10px rgba(106, 0, 255, 0.7),
                 0 0 20px rgba(106, 0, 255, 0.5),
                 0 0 30px rgba(106, 0, 255, 0.3);
    --neon-text-glow: 0 0 5px #fff,
                      0 0 10px #fff,
                      0 0 15px var(--primary-light),
                      0 0 20px var(--primary-light);
}

/* الأساسيات */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--darker);
    color: var(--light);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* التأثيرات البصرية */
.ambient-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(106, 0, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}



/* المساحة الرئيسية للوحة التحكم */
.nexus-dashboard {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* بطاقة الأداء المركزية */
.performance-hub {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.performance-metrics {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    width: 100%;
}

.metric-card {
    background: linear-gradient(145deg, rgba(13, 2, 33, 0.7), rgba(38, 4, 97, 0.5));
    border-radius: 15px;
    padding: 1.5rem;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(106, 0, 255, 0.3);
    transition: all 0.3s;
}

.metric-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--neon-glow);
}

.metric-value {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(to bottom, #fff, var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    font-weight: 500;
}

.win-streak {
    border-top: 4px solid var(--warning);
}

.win-streak .streak-fire {
    position: absolute;
    bottom: 20px;
    width: 100%;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path d="M0,20 Q25,5 50,15 T100,5 L100,20 Z" fill="%23FF9E00"/></svg>') bottom center repeat-x;
    opacity: 0.7;
}

.win-rate {
    border-top: 4px solid var(--success);
}

.win-rate .rate-graph {
    position: absolute;
    bottom: 20px;
    width: 80%;
    height: 40px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 40"><path d="M0,40 Q20,20 40,30 T80,10 T100,30" stroke="%2300B894" fill="none" stroke-width="2"/></svg>') bottom center no-repeat;
}

/* بطاقة تقدم اليوم الذكية */
.daily-progress-card {
    background: linear-gradient(135deg, rgba(20, 30, 48, 0.9), rgba(36, 59, 85, 0.9));
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 245, 212, 0.1);
    position: relative;
    overflow: hidden;
}

.daily-progress-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(0, 245, 212, 0.05) 0%, transparent 50%);
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.progress-header i {
    font-size: 1.2rem;
    color: var(--secondary);
}

.progress-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-right: auto;
}

.badge {
    background-color: rgba(0, 245, 212, 0.2);
    color: var(--secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.unlocked {
    background-color: rgba(255, 215, 0, 0.2);
    color: var(--warning);
}

.smart-progress-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.circular-progress {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--secondary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: calc(283 - (283 * var(--progress)) / 100);
    transition: stroke-dashoffset 1s ease;
}

.progress-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-value {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(to bottom, #fff, var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    line-height: 1;
}

.progress-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.3rem;
}

.progress-steps {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.step {
    text-align: center;
    position: relative;
}

.step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.step.active::after {
    background: var(--secondary);
}

.step:last-child::after {
    display: none;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    position: relative;
    z-index: 1;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

.step.active .step-icon {
    background-color: var(--secondary);
    color: var(--dark);
    box-shadow: 0 0 15px rgba(0, 245, 212, 0.5);
}

.step-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    display: block;
}

.step.active .step-label {
    color: var(--secondary);
}

.bonus-reward {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 0.8rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: var(--warning);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.bonus-reward i {
    font-size: 1.2rem;
}

.progress-message {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    padding: 0.8rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

/* بوابة الإجراءات */
.action-portal {
    position: relative;
    width: 600px;
    height: 300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portal-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(106, 0, 255, 0.3);
    border-radius: 50% 50% 45% 55% / 60% 60% 40% 40%;
    animation: rotate-ring 30s linear infinite;
}

.portal-ring:nth-child(2) {
    width: 90%;
    height: 90%;
    border-color: rgba(0, 245, 212, 0.3);
    animation-direction: reverse;
}

.portal-ring:nth-child(3) {
    width: 80%;
    height: 80%;
    border-color: rgba(255, 0, 110, 0.3);
}

@keyframes rotate-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.portal-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(106, 0, 255, 0.1) 0%, transparent 60%);
    border-radius: 50%;
}

.nexus-btn {
    position: relative;
    width: 220px;
    height: 80px;
    margin: 0 1rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(145deg, rgba(13, 2, 33, 0.8), rgba(38, 4, 97, 0.6));
    color: white;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.nexus-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(106, 0, 255, 0.4);
}

.nexus-btn .btn-hologram {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 25%, 
        rgba(106, 0, 255, 0.1) 25%, 
        rgba(106, 0, 255, 0.1) 50%, 
        transparent 50%, 
        transparent 75%, 
        rgba(0, 245, 212, 0.1) 75%);
    background-size: 10px 10px;
    opacity: 0.5;
    z-index: -1;
}

.nexus-btn .btn-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 2;
}

.nexus-btn i {
    font-size: 1.5rem;
}

.create-room-btn {
    border-top: 3px solid var(--primary);
    border-bottom: 3px solid var(--primary);
}

.create-room-btn i {
    color: var(--primary);
}

.join-room-btn {
    border-top: 3px solid var(--secondary);
    border-bottom: 3px solid var(--secondary);
}

.join-room-btn i {
    color: var(--secondary);
}

.btn-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    background: radial-gradient(circle, rgba(106, 0, 255, 0.4) 0%, transparent 70%);
    opacity: 0;
    z-index: 0;
    animation: pulse-animation 3s infinite;
}

.join-room-btn .btn-pulse {
    background: radial-gradient(circle, rgba(0, 245, 212, 0.4) 0%, transparent 70%);
}

@keyframes pulse-animation {
    0% { transform: scale(0.8); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* أزرار الإجراءات الذكية */
.smart-action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.smart-action {
    background: linear-gradient(135deg, rgba(20, 30, 48, 0.9), rgba(36, 59, 85, 0.9));
    border-radius: 16px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.smart-action:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.smart-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(0, 245, 212, 0.05) 0%, transparent 70%);
}

.action-visual {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.match-history .action-visual {
    background: linear-gradient(135deg, rgba(106, 0, 255, 0.1), rgba(106, 0, 255, 0.2));
    border: 1px solid rgba(106, 0, 255, 0.3);
}

.referrals .action-visual {
    background: linear-gradient(135deg, rgba(0, 199, 182, 0.1), rgba(0, 199, 182, 0.2));
    border: 1px solid rgba(0, 199, 182, 0.3);
}

.action-visual i {
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
}

.match-history .action-visual i {
    color: var(--primary-light);
}

.referrals .action-visual i {
    color: var(--secondary);
}

.timeline-animation,
.users-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.timeline-animation::before,
.users-animation::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: 20px 20px;
    background-image: linear-gradient(
        45deg,
        transparent 25%,
        rgba(106, 0, 255, 0.1) 25%,
        rgba(106, 0, 255, 0.1) 50%,
        transparent 50%,
        transparent 75%,
        rgba(106, 0, 255, 0.1) 75%,
        rgba(106, 0, 255, 0.1)
    );
    animation: movePattern 3s linear infinite;
}

.users-animation::before {
    background-image: linear-gradient(
        45deg,
            transparent 25%,
    rgba(0, 245, 212, 0.1) 25%,
    rgba(0, 245, 212, 0.1) 50%,
    transparent 50%,
    transparent 75%,
    rgba(0, 245, 212, 0.1) 75%,
    rgba(0, 245, 212, 0.1)
);
}

@keyframes movePattern {
0% { background-position: 0 0; }
100% { background-position: 20px 20px; }
}

.action-info {
flex: 1;
}

.action-info h3 {
font-size: 1.1rem;
font-weight: 600;
color: white;
margin-bottom: 0.3rem;
}

.action-info p {
font-size: 0.85rem;
color: rgba(255, 255, 255, 0.7);
margin-bottom: 0.5rem;
}

.new-matches,
.referral-count {
font-size: 0.75rem;
font-weight: 600;
padding: 0.2rem 0.6rem;
border-radius: 50px;
display: inline-block;
}

.new-matches {
background-color: rgba(106, 0, 255, 0.2);
color: var(--primary-light);
}

.referral-count {
background-color: rgba(0, 245, 212, 0.2);
color: var(--secondary);
}

/* قسم المباريات الأخيرة */
.recent-matches {
margin-bottom: 3rem;
}

.section-title {
display: flex;
align-items: center;
justify-content: center;
gap: 1rem;
font-family: 'Orbitron', sans-serif;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 3px;
color: var(--secondary);
margin-bottom: 2rem;
text-align: center;
}

.title-decorator {
flex: 1;
height: 2px;
background: linear-gradient(to right, transparent, var(--primary), transparent);
opacity: 0.5;
}

.matches-timeline {
display: flex;
flex-direction: column;
gap: 1rem;
max-width: 800px;
margin: 0 auto;
}

.match-event {
background: linear-gradient(145deg, rgba(13, 2, 33, 0.7), rgba(38, 4, 97, 0.5));
border-radius: 10px;
padding: 1rem 1.5rem;
display: flex;
align-items: center;
gap: 1.5rem;
position: relative;
overflow: hidden;
transition: all 0.3s;
border-left: 4px solid var(--primary);
}

.match-event:hover {
transform: translateX(10px);
box-shadow: var(--neon-glow);
}

.match-event.won {
border-left-color: var(--success);
}

.match-event.lost {
border-left-color: var(--danger);
}

.match-event::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(90deg,
rgba(106, 0, 255, 0.1) 0%,
transparent 50%,
transparent 100%);
z-index: 0;
}

.event-icon {
width: 40px;
height: 40px;
border-radius: 50%;
background-color: rgba(106, 0, 255, 0.2);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
flex-shrink: 0;
z-index: 1;
}

.won .event-icon {
background-color: rgba(0, 184, 148, 0.2);
color: var(--success);
}

.lost .event-icon {
background-color: rgba(239, 35, 60, 0.2);
color: var(--danger);
}

.event-details {
flex: 1;
display: flex;
flex-direction: column;
z-index: 1;
}

.opponent {
font-weight: 600;
font-size: 1.1rem;
}

.amount {
font-size: 0.9rem;
color: var(--secondary);
font-weight: 500;
}

.event-time {
font-size: 0.8rem;
color: rgba(255, 255, 255, 0.6);
z-index: 1;
}

/* موجز الإحصائيات */
/* أنماط قسم GAME STATS الجديدة */
.stat-panel {
    background: linear-gradient(145deg, rgba(13, 2, 33, 0.8), rgba(38, 4, 97, 0.7));
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(106, 0, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.stat-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(106, 0, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.stat-header i {
    font-size: 1.4rem;
    color: var(--secondary);
}

.stat-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    letter-spacing: 2px;
    color: white;
    margin: 0;
    font-size: 1.2rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(106, 0, 255, 0.3);
}

.stat-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-light);
    background: rgba(106, 0, 255, 0.1);
    border-radius: 50%;
}

.stat-item.won .stat-icon {
    color: var(--success);
    background: rgba(0, 184, 148, 0.1);
}

.stat-item.lost .stat-icon {
    color: var(--danger);
    background: rgba(239, 35, 60, 0.1);
}

.stat-item.rate .stat-icon {
    color: var(--secondary);
    background: rgba(0, 245, 212, 0.1);
}

.stat-item.streak .stat-icon {
    color: var(--warning);
    background: rgba(255, 158, 0, 0.1);
}

.stat-figure {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    display: block;
    margin-bottom: 0.3rem;
    background: linear-gradient(to bottom, #fff, var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-item.won .stat-figure {
    background: linear-gradient(to bottom, #fff, var(--success));
    -webkit-background-clip: text;
    background-clip: text;
}

.stat-item.lost .stat-figure {
    background: linear-gradient(to bottom, #fff, var(--danger));
    -webkit-background-clip: text;
    background-clip: text;
}

.stat-item.rate .stat-figure {
    background: linear-gradient(to bottom, #fff, var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
}

.stat-item.streak .stat-figure {
    background: linear-gradient(to bottom, #fff, var(--warning));
    -webkit-background-clip: text;
    background-clip: text;
}

.stat-caption {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* شريط تقدم Win Rate */
.rate-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 0.8rem;
    overflow: hidden;
    position: relative;
}

.rate-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress);
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
    transition: width 1s ease;
}

/* أشرطة Win Streak */
.streak-bars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 0.8rem;
    height: 4px;
}

.streak-bar {
    height: 100%;
    width: 15px;
    background: var(--warning);
    border-radius: 2px;
    animation: streak-grow 0.6s ease-out var(--delay) forwards;
    transform-origin: bottom;
    opacity: 0;
    transform: scaleY(0);
}

@keyframes streak-grow {
    from { opacity: 0; transform: scaleY(0); }
    to { opacity: 1; transform: scaleY(1); }
}

/* تنسيقات الهواتف لقسم GAME STATS */
@media (max-width: 768px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-figure {
        font-size: 1.5rem;
    }
    
    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }
}

/* جسيمات الخلفية */
.particles-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: -1;
}

.particle {
position: absolute;
border-radius: 50%;
animation: float linear infinite;
}

/* التصميم المتجاوب */
@media (max-width: 1200px) {
.performance-metrics {
flex-wrap: wrap;
}
.metric-card {
    width: 180px;
    height: 180px;
}
}

@media (max-width: 992px) {
.action-portal {
width: 100%;
flex-direction: column;
height: auto;
gap: 2rem;
}
.nexus-btn {
    width: 80%;
    max-width: 300px;
}

.stats-overview {
    grid-template-columns: 1fr;
}
}

@media (max-width: 768px) {
.fusion-nav {
flex-direction: column;
gap: 1rem;
padding: 1rem;
}
.performance-metrics {
    gap: 1rem;
}

.metric-card {
    width: 150px;
    height: 150px;
}

.metric-value {
    font-size: 2rem;
}

.nexus-dashboard {
    padding: 1rem;
}
}

@media (max-width: 576px) {
.metric-card {
width: 120px;
height: 120px;
}
.metric-value {
    font-size: 1.5rem;
}

.metric-label {
    font-size: 0.7rem;
}

.nexus-btn {
    height: 70px;
    font-size: 1rem;
}

.section-title {
    font-size: 1rem;
}

.smart-action {
    flex-direction: column;
    text-align: center;
}

.action-visual {
    margin-bottom: 1rem;
}
}


/* متغيرات خاصة بالهواتف */
:root {
    --vh: 1vh; /* سيتم ضبطه عبر JavaScript */
}

/* تحسينات عامة للهواتف */
.is-mobile {
    /* تحسين أداء التمرير */
    -webkit-overflow-scrolling: touch;
    
    /* منع تمياز النص */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* تأثيرات التحويم البديلة للهواتف */
@media (hover: none) {
    .nexus-btn.hover-effect,
    .smart-action.hover-effect {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    
    /* إخفاء تأثيرات الجسيمات على الهواتف القديمة */
    .particles-container {
        display: none;
    }
}




/* ============================================= */
/* قسم RECENT ACTIVITY الاحترافي */
/* ============================================= */

.recent-activity {
    background: linear-gradient(145deg, rgba(13, 2, 33, 0.8), rgba(38, 4, 97, 0.7));
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(106, 0, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.recent-activity::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(106, 0, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.header-content i {
    font-size: 1.4rem;
    color: var(--secondary);
}

.section-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    color: white;
    margin: 0;
    font-size: 1.2rem;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.view-all:hover {
    color: var(--secondary);
}

.view-all i {
    font-size: 0.7rem;
}

.activity-timeline {
    position: relative;
    z-index: 1;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 28px;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-bg {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.icon-bg.won {
    background: rgba(0, 184, 148, 0.1);
    color: var(--success);
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.icon-bg.lost {
    background: rgba(239, 35, 60, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 35, 60, 0.3);
}

.activity-content {
    flex: 1;
    padding: 0 1rem;
}

.activity-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.activity-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0;
    margin-right: 0.8rem;
}

.game-badge {
    background: rgba(106, 0, 255, 0.2);
    color: var(--primary-light);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 500;
}

.activity-details {
    display: flex;
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.detail-value {
    font-size: 0.85rem;
    font-weight: 500;
}

.detail-value.won {
    color: var(--success);
}

.detail-value.lost {
    color: var(--danger);
}

.activity-amount {
    width: 100px;
    text-align: center;
    padding: 0.5rem;
    border-radius: 8px;
    flex-shrink: 0;
    transition: all 0.3s;
}

.activity-amount.won {
    background: rgba(0, 184, 148, 0.1);
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.activity-amount.lost {
    background: rgba(239, 35, 60, 0.1);
    border: 1px solid rgba(239, 35, 60, 0.3);
}

.amount-sign {
    font-size: 1rem;
    font-weight: 700;
    margin-right: 0.2rem;
}

.activity-amount.won .amount-sign {
    color: var(--success);
}

.activity-amount.lost .amount-sign {
    color: var(--danger);
}

.amount-value {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
}

.activity-amount.won .amount-value {
    color: var(--success);
}

.activity-amount.lost .amount-value {
    color: var(--danger);
}

.amount-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.2rem;
}

.activity-time {
    width: 70px;
    text-align: right;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    flex-shrink: 0;
}

.time-bar {
    position: absolute;
    top: 50%;
    right: 0;
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%);
}

/* تنسيقات الهواتف لقسم RECENT ACTIVITY */
@media (max-width: 768px) {
    .activity-item {
        flex-wrap: wrap;
        padding: 1rem;
    }
    
    .activity-content {
        order: 1;
        width: 100%;
        padding: 1rem 0;
    }
    
    .activity-amount {
        order: 2;
        margin-right: auto;
        width: auto;
        padding: 0.5rem 1rem;
    }
    
    .activity-time {
        order: 3;
        width: auto;
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .time-bar {
        position: static;
        transform: none;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .activity-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .game-badge {
        display: none;
    }
}


/* ============================================= */
/* قسم GAME STATS الاحترافي الذكي */
/* ============================================= */

.nextgen-performance {
  background: linear-gradient(135deg, rgba(13,2,33,0.85), rgba(38,4,97,0.75));
  border-radius: 20px;
  padding: 3rem 2rem;
  margin: 4rem auto;
  max-width: 1200px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  border: 1px solid rgba(106, 0, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.nextgen-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
}

.nextgen-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Orbitron', sans-serif;
  color: white;
}

.nextgen-title h2 {
  font-size: 1.8rem;
  letter-spacing: 2px;
}

.nextgen-title i {
  font-size: 1.8rem;
  color: var(--secondary);
}

.nextgen-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 0, 255, 0.1), transparent 70%);
  z-index: -1;
}

.nextgen-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.nextgen-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  padding: 1.5rem;
  position: relative;
  transition: 0.3s;
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.nextgen-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.2);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.card-icon.win {
  color: var(--secondary);
  background: rgba(0,245,212,0.1);
}

.card-icon.gold {
  color: var(--warning);
  background: rgba(255,215,0,0.1);
}

.card-icon.fire {
  color: var(--accent);
  background: rgba(255,0,110,0.1);
}

.card-data h3 {
  color: white;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.metric-value {
  font-size: 1.8rem;
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  color: transparent;
  display: block;
}

.sub-label {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

.progress-line {
  height: 6px;
  width: 100%;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 3px;
}

/* ===== استجابة الهواتف ===== */
@media (max-width: 768px) {
  .nextgen-title h2 {
    font-size: 1.5rem;
  }

  .nextgen-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .card-icon {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }

  .metric-value {
    font-size: 1.6rem;
  }
  .action-portal {
    margin-top: 20px;
  }
}





/* الفاصل الذكي بين الأقسام */
.section-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-bottom: -2px;
}

.section-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* قسم زرّي الإيداع والسحب */
.fusion-wallet-section {
  position: relative;
  padding: 4rem 1rem;
  text-align: center;
  background: radial-gradient(circle at center, rgba(106, 0, 255, 0.05), transparent 70%);
  z-index: 1;
}

.wallet-glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 245, 212, 0.05), transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: pulse-wallet-ring 8s infinite;
}

@keyframes pulse-wallet-ring {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.2;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.4;
  }
}

.wallet-buttons-container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.wallet-fusion-btn {
  background: linear-gradient(145deg, rgba(13, 2, 33, 0.9), rgba(38, 4, 97, 0.9));
  border: 2px solid transparent;
  border-radius: 60px;
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  font-weight: 600;
  text-transform: uppercase;
}

.wallet-fusion-btn i {
  font-size: 1.4rem;
}

.wallet-fusion-btn.deposit {
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.2), rgba(0, 245, 212, 0.1));
  border-color: rgba(0, 245, 212, 0.4);
  color: var(--secondary);
  box-shadow: 0 0 30px rgba(0, 245, 212, 0.3);
}

.wallet-fusion-btn.withdraw {
  background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(255, 0, 110, 0.1));
  border-color: rgba(255, 0, 110, 0.4);
  color: var(--accent);
  box-shadow: 0 0 30px rgba(255, 0, 110, 0.3);
}

.wallet-fusion-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px rgba(0, 245, 212, 0.4);
}


.minimal-elegant-divider {
  position: relative;
  width: 100%;
  height: 100px;
  overflow: hidden;
  z-index: 1;
  margin-top: 3rem;
  margin-bottom: -2px;
}

.minimal-elegant-divider svg {
  display: block;
  width: 100%;
  height: 100px;
}






/* === Professional Modal Styles (محسّنة) === */
.pro-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 2, 33, 0.92);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pro-modal-overlay.active {
  opacity: 1;
  display: flex;
}

.pro-modal-container {
  background: linear-gradient(145deg, #1a1a2e, #0f0a1e);
  width: 95%;
  max-width: 420px;
  max-height: 88vh;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(106, 0, 255, 0.4);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 10px;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  scrollbar-width: thin;
  scrollbar-color: rgba(106, 0, 255, 0.4) transparent;
}

.pro-modal-container::-webkit-scrollbar {
  width: 6px;
}
.pro-modal-container::-webkit-scrollbar-thumb {
  background: rgba(106, 0, 255, 0.4);
  border-radius: 4px;
}

.pro-modal-overlay.active .pro-modal-container {
  transform: translateY(0);
}

/* استجابة محسّنة للهواتف */
@media (max-width: 480px) {
  .pro-modal-container {
    width: 96%;
    max-height: 92vh;
    border-radius: 12px;
    padding-right: 6px;
  }
  .pro-modal-title h2 {
    font-size: 1.15rem;
  }
  .icon-circle {
    width: 34px;
    height: 34px;
  }
  .pro-modal-close {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }
}


.pro-modal-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pro-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-circle {
  width: 40px;
  height: 40px;
  background: rgba(106, 0, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle i {
  font-size: 1.2rem;
  color: var(--primary-light);
}

.pro-modal-title h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  color: white;
  margin: 0;
  letter-spacing: 0.5px;
}


.pro-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.pro-modal-close:hover {
  background: rgba(239, 35, 60, 0.3);
  color: var(--accent);
}

.pro-room-form {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pro-form-section {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s;
}

.pro-form-section:hover {
  border-color: rgba(106, 0, 255, 0.3);
}

.locked-section {
  background: rgba(106, 0, 255, 0.1);
  border-color: rgba(106, 0, 255, 0.3);
}

.pro-input-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a1a1c2;
  font-size: 0.9rem;
  margin-bottom: 12px;
  font-weight: 500;
}

.pro-input-label i {
  width: 20px;
  text-align: center;
  color: var(--primary-light);
}

.pro-locked-game {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(106, 0, 255, 0.1);
  border-radius: 8px;
  border: 1px dashed rgba(106, 0, 255, 0.4);
}

.pro-locked-game img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.pro-locked-game span {
  flex: 1;
  color: white;
  font-weight: 500;
}

.pro-locked-game i {
  color: var(--primary-light);
  font-size: 0.9rem;
}

.pro-input-with-btn {
  display: flex;
  gap: 8px;
}

.pro-input-with-btn input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 14px;
  color: white;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
}

.pro-input-with-btn input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(106, 0, 255, 0.2);
}

.pro-paste-btn {
  background: rgba(106, 0, 255, 0.2);
  border: 1px solid var(--primary);
  color: var(--primary-light);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
}

.pro-paste-btn:hover {
  background: var(--primary);
  color: white;
}

.pro-match-type {
  display: flex;
  gap: 10px;
}

.pro-match-option {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.pro-match-option.active {
  background: rgba(0, 245, 212, 0.1);
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(0, 245, 212, 0.3);
}

.option-icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 245, 212, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  color: var(--secondary);
  font-size: 1.2rem;
}

.pro-match-option.active .option-icon {
  background: var(--secondary);
  color: #0d0221;
}

.pro-match-option span {
  font-size: 0.9rem;
  font-weight: 500;
  display: block;
}

.pro-duration-selector {
  position: relative;
}

.pro-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 14px;
  color: white;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  appearance: none;
}

.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(255, 255, 255, 0.6);
}

.pro-privacy-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 4px;
}

.pro-toggle-option {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pro-toggle-option i {
  font-size: 1rem;
}

.pro-toggle-option.active {
  background: rgba(106, 0, 255, 0.3);
  box-shadow: 0 0 10px rgba(106, 0, 255, 0.2);
}

.pro-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 14px;
  color: white;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
}

.pro-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(106, 0, 255, 0.2);
}

/* أنماط قسم المبلغ البسيط */
.bet-amount-simple {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    margin-top: 8px;
}

.bet-amount-simple:focus-within {
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(0, 245, 212, 0.2);
}

.bet-currency {
    padding: 0 12px;
    font-weight: 600;
    color: var(--secondary);
    background: rgba(0, 245, 212, 0.1);
    height: 100%;
    display: flex;
    align-items: center;
}

.bet-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px;
    outline: none;
    min-width: 0;
}

.bet-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-weight: normal;
}

.bet-quick-actions {
    display: flex;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.bet-action-btn {
    background: none;
    border: none;
    color: var(--primary-light);
    padding: 0 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    height: 100%;
    display: flex;
    align-items: center;
}

.bet-action-btn:hover {
    background: rgba(106, 0, 255, 0.2);
    color: white;
}

.bet-presets {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.bet-preset {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px;
    font-size: 0.9rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.bet-preset:hover {
    background: rgba(0, 245, 212, 0.2);
    border-color: var(--secondary);
}

.pro-balance {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-left: auto;
}

.pro-form-actions {
  margin-top: 10px;
}

.pro-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pro-submit-btn:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(106, 0, 255, 0.4);
}

.pro-submit-btn:active {
  transform: translateY(0);
}





/* تنسيقات متقدمة لقائمة الاختيار */
.pro-duration-selector {
  position: relative;
  margin-top: 8px;
}

.pro-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 14px;
  color: white;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: all 0.3s;
  padding-right: 40px; /* مساحة للسهم */
}

.pro-select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(0, 245, 212, 0.2);
}

.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--secondary);
  transition: transform 0.3s;
}

.pro-select:focus + .select-arrow {
  transform: translateY(-50%) rotate(180deg);
  color: var(--primary-light);
}

/* تنسيقات خيارات القائمة */
.pro-select option {
  background: var(--darker);
  color: white;
  padding: 10px;
  border-bottom: 1px solid rgba(106, 0, 255, 0.2);
}

.pro-select option:hover {
  background: var(--primary);
  color: white;
}

/* تنسيقات القائمة المنسدلة (للمتصفحات التي تدعمها) */
.pro-select::-ms-expand {
  display: none;
}

/* تأثيرات إضافية للقائمة */
.pro-select:hover {
  border-color: rgba(106, 0, 255, 0.3);
}







/* Elite History Card */
.elite-history-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: rgba(20, 25, 35, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(151, 214, 193, 0.685);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.elite-history-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 245, 212, 0.2);
    background: rgba(30, 35, 45, 0.9);
}

.elite-icon {
    margin-right: 20px;
}

.elite-icon i {
    font-size: 28px;
    color: #8e9aaf;
    transition: color 0.3s ease;
}

.elite-history-card:hover i {
    color: #c0c9dd;
}

.elite-content {
    flex: 1;
}

.elite-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #f0f0f0;
    margin-bottom: 8px;
}

.elite-content p {
    font-size: 14px;
    color: rgba(180, 180, 180, 0.8);
    margin-bottom: 8px;
}

/* Elite Live Indicator */
.elite-live-indicator {
    display: inline-flex;
    align-items: center;
    background: rgba(220, 50, 50, 0.15);
    border-radius: 12px;
    padding: 4px 8px;
    margin-top: 4px;
    animation: attention-grab 1.5s ease-in-out;
}

.live-pulse {
    display: block;
    width: 8px;
    height: 8px;
    background: #ff4d4d;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 0 rgba(255, 77, 77, 0.4);
}

.live-text {
    font-size: 11px;
    font-weight: 700;
    color: #ff6b6b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 4px;
}

.live-count {
    font-size: 10px;
    font-weight: 700;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 2px 6px;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 4px rgba(255, 77, 77, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
    }
}

@keyframes attention-grab {
    0% { opacity: 0; transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Periodic reminder animation */
@keyframes gentle-reminder {
    0% { transform: translateX(0); }
    20% { transform: translateX(3px); }
    40% { transform: translateX(0); }
    100% { transform: translateX(0); }
}









.error-message {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(152deg, #d32f2f 0%, #b71c1c 100%);
    color: #fff;
    padding: 22px 36px;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(211, 47, 47, 0.35),
                inset 0 1px 1px rgba(255, 255, 255, 0.15);
    z-index: 100000;
    max-width: 90%;
    min-width: 360px;
    width: max-content;
    animation: elegantEntrance 0.65s cubic-bezier(0.23, 1, 0.32, 1) forwards,
               elegantExit 0.5s 4.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
    font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.5;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    overflow: hidden;
}

.error-message::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.06) 0%, 
                rgba(255, 255, 255, 0.01) 100%);
    pointer-events: none;
}

.error-message::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 20px;
    background: linear-gradient(145deg, 
                rgba(255, 255, 255, 0.12) 0%, 
                rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    opacity: 0.5;
}

@keyframes elegantEntrance {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-50px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes elegantExit {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-25px);
        visibility: hidden;
    }
}

/* نسخة خاصة للرسائل المهمة */
.error-message.important {
    background: linear-gradient(152deg, #c62828 0%, #8e0000 100%);
    animation: elegantEntrance 0.65s forwards,
               intelligentPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite 0.65s,
               elegantExit 0.5s 6s forwards;
}

@keyframes intelligentPulse {
    0%, 100% {
        box-shadow: 0 20px 50px rgba(211, 47, 47, 0.35),
                    inset 0 1px 1px rgba(255, 255, 255, 0.15);
    }
    50% {
        box-shadow: 0 20px 60px rgba(211, 47, 47, 0.5),
                    inset 0 1px 1px rgba(255, 255, 255, 0.2);
    }
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .error-message {
        min-width: 280px;
        padding: 20px 28px;
        font-size: 15px;
        top: 30px;
        border-radius: 16px;
        max-width: 92%;
    }
}










.modal-error-message {
    color: #ff6b6b;
    background: rgba(255, 0, 0, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    border-left: 3px solid #ff6b6b;
    font-size: 14px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}










/* زر الإحالة البسيط والأنيق */
.refined-referral-btn {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(20, 25, 45, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(0, 245, 212, 0.15);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-height: 120px;
}

.refined-referral-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 245, 212, 0.2);
    background: rgba(30, 35, 60, 0.9);
    border-color: rgba(0, 245, 212, 0.3);
}

.refined-referral-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.05) 0%, transparent 100%);
    z-index: 0;
}

/* أيقونة متطورة */
.refined-icon {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.refined-icon i {
font-size: 1.5rem;
    color: var(--secondary);
    z-index: 2;
}

.icon-halo {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.2);
    animation: pulse-halo 3s infinite;
}

@keyframes pulse-halo {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 0.9; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

/* محتوى النص */
.refined-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    z-index: 1;
}

.refined-title {
     font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.refined-count {
    font-size: 1rem;
    color: rgba(200, 220, 255, 0.7);
    font-weight: 500;
}

/* السهم */
.refined-arrow {
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    z-index: 1;
}

.refined-referral-btn:hover .refined-arrow {
    color: var(--secondary);
    transform: translateX(3px);
}

/* تأثيرات إضافية للفخامة */
.refined-referral-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        transparent 0%,
        transparent 45%,
        rgba(0, 245, 212, 0.03) 50%,
        transparent 55%,
        transparent 100%
    );
    transform: rotate(30deg);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.refined-referral-btn:hover::after {
    opacity: 1;
    animation: shine 6s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(30deg); }
    20% { transform: translateX(100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}

/* التكيف مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .refined-referral-btn {
        padding: 0.9rem 1rem;
        gap: 0.8rem;
    }
    
    .refined-icon {
        width: 36px;
        height: 36px;
    }
    
    .refined-title {
        font-size: 0.95rem;
    }
    
    .refined-count {
        font-size: 0.75rem;
    }
}







.smart-action {
    cursor: pointer;
}

.smart-action * {
    pointer-events: none;
}


.badge.unlocked {
    background: linear-gradient(135deg, #38b000, #2b8800);
}

.bonus-reward {
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    margin-top: 15px;
}

.bonus-reward i {
    color: #00f5d4;
    margin-right: 5px;
}


.claim-link a {
  color: #00f5d4;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0,245,212,0.4);
  transition: color .25s ease, border-color .25s ease;
}

.claim-link a:hover {
  color: #14ffd9;
  border-color: rgba(20,255,217,0.7);
}



.challenge-condition {
    margin: 0.8rem 0 0.3rem;
    font-size: 0.85rem;
    color: #adb5bd; /* رمادي أنيق */
    text-align: center;
    font-style: italic;
}
.challenge-condition i {
    color: #6c757d; /* أيقونة باحترافية */
    margin-right: 4px;
    font-size: 0.9rem;
}





/* تحسينات قسم Game Performance للهواتف */
@media (max-width: 768px) {
  .nextgen-performance {
    padding: 1.5rem 1rem;
    margin: 2rem auto;
    border-radius: 16px;
  }
  
  .nextgen-header {
    margin-bottom: 1.5rem;
  }
  
  .nextgen-title h2 {
    font-size: 1.3rem;
    letter-spacing: 1px;
  }
  
  .nextgen-title i {
    font-size: 1.3rem;
  }
  
  .nextgen-metrics {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .nextgen-card {
    padding: 1.2rem;
    border-radius: 14px;
    gap: 1rem;
    flex-direction: row;
    align-items: center;
  }
  
  .card-icon {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    flex-shrink: 0;
  }
  
  .metric-value {
    font-size: 1.5rem;
  }
  
  .card-data h3 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
  }
  
  .sub-label {
    font-size: 0.75rem;
  }
  
  .progress-line {
    height: 5px;
    margin-top: 0.4rem;
  }
}

/* تحسينات إضافية للهواتف الصغيرة جدًا */
@media (max-width: 480px) {
  .nextgen-performance {
    padding: 1.2rem 0.8rem;
    margin: 1.5rem auto;
  }
  
  .nextgen-title h2 {
    font-size: 1.2rem;
  }
  
  .nextgen-card {
    padding: 1rem;
    gap: 0.8rem;
  }
  
  .card-icon {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }
  
  .metric-value {
    font-size: 1.4rem;
  }
  
  .card-data h3 {
    font-size: 0.9rem;
  }
  
  .sub-label {
    font-size: 0.7rem;
  }
}

/* تحسينات خاصة للوضع الأفقي على الهواتف */
@media (max-width: 768px) and (orientation: landscape) {
  .nextgen-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  .nextgen-card {
    flex-direction: column;
    text-align: center;
    padding: 0.8rem;
    gap: 0.5rem;
  }
  
  .card-data {
    width: 100%;
  }
  
  .progress-line {
    width: 90%;
    margin: 0.3rem auto 0;
  }
}








/* ============================================= */
/* تنسيقات شريط التمرير المحسّنة والأنيقة */
/* ============================================= */

/* شريط التمرير للمتصفحات التي تدعم WebKit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(13, 2, 33, 0.1);
    border-radius: 4px;
    margin: 2px;
}

::-webkit-scrollbar-thumb {
    background: rgba(106, 0, 255, 0.3);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(106, 0, 255, 0.5);
    background-clip: padding-box;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* شريط التمرير لمتصفح Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(106, 0, 255, 0.3) rgba(13, 2, 33, 0.1);
}

/* تحسينات الأداء والسلاسة */
html {
    scroll-behavior: smooth;
}

body {
    scroll-behavior: smooth;
    overflow-y: overlay;
}

/* تحسينات للهواتف */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 5px;
        height: 5px;
    }
}

/* تأثيرات إضافية للعناصر القابلة للتمرير */
.scroll-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(106, 0, 255, 0.3) rgba(13, 2, 33, 0.1);
}

.scroll-container::-webkit-scrollbar {
    width: 6px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: rgba(106, 0, 255, 0.3);
    border-radius: 3px;
}

/* تحسينات الأداء للجهاز */
@media (prefers-reduced-motion: no-preference) {
    .smooth-scroll {
        scroll-behavior: smooth;
    }
}

/* منع الاهتزاز عند الوصول لنهاية التمرير */
body {
    overscroll-behavior-y: contain;
}

/* تحسينات للأجهزة التي تدعم اللمس */
@media (hover: none) and (pointer: coarse) {
    ::-webkit-scrollbar {
        width: 6px;
    }
    
    body {
        -webkit-overflow-scrolling: touch;
    }
}

/* تحسينات أداء إضافية */
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto;
    }
}