* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    background: #f4f7fc;
    color: #1e293b;
    line-height: 1.5;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0a66b9;
}
.logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
nav a {
    margin-left: 24px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    transition: 0.2s;
}
nav a:hover { color: #0a66b9; }
.hero {
    background: linear-gradient(135deg, #e6f0fa 0%, #ffffff 100%);
    padding: 60px 0;
    text-align: center;
}
.hero h1 { font-size: 2.8rem; margin-bottom: 20px; }
.highlight { color: #0a66b9; background: #e6f0fa; padding: 0 10px; border-radius: 30px; }
.hero p { font-size: 1.2rem; color: #334155; max-width: 700px; margin: 0 auto 30px; }
.btn-primary, .btn-secondary, .mine-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}
.btn-primary { background: #0a66b9; color: white; box-shadow: 0 4px 8px rgba(10,102,185,0.2); }
.btn-primary:hover { background: #084a8a; transform: translateY(-2px); }
.btn-secondary { background: #e2e8f0; color: #1e293b; }
.btn-secondary:hover { background: #cbd5e1; }
.btn-large { padding: 14px 36px; font-size: 1.2rem; }
.features { padding: 60px 0; background: white; }
.features h2, .how-it-works h2, .dashboard-section h2 { text-align: center; margin-bottom: 40px; font-size: 2rem; color: #0a66b9; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature-card { background: #f8fafc; padding: 30px 20px; border-radius: 28px; text-align: center; transition: 0.2s; border: 1px solid #e2e8f0; }
.feature-card i { font-size: 2.5rem; color: #0a66b9; margin-bottom: 20px; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 12px 20px rgba(0,0,0,0.05); }
.connect-section { padding: 60px 20px; background: #f1f5f9; }
.connect-card { max-width: 550px; margin: 0 auto; background: white; border-radius: 48px; padding: 40px; text-align: center; box-shadow: 0 20px 30px rgba(0,0,0,0.05); }
.wallet-input-group { display: flex; gap: 12px; margin: 30px 0; flex-wrap: wrap; }
.wallet-input-group input { flex: 3; padding: 14px 20px; border: 1px solid #cbd5e1; border-radius: 60px; font-family: monospace; font-size: 1rem; }
.note { font-size: 0.85rem; color: #5e6f8d; }
.dashboard-section { padding: 40px 0; background: #f8fafc; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 30px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: white; border-radius: 24px; padding: 20px; text-align: center; box-shadow: 0 4px 8px rgba(0,0,0,0.05); }
.stat-card i { font-size: 2rem; color: #0a66b9; margin-bottom: 10px; }
.stat-label { display: block; font-size: 0.9rem; color: #475569; }
.stat-value { font-size: 1.8rem; font-weight: 800; color: #0a66b9; }
.referral-box { background: #eef2ff; border-radius: 24px; padding: 20px; margin-bottom: 30px; }
.ref-link-copy { display: flex; gap: 12px; margin-top: 10px; }
.ref-link-copy input { flex: 3; padding: 10px; border-radius: 40px; border: 1px solid #cbd5e1; background: white; }
/* Mining Box */
.mining-box {
    background: linear-gradient(135deg, #1e2a3a 0%, #0f172a 100%);
    border-radius: 40px;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid rgba(10,102,185,0.3);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2);
}
.mining-box i { font-size: 3rem; color: #ffd966; text-shadow: 0 0 10px #ffb347; animation: glowPulse 2s infinite; }
@keyframes glowPulse { 0% { text-shadow: 0 0 5px #ffb347; } 50% { text-shadow: 0 0 20px #ffaa33; } 100% { text-shadow: 0 0 5px #ffb347; } }
.mining-box h3 { color: #facc15; font-size: 1.8rem; margin: 15px 0; }
.mine-btn {
    background: linear-gradient(90deg, #f7931a, #ffb347);
    border: none;
    padding: 14px 28px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 60px;
    color: #1e293b;
    box-shadow: 0 8px 20px rgba(247,147,26,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 15px 0;
}
.mine-btn:hover:not(:disabled) { transform: scale(1.02); box-shadow: 0 12px 28px rgba(247,147,26,0.5); cursor: pointer; }
.mine-btn:active { transform: scale(0.98); }
.mine-btn:disabled { background: #64748b; box-shadow: none; cursor: not-allowed; opacity: 0.7; }
.mine-timer { font-size: 1rem; background: #1e293b; display: inline-block; padding: 8px 18px; border-radius: 40px; color: #cbd5e1; font-family: monospace; margin-top: 10px; }
.tasks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 20px 0; }
.task-card { background: white; border-radius: 24px; padding: 20px; border: 1px solid #e2e8f0; transition: 0.2s; }
.task-card:hover { transform: translateY(-3px); box-shadow: 0 8px 16px rgba(0,0,0,0.1); }
.task-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.task-card h3 i { color: #0a66b9; font-size: 1.3rem; }
.task-link { display: inline-block; margin: 12px 0; color: #0a66b9; text-decoration: none; font-weight: 500; }
.task-btn { background: #0a66b9; color: white; border: none; padding: 10px 16px; border-radius: 40px; cursor: pointer; width: 100%; font-weight: bold; transition: 0.2s; }
.task-btn.completed { background: #2c7a4d; cursor: default; }
.free-links-grid { display: flex; gap: 20px; margin: 20px 0 30px; flex-wrap: wrap; }
.free-link-card { flex: 1; min-width: 200px; }
.free-link-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: #f1f5f9; padding: 12px; border-radius: 60px; text-decoration: none; color: #0a66b9; font-weight: 500; transition: 0.2s; border: 1px solid #cbd5e1; }
.free-link-btn:hover { background: #e6f0fa; transform: translateY(-2px); }
.claim-box { background: linear-gradient(135deg, #e8f0fe 0%, #d9e6f5 100%); border-radius: 28px; padding: 24px; text-align: center; margin-top: 30px; border: 1px solid #0a66b9; }
.claim-box i { font-size: 2.5rem; color: #0a66b9; }
.claim-box button { margin: 16px 0 8px; background: #2c7a4d; }
.claim-box button:disabled { background: #a0aec0; cursor: not-allowed; }
.how-it-works { padding: 60px 0; background: white; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.step-number { width: 40px; height: 40px; background: #0a66b9; color: white; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: bold; margin-bottom: 15px; }
.step i { font-size: 2rem; color: #0a66b9; margin: 15px 0; }
footer { background: #0f172a; color: #cbd5e1; padding: 40px 0 20px; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: bold; color: white; }
.footer-links a { color: #cbd5e1; margin: 0 12px; text-decoration: none; }
.footer-links a:hover { color: white; }
.hidden { display: none; }
@media (max-width: 768px) { .hero h1 { font-size: 2rem; } .header-flex { flex-direction: column; gap: 10px; } nav a { margin: 0 12px; } }

/* تحسين زر التعدين مع السبينر */
.mine-btn i.fa-spinner,
.mine-btn i.fa-check-circle {
    margin-right: 8px;
}
.mine-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}
/* تأثير دوران السبينر */
.fa-spin {
    animation: fa-spin 2s infinite linear;
}
@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(359deg); }
}
/* Leaderboard Styles */
.leaderboard-section { background: #f8fafc; padding: 40px 0; }
.leaderboard-list { max-width: 800px; margin: 0 auto; background: white; border-radius: 28px; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,0.05); }
.leaderboard-table { width: 100%; }
.leaderboard-header, .leaderboard-row { display: grid; grid-template-columns: 1fr 2fr 1fr 1fr; padding: 12px 20px; border-bottom: 1px solid #e2e8f0; }
.leaderboard-header { background: #0a66b9; color: white; font-weight: bold; border-radius: 28px 28px 0 0; }
.leaderboard-row:nth-child(even) { background: #f1f5f9; }
.leaderboard-row span { display: flex; align-items: center; gap: 8px; }
.gold { color: #facc15; font-size: 1.3rem; }
.silver { color: #94a3b8; font-size: 1.2rem; }
.bronze { color: #cd7f32; font-size: 1.2rem; }
.withdraw-status { font-size: 0.8rem; color: #2c7a4d; margin-top: 8px; }
/* Leaderboard Section Styles */
.leaderboard-section {
    background: #f8fafc;
    padding: 40px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.leaderboard-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #0a66b9;
}
.leaderboard-list {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
.leaderboard-table {
    width: 100%;
}
.leaderboard-header, .leaderboard-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    padding: 12px 20px;
    border-bottom: 1px solid #e2e8f0;
}
.leaderboard-header {
    background: #0a66b9;
    color: white;
    font-weight: bold;
}
.leaderboard-row:nth-child(even) {
    background: #f1f5f9;
}
.leaderboard-row span {
    display: flex;
    align-items: center;
    gap: 8px;
}
.gold { color: #facc15; font-size: 1.2rem; }
.silver { color: #94a3b8; font-size: 1.1rem; }
.bronze { color: #cd7f32; font-size: 1.1rem; }
