:root {
    --primary: #10d97e;
    --primary-dark: #0cbf67;
    --dark-bg: #121212;
    --dark-card: #1a1a1a;
    --dark-card-hover: #252525;
    --border-color: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666;
    --live-red: #ff3b3b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ============================================
   TOP NAVIGATION
============================================ */
.top-nav {
    background: #0a0a0a;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
}

.nav-content {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo h1 {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-primary);
    white-space: nowrap;
}

.logo h1 span {
    color: var(--primary);
}

/* Logo deux lignes (Vue component) */
.logo a { text-decoration: none; }

.top-nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -23px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.btn-connexion,
.btn-register-top {
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-connexion {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.btn-connexion:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-register-top {
    background: var(--primary);
    color: #000;
}

.btn-register-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
}

/* User Profile Dropdown */
.user-profile-dropdown {
    position: relative;
}

.btn-user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-user-profile i:first-child {
    font-size: 20px;
    color: var(--primary);
}

.btn-user-profile i:last-child {
    font-size: 12px;
    margin-left: 4px;
    transition: transform 0.3s;
}

.btn-user-profile:hover {
    border-color: var(--primary);
    background: rgba(0, 255, 136, 0.05);
}

.user-profile-dropdown.active .btn-user-profile i:last-child {
    transform: rotate(180deg);
}

/* Profile Menu Dropdown */
.profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 280px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
    overflow: hidden;
}

.user-profile-dropdown.active .profile-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: rgba(0, 255, 136, 0.05);
}

.profile-menu-header i {
    font-size: 42px;
    color: var(--primary);
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-info strong {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 700;
}

.profile-info span {
    font-size: 12px;
    color: var(--text-secondary);
}

.profile-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
}

.profile-menu-item:hover {
    background: rgba(0, 255, 136, 0.1);
    color: var(--text-primary);
}

.profile-menu-item i {
    font-size: 16px;
    width: 20px;
    color: var(--primary);
}

.profile-menu-item span {
    font-size: 14px;
    font-weight: 500;
}

.profile-menu-item.logout {
    color: #ff4757;
}

.profile-menu-item.logout i {
    color: #ff4757;
}

.profile-menu-item.logout:hover {
    background: rgba(255, 71, 87, 0.1);
}

/* ============================================
   PAGE CONTAINER - 3 COLUMN LAYOUT
============================================ */
.page-container {
    max-width: 1800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr 320px;
    gap: 0;
    min-height: calc(100vh - 70px);
}

/* ============================================
   LEFT SIDEBAR - SPORTS NAVIGATION
============================================ */
.sports-sidebar {
    background: #0d0d0d;
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    overflow-y: auto;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
}

.sidebar-tabs {
    display: flex;
    gap: 10px;
    padding: 0 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.sports-nav {
    padding-top: 15px;
}

.sport-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sport-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.sport-link.active {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}

.sport-link.hot {
    color: #ff6b6b;
}

.sport-link.hot i {
    color: #ff6b6b;
}

.sport-link i:first-child {
    font-size: 18px;
    width: 24px;
}

.sport-link span {
    font-weight: 500;
    font-size: 15px;
}

.sport-link .count {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

.sport-link i.fa-chevron-right {
    font-size: 12px;
    opacity: 0.3;
    margin-left: auto;
}

/* ============================================
   MAIN CONTENT AREA
============================================ */
.main-content {
    background: var(--dark-bg);
    overflow-y: auto;
    padding: 20px;
}

/* Hero Banner Slideshow */
.hero-banner-slideshow {
    position: relative;
    border-radius: 16px;
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 136, 0.2);
    height: 200px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15) 0%, rgba(0, 204, 106, 0.05) 100%);
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.banner-text {
    position: relative;
    z-index: 2;
    padding: 28px 40px;
}

.banner-text h2 {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.banner-text p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.btn-cta {
    padding: 16px 40px;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
}

/* Slide avec image jeu — image à droite, CTA en bas gauche */
.slide.has-image .banner-text {
    position: absolute;
    bottom: 18px;
    left: 20px;
    padding: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
}

.slide.has-image .banner-text h2,
.slide.has-image .banner-text p { display: none; }

.slide.has-image .btn-cta {
    padding: 10px 24px;
    font-size: 13px;
    border-radius: 8px;
}

.slide-game-img {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.slide-game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Dégradé gauche pour lisibilité du bouton */
.slide.has-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 40%, transparent 70%);
    z-index: 2;
    pointer-events: none;
}

/* Slideshow Navigation */
.slide-prev,
.slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    font-size: 18px;
}

.slide-prev {
    left: 20px;
}

.slide-next {
    right: 20px;
}

.slide-prev:hover,
.slide-next:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

/* Dots Indicators */
.slide-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 6px;
}

.dot:hover {
    background: rgba(0, 255, 136, 0.6);
}

/* ============================================
   MATCHES LIST SECTION
============================================ */
.matches-list-section {
    padding: 0;
}

.section-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.section-tab {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.section-tab i {
    font-size: 22px;
}

.section-filters {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

/* League Groups */
.league-group {
    margin-bottom: 40px;
}

.league-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid var(--primary);
}

/* Matches Table */
.matches-table {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 1fr repeat(6, 90px) 60px;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
}

.table-header span {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    text-transform: uppercase;
}

.table-header span:first-child {
    text-align: left;
}

.match-row {
    display: grid;
    grid-template-columns: 1fr repeat(6, 90px) 60px;
    gap: 10px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: background 0.3s;
}

.match-row:last-child {
    border-bottom: none;
}

.match-row:hover {
    background: rgba(0, 255, 136, 0.05);
}

.match-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.match-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.match-time {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-time i {
    font-size: 11px;
}

.live-dot {
    color: var(--live-red);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.odd-cell {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s;
}

.odd-cell:hover {
    background: var(--primary);
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

.more-odds {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ============================================
   RIGHT SIDEBAR - BET SLIP
============================================ */
.right-sidebar {
    background: #0d0d0d;
    border-left: 1px solid var(--border-color);
    padding: 20px;
    overflow-y: auto;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
}

/* Bet Slip Widget */
.bet-slip-widget {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.bet-slip-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
}

.bet-tab {
    flex: 1;
    padding: 15px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.bet-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.bet-slip-content {
    padding: 20px;
}

.bet-type-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.bet-type-tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.bet-type-tab.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.bet-items-list {
    min-height: 100px;
    margin-bottom: 20px;
}

.bet-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.bet-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.bet-item-match {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.bet-item-remove {
    background: transparent;
    border: none;
    color: var(--live-red);
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.3s;
}

.bet-item-remove:hover {
    transform: scale(1.2);
}

.bet-item-selection {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.bet-item-odd {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.empty-slip {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-slip i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.empty-slip p {
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.bet-summary {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.summary-row span:first-child {
    color: var(--text-secondary);
}

.summary-row span:last-child {
    color: var(--text-primary);
    font-weight: 700;
}

.summary-row input {
    width: 80px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-weight: 700;
    text-align: right;
}

.potential-win {
    font-size: 16px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.potential-win span:last-child {
    color: var(--primary);
    font-size: 18px;
}

.btn-place-bet {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

.btn-place-bet:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
}

.bet-code-section {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    width: 100%;
}

.bet-code-section input {
    flex: 1;
    min-width: 0;
    padding: 12px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s;
    font-size: 13px;
}

.bet-code-section input:focus {
    border-color: var(--primary);
}

.bet-code-section input::placeholder {
    color: var(--text-muted);
}

.confirm-btn {
    padding: 12px 16px;
    background: var(--primary);
    border: none;
    border-radius: 6px;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 13px;
}

.confirm-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

/* ============================================
   MOBILE RESPONSIVE
============================================ */
@media (max-width: 1400px) {
    .page-container {
        grid-template-columns: 240px 1fr 300px;
    }
}

@media (max-width: 1200px) {
    .page-container {
        grid-template-columns: 1fr;
    }
    
    .sports-sidebar,
    .right-sidebar {
        display: none;
    }
    
    .main-content {
        padding: 15px;
    }
}

@media (max-width: 900px) {
    .top-nav-links {
        display: none;
    }
    
    .nav-content {
        padding: 0 15px;
    }
    
    .btn-user-profile span {
        display: none;
    }
    
    .btn-user-profile {
        padding: 10px;
    }
    
    .profile-menu {
        right: -10px;
    }
    
    .hero-banner-slideshow {
        height: 160px;
        margin-bottom: 10px;
    }

    .banner-text {
        padding: 22px 20px;
    }
    
    .banner-text h2 {
        font-size: 32px;
    }
    
    .banner-text p {
        font-size: 16px;
    }
    
    .slide-prev,
    .slide-next {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .slide-prev {
        left: 10px;
    }
    
    .slide-next {
        right: 10px;
    }
    
    .btn-register-top {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .btn-connexion {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .section-tabs {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    .table-header {
        display: none;
    }
    
    .match-row {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px 15px;
    }
    
    .match-info {
        order: 1;
    }
    
    .odd-cell {
        display: none;
    }
    
    .more-odds {
        order: 2;
        text-align: left;
        margin-top: 10px;
    }

    .league-group {
        margin-bottom: 20px;
    }
}

/* ============================================
   PROFILE PAGE STYLES
============================================ */
.profile-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.profile-content {
    background: var(--dark-card);
    border-radius: 12px;
    padding: 30px;
}

.page-header {
    margin-bottom: 40px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 20px;
}

.page-header h1 {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Profile Stats Grid */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.stat-card i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-info h3 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile Form */
.profile-form-section {
    margin-bottom: 40px;
}

.profile-form-section h2 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-form-section h2 i {
    color: var(--primary);
}

.profile-form {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group select {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.std-input {
    width: 100%;
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.std-input:focus {
    outline: none;
    border-color: var(--primary);
}
.std-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-save-profile {
    background: var(--primary);
    color: var(--dark-bg);
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-save-profile:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    justify-content: center;
}

.btn-quick-action {
    flex: 1;
    max-width: 300px;
    background: var(--dark-bg);
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 16px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-quick-action:hover {
    background: var(--primary);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
}

.btn-quick-action i {
    font-size: 20px;
}

.btn-retrait {
    border-color: #0cbf67;
    color: #0cbf67;
}

.btn-retrait:hover {
    background: #0cbf67;
    color: var(--dark-bg);
    box-shadow: 0 5px 20px rgba(0, 204, 106, 0.3);
}

/* Transaction Modals */
.transaction-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.transaction-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.modal-content {
    background: var(--dark-card);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    z-index: 1;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}
.modal-content::-webkit-scrollbar { width: 4px; }
.modal-content::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    margin-bottom: 25px;
}

.modal-header h2 {
    font-size: 24px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.modal-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover,
.close-modal:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.balance-display {
    background: var(--dark-bg);
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 25px;
}

.balance-display p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.balance-display h3 {
    font-size: 32px;
    color: var(--primary);
    font-weight: 700;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.payment-method-btn {
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 15px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.payment-method-btn i {
    font-size: 24px;
}

.payment-method-btn:hover {
    border-color: var(--primary);
}

.payment-method-btn.active {
    background: var(--primary);
    color: var(--dark-bg);
    border-color: var(--primary);
}

.transaction-form-group {
    margin-bottom: 20px;
}

.transaction-form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.transaction-form-group input {
    width: 100%;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.transaction-form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.quick-amounts {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.quick-amount-btn {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-amount-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.transaction-info {
    background: var(--dark-bg);
    border-left: 3px solid var(--primary);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.transaction-info p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.btn-transaction-submit {
    width: 100%;
    background: var(--primary);
    color: var(--dark-bg);
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-transaction-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============================================
   TICKETS PAGE STYLES
============================================ */
.tickets-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.filter-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    color: var(--primary);
}

.filter-tab.active {
    color: var(--primary);
}

.filter-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ticket-card {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ticket-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.ticket-header {
    background: var(--dark-card-hover);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.ticket-id {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.ticket-status {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ticket-status.won {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary);
}

.ticket-status.lost {
    background: rgba(255, 59, 59, 0.1);
    color: var(--live-red);
}

.ticket-status.pending {
    background: rgba(255, 165, 0, 0.1);
    color: #ffa500;
}

.ticket-body {
    padding: 20px;
}

.ticket-match {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.ticket-match:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ticket-match h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.ticket-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ticket-details span {
    font-size: 13px;
    color: var(--text-secondary);
}

.ticket-type-badge {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.ticket-footer {
    background: var(--dark-card-hover);
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
}

.ticket-amounts {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.ticket-amount {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ticket-amount span {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.ticket-amount strong {
    font-size: 16px;
    color: var(--text-primary);
}

.ticket-amount.won strong {
    color: var(--primary);
    font-size: 18px;
}

.ticket-amount.lost strong {
    color: var(--live-red);
}

/* ============================================
   SETTINGS PAGE STYLES
============================================ */
.settings-section {
    margin-bottom: 40px;
}

.settings-section h2 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-section h2 i {
    color: var(--primary);
}

.settings-list {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item:hover {
    background: var(--dark-card-hover);
}

.setting-info {
    flex: 1;
}

.setting-info strong {
    display: block;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.setting-info span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .slider {
    background-color: var(--primary);
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(24px);
}

/* Setting Select */
.setting-select {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    min-width: 200px;
    transition: all 0.3s ease;
}

.setting-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Setting Input */
.setting-input {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    width: 150px;
    transition: all 0.3s ease;
}

.setting-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Setting Button */
.btn-setting-action {
    background: var(--dark-card);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-setting-action:hover {
    background: var(--primary);
    color: var(--dark-bg);
}

.btn-setting-action.danger {
    border-color: var(--live-red);
    color: var(--live-red);
}

.btn-setting-action.danger:hover {
    background: var(--live-red);
    color: white;
}

/* Danger Zone */
.danger-zone {
    border: 2px solid var(--live-red);
    border-radius: 8px;
    padding: 20px;
}

.danger-zone h2 {
    color: var(--live-red);
}

.danger-zone .settings-list {
    background: transparent;
    border: none;
}

/* Save Settings Button */
.settings-save-btn {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.btn-save-settings {
    background: var(--primary);
    color: var(--dark-bg);
    border: none;
    padding: 14px 40px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-save-settings:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============================================
   REGLEMENT PAGE STYLES
============================================ */
.reglement-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.toc-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
    background: var(--dark-card);
    border-radius: 12px;
    padding: 25px;
}

.toc-sidebar h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.toc-item:hover {
    background: var(--dark-bg);
    color: var(--primary);
}

.toc-item.active {
    background: var(--primary);
    color: var(--dark-bg);
    font-weight: 600;
}

.reglement-content {
    background: var(--dark-card);
    border-radius: 12px;
    padding: 40px;
}

.reglement-section {
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--border-color);
}

.reglement-section:last-of-type {
    border-bottom: none;
}

.reglement-section h2 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 25px;
}

.reglement-section h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.reglement-section p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.reglement-section ul,
.reglement-section ol {
    margin: 15px 0 15px 25px;
}

.reglement-section li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 10px;
}

.reglement-section li strong {
    color: var(--text-primary);
}

/* Info and Warning Boxes */
.info-box,
.warning-box {
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-box {
    background: rgba(0, 255, 136, 0.05);
    border-left: 4px solid var(--primary);
}

.warning-box {
    background: rgba(255, 165, 0, 0.05);
    border-left: 4px solid #ffa500;
}

.info-box i {
    color: var(--primary);
    font-size: 20px;
    margin-top: 2px;
}

.warning-box i {
    color: #ffa500;
    font-size: 20px;
    margin-top: 2px;
}

.info-box p,
.warning-box p {
    margin: 0;
    flex: 1;
}

/* Reglement Footer */
.reglement-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.footer-info p,
.contact-support p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.contact-support h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.contact-support i {
    color: var(--primary);
    margin-right: 8px;
}

/* ============================================
   RESPONSIVE - PROFILE PAGES
============================================ */
@media (max-width: 1200px) {
    .reglement-container {
        grid-template-columns: 1fr;
    }
    
    .toc-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 900px) {
    .profile-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .payment-methods {
        grid-template-columns: repeat(2, 1fr);
    }
    .modal-content {
        width: 95%;
        padding: 20px 16px;
        max-height: 88vh;
    }

    .reglement-footer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    /* Profil — layout général */
    .profile-page-container {
        padding: 16px 12px;
    }
    .profile-form-section {
        margin-bottom: 24px;
    }
    .profile-form-section h2 {
        font-size: 16px;
        margin-bottom: 14px;
    }
    .profile-form {
        padding: 16px 14px;
    }
    .btn-save-profile {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 14px;
    }
    .btn-save-profile:hover {
        transform: none;
    }

    /* Stats — garder 2 colonnes, réduire taille */
    .profile-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 20px;
    }
    .stat-card {
        padding: 14px 10px;
    }
    .stat-card i {
        font-size: 22px;
        margin-bottom: 8px;
    }
    .stat-info h3 {
        font-size: 18px;
    }
    .stat-info p {
        font-size: 11px;
        letter-spacing: 0;
    }

    /* Quick actions — pleine largeur */
    .quick-actions {
        gap: 10px;
        margin-bottom: 20px;
    }
    .btn-quick-action {
        max-width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }
    .btn-quick-action i {
        font-size: 16px;
    }
    .btn-quick-action:hover {
        transform: none;
    }

    /* Profil content */
    .profile-content {
        padding: 14px;
    }
    
    .reglement-content {
        padding: 25px;
    }
    
    .tickets-filter {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .ticket-amounts {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ── Très petits écrans (iPhone SE, Android entrée de gamme) ── */
@media (max-width: 480px) {
    .profile-page-container {
        padding: 12px 10px;
    }

    /* Stats 2×2 compactes */
    .profile-stats-grid {
        gap: 8px;
    }
    .stat-card {
        padding: 12px 8px;
        border-radius: 8px;
    }
    .stat-card i {
        font-size: 20px;
        margin-bottom: 6px;
    }
    .stat-info h3 {
        font-size: 16px;
        margin-bottom: 2px;
    }
    .stat-info p {
        font-size: 10px;
    }

    /* Section titres */
    .profile-form-section h2 {
        font-size: 15px;
    }
    .profile-form-section h2 i {
        font-size: 14px;
    }

    /* Formulaires */
    .profile-form {
        padding: 14px 12px;
    }
    .form-group label {
        font-size: 12px;
    }
    .form-group input,
    .form-group select,
    .std-input {
        padding: 10px 12px;
        font-size: 14px;
    }

    /* Modale transaction */
    .modal-content {
        width: 100%;
        border-radius: 14px 14px 0 0;
        padding: 18px 14px;
        max-height: 92vh;
    }
    .transaction-modal {
        align-items: flex-end;
    }
    .modal-header h2 {
        font-size: 18px;
    }
    .balance-display {
        padding: 14px;
        margin-bottom: 16px;
    }
    .balance-display h3 {
        font-size: 24px;
    }
    .payment-method-btn {
        padding: 12px 6px;
        font-size: 12px;
    }
    .payment-method-btn i {
        font-size: 20px;
    }
}
