:root {
    --bg-dark: #0f1115;
    --card-bg: #1a1d24;
    --primary-color: #00d26a;
    /* أخضر نيون يشير للحياة والمباشر */
    --text-main: #ffffff;
    --text-muted: #8b92a5;
    --border-color: #2a2d36;
    --nav-bg: #14161a;
    --accent-blue: #2a75ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

/* الشريط العلوي */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--nav-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.top-bar i {
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
}

.logo i {
    color: var(--primary-color);
}

/* قائمة الرياضات الأفقية */
.sports-nav {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 15px 20px;
    background-color: var(--bg-dark);
    scrollbar-width: none;
    /* إخفاء شريط التمرير لفيرفوكس */
}

.sports-nav::-webkit-scrollbar {
    display: none;
}

/* إخفاء شريط التمرير لكروم */

.sport-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 70px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sport-item i {
    font-size: 22px;
    background: var(--card-bg);
    padding: 12px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.sport-item span {
    font-size: 12px;
    font-weight: 600;
}

.sport-item.active i {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 210, 106, 0.4);
}

.sport-item.active span {
    color: var(--text-main);
}

/* المحتوى وبطاقات المباريات */
.matches-container {
    padding: 10px 20px;
}

.section-title h3 {
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--primary-color);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

.match-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.match-card:active {
    transform: scale(0.98);
}

.match-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.live-text {
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.teams-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 30%;
}

.team-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 5px;
}

.team-name {
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.score-container {
    width: 40%;
    text-align: center;
}

.score {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* شريط التنقل السفلي */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    display: flex;
    justify-content: space-around;
    padding: 12px 0 20px;
    border-top: 1px solid var(--border-color);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    transition: color 0.3s;
}

.nav-item i {
    font-size: 22px;
}

.nav-item.active {
    color: var(--primary-color);
}

/* شريط الإحصائيات (Bottom Sheet) */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 20px;
    z-index: 1000;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
}

.bottom-sheet.open {
    bottom: 0;
}

.overlay.open {
    opacity: 1;
    visibility: visible;
}

.sheet-handle {
    width: 40px;
    height: 5px;
    background: var(--border-color);
    border-radius: 5px;
    margin: 0 auto 20px;
}

.sheet-content {
    text-align: center;
}

.live-status-sheet {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 14px;
    margin: 10px 0 20px;
}

.sheet-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 25px;
}

.s-score {
    color: var(--primary-color);
    font-size: 24px;
}

.stats-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 5px;
    color: var(--text-muted);
}

.stat-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: 3px;
    position: absolute;
    right: 0;
    /* دعم لغة عربية RTL */
}

.full-details-btn {
    width: 100%;
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.full-details-btn:hover {
    background: #1c5ecc;
}

/* المحفظة والرصيد */
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.balance {
    background: rgba(0, 210, 106, 0.1);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(0, 210, 106, 0.3);
    cursor: pointer;
}

.balance i {
    font-size: 16px;
    margin-top: 1px;
}

/* إشعار (Toast) */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #ff3b3b;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(255, 59, 59, 0.4);
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}