/* Casino Theme - Black & Yellow Color Scheme */
:root {
    /* Primary Colors - Easily Changeable */
    --primary-color: #eab308; /* Yellow */
    --primary-hover: #ca8a04; /* Darker Yellow */
    --secondary-color: #000000; /* Black */
    --secondary-hover: #1f1f1f; /* Dark Gray */
    
    /* Shadow Colors */
    --primary-color-shadow: rgba(251, 191, 36, 0.2);
    --primary-color-shadow-strong: rgba(251, 191, 36, 0.4);
    
    /* Action Colors */
    --deposit-color: #22c55e; /* Green for deposits */
    --deposit-hover: #16a34a; /* Darker Green */
    
    /* Background Colors */
    --bg-primary: #0a0a0a; /* Very Dark Black */
    --bg-secondary: #1a1a1a; /* Dark Gray */
    --bg-card: #262626; /* Card Background */
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    
    /* Border Colors */
    --border-color: #374151;
    --border-accent: #202020; /* Dark Yellow for borders */
    
    /* Sidebar */
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 0px;
    
    /* Transitions */
    --transition-speed: 0.3s;
}

/* Light Theme - White & Dark Green Color Scheme */
body.light-theme,
html.light-theme-loading body {
    /* Primary Colors */
    --primary-color: #15803d; /* Dark Green */
    --primary-hover: #166534; /* Darker Green */
    --secondary-color: #ffffff; /* White */
    --secondary-hover: #f5f5f5; /* Light Gray */
    
    /* Shadow Colors */
    --primary-color-shadow: rgba(21, 128, 61, 0.2);
    --primary-color-shadow-strong: rgba(21, 128, 61, 0.4);
    
    /* Action Colors */
    --deposit-color: #16a34a; /* Green for deposits */
    --deposit-hover: #15803d; /* Darker Green */
    
    /* Background Colors */
    --bg-primary: #ffffff; /* White */
    --bg-secondary: #f9fafb; /* Very Light Gray */
    --bg-card: #f3f4f6; /* Light Gray Card Background */
    
    /* Text Colors */
    --text-primary: #111827; /* Dark Gray/Black */
    --text-secondary: #4b5563; /* Medium Gray */
    --text-muted: #6b7280; /* Light Gray */
    
    /* Border Colors */
    --border-color: #e5e7eb; /* Light Border */
    --border-accent: #bbf7d0; /* Light Green for borders */
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light Theme Specific Adjustments */
body.light-theme .navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: none;
}

body.light-theme .logo {
    background: linear-gradient(135deg, var(--primary-color), #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

body.light-theme .sidebar {
    border-right: 2px solid var(--border-color);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
}

body.light-theme .main-content {
    background-color: #f2f2f2;
}

body.light-theme .page-header-title {
    color: var(--text-primary);
}

body.light-theme .btn-primary {
    color: #ffffff;
}

body.light-theme .btn-secondary {
    color: var(--text-primary);
}

body.light-theme .bg-accent,
body.light-theme .btn-primary-full,
body.light-theme .deposit-btn,
body.light-theme .referral-btn,
body.light-theme .copy-btn,
body.light-theme .share-btn {
    color: #ffffff !important;
}

body.light-theme .withdraw-btn {
    color: #111827 !important;
}

/* Top Navigation Bar */
.navbar {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--secondary-color) 100%);
    border-bottom: 2px solid var(--border-accent);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

/* Search Container */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 0.6rem 3rem 0.6rem 1rem;
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

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

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.1);
    background-color: var(--bg-secondary);
}

.search-button {
    position: absolute;
    right: 0.25rem;
    background-color: var(--primary-color);
    color: #000000;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.search-button:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

/* Mobile Search Bar */
.mobile-search-bar {
    display: none;
    padding: 1rem 0;
    animation: slideDown 0.3s ease;
}

.mobile-search-bar.active {
    display: block;
}

/* User Info in Header */
.user-info-container {
    background-color: #1f2937; /* gray-800 */
}

.user-icon-bg {
    background-color: #374151; /* gray-700 */
}

.user-icon-text {
    color: #ffffff;
}

.user-name-text {
    color: #ffffff;
}

.user-mobile-text {
    color: #9ca3af; /* gray-400 */
}

.user-balance-text {
    color: var(--primary-color);
}

/* Light Theme User Info */
body.light-theme .user-info-container {
    background-color: #f3f4f6; /* light gray */
}

body.light-theme .user-icon-bg {
    background-color: #e5e7eb; /* lighter gray */
}

body.light-theme .user-icon-text {
    color: #374151; /* dark gray */
}

body.light-theme .user-name-text {
    color: #111827; /* dark text */
}

body.light-theme .user-mobile-text {
    color: #6b7280; /* medium gray */
}

body.light-theme .user-balance-text {
    color: var(--primary-color); /* dark green in light theme */
}

body.light-theme .deposit-icon-btn i {
    color: #ffffff !important;
}

/* Deposit/Withdraw Page Styles */
.deposit-subtitle {
    color: #9ca3af; /* gray-400 */
}

.deposit-form-container {
    background-color: #1f2937; /* gray-800 */
}

.deposit-label {
    color: #d1d5db; /* gray-300 */
}

.deposit-currency {
    color: #9ca3af; /* gray-400 */
}

.deposit-input {
    background-color: #111827; /* gray-900 */
    color: #ffffff;
}

.deposit-input-border {
    border-color: #374151; /* gray-700 */
}

.quick-amount-btn {
    background-color: #374151; /* gray-700 */
    color: #ffffff;
}

.quick-amount-btn:hover {
    background-color: var(--primary-color);
    color: #000000;
}

.deposit-info-box {
    background-color: #1f2937; /* gray-800 */
    border-color: #374151; /* gray-700 */
}

.deposit-info-text {
    color: #d1d5db; /* gray-300 */
}

.deposit-info-list {
    color: #9ca3af; /* gray-400 */
}

/* Withdraw Page Specific */
.withdraw-account-item {
    background-color: #111827; /* gray-900 */
    border-color: #374151; /* gray-700 */
}

.account-selected {
    background-color: rgba(234, 179, 8, 0.2) !important;
    border-color: var(--primary-color) !important;
}

.account-name-text {
    color: #ffffff;
}

.account-detail-text {
    color: #9ca3af; /* gray-400 */
}

.withdraw-empty-state {
    background-color: #111827; /* gray-900 */
    border-color: #374151; /* gray-700 */
}

.empty-state-icon,
.empty-state-text {
    color: #9ca3af; /* gray-400 */
}

.withdraw-modal-container {
    background-color: #1f2937; /* gray-800 */
}

.modal-title {
    color: #ffffff;
}

.modal-cancel-btn {
    background-color: #374151; /* gray-700 */
    color: #ffffff;
}

.modal-cancel-btn:hover {
    background-color: #4b5563; /* gray-600 */
}

/* Light Theme Deposit/Withdraw Pages */
body.light-theme .deposit-subtitle {
    color: #6b7280; /* medium gray */
}

body.light-theme .deposit-form-container {
    background-color: #ffffff; /* white */
    border: 1px solid #e5e7eb;
}

body.light-theme .deposit-label {
    color: #374151; /* dark gray */
}

body.light-theme .deposit-currency {
    color: #6b7280; /* medium gray */
}

body.light-theme .deposit-input {
    background-color: #f9fafb; /* very light gray */
    color: #111827; /* dark text */
}

body.light-theme .deposit-input-border {
    border-color: #d1d5db; /* light border */
}

body.light-theme .quick-amount-btn {
    background-color: #e5e7eb; /* light gray */
    color: #111827; /* dark text */
}

body.light-theme .quick-amount-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

body.light-theme .deposit-info-box {
    background-color: #f9fafb; /* very light gray */
    border-color: #d1d5db; /* light border */
}

body.light-theme .deposit-info-text {
    color: #374151; /* dark gray */
}

body.light-theme .deposit-info-list {
    color: #6b7280; /* medium gray */
}

body.light-theme .withdraw-account-item {
    background-color: #f9fafb; /* very light gray */
    border-color: #d1d5db; /* light border */
}

body.light-theme .account-selected {
    background-color: rgba(21, 128, 61, 0.1) !important;
    border-color: var(--primary-color) !important;
}

body.light-theme .account-name-text {
    color: #111827; /* dark text */
}

body.light-theme .account-detail-text {
    color: #6b7280; /* medium gray */
}

body.light-theme .withdraw-empty-state {
    background-color: #f9fafb; /* very light gray */
    border-color: #d1d5db; /* light border */
}

body.light-theme .empty-state-icon,
body.light-theme .empty-state-text {
    color: #6b7280; /* medium gray */
}

body.light-theme .withdraw-modal-container {
    background-color: #ffffff; /* white */
    border: 1px solid #e5e7eb;
}

body.light-theme .modal-title {
    color: #111827; /* dark text */
}

body.light-theme .modal-cancel-btn {
    background-color: #e5e7eb; /* light gray */
    color: #111827; /* dark text */
}

body.light-theme .modal-cancel-btn:hover {
    background-color: #d1d5db; /* slightly darker gray */
}

/* Light Theme Wallet Page */
body.light-theme .wallet-balance-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid #e5e7eb;
}

body.light-theme .balance-icon {
    background: linear-gradient(135deg, var(--primary-color), #16a34a);
    color: #ffffff;
}

body.light-theme .balance-label {
    color: #6b7280;
}

body.light-theme .balance-amount {
    color: var(--primary-color);
}

body.light-theme .withdraw-btn {
    background-color: #f3f4f6;
    color: #111827;
    border: 2px solid #d1d5db;
}

body.light-theme .withdraw-btn:hover {
    border-color: var(--primary-color);
    background-color: #e5e7eb;
    color: #111827;
}

body.light-theme .deposit-btn {
    background-color: var(--deposit-color);
    color: #ffffff;
    border: 2px solid var(--deposit-color);
}

body.light-theme .deposit-btn:hover {
    background-color: var(--deposit-hover);
    border-color: var(--deposit-hover);
    color: #ffffff;
}

body.light-theme .wallet-tab {
    background-color: #f9fafb;
    border-color: #d1d5db;
    color: #4b5563;
}

body.light-theme .wallet-tab:hover {
    border-color: var(--primary-color);
    background-color: #f3f4f6;
    color: var(--primary-color);
}

body.light-theme .wallet-tab.active {
    background: linear-gradient(135deg, var(--primary-color), #16a34a);
    border-color: var(--primary-color);
    color: #ffffff;
}

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

.logo {
    font-size: 1.75rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(234, 179, 8, 0.5);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Header Buttons - Consistent Sizing */
.header-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
}

.header-icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-size: 1rem;
}

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

/* Mobile: All header buttons same width */
@media (max-width: 640px) {
    .header-btn {
        width: 40px;
        height: 40px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .header-btn i {
        margin: 0 !important;
    }
}

/* Desktop: Full button style */
@media (min-width: 641px) {
    .header-btn {
        width: auto;
    }
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000000;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--primary-color);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.3);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 64px; /* Height of navbar */
    left: 0;
    height: calc(100vh - 64px);
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--secondary-color) 100%);
    border-right: 2px solid var(--border-accent);
    transition: transform var(--transition-speed) ease;
    z-index: 900;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Initial state - no transition to prevent flash */
.sidebar-initial {
    transition: none !important;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-item {
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-item:hover {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border-left-color: var(--primary-color);
}

.sidebar-item.active {
    background-color: var(--bg-card);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: bold;
}

.sidebar-icon {
    font-size: 1.25rem;
}

/* Main Content Area */
.main-content {
    margin-top: 64px; /* Height of navbar */
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-speed) ease;
    padding: 2rem;
    min-height: calc(100vh - 64px);
}

/* Initial state - no transition to prevent flash */
.main-content-initial {
    transition: none !important;
}

.main-content.expanded {
    margin-left: 0;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.menu-toggle:hover {
    background-color: var(--bg-card);
    border-color: var(--primary-color);
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        max-width: 280px;
        transform: translateX(-100%); /* Start hidden on mobile */
    }
    
    .sidebar:not(.collapsed) {
        transform: translateX(0); /* Show when not collapsed */
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 1.5rem;
    }
    
    .main-content > .mb-8:first-child {
        text-align: center;
        padding-top: 0.5rem;
    }
    
    .sidebar.collapsed {
        transform: translateX(-100%);
    }
}

/* Card Styles for Future Content */
.casino-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.casino-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.3);
    transform: translateY(-4px);
}

/* Utility Classes */
.text-accent {
    color: var(--primary-color);
}

.bg-accent {
    background-color: var(--primary-color);
}

.border-accent {
    border-color: var(--primary-color);
}

/* ====================================
   GAMES GRID COMPONENT STYLES
   ==================================== */

/* ====================================
   IMAGE SLIDER COMPONENT STYLES
   ==================================== */

/* ====================================
   AUTH MODALS STYLES
   ==================================== */

/* ====================================
   MY BETS PAGE STYLES
   ==================================== */

/* Page Header */
.page-header {
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.page-header-title {
    color: #ffffff;
}

/* Date Picker */
.date-picker-wrapper {
    position: relative;
    display: inline-block;
}

.date-picker-input {
    padding: 0.75rem 3rem 0.75rem 1rem;
    background-color: var(--bg-card);
    border: 2px solid var(--border-accent);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    min-width: 200px;
}

.date-picker-input::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
}

.date-picker-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.1);
}

.date-picker-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.25rem;
    pointer-events: none;
}

/* Separator */
.separator {
    height: 2px;
    background: linear-gradient(90deg, var(--border-accent) 0%, transparent 100%);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Bets List */
.bets-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Bet Card */
.bet-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    padding-right: 1.5rem;
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    transition: all 0.3s ease;
    min-height: 100px;
}

.bet-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(234, 179, 8, 0.2);
    transform: translateY(-2px);
}

/* Bet Icon */
.bet-icon {
    width: 100px;
    border-radius: 10px 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.bet-icon-win {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    color: #22c55e;
    border-right: 2px solid rgba(34, 197, 94, 0.3);
}

.bet-icon-lose {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    color: #ef4444;
    border-right: 2px solid rgba(239, 68, 68, 0.3);
}

.bet-game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bet Details */
.bet-details {
    flex: 1;
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bet-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.bet-datetime {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

/* Bet Result */
.bet-result {
    text-align: right;
    flex-shrink: 0;
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.result-amount {
    font-size: 1.25rem;
    font-weight: 700;
}

.bet-result-win .result-label {
    color: #22c55e;
}

.bet-result-win .result-amount {
    color: #22c55e;
}

.bet-result-lose .result-label {
    color: #ef4444;
}

.bet-result-lose .result-amount {
    color: #9ca3af;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    background-color: var(--bg-secondary);
    color: var(--primary-color);
}

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

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-dots {
    color: var(--text-muted);
    padding: 0 0.5rem;
}

/* Responsive Design for My Bets */
@media (max-width: 768px) {
    .bet-card {
        padding: 0;
        padding-right: 1rem;
        gap: 1rem;
        min-height: 80px;
    }
    
    .bet-icon {
        width: 80px;
    }
    
    .bet-details {
        padding: 1rem 0;
    }
    
    .bet-result {
        padding: 1rem 0;
    }
    
    .bet-amount {
        font-size: 1.25rem;
    }
    
    .result-amount {
        font-size: 1rem;
    }
    
    .result-label {
        font-size: 0.75rem;
    }
    
    .bet-datetime {
        font-size: 0.75rem;
    }
    
    .date-picker-input {
        width: 100%;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .pagination-btn {
        min-width: 36px;
        height: 36px;
    }
}

/* ====================================
   WALLET PAGE STYLES
   ==================================== */

/* Wallet Balance Card */
.wallet-balance-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    /* border: 1px solid #000000; */
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    /* box-shadow: 0 8px 30px rgba(234, 179, 8, 0.2); */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.balance-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.balance-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #fbbf24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #000000;
    /* box-shadow: 0 4px 15px rgba(234, 179, 8, 0.4); */
}

.balance-info {
    display: flex;
    flex-direction: column;
}

.balance-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.balance-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.balance-actions {
    display: flex;
    gap: 1rem;
}

.balance-action-btn {
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.deposit-btn {
    background-color: var(--deposit-color);
    color: #000000;
    border: 2px solid var(--deposit-color);
}

.deposit-btn:hover {
    background-color: var(--deposit-hover);
    border-color: var(--deposit-hover);
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.withdraw-btn {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.withdraw-btn:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-card);
    transform: translateY(-3px);
}

/* Wallet Tabs */
.wallet-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    -webkit-overflow-scrolling: touch;
}

.wallet-tabs::-webkit-scrollbar {
    height: 4px;
}

.wallet-tabs::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.wallet-tabs::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.wallet-tab {
    flex: 1;
    min-width: 140px;
    padding: 1rem 1.5rem;
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.wallet-tab:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-secondary);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.wallet-tab.active {
    background: linear-gradient(135deg, var(--primary-color), #fbbf24);
    border-color: var(--primary-color);
    color: #000000;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.3);
}

.wallet-tab i {
    font-size: 1.1rem;
}

/* Desktop: Show both icon and text */
.wallet-tab span {
    display: inline;
}

.wallet-tab i {
    display: inline;
}

/* Tab Content */
.wallet-tab-content {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tab Content Title */
.tab-content-title {
    display: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    /* border-bottom: 2px solid var(--border-accent); */
}

.tab-content-title i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Transaction List */
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Transaction Card */
.transaction-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    padding-right: 1.5rem;
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    transition: all 0.3s ease;
    min-height: 100px;
}

.transaction-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(234, 179, 8, 0.2);
    transform: translateY(-2px);
}

/* Transaction Icon */
.transaction-icon {
    width: 100px;
    border-radius: 10px 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.transaction-icon-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    color: #22c55e;
    border-right: 2px solid rgba(34, 197, 94, 0.3);
}

.transaction-icon-pending {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(234, 179, 8, 0.1));
    color: var(--primary-color);
    border-right: 2px solid rgba(234, 179, 8, 0.3);
}

.transaction-icon-failed {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    color: #ef4444;
    border-right: 2px solid rgba(239, 68, 68, 0.3);
}

.transaction-icon-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    color: #ef4444;
    border-right: 2px solid rgba(239, 68, 68, 0.3);
}

.transaction-icon-bonus {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.1));
    color: #a855f7;
    border-right: 2px solid rgba(168, 85, 247, 0.3);
}

.transaction-icon-warning {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(234, 179, 8, 0.1));
    color: var(--primary-color);
    border-right: 2px solid rgba(234, 179, 8, 0.3);
}

.transaction-icon-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
    color: #3b82f6;
    border-right: 2px solid rgba(59, 130, 246, 0.3);
}

/* Transaction Details */
.transaction-details {
    flex: 1;
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.transaction-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.transaction-id {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.transaction-datetime {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

/* Transaction Status */
.transaction-status {
    text-align: right;
    flex-shrink: 0;
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 0.5rem;
}

/* Status Badges */
.status-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.status-success {
    background-color: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-pending {
    background-color: rgba(234, 179, 8, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.status-failed {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Transaction Amount */
.transaction-amount {
    font-size: 1.5rem;
    font-weight: 800;
    padding: 1.5rem 1.5rem 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.transaction-amount-success {
    color: #22c55e;
}

.transaction-amount-danger {
    color: #ef4444;
}

.amount-positive {
    color: #22c55e;
}

.amount-negative {
    color: #ef4444;
}

.amount-muted {
    color: var(--text-muted);
}

/* Responsive Design for Wallet Page */
@media (max-width: 768px) {
    .wallet-balance-card {
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
    }
    
    .balance-header {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
    
    .balance-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .balance-amount {
        font-size: 2.25rem;
    }
    
    .balance-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .balance-action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .wallet-tabs {
        gap: 0.5rem;
    }
    
    .wallet-tab {
        min-width: 120px;
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Mobile: Hide text, show icon */
    .wallet-tab span {
        display: none;
    }
    
    .wallet-tab i {
        display: inline;
        font-size: 1rem;
    }
    
    /* Show tab content title on mobile */
    .tab-content-title {
        display: block;
    }
    
    .transaction-card {
        padding: 0;
        padding-right: 1rem;
        gap: 1rem;
        min-height: 90px;
    }
    
    .transaction-icon {
        width: 80px;
        font-size: 1.5rem;
    }
    
    .transaction-details {
        padding: 1rem 0;
    }
    
    .transaction-status {
        padding: 1rem 0;
    }
    
    .transaction-title {
        font-size: 1rem;
    }
    
    .transaction-id {
        font-size: 0.75rem;
    }
    
    .transaction-amount {
        font-size: 1.125rem;
    }
    
    .status-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.625rem;
    }
}

@media (max-width: 480px) {
    .balance-amount {
        font-size: 1.875rem;
    }
    
    .transaction-card {
        flex-direction: column;
        padding: 1rem;
        gap: 0.75rem;
        min-height: auto;
    }
    
    .transaction-icon {
        width: 100%;
        height: 60px;
        border-radius: 10px 10px 0 0;
        border-right: none;
        border-bottom: 2px solid;
    }
    
    .transaction-icon-success {
        border-bottom-color: rgba(34, 197, 94, 0.3);
    }
    
    .transaction-icon-pending {
        border-bottom-color: rgba(234, 179, 8, 0.3);
    }
    
    .transaction-icon-failed {
        border-bottom-color: rgba(239, 68, 68, 0.3);
    }
    
    .transaction-icon-bonus {
        border-bottom-color: rgba(168, 85, 247, 0.3);
    }
    
    .transaction-details {
        padding: 0;
        text-align: center;
    }
    
    .transaction-datetime {
        justify-content: center;
    }
    
    .transaction-status {
        padding: 0;
        text-align: center;
        align-items: center;
    }
}

/* ====================================
   REFERRALS PAGE STYLES
   ==================================== */

/* Referral Link Card */
.referral-link-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    /* border: 2px solid var(--primary-color); */
    border-radius: 16px;
    padding: 2rem;
    /* box-shadow: 0 8px 30px rgba(234, 179, 8, 0.2); */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.referral-link-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.referral-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), #fbbf24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #000000;
    /* box-shadow: 0 4px 15px rgba(234, 179, 8, 0.4); */
}

.referral-info {
    flex: 1;
}

.referral-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.referral-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Referral Link Input Group */
.referral-link-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.referral-link-input {
    flex: 1;
    padding: 1rem;
    background-color: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    outline: none;
}

.referral-link-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.1);
}

.referral-btn {
    padding: 1rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.copy-btn {
    background-color: var(--primary-color);
    color: #000000;
    border: 2px solid var(--primary-color);
}

.copy-btn:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 179, 8, 0.4);
}

.share-btn {
    background-color: var(--deposit-color);
    color: #000000;
    border: 2px solid var(--deposit-color);
}

.share-btn:hover {
    background-color: var(--deposit-hover);
    border-color: var(--deposit-hover);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

/* Referral Info Message */
.referral-info-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.referral-info-message i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Referrals List Header */
.referrals-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.referrals-list-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.referrals-list-title i {
    color: var(--primary-color);
}

/* Sort Dropdown */
.referrals-sort {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.sort-select {
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23eab308'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
}

.sort-select:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-secondary);
}

.sort-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.1);
}

/* Referrals Table Container */
.referrals-table-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    overflow-x: auto;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
}

/* Referrals Table */
.referrals-table {
    width: 100%;
    border-collapse: collapse;
}

.referrals-table thead {
    background-color: var(--bg-secondary);
    border-bottom: 2px solid var(--border-accent);
}

.referrals-table th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.referrals-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.referrals-table tbody tr:last-child {
    border-bottom: none;
}

.referrals-table tbody tr:hover {
    background-color: rgba(234, 179, 8, 0.05);
}

.referrals-table td {
    padding: 1.25rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* User Info Cell */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #fbbf24);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.user-info span {
    font-weight: 600;
    color: var(--text-primary);
}

/* Commission Amount */
.commission-amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--deposit-color);
}

/* Responsive Design for Referrals Page */
@media (max-width: 768px) {
    .referral-link-card {
        padding: 1.5rem;
    }
    
    .referral-link-header {
        flex-direction: column;
        text-align: center;
    }
    
    .referral-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    .referral-title {
        font-size: 1.25rem;
    }
    
    .referral-link-input-group {
        flex-wrap: wrap;
    }
    
    .referral-link-input {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .referral-btn {
        flex: 1;
        justify-content: center;
    }
    
    .referrals-list-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .referrals-list-title {
        font-size: 1.5rem;
    }
    
    .referrals-sort {
        width: 100%;
    }
    
    .sort-select {
        flex: 1;
    }
    
    .referrals-table-container {
        border-radius: 8px;
    }
    
    .referrals-table th,
    .referrals-table td {
        padding: 1rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.75rem;
    }
    
    .commission-amount {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .referrals-table th:nth-child(2),
    .referrals-table td:nth-child(2) {
        display: none;
    }
}

/* ====================================
   MY BETS TABLE SPECIFIC STYLES
   ==================================== */

/* Game Avatar (for My Bets table) */
.game-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
}

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

/* Bet Status Badges */
.bet-status-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.bet-status-win {
    background-color: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.bet-status-lose {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Bet Amount Cell */
.bet-amount-cell {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bet-amount-main {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.bet-datetime {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Bet Payout Amounts */
.bet-payout-win {
    font-size: 1.125rem;
    font-weight: 700;
    color: #22c55e;
}

.bet-payout-lose {
    font-size: 1.125rem;
    font-weight: 700;
    color: #9ca3af;
}

/* Responsive Design for My Bets Table */
@media (max-width: 768px) {
    .game-avatar {
        width: 35px;
        height: 35px;
    }
    
    .bet-payout-win,
    .bet-payout-lose {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    /* Keep all columns visible for bets table since we removed the date column */
    .referrals-table th:nth-child(2),
    .referrals-table td:nth-child(2) {
        display: table-cell; /* Override the referrals hiding */
    }
    
    .bet-amount-main {
        font-size: 0.9rem;
    }
    
    .bet-datetime {
        font-size: 0.7rem;
    }
}

/* ====================================
   AUTH MODALS STYLES
   ==================================== */

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Container */
.modal-container {
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

/* Modal Content */
.modal-content {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 2px solid var(--border-accent);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-accent);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--primary-color);
    background: rgba(234, 179, 8, 0.1);
    transform: rotate(90deg);
}

/* Modal Body */
.modal-body {
    padding: 2rem 1.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

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

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.1);
    background-color: var(--bg-secondary);
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0.5rem;
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* Form Row (for Remember Me & Forgot Password) */
.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* Form Link */
.form-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

.form-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Form Button */
.form-button {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-full {
    background-color: var(--primary-color);
    color: #000000;
    border: 2px solid var(--primary-color);
}

.btn-primary-full:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(234, 179, 8, 0.4);
}

/* Form Footer */
.form-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.form-footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Modal Scrollbar */
.modal-container::-webkit-scrollbar {
    width: 8px;
}

.modal-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.modal-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
    background: var(--border-color);
}

/* Responsive Design for Modals */
@media (max-width: 480px) {
    .modal-container {
        width: 95%;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 1.5rem 1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
}

/* ====================================
   IMAGE SLIDER COMPONENT STYLES
   ==================================== */

/* Slider Container */
.slider-container {
    margin-bottom: 3rem;
    width: 100%;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Slider Track */
.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

/* Individual Slide */
.slider-slide {
    min-width: 100%;
    height: 400px;
    flex-shrink: 0;
}

.slider-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Slider Overlay */
.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Slider Content */
.slider-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 700px;
}

.slider-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.slider-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

/* CTA Button */
.slider-cta-button {
    background-color: var(--primary-color);
    color: #000000;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.4);
}

.slider-cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(234, 179, 8, 0.6);
}

.placeholder-content {
    text-align: center;
    padding: 2rem;
    z-index: 1;
}

/* Navigation Buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 1.25rem;
}

.slider-nav:hover {
    background: rgba(234, 179, 8, 0.9);
    color: #000000;
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 1rem;
}

.slider-next {
    right: 1rem;
}

/* Navigation Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background-color: var(--text-muted);
    transform: scale(1.2);
}

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

/* Responsive Design for Slider */
@media (max-width: 768px) {
    .slider-slide {
        height: 300px;
    }
    
    .slider-content {
        padding: 1rem;
        max-width: 90%;
    }
    
    .slider-title {
        font-size: 2rem;
    }
    
    .slider-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .slider-cta-button {
        padding: 0.75rem 1.75rem;
        font-size: 1rem;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-prev {
        left: 0.5rem;
    }
    
    .slider-next {
        right: 0.5rem;
    }
}

/* ====================================
   GAMES GRID COMPONENT STYLES
   ==================================== */

/* Games Section */
.games-section {
    margin-bottom: 3rem;
}

/* Horizontal Scrollable Container */
.games-grid-container {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0;
    margin: 0 -0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-secondary);
}

.games-grid-container::-webkit-scrollbar {
    height: 8px;
}

.games-grid-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.games-grid-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.games-grid-container::-webkit-scrollbar-thumb:hover {
    background: var(--border-color);
}

.games-grid-container::-webkit-scrollbar-thumb:active {
    background: var(--border-color);
}

/* Games Grid */
.games-grid {
    display: flex;
    gap: 1.25rem;
    padding: 0 0.5rem;
}

/* Individual Game Card */
.game-card {
    flex: 0 0 auto;
    width: 160px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-8px);
}

/* Game Image Container */
.game-image-container {
    position: relative;
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-card:hover .game-image-container {
    border-color: var(--primary-color);
    box-shadow: 0 0 25px rgba(234, 179, 8, 0.4);
}

    /* Game Image */
.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Game Icon (Emoji placeholder) - Deprecated */
.game-icon {
    font-size: 4rem;
    transition: transform 0.3s ease;
    z-index: 1;
}

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

/* Play Overlay */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

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

/* Play Button */
.play-button {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
    transition: transform 0.2s ease;
}

.game-card:hover .play-button {
    animation: none;
    transform: scale(1.1);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(234, 179, 8, 0);
    }
}

/* Game Info */
.game-info {
    padding: 0.75rem 0.5rem;
    text-align: center;
}

.game-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design for Games Grid */
@media (max-width: 768px) {
    .game-card {
        width: 140px;
    }
    
    .game-image-container {
        width: 140px;
        height: 140px;
    }
    
    .game-icon {
        font-size: 3rem;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}
