/* Tété Premium CSS - Modern Gaming Platform */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Base Colors */
    --black: #000000;
    --charcoal: #0F0F0F;
    --charcoal-light: #1A1A1A;
    --charcoal-medium: #252525;
    :root {
    /* Add these missing variables */
    --primary-light: #FF6B6B;
    --red: #E74C3C;  /* Same as primary */
    --charcoal-dark: #050505;
}
    /* Primary Accents - Red/Burnt Orange */
    --primary: #E74C3C;
    --primary-dark: #C0392B;
    --burnt-orange: #E67E22;
    --burnt-orange-dark: #D35400;
    
    /* Secondary Accent - Gold (Subtle) */
    --gold: #F39C12;
    --gold-light: #F1C40F;
    --gold-subtle: rgba(243, 156, 18, 0.2);
    
    /* Supporting Colors */
    --green: #27AE60;
    --green-dark: #229954;
    
    /* Text Colors */
    --white: #FFFFFF;
    --grey-light: #ECF0F1;
    --grey: #BDC3C7;
    --grey-medium: #95A5A6;
    --grey-dark: #7F8C8D;
    
    /* Tier Colors - More Subtle */
    --tier-standard: #BDC3C7;
    --tier-oga: #E67E22;
    --tier-boss: #F39C12;
    --tier-chairman: #95A5A6;
    --tier-odogwu: linear-gradient(135deg, #E74C3C, #E67E22, #F39C12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 400;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Premium 3D Button Styles */
.btn-3d {
    position: relative;
    display: inline-block;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--white);
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 10px 20px rgba(231, 76, 60, 0.3),
        0 6px 6px rgba(0,0,0,0.23),
        inset 0 -3px 10px rgba(0,0,0,0.3);
}

.btn-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.3), 
        transparent
    );
    transition: left 0.7s ease;
}

.btn-3d:hover::before {
    left: 100%;
}

.btn-3d:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 30px rgba(231, 76, 60, 0.4),
        0 10px 10px rgba(0,0,0,0.3),
        inset 0 -3px 10px rgba(0,0,0,0.3);
}

.btn-3d:active {
    transform: translateY(-1px);
    box-shadow: 
        0 5px 10px rgba(231, 76, 60, 0.3),
        0 3px 3px rgba(0,0,0,0.23),
        inset 0 -1px 5px rgba(0,0,0,0.3);
}

/* Gold variant - subtle accent */
.btn-3d.gold {
    background: linear-gradient(145deg, var(--burnt-orange), var(--burnt-orange-dark));
    box-shadow: 
        0 10px 20px rgba(230, 126, 34, 0.3),
        0 6px 6px rgba(0,0,0,0.23),
        inset 0 -3px 10px rgba(0,0,0,0.3);
}

/* Green variant - subtle for success */
.btn-3d.green {
    background: linear-gradient(145deg, var(--green), var(--green-dark));
    box-shadow: 
        0 10px 20px rgba(39, 174, 96, 0.3),
        0 6px 6px rgba(0,0,0,0.23),
        inset 0 -3px 10px rgba(0,0,0,0.3);
}

/* Outline variant */
.btn-3d.outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: 
        0 5px 15px rgba(231, 76, 60, 0.2),
        inset 0 0 20px rgba(231, 76, 60, 0.1);
}

/* Glass Tab Effects */
.glass-tabs {
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.05);
    padding: 5px;
    border-radius: 15px;
    border: 1px solid rgba(204,85,0,0.3);
    backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
}

.glass-tab {
    flex: 1;
    padding: 15px 30px;
    background: transparent;
    border: none;
    color: var(--grey-light);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(204,85,0,0.3), 
        transparent
    );
    transition: left 0.8s ease;
}

.glass-tab:hover::before {
    left: 100%;
}

.glass-tab.active {
    background: rgba(204,85,0,0.15);
    color: var(--primary-light);
    text-shadow: 0 0 10px rgba(204,85,0,0.5);
}

/* Premium Card Styles */
.premium-card {
    background: linear-gradient(145deg, 
        rgba(26,26,26,0.9), 
        rgba(10,10,10,0.9)
    );
    border: 1px solid rgba(204,85,0,0.3);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.7),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

.premium-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(204,85,0,0.08) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.premium-card:hover::before {
    opacity: 1;
}

/* Tier Badge Styles */
.tier-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tier-badge.standard {
    background: var(--charcoal-light);
    color: var(--tier-standard);
    border: 1px solid rgba(255,255,255,0.2);
}

.tier-badge.oga {
    background: linear-gradient(145deg, #8B4513, #654321);
    color: var(--white);
    box-shadow: 0 0 10px rgba(139,69,19,0.3);
}

.tier-badge.boss {
    background: linear-gradient(145deg, var(--charcoal-light), var(--charcoal));
    color: var(--gold);
    border: 1px solid var(--gold);
    box-shadow: 0 0 10px rgba(218,165,32,0.2);
}

.tier-badge.chairman {
    background: linear-gradient(145deg, #4A4A4A, #2A2A2A);
    color: var(--grey-light);
    box-shadow: 0 0 10px rgba(192,192,192,0.2);
}

.tier-badge.odogwu {
    background: var(--tier-odogwu);
    color: var(--white);
    box-shadow: 0 0 20px rgba(204,85,0,0.5);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(204,85,0,0.5); }
    50% { box-shadow: 0 0 30px rgba(204,85,0,0.8), 0 0 40px rgba(220,20,60,0.4); }
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(180deg, 
        rgba(15,15,15,0.98), 
        rgba(0,0,0,0.98)
    );
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(231, 76, 60, 0.3);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.8);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 3px;
    position: relative;
    transition: all 0.3s ease;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--burnt-orange), var(--gold));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.logo:hover::after {
    transform: scaleX(1);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--grey-light);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255,255,255,0.03);
    border: 2px solid rgba(204,85,0,0.2);
    border-radius: 10px;
    color: var(--white);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 0 20px rgba(204,85,0,0.2);
}

/* Wallet Balance Display */
.wallet-display {
    background: linear-gradient(145deg, 
        rgba(10,10,10,0.9), 
        rgba(0,0,0,0.9)
    );
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wallet-display::before {
    content: '₦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    opacity: 0.05;
    color: var(--primary);
}

.wallet-balance {
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 0 20px rgba(204,85,0,0.3);
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Loading Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(204,85,0,0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .glass-tabs {
        flex-direction: column;
    }
    
    .premium-card {
        padding: 20px;
    }
    
    .wallet-balance {
        font-size: 28px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--charcoal-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Toast Notification Styles */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(10,10,10,0.95);
    border: 2px solid var(--primary);
    border-radius: 10px;
    padding: 15px 20px;
    max-width: 350px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.toast-icon {
    font-size: 24px;
}

.toast-message {
    flex: 1;
}

.toast-success { 
    border-color: var(--green); 
    box-shadow: 0 0 20px rgba(34,139,34,0.2);
}

.toast-error { 
    border-color: var(--red); 
    box-shadow: 0 0 20px rgba(220,20,60,0.2);
}

.toast-warning { 
    border-color: var(--primary); 
    box-shadow: 0 0 20px rgba(204,85,0,0.3);
}

.toast-info { 
    border-color: var(--primary-light); 
    box-shadow: 0 0 20px rgba(255,107,53,0.2);
}


/* Select dropdown option styling */
select.form-input option,
.filter-select option {
    background: var(--charcoal);
    color: var(--white);
    padding: 10px;
}
/* Profile Information Box */
.profile-box, .profile-info, .user-info {
    background: linear-gradient(145deg, 
        rgba(26,26,26,0.9), 
        rgba(10,10,10,0.9)
    );
    border: 2px solid rgba(231, 76, 60, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.7),
        inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.profile-box h3, .profile-info h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Back to Dashboard Button */
.back-btn, .btn-back, .back-button, .btn-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    color: var(--white) !important;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 20px rgba(231, 76, 60, 0.3),
        0 6px 6px rgba(0,0,0,0.23);
}

.back-btn:hover, .btn-back:hover, .back-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 15px 30px rgba(231, 76, 60, 0.4),
        0 10px 10px rgba(0,0,0,0.3);
}

/* Previous Page Button */
.prev-btn, .btn-prev, .previous-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    background: linear-gradient(145deg, var(--burnt-orange), var(--burnt-orange-dark));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-btn::before, .btn-prev::before {
    content: '←';
    font-size: 18px;
}

/* Bottom Navigation / Action Buttons */
.bottom-nav, .action-buttons, .bottom-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, 
        rgba(15,15,15,0.98), 
        rgba(0,0,0,0.98)
    );
    border-top: 2px solid rgba(231, 76, 60, 0.3);
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.8);
    z-index: 100;
}

.bottom-nav button, .bottom-nav .btn,
.action-buttons button, .action-buttons .btn {
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    color: var(--white) !important;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.bottom-nav button:hover, .action-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
}

/* Secondary Button Style */
.btn-secondary {
    background: linear-gradient(145deg, var(--charcoal-medium), var(--charcoal-light));
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
}

/* Success Button */
.btn-success {
    background: linear-gradient(145deg, var(--green), var(--green-dark));
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

/* Info Section Boxes */
.info-section, .info-box {
    background: rgba(26,26,26,0.6);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
}

/* Make sure text is visible */
.profile-box p, .info-box p, .info-section p {
    color: var(--grey-light);
    margin: 5px 0;
}

.profile-box strong, .info-box strong {
    color: var(--white);
    font-weight: 600;
}

/* Fix for buttons that might be using <a> tags */
a.btn, a.button {
    text-decoration: none !important;
    display: inline-block;
}

/* Ensure proper spacing for fixed bottom nav */
body {
    padding-bottom: 80px; /* Prevents content from being hidden behind bottom nav */
}

/* Mobile responsive bottom nav */
@media (max-width: 768px) {
    .bottom-nav, .action-buttons {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .bottom-nav button, .action-buttons button {
        padding: 10px 20px;
        font-size: 14px;
    }
}
/* Wagers Table Styling */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    background: rgba(26,26,26,0.6);
    border-radius: 10px;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.wagers-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.wagers-table thead {
    background: linear-gradient(145deg, var(--charcoal-light), var(--charcoal));
    border-bottom: 2px solid var(--primary);
}

.wagers-table th {
    padding: 15px 10px;
    text-align: left;
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.wagers-table tbody tr {
    border-bottom: 1px solid rgba(231, 76, 60, 0.1);
    transition: all 0.3s ease;
}

.wagers-table tbody tr:hover {
    background: rgba(231, 76, 60, 0.05);
}

.wagers-table td {
    padding: 12px 10px;
    color: var(--grey-light);
}

.wager-title {
    font-weight: 500;
    color: var(--white);
    max-width: 300px;
    white-space: normal;
    word-wrap: break-word;
}

.wager-amount {
    color: var(--primary);
    font-weight: 600;
}

.wager-creator {
    color: var(--gold);
}

.btn-join {
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.no-wagers {
    text-align: center;
    padding: 40px !important;
    color: var(--grey-medium);
}

/* Fix Category Dropdown - Black text on white background */
#categoryFilter,
.filter-select,
select {
    background: white !important;
    color: black !important;
    border: 2px solid var(--primary) !important;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

#categoryFilter option,
.filter-select option,
select option {
    background: white !important;
    color: black !important;
    padding: 10px;
}

/* Responsive table */
@media (max-width: 768px) {
    .table-wrapper {
        border-radius: 0;
    }
    
    .wagers-table {
        font-size: 14px;
    }
    
    .wagers-table th,
    .wagers-table td {
        padding: 8px 5px;
    }
}
/* Sortable table headers */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: all 0.2s ease;
}

.sortable:hover {
    background: rgba(231, 76, 60, 0.1);
}

.sort-icon {
    display: inline-block;
    margin-left: 5px;
    font-size: 12px;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.sort-icon.active {
    opacity: 1;
    color: var(--primary);
}

/* Mobile Navigation Styling */
.mobile-nav {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: rgba(0,0,0,0.9);
}

.mobile-nav-item {
    color: var(--white) !important;
    text-decoration: none;
    padding: 10px 20px;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
    display: inline-block;
}

.mobile-nav-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
    color: var(--white) !important;
}

/* If you want them more spaced out */
.mobile-nav-items {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Profile Dog Tag Style */
.user-info {
    background: linear-gradient(1145deg, #28a745, #218838);
    border-radius: 15px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 
        0 10px 30px rgba(231, 76, 60, 0.4),
        0 6px 10px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

/* Avatar styling */
.user-info .user-avatar {
    background: rgba(255,255,255,0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid rgba(255,255,255,0.3);
}

/* User details */
.user-info .user-details h3 {
    color: var(--white) !important;
    margin: 0 0 5px 0;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.user-info .user-details p {
    color: rgba(255,255,255,0.9) !important;
    margin: 0;
    font-size: 14px;
}

/* Shine effect */
.user-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255,255,255,0.2) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
}

.user-info:hover::before {
    animation: shine 0.6s ease;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* ===== ENHANCED MOBILE STYLES FOR TÉTÉ PLATFORM ===== */

/* Improve mobile table experience */
@media (max-width: 768px) {
    
    /* Enhanced table wrapper for mobile */
    .table-wrapper {
        border-radius: 10px;
        margin: 15px -10px; /* Extend to screen edges */
        box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    }
    
    .wagers-table {
        font-size: 13px;
        min-width: 100%; /* Remove the 900px constraint */
    }
    
    /* Optimize table headers for mobile */
    .wagers-table th {
        padding: 12px 8px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .wagers-table td {
        padding: 10px 8px;
        vertical-align: top;
    }
    
    /* Make wager titles more readable on mobile */
    .wager-title {
        max-width: 150px;
        font-size: 13px;
        line-height: 1.3;
    }
    
    /* Optimize amount display */
    .wager-amount {
        font-size: 14px;
        font-weight: 700;
        white-space: nowrap;
    }
    
    /* Better creator name display */
    .wager-creator {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 80px;
    }
    
    /* Enhanced mobile join button */
    .btn-join {
        padding: 6px 15px;
        font-size: 12px;
        border-radius: 15px;
        white-space: nowrap;
        min-width: 60px;
    }
    
    /* Mobile responsive table columns - hide less important info on very small screens */
    @media (max-width: 480px) {
        .wagers-table th:nth-child(4), /* Hide category on very small screens */
        .wagers-table td:nth-child(4) {
            display: none;
        }
        
        .wager-title {
            max-width: 120px;
        }
        
        .wager-creator {
            max-width: 60px;
        }
    }
}

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 15px;
        flex-direction: row; /* Keep horizontal on mobile */
        justify-content: space-between;
        gap: 10px;
    }
    
    .logo {
        font-size: 24px;
        letter-spacing: 2px;
    }
    
    /* Mobile menu button if you add one */
    .mobile-menu-toggle {
        display: block;
        background: var(--primary);
        border: none;
        color: white;
        padding: 10px;
        border-radius: 5px;
        cursor: pointer;
    }
}

/* Enhanced Mobile Forms */
@media (max-width: 768px) {
    .form-input {
        padding: 12px 15px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .btn-3d {
        padding: 12px 30px;
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    .premium-card {
        padding: 20px 15px;
        margin: 10px 5px;
        border-radius: 15px;
    }
}

/* Enhanced Mobile Glass Tabs */
@media (max-width: 768px) {
    .glass-tabs {
        flex-direction: row; /* Keep horizontal */
        gap: 1px;
        padding: 3px;
        margin: 10px 5px;
    }
    
    .glass-tab {
        padding: 12px 15px;
        font-size: 14px;
        min-height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Enhanced Mobile Wallet Display */
@media (max-width: 768px) {
    .wallet-display {
        padding: 15px;
        margin: 10px 5px;
    }
    
    .wallet-balance {
        font-size: 24px;
    }
    
    .wallet-display::before {
        font-size: 60px;
    }
}

/* Enhanced Mobile Profile/Info Boxes */
@media (max-width: 768px) {
    .profile-box, 
    .profile-info, 
    .user-info,
    .info-section, 
    .info-box {
        padding: 15px;
        margin: 10px 5px;
        border-radius: 10px;
    }
    
    .user-info {
        flex-direction: row; /* Keep horizontal layout */
        gap: 12px;
        padding: 15px 20px;
    }
    
    .user-info .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .user-info .user-details h3 {
        font-size: 16px;
    }
    
    .user-info .user-details p {
        font-size: 13px;
    }
}

/* Enhanced Mobile Bottom Navigation */
@media (max-width: 768px) {
    .bottom-nav, 
    .action-buttons, 
    .bottom-actions {
        padding: 12px 15px;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .bottom-nav button, 
    .action-buttons button,
    .back-btn,
    .btn-back,
    .back-button {
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 25px;
        flex: 1;
        min-width: 120px;
    }
    
    /* Ensure proper spacing */
    body {
        padding-bottom: 90px;
    }
}

/* Enhanced Mobile Filter Dropdown */
@media (max-width: 768px) {
    #categoryFilter,
    .filter-select,
    select {
        padding: 12px 15px;
        font-size: 16px; /* Prevent iOS zoom */
        border-radius: 8px;
        width: 100%;
        max-width: 200px;
    }
}

/* Mobile Toast Notifications */
@media (max-width: 768px) {
    .toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .toast.show {
        transform: translateY(0);
    }
    
    .toast-content {
        font-size: 14px;
    }
}

/* Mobile Tier Badges */
@media (max-width: 768px) {
    .tier-badge {
        padding: 4px 10px;
        font-size: 10px;
        letter-spacing: 0.5px;
    }
}

/* Horizontal Scroll Improvements for very small screens */
@media (max-width: 480px) {
    .table-wrapper {
        margin: 15px 0;
    }
    
    /* Add scroll indicators */
    .table-wrapper::after {
        content: '← Scroll for more →';
        position: absolute;
        bottom: 5px;
        right: 10px;
        color: var(--grey-medium);
        font-size: 10px;
        pointer-events: none;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn-join,
    .btn-3d,
    .glass-tab {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .wagers-table tbody tr:hover {
        background: transparent;
    }
    
    .sortable:hover {
        background: transparent;
    }
}

/* Landscape orientation optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .navbar {
        padding: 10px 0;
    }
    
    .bottom-nav,
    .action-buttons {
        padding: 8px 15px;
    }
    
    body {
        padding-bottom: 70px;
    }
}

/* Ultra-wide mobile screens (like iPhone 14 Pro Max) */
@media (min-width: 414px) and (max-width: 768px) {
    .wager-title {
        max-width: 200px;
    }
    
    .wager-creator {
        max-width: 100px;
    }
    
    .wagers-table th:nth-child(4),
    .wagers-table td:nth-child(4) {
        display: table-cell; /* Show category column on larger mobile screens */
    }
}

/* Dark mode adjustments for mobile */
@media (max-width: 768px) {
    /* Ensure text is always readable */
    .wagers-table td {
        color: var(--grey-light);
        text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    }
    
    .wager-title {
        color: var(--white);
        font-weight: 500;
    }
    
    .wager-amount {
        color: var(--primary);
        text-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
    }
}