/* ============================================
   MASA365 STYLE - DARK THEME WITH GREEN ACCENTS
   ============================================ */

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

:root {
    --primary-green: #4CAF50;
    --primary-yellow: #FFD700;
    --accent-green: #2E7D32;
    --dark-bg: #1a1a1a;
    --darker-bg: #121212;
    --card-bg: #242424;
    --card-hover: #2d2d2d;
    --border-color: #333;
    --text-light: #ffffff;
    --text-muted: #888;
    --text-secondary: #aaa;
    --success: #4CAF50;
    --danger: #f44336;
    --warning: #ff9800;
    --odds-bg: #2a2a2a;
    --odds-selected: #4CAF50;
}

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    background: var(--darker-bg);
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   CONTAINER UTILITY
   ============================================ */

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.d-flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-2 {
    gap: 10px;
}

/* ============================================
   HEADER / NAVBAR - MASA365 STYLE
   ============================================ */

.navbar {
    background: var(--dark-bg);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-green);
    text-decoration: none;
    display: flex;
    align-items: center;
    letter-spacing: -1px;
}

.logo-icon {
    display: none;
}

/* Main Navigation */
.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    height: 100%;
}

.nav-links > li {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links > li > a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.nav-links > li > a:hover {
    color: var(--primary-green);
    background: rgba(76, 175, 80, 0.1);
}

.nav-links > li > a.active,
.nav-links > li > a:focus {
    border-bottom-color: var(--primary-green);
    color: var(--primary-green);
}

.casino-link, .sports-link, .admin-link {
    font-weight: 500 !important;
}

/* Balance Display */
.balance-display {
    background: transparent;
    color: var(--text-light);
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.balance-display::before {
    content: "€";
}

/* Auth Buttons */
.btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.btn-primary {
    background: var(--primary-green);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-green);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
}

.btn-outline:hover {
    background: var(--card-bg);
    border-color: var(--primary-green);
    color: var(--primary-green);
}

/* ============================================
   SECONDARY NAVBAR
   ============================================ */

.secondary-nav {
    background: var(--dark-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-bar {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    gap: 8px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 14px;
    outline: none;
    width: 150px;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.secondary-links {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.secondary-links a {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.secondary-links a:hover {
    color: var(--text-light);
}

/* Secondary Nav Dropdowns */
.secondary-links .dropdown {
    position: relative;
    display: inline-block;
}

.secondary-links .dropdown-toggle {
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
    user-select: none;
}

.secondary-links .dropdown-toggle:hover {
    color: var(--text-light);
}

.secondary-links .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    min-width: 120px;
    display: none;
    z-index: 1001;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.secondary-links .dropdown-menu.show {
    display: block;
}

.secondary-links .dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.secondary-links .dropdown-menu a:hover {
    background: var(--card-hover);
    color: var(--primary-green);
}

/* Help Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 1px solid var(--border-color);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-light);
}

.modal-content h2 {
    color: var(--primary-green);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.help-content h3 {
    color: var(--text-light);
    margin: 15px 0 10px;
    font-size: 16px;
}

.help-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.help-content ul {
    list-style: none;
    padding: 0;
}

.help-content li {
    color: var(--text-secondary);
    padding: 5px 0;
    padding-left: 15px;
    position: relative;
}

.help-content li::before {
    content: "•";
    color: var(--primary-green);
    position: absolute;
    left: 0;
}

.time-display {
    color: var(--text-muted);
    font-size: 13px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    min-height: calc(100vh - 120px);
}

/* Messages/Alerts */
.messages {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;
}

.alert {
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

.alert-success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error, .alert-danger {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.alert-warning {
    background: rgba(255, 152, 0, 0.2);
    border: 1px solid var(--warning);
    color: var(--warning);
}

.alert-info {
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid #2196F3;
    color: #2196F3;
}

/* ============================================
   HERO BANNER / CAROUSEL
   ============================================ */

.hero-banner {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #8B0000 0%, #4a0000 50%, #2a0000 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,215,0,0.3)"/></svg>');
    background-size: 20px 20px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 30px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    cursor: pointer;
}

.carousel-dot.active {
    background: white;
}

/* ============================================
   PROVIDERS SECTION
   ============================================ */

.providers-section {
    padding: 20px;
    max-width: 1600px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
}

.section-title svg,
.section-title .icon {
    color: var(--text-muted);
}

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

.arrow-btn {
    width: 36px;
    height: 36px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.arrow-btn:hover {
    background: var(--card-hover);
    color: var(--text-light);
}

.providers-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.provider-item {
    flex-shrink: 0;
    padding: 10px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.provider-item:hover,
.provider-item.active {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.provider-item.all {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
    font-weight: 600;
}

/* ============================================
   GAME TABS / CATEGORIES
   ============================================ */

.game-tabs {
    display: flex;
    gap: 5px;
    padding: 0 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.game-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
}

.game-tab:hover {
    background: var(--card-bg);
    color: var(--text-light);
}

.game-tab.active {
    background: var(--card-bg);
    color: var(--text-light);
}

.game-tab .icon {
    font-size: 16px;
}

/* Search Box */
.games-search-box {
    margin-left: auto;
    position: relative;
}

.games-search-box input {
    padding: 10px 15px 10px 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-light);
    font-size: 14px;
    width: 250px;
    outline: none;
}

.games-search-box input:focus {
    border-color: var(--primary-green);
}

.games-search-box::before {
    content: "🔍";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

/* ============================================
   GAMES GRID - MASA365 STYLE
   ============================================ */

.games-section {
    padding: 0 20px 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.games-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 20px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.game-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--card-bg);
    transition: transform 0.3s;
    aspect-ratio: 1;
}

.game-card:hover {
    transform: scale(1.03);
}

.game-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
}

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #2a2a4e, #1a1a3e);
}

.game-placeholder {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 0;
}

.game-placeholder .game-icon {
    font-size: 4rem;
    opacity: 0.85;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Favorite Icon */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
    z-index: 5;
}

.favorite-btn:hover,
.favorite-btn.active {
    color: var(--primary-yellow);
}

/* Provider Badge on Card */
.game-provider-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    background: rgba(0,0,0,0.7);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-light);
    z-index: 5;
}

/* Play Overlay */
.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

/* Game Info (below thumbnail) */
.game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.game-info h3 {
    color: white;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.provider-badge {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(76, 175, 80, 0.2);
    color: var(--primary-green);
    border-radius: 3px;
    font-size: 10px;
    margin-top: 4px;
}

.rtp-badge {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(255, 215, 0, 0.2);
    color: var(--primary-yellow);
    border-radius: 3px;
    font-size: 10px;
    margin-left: 5px;
}

/* ============================================
   SPORTSBOOK - MASA365 STYLE
   ============================================ */

.sports-page {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
}

/* Sports Categories Icons */
.sports-categories {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 15px 20px;
    background: #0d1117;
    border-bottom: 1px solid #21262d;
}

.sport-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    color: #8b949e;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px;
    min-width: 75px;
    text-decoration: none;
}

.sport-category:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.sport-category.active {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.sport-category.live {
    color: #ef4444;
}

.sport-category.live:hover {
    background: rgba(239, 68, 68, 0.1);
}

.sport-category .sport-icon {
    font-size: 22px;
}

.sport-category .name {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sports Layout */
.sports-layout {
    display: grid;
    grid-template-columns: 200px 1fr 300px;
    gap: 0;
    min-height: calc(100vh - 200px);
    background: #0d1117;
}

/* Sports Sidebar */
.sports-sidebar {
    background: #161b22;
    border-right: 1px solid #21262d;
    padding: 0;
}

.sidebar-title {
    padding: 15px 20px;
    color: #22c55e;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #0d1117;
    border-bottom: 1px solid #21262d;
}

.sports-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sport-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    text-align: left;
    transition: all 0.15s;
}

.sport-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-light);
}

.sport-btn.active {
    background: rgba(76, 175, 80, 0.1);
    color: var(--primary-green);
    border-left: 3px solid var(--primary-green);
}

.sport-dot {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Matches Area */
.matches-area {
    background: var(--darker-bg);
    padding: 20px;
}

.matches-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.matches-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
}

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

.bet-type-tab {
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.bet-type-tab:hover,
.bet-type-tab.active {
    color: var(--text-light);
    border-bottom-color: var(--primary-green);
}

/* Matches Table */
.matches-table {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
}

.table-head {
    display: grid;
    grid-template-columns: 1fr 80px 80px 80px 40px;
    padding: 12px 15px;
    background: var(--dark-bg);
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.date-group {
    padding: 10px 15px;
    background: var(--dark-bg);
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

.match-row {
    display: grid;
    grid-template-columns: 1fr 80px 80px 80px 40px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.match-row:hover {
    background: rgba(255,255,255,0.02);
}

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

.match-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.team-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.team-badge {
    width: 16px;
    height: 12px;
    background: var(--border-color);
    border-radius: 2px;
}

/* Odds Buttons */
.odds-btn {
    padding: 8px 12px;
    background: var(--odds-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.odds-btn:hover {
    background: var(--card-hover);
    border-color: var(--primary-green);
}

.odds-btn.selected {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

.odds-btn.no-odds {
    color: var(--text-muted);
    cursor: default;
}

/* Stats Icon */
.stats-btn {
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Right Panel - Promo + Betslip */
.right-panel {
    background: var(--dark-bg);
    border-left: 1px solid var(--border-color);
}

.promo-banner {
    padding: 20px;
    background: linear-gradient(135deg, #00695C, #004D40);
    text-align: center;
}

.promo-banner h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 10px;
}

/* Betslip Panel */
.betslip-panel {
    background: var(--card-bg);
    border-radius: 0;
    margin: 0;
}

.betslip-title {
    padding: 15px 20px;
    background: var(--dark-bg);
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.betslip-body {
    padding: 20px;
    min-height: 100px;
}

.betslip-empty {
    color: var(--text-muted);
    text-align: center;
    font-size: 13px;
}

.slip-item {
    position: relative;
    padding: 15px;
    background: var(--dark-bg);
    border-radius: 6px;
    margin-bottom: 10px;
}

.slip-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
}

.slip-match {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.slip-pick {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 5px;
}

.slip-odds {
    font-size: 14px;
    color: var(--primary-green);
    font-weight: 600;
}

.betslip-actions {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.stake-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stake-row label {
    font-size: 13px;
    color: var(--text-muted);
}

.stake-field {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--dark-bg);
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.stake-field input {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 14px;
    width: 80px;
    text-align: right;
    outline: none;
}

.payout-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-muted);
}

.payout-value {
    color: var(--primary-green);
    font-weight: 700;
}

.btn-place {
    width: 100%;
    padding: 14px;
    background: var(--primary-green);
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-place:hover {
    background: var(--accent-green);
}

/* ============================================
   FOOTER - MINIMAL
   ============================================ */

.footer {
    background: var(--dark-bg);
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-content p {
    color: var(--text-muted);
    font-size: 12px;
    margin: 5px 0;
}

.disclaimer {
    color: var(--text-muted);
    font-size: 11px;
}

/* ============================================
   HERO SECTION (HOME PAGE)
   ============================================ */

.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.gold {
    color: var(--primary-green);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-large {
    padding: 15px 40px;
    font-size: 16px;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.features-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-green);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: var(--primary-green);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================
   AUTH PAGES (LOGIN/REGISTER)
   ============================================ */

.auth-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-color);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-green);
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-light);
    font-size: 14px;
    outline: none;
}

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

.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-links a {
    color: var(--primary-green);
}

/* ============================================
   PROFILE PAGE
   ============================================ */

.profile-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.profile-header {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ============================================
   ADMIN DASHBOARD
   ============================================ */

.admin-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.admin-header h1 {
    color: var(--primary-green);
    margin-bottom: 30px;
}

.admin-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.admin-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    border: 1px solid var(--border-color);
}

.admin-card h2 {
    color: var(--primary-green);
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.admin-table th {
    color: var(--primary-green);
    font-weight: 600;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

/* ============================================
   GAME PAGES
   ============================================ */

.game-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
}

.game-card-main {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    border: 1px solid var(--border-color);
}

/* ============================================
   EXTERNAL GAME LOBBY - MASA365 STYLE
   ============================================ */

.external-lobby {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
}

.lobby-header {
    display: none;
}

.filters-section {
    display: none;
}

.featured-section,
.games-section {
    padding: 0 20px 30px;
}

.featured-section h2,
.games-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 20px;
}

.no-games {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.back-section {
    display: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
    .sports-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Hide secondary nav on mobile */
    .secondary-nav {
        display: none;
    }

    /* ---- MOBILE NAVBAR ---- */
    .nav-container {
        flex-wrap: nowrap;
        height: 56px;
        padding: 0 12px;
        justify-content: space-between;
    }

    .logo {
        font-size: 1.3rem;
        order: 1;
    }

    .nav-links.nav-center {
        display: none;
    }

    .mobile-menu-btn {
        display: flex !important;
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        padding: 8px;
        order: 2;
    }

    .nav-links:not(.nav-center) {
        gap: 4px;
        order: 3;
    }

    .nav-links:not(.nav-center) > li > a {
        padding: 6px 8px;
        font-size: 11px;
    }

    /* ---- MOBILE MENU OVERLAY ---- */
    .mobile-menu {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--dark-bg);
        z-index: 999;
        flex-direction: column;
        padding: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-menu.active {
        display: flex;
    }

    .mobile-menu a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 20px;
        color: var(--text-light);
        font-size: 15px;
        font-weight: 500;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        transition: background 0.2s;
    }

    .mobile-menu a:hover,
    .mobile-menu a.active {
        color: var(--primary-green);
        background: rgba(76, 175, 80, 0.08);
    }

    /* ---- HERO BANNER ---- */
    .hero-banner {
        height: 200px !important;
        margin-bottom: 15px;
    }

    .hero-content h1 {
        font-size: 1.5rem !important;
    }

    .hero-content p {
        font-size: 13px !important;
        margin-bottom: 15px !important;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 80%;
        max-width: 260px;
        text-align: center;
    }

    .btn-large {
        padding: 12px 24px;
        font-size: 14px;
    }

    .carousel-dots {
        bottom: 10px;
    }

    /* ---- FEATURES SECTION ---- */
    .features-section {
        padding: 30px 15px;
    }

    .features-section h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .feature-card {
        padding: 20px 12px;
    }

    .feature-card h3 {
        font-size: 13px;
    }

    .feature-card p {
        font-size: 12px;
        line-height: 1.4;
    }

    .feature-icon-box {
        width: 44px;
        height: 44px;
        margin-bottom: 10px;
    }

    .feature-icon-box svg {
        width: 22px;
        height: 22px;
    }

    /* ---- GAMES GRID ---- */
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .game-card {
        border-radius: 8px;
    }

    .game-info h3 {
        font-size: 10px;
    }

    .provider-badge, .rtp-badge {
        font-size: 8px;
        padding: 1px 4px;
    }

    .play-overlay .play-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    /* ---- GAME TABS ---- */
    .game-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 0 12px 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .game-tabs::-webkit-scrollbar {
        display: none;
    }

    .game-tab {
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 12px;
    }

    .games-search-box {
        width: 100%;
        margin-top: 8px;
    }

    .games-search-box input {
        width: 100%;
    }

    .games-section {
        padding: 0 12px 20px;
    }

    .games-section h2 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    /* ---- PROVIDERS ---- */
    .providers-section {
        padding: 10px 12px;
    }

    .providers-list {
        gap: 6px;
    }

    .provider-item {
        min-width: 80px;
        padding: 8px 12px;
        font-size: 11px;
    }

    /* ---- SPORTS CATEGORIES ---- */
    .sports-categories {
        overflow-x: auto;
        justify-content: flex-start !important;
        flex-wrap: nowrap;
        padding: 8px 10px !important;
        gap: 4px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .sports-categories::-webkit-scrollbar {
        display: none;
    }

    .sport-category {
        padding: 8px 12px !important;
        min-width: 56px !important;
        flex-shrink: 0;
        border-radius: 6px;
    }

    .sport-category .sport-icon {
        font-size: 18px !important;
    }

    .sport-category .name {
        font-size: 9px !important;
        letter-spacing: 0.3px;
    }

    /* ---- SPORTSBOOK LAYOUT ---- */
    .sports-layout {
        grid-template-columns: 1fr !important;
    }

    .sports-sidebar {
        display: none !important;
    }

    .right-panel {
        display: none !important;
    }

    .matches-area {
        padding: 10px !important;
    }

    .matches-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .matches-header h2 {
        font-size: 14px;
    }

    .match-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px 12px;
    }

    .table-head {
        display: none;
    }

    .odds-btn {
        padding: 8px 10px;
        font-size: 12px;
    }

    /* ---- PROFILE PAGE ---- */
    .profile-page {
        padding: 20px 12px;
    }

    .profile-header {
        padding: 20px 15px;
    }

    .profile-header > div:first-child {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .profile-header > div:first-child > div:first-child {
        width: 64px;
        height: 64px;
        font-size: 1.6rem;
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    /* Profile table responsive */
    .admin-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table th,
    .admin-table td {
        padding: 8px 6px;
        font-size: 11px;
        white-space: nowrap;
    }

    /* ---- AUTH PAGES ---- */
    .auth-page {
        padding: 20px 15px;
        min-height: calc(100vh - 100px);
    }

    .auth-card {
        padding: 28px 20px;
    }

    .auth-card h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-group input {
        padding: 11px 12px;
        font-size: 14px;
    }

    /* ---- FOOTER ---- */
    .footer {
        padding: 15px 12px;
    }

    .footer-content p {
        font-size: 11px;
    }

    /* ---- ADMIN PAGES ---- */
    .admin-dashboard {
        padding: 15px 12px;
    }

    .admin-sections {
        grid-template-columns: 1fr;
    }

    .admin-card {
        padding: 15px;
    }

    /* ---- GAME CONTAINER ---- */
    .game-container {
        padding: 15px 12px;
    }

    .game-card-main {
        padding: 20px 15px;
    }

    /* ---- BETSLIP MOBILE ---- */
    .betslip-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 998;
        border-top: 2px solid var(--primary-green);
        max-height: 50vh;
        overflow-y: auto;
    }

    /* ---- MODAL ON MOBILE ---- */
    .modal-content {
        width: 95%;
        max-width: none;
        padding: 20px 15px;
        margin: 10px;
    }

    /* ---- QUICK PLAY CARDS ---- */
    .quick-play-card {
        padding: 24px 16px !important;
    }

    .quick-play-card svg {
        width: 36px !important;
        height: 36px !important;
    }

    .quick-play-card div[style*="font-size: 1.3rem"] {
        font-size: 1rem !important;
    }

    /* ---- BALANCE DISPLAY ON HOME ---- */
    .main-content > div[style*="padding: 40px"] {
        padding: 20px 12px !important;
    }

    .main-content > div[style*="padding: 40px"] > div {
        padding: 24px 30px !important;
    }

    .main-content > div[style*="padding: 40px"] > div > div[style*="font-size: 3rem"] {
        font-size: 2rem !important;
    }

    /* ---- CONTAINER ---- */
    .container {
        padding: 0 12px;
    }
}

/* Small devices (under 480px) */
@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .game-info h3 {
        font-size: 9px;
    }

    .game-provider-badge {
        font-size: 8px;
        padding: 2px 5px;
    }

    .profile-stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .hero h1, .hero-content h1 {
        font-size: 1.3rem !important;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Extra small devices (under 380px) */
@media (max-width: 380px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 1.2rem !important;
    }

    .nav-links:not(.nav-center) > li > a {
        padding: 5px 6px;
        font-size: 10px;
    }
}

/* Hide mobile menu button on desktop */
.mobile-menu-btn {
    display: none;
}

/* ============================================
   MOBILE BOTTOM NAVIGATION
   ============================================ */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    padding: 4px 0;
    padding-bottom: env(safe-area-inset-bottom, 4px);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .main-content {
        padding-bottom: 65px;
    }

    .footer {
        padding-bottom: 70px;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    transition: color 0.2s;
    min-width: 56px;
}

.bottom-nav-item.active {
    color: var(--primary-green);
}

.bottom-nav-item:hover {
    color: var(--text-light);
}

.bottom-nav-icon {
    font-size: 20px;
    line-height: 1;
}

.bottom-nav-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ============================================
   CASINO LOBBY PAGE SPECIFIC
   ============================================ */

.casino-layout {
    max-width: 1600px;
    margin: 0 auto;
}

/* Floating Cards Animation - Hidden */
.hero-cards {
    display: none;
}

.floating-card {
    display: none;
}

/* ============================================
   ADDITIONAL UTILITIES
   ============================================ */

.text-green { color: var(--primary-green); }
.text-yellow { color: var(--primary-yellow); }
.text-red { color: var(--danger); }
.text-muted { color: var(--text-muted); }

.bg-dark { background: var(--dark-bg); }
.bg-darker { background: var(--darker-bg); }
.bg-card { background: var(--card-bg); }

.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.p-20 { padding: 20px; }

/* Live indicator for live betting */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    text-transform: uppercase;
}

.live-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

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

/* Scoreboard widget placeholder */
.scoreboard-widget {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.scoreboard-widget h4 {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Match visualization */
.match-visual {
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    position: relative;
}

.match-score {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}
