/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100vh;
    height: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main Content Wrapper */
.main-content-wrapper {
    flex: 1 0 auto;
    min-height: 100vh;
    height: auto;
    width: 100vw;
    box-sizing: border-box;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Spribe Custom Preloader Styles */
#spribe-custom-preloader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, #0d1421 0%, #1a2332 100%) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: opacity 0.5s ease !important;
}

.spribe-preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
}

.spribe-preloader-powered-by {
    opacity: 0.8;
}

.spribe-preloader-logo {
    margin: 10px 0;
}

.spribe-preloader-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
}

.spribe-bounce-1,
.spribe-bounce-2,
.spribe-bounce-3 {
    width: 12px;
    height: 12px;
    background: #11A306;
    border-radius: 50%;
    animation: spribe-bounce 1.4s ease-in-out infinite both;
}

.spribe-bounce-1 {
    animation-delay: -0.32s;
}

.spribe-bounce-2 {
    animation-delay: -0.16s;
}

.spribe-bounce-3 {
    animation-delay: 0s;
}

@keyframes spribe-bounce {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.spribe-connecting-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* Hide preloader when display is set to none */
#spribe-custom-preloader[style*="display: none"] {
    display: none !important;
}

/* Navigation Bar */
#navigation {
    background: #000000;
    border-bottom: 1px solid #333333;
    padding: 0 20px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #11A306;
}

.site-logo i {
    font-size: 28px;
    transform: rotate(-45deg);
    color: #11A306;
}

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

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(17, 163, 6, 0.15);
    color: #11A306;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #30fcbe, #4facfe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #1e2a3a;
}

.user-details {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.username {
    font-size: 14px;
    color: #cccccc;
}

.user-balance {
    font-size: 16px;
    font-weight: bold;
    color: #30fcbe;
}

.deposit-btn {
    background: linear-gradient(135deg, #11A306, #074102);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.deposit-btn:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

/* Mobile Toggle Buttons - Hidden on Desktop */
.mobile-toggle-btn {
    display: none;
}

/* Main Container - Unified Black Theme */
#main-container {
    display: flex;
    flex-direction: column;
    /* Allow the container to size to its contents so the footer follows directly after */
    min-height: auto;
    max-height: none;
    /* Allow content to expand */
    background: #000000;
    padding: 0;
    gap: 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
    overflow: visible;
}

/* Game Container - Now contains sidebar and main game */
#game-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #000000;
    position: relative;
    /* Responsive footprint */
    width: min(1200px, 100%);
    height: clamp(700px, 80vh, 900px);
    margin: 0 auto;
}

/* Mobile game container adjustments */
@media (max-width: 768px) {
    #game-container {
        width: 100vw;
        height: auto;
        min-height: calc(100vh - 55px);
        max-height: none;
        margin: 0;
        overflow-y: visible;
    }
}

/* Game Header - spans full width with separator */
#game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
    padding: 8px 20px;
    /* Reduced padding from 15px to 8px */
    border-bottom: 2px solid #333;
    /* Grey separator line */
    min-height: 60px;
    z-index: 100;
}

/* Game Content - contains sidebar and main game side by side */
#game-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Game Content Layout - Desktop */
#game-content {
    display: flex;
    gap: 0;
    flex: 1;
    min-height: 0;
    /* Allow flex items to shrink */
    overflow: hidden;
}

/* Left Sidebar - Desktop */
#left-sidebar {
    width: 320px;
    background: #1a1a1a;
    border-right: 1px solid #333;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-shrink: 0;
    /* Prevent sidebar from shrinking */
}

@media (min-width: 769px) {
    #left-sidebar {
        display: flex !important;
    }
}

/* Game Main Area */
#game-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Allow it to shrink */
    overflow: hidden;
}

.sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-section {
    padding: 20px;
    background: #000000;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.sidebar-footer {
    background: #111;
    border-top: 1px solid #333;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 11px;
    color: #666;
    flex-shrink: 0;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.footer-item i {
    color: #fb024c;
    font-size: 10px;
}

.footer-item img {
    opacity: 0.7;
}

#left-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(48, 252, 190, 0.05), transparent);
    transition: left 0.5s ease;
}

#left-sidebar:hover::before {
    left: 100%;
}

.sidebar-section {
    margin-bottom: 20px;
}

/* Bets Tabs - Seamless */
.bets-tabs {
    display: flex;
    margin-bottom: 15px;
    background: #1a1a1a;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    text-align: center;
}

.tab-btn:hover {
    color: #ffffff;
    background: rgba(17, 163, 6, 0.2);
}

.tab-btn.active {
    color: #E9DC51;
    /* Yellow text for active tab */
    background: rgba(17, 163, 6, 0.3);
    /* Green tinted background */
    border-bottom: 2px solid #E9DC51;
    /* Yellow underline per some designs, or just color */
}

.tab-btn i {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

/* Tab Content */
.tab-content {
    display: none;
    flex: 1;
    flex-direction: column;
}

.tab-content.active {
    display: flex;
}

.show-all-toggle {
    background: #000000;
    border: none;
    color: #30fcbe;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.show-all-toggle:hover {
    background: rgba(48, 252, 190, 0.2);
}

.bet-list {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    max-height: calc(100vh - 400px);
    /* Ensure scrolling works */
    padding-right: 5px;
}

/* Custom scrollbar for bet-list */
.bet-list::-webkit-scrollbar {
    width: 6px;
}

.bet-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.bet-list::-webkit-scrollbar-thumb {
    background: rgba(48, 252, 190, 0.3);
    border-radius: 3px;
}

.bet-list::-webkit-scrollbar-thumb:hover {
    background: rgba(48, 252, 190, 0.5);
}

.bet-list.expanded {
    max-height: none;
}

.sidebar-section h3 {
    color: #fb024c;
    margin-bottom: 10px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* All Bets Area */
#all-bets {
    /* allow to fill sidebar area fully */
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    max-height: calc(100vh - 400px);
    /* Ensure there's a height constraint for scrolling */
    padding-right: 5px;
    /* Space for scrollbar */
}

/* Custom scrollbar for all-bets */
#all-bets::-webkit-scrollbar {
    width: 6px;
}

#all-bets::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

#all-bets::-webkit-scrollbar-thumb {
    background: rgba(48, 252, 190, 0.3);
    border-radius: 3px;
}

#all-bets::-webkit-scrollbar-thumb:hover {
    background: rgba(48, 252, 190, 0.5);
}

.show-more-bets-btn:hover {
    background: rgba(48, 252, 190, 0.2) !important;
}

.bet-count-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000000;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: none;
}

.bet-count-label {
    color: #cccccc;
    font-size: 12px;
}

.bet-count {
    color: #30fcbe;
    font-weight: bold;
    font-size: 16px;
}

.bet-list-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.6fr 1fr;
    /* a touch wider for better fit */
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 11px;
    color: #cccccc;
    text-transform: uppercase;
    font-weight: 600;
}

.all-bet-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px 12px;
    background: #000000;
    border-radius: 6px;
    margin-bottom: 4px;
    border-left: none;
    font-size: 11px;
    animation: slideIn 0.3s ease;
}

.all-bet-item.cashout {
    background: #000000;
}

.all-bet-item.crashed {
    background: #000000;
}

.all-bet-item.active {
    background: #000000;
}

.bet-id {
    color: #cccccc;
    font-family: monospace;
    font-size: 10px;
}

.bet-amount {
    color: #30fcbe;
    font-weight: bold;
}

.bet-status {
    text-align: right;
    font-weight: 500;
}

.bet-status.active {
    color: #ffd700;
}

.bet-status.cashout {
    color: #30fcbe;
}

.bet-status.crashed {
    color: #ff4040;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Game Main - The actual game canvas area */
#game-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #141414;
    position: relative;
    overflow: hidden;
}

/* Ensure the game header remains within the game container layout */
#game-header {
    position: relative;
    z-index: 10;
}

.game-logo {
    display: flex;
    align-items: center;
}

.game-logo .aviator-logo-image {
    height: 28px;
    /* Reduced from 35px */
    filter: brightness(1.2);
}

/* Mobile image sizing */
@media (max-width: 768px) {
    .game-logo .aviator-logo-image {
        height: 20px;
    }

    .site-logo img {
        height: 28px !important;
    }

    /* Make game canvas images more visible */
    .aviator-logo-text {
        font-size: 20px !important;
    }

    /* Improve navigation fit on mobile */
    .nav-left,
    .nav-right {
        gap: 0.3rem;
    }

    .guest-controls {
        gap: 0.3rem;
    }

    .user-info {
        gap: 0.3rem;
    }
}

@media (max-width: 768px) {
    .game-logo .aviator-logo-image {
        height: 18px;
    }

    .site-logo img {
        height: 20px !important;
    }
}

.aviator-logo {
    font-size: 28px;
    font-weight: bold;
    color: #fb024c;
    text-shadow: 0 0 10px rgba(251, 2, 76, 0.5);
    letter-spacing: 2px;
}

/* Balance Info in Header */
.balance-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

#balance {
    color: #888;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#balance-amount {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

/* Header Controls Container */
.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Header Control Buttons */
.header-control-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.header-control-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header-control-btn.active {
    background-color: rgba(251, 2, 76, 0.2);
    color: #fb024c;
}

/* Game Menu in Header */
.game-menu-container {
    position: relative;
}

.game-menu-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.game-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.game-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    min-width: 200px;
    z-index: 1000;
    display: none;
}

.game-menu.show {
    display: block;
}

/* Previous Rounds Container - Seamless */
#previous-rounds-container {
    display: flex;
    align-items: center;
    background: #000000;
    padding: 12px 20px;
    margin: 0;
    flex-shrink: 0;
    height: 60px;
    position: relative;
    /* Add position relative for dropdown positioning */
}

#last-counters {
    display: flex;
    flex-direction: row;
    align-items: center;
    color: #ffffff;
    overflow: hidden;
    flex-wrap: nowrap;
    gap: 8px;
    flex: 1;
    max-width: calc(100% - 60px);
    /* Leave space for dropdown button */
    justify-content: flex-start;
    position: relative;
}

/* Add fade effect on the right side */
#last-counters::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, transparent 0%, rgba(30, 42, 58, 0.6) 100%);
    pointer-events: none;
    z-index: 2;
}

#last-counters p {
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 700;
    margin: 0;
    min-width: 50px;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Responsive adjustments for different screen sizes */
@media (max-width: 1199px) {
    #last-counters p {
        padding: 5px 12px;
        font-size: 12px;
        min-width: 45px;
    }
}

@media (max-width: 991px) {
    #last-counters p {
        padding: 4px 10px;
        font-size: 11px;
        min-width: 40px;
    }

    #last-counters {
        gap: 6px;
    }
}

@media (max-width: 767px) {
    #last-counters p {
        padding: 4px 8px;
        font-size: 10px;
        min-width: 35px;
    }

    #last-counters {
        gap: 4px;
    }

    #previous-rounds-container {
        padding: 10px;
    }
}

.show-more-btn {
    background: #000000;
    border: none;
    border-radius: 20px;
    padding: 8px 12px;
    margin-left: 10px;
    cursor: pointer;
    color: #30fcbe;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 12px;
}

.show-more-btn:hover {
    background: rgba(48, 252, 190, 0.2);
    transform: scale(1.05);
}

.hidden-rounds {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #333;
    padding: 15px;
    margin-top: 5px;
    z-index: 100;
    backdrop-filter: blur(10px);
    display: none;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hidden-rounds.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.hidden-rounds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 8px;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.balance-info {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: visible;
}

#balance {
    text-transform: uppercase;
    color: #30fcbe;
    font-size: 14px;
    font-weight: 600;
}

#balance-amount {
    font-weight: 600;
    border: none;
    font-size: 16px;
    border-radius: 24px;
    background: #000000;
    color: #fff;
    text-transform: uppercase;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    min-width: 100px;
}

/* Game Menu Styles */
.game-menu-container {
    position: relative;
    margin-left: 15px;
    z-index: 9998;
    overflow: visible;
}

.game-menu-btn {
    background: #1f1f1f;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    position: relative;
    z-index: 1001;
}

.game-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.game-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: #1f1f1f;
    border: none;
    border-radius: 12px;
    padding: 15px;
    z-index: 99999;
    backdrop-filter: blur(15px);
    min-width: 250px;
    box-shadow: none;
    max-height: 400px;

    /* Default hidden state */
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.game-menu.show {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #e6f3ff;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 2px 0;
    position: relative;
}

/* Notification badge for menu items */
.notification-badge {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ff4d4f;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #1f1f1f;
}

/* Red dot indicator for menu button */
.menu-notification-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background-color: #fb024c;
    border-radius: 50%;
    border: 2px solid #1f1f1f;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 77, 79, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 4px rgba(255, 77, 79, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 77, 79, 0);
    }
}

.menu-item:hover {
    background: rgba(48, 252, 190, 0.1);
}

.menu-item i {
    color: #fb024c;
    width: 18px;
    text-align: center;
}

.menu-item span {
    flex: 1;
    font-size: 14px;
}

/* Loading Bar Styles */
.loading-bar-container {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    z-index: 100;
}

.loading-text {
    text-align: center;
    color: #fb024c;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(48, 252, 190, 0.5);
}

.loading-bar {
    width: 100%;
    height: 6px;
    background: #1f1f1f;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: none;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #fb024c, #ff4081);
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 3px;
    position: relative;
}

.loading-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
    animation: shine 1s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-20px);
    }

    100% {
        transform: translateX(20px);
    }
}

/* Round Info Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(29, 29, 29, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #1f1f1f;
    margin: 10% auto;
    padding: 0;
    border: none;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: none;
    backdrop-filter: blur(15px);
    animation: modalSlideIn 0.3s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #1f1f1f;
    border-bottom: none;
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: #fb024c;
    font-size: 22px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(48, 252, 190, 0.5);
}

.close-modal {
    color: #30fcbe;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: #ffffff;
    transform: scale(1.1);
}

.modal-body {
    padding: 25px;
}

.round-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(48, 252, 190, 0.2);
}

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

.detail-label {
    color: #fb024c;
    font-weight: bold;
    font-size: 14px;
    min-width: 80px;
}

.detail-value {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    text-align: right;
    flex: 1;
}

.detail-value.multiplier {
    color: #30fcbe;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(48, 252, 190, 0.5);
}

.hash-values {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.hash-item {
    background: #000000;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #ffffff;
    word-break: break-all;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hash-item:hover {
    background: rgba(48, 252, 190, 0.2);
    transform: translateX(5px);
}

/* Aviator Logo Styles */
.aviator-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aviator-logo-text {
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: #ff6b35;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow:
        0 0 5px rgba(255, 107, 53, 0.5),
        2px 2px 0 #d45a2a,
        3px 3px 0 #b84822;
    position: relative;
}

.aviator-logo-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.8), transparent);
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 25px;
}

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

.toggle-switch label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    border-radius: 25px;
    transition: 0.3s;
}

.toggle-switch label:before {
    position: absolute;
    content: "";
    height: 19px;
    width: 19px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked+label {
    background-color: #30fcbe;
}

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

/* Game Message Animation */
@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

.blueBorder {
    color: #4facfe;
}

.purpleBorder {
    color: rgb(92, 20, 151);
}

.burgundyBorder {
    color: #f060d8;
}

#counterWrapper {
    position: relative;
    flex: 1;
    background: #1f1f1f;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#bg-image {
    position: absolute;
    width: 400%;
    height: 400%;
    top: 100%;
    left: 0%;
    transform: translate(-50%, -50%);
    background: url('images/bg-rotate-old.svg') 50% 50%/cover;
    background-position: 50% 50%;
    opacity: 0.3;
    filter: brightness(0.7) contrast(1.0);
    transition: all 0.3s ease;
}

/* Background rotation animation - only active during flying state */
#bg-image.rotating {
    animation: backgroundRotation 60s infinite linear;
}

@keyframes backgroundRotation {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

#bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(48, 252, 190, 0.1), rgba(79, 172, 254, 0.1));
}



#canvas {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    z-index: 2;
}

#counter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 84px;
    font-weight: bold;
    color: #ffffff;
    z-index: 10;
    transition: all 0.3s ease;
    text-shadow: none;
    /* Remove any default text shadow */
}

#counter.crashed {
    font-size: 56px;
    animation: crashPulse 0.5s ease-in-out;
    line-height: 1.2;
    text-align: center;
}

#counter.crashed .final-multiplier {
    display: inline-block;
    animation: redGlowPulse 1s ease-in-out infinite;
}

@keyframes redGlowPulse {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(255, 68, 68, 0.7);
    }

    50% {
        text-shadow: 0 0 20px rgba(255, 68, 68, 0.9);
    }
}

#counter.waiting {
    color: #ffa500;
    background: transparent;
    text-shadow:
        0 0 20px rgba(255, 165, 0, 0.8),
        0 0 40px rgba(255, 165, 0, 0.6);
}

/* Multiplier Color Glow System - Enhanced Canvas Lighting */
#counter.blue-glow {
    color: #ffffff;
    text-shadow:
        0 0 20px rgba(79, 172, 254, 1.0),
        0 0 40px rgba(79, 172, 254, 0.8),
        0 0 60px rgba(79, 172, 254, 0.6),
        0 0 80px rgba(79, 172, 254, 0.4);
    background: transparent;
    box-shadow: none;
}

#counter.purple-glow {
    color: #ffffff;
    text-shadow:
        0 0 20px rgba(192, 132, 252, 1.0),
        0 0 40px rgba(192, 132, 252, 0.8),
        0 0 60px rgba(192, 132, 252, 0.6),
        0 0 80px rgba(192, 132, 252, 0.4);
    background: transparent;
    box-shadow: none;
}

#counter.pink-glow {
    color: #ffffff;
    text-shadow:
        0 0 20px rgba(240, 96, 216, 1.0),
        0 0 40px rgba(240, 96, 216, 0.8),
        0 0 60px rgba(240, 96, 216, 0.6),
        0 0 80px rgba(240, 96, 216, 0.4);
    background: transparent;
    box-shadow: none;
}

/* Canvas-wide glow effects that light up the entire area */
.game-container.blue-glow {
    /* faint canvas-wide colored glow (no dark shadow) */
    box-shadow:
        0 0 60px rgba(79, 172, 254, 0.18),
        0 0 140px rgba(79, 172, 254, 0.12);
    background: radial-gradient(circle at center, rgba(79, 172, 254, 0.1) 0%, transparent 70%);
}

.game-container.purple-glow {
    /* faint canvas-wide colored glow (no dark shadow) */
    box-shadow:
        0 0 60px rgba(192, 132, 252, 0.18),
        0 0 140px rgba(192, 132, 252, 0.12);
    background: radial-gradient(circle at center, rgba(192, 132, 252, 0.1) 0%, transparent 70%);
}

.game-container.pink-glow {
    /* faint canvas-wide colored glow (no dark shadow) */
    box-shadow:
        0 0 60px rgba(240, 96, 216, 0.18),
        0 0 140px rgba(240, 96, 216, 0.12);
    background: radial-gradient(circle at center, rgba(240, 96, 216, 0.1) 0%, transparent 70%);
}

@keyframes crashPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.loading-bar-container {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1.5px;
    overflow: hidden;
    z-index: 9;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, #30fcbe, #4facfe);
    width: 0%;
    border-radius: 1.5px;
    animation: loadingProgress 3s linear;
}

@keyframes loadingProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

#game-info {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    text-align: right;
}

.round-info {
    background: #000000;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 5px;
    border: none;
}

.next-round-timer {
    background: rgba(251, 2, 76, 0.8);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
}

/* Betting Controls - Seamless with Canvas */
#betting-controls {
    display: flex;
    gap: 15px;
    margin: 0;
    background: #000000;
    padding: 20px;
    flex-shrink: 0;
    min-height: auto;
    height: auto;
    transition: all 0.3s ease;
}

/* Second bet panel styling */
#second-bet-panel {
    display: none;
    /* Hidden by default, toggled with + button */
    margin-left: 15px;
    border-left: 2px solid #333;
    padding-left: 20px;
}

.bet-panel {
    flex: 1;
    background: #1a1a1a;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.bet-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(48, 252, 190, 0.05), transparent);
    transition: left 0.5s ease;
}

.bet-panel:hover::before {
    left: 100%;
}

.bet-input-group label {
    display: block;
    color: #24d358;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.input-wrapper input {
    width: 100%;
    padding: 15px 40px 15px 15px;
    border: none;
    border-radius: 12px;
    background: #1f1f1f;
    color: white;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: transparent;
    box-shadow: none;
}

.currency {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #30fcbe;
    font-weight: bold;
}

/* Bet Mode Toggle (Dark Theme) */
.bet-mode-selector {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

.mode-toggle-label.small-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    background: #000000;
    padding: 2px 6px;
    border-radius: 14px;
    border: none;
    transition: all 0.2s;
    min-width: 0;
}

.mode-toggle-label.small-toggle:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

.mode-toggle-checkbox {
    display: none;
}

.mode-toggle-switch.small-switch {
    position: relative;
    width: 28px;
    height: 14px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 7px;
    margin-right: 6px;
    transition: all 0.2s;
}

.mode-toggle-switch.small-switch::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    transition: all 0.2s;
    box-shadow: none;
}

.mode-toggle-checkbox:checked+.mode-toggle-switch.small-switch {
    background: #ff4444;
}

.mode-toggle-checkbox:checked+.mode-toggle-switch.small-switch::before {
    transform: translateX(14px);
}

.mode-text.small-text {
    display: flex;
    align-items: center;
    color: white;
    font-weight: 500;
    font-size: 12px;
    min-width: 0;
}

.bet-text,
.auto-text {
    margin: 0 2px;
    font-size: 12px;
    transition: opacity 0.2s;
}

.mode-toggle-checkbox:not(:checked)~.mode-text .auto-text {
    opacity: 0.5;
}

.mode-toggle-checkbox:checked~.mode-text .bet-text {
    opacity: 0.5;
}

/* Bet Button Container with Inline Remove */
.bet-button-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.remove-bet-btn-inline,
.add-bet-btn-inline {
    background: rgba(100, 100, 100, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.add-bet-btn-inline {
    background: rgba(100, 100, 100, 0.8);
}

.remove-bet-btn-inline:hover {
    background: rgba(120, 120, 120, 1);
    transform: scale(1.1);
}

.add-bet-btn-inline:hover {
    background: rgba(120, 120, 120, 1);
    transform: scale(1.1);
}

/* Auto Features Section */
.auto-features {
    background: #1f1f1f;
    border-radius: 8px;
    padding: 15px;
    border: none;
}

.auto-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.auto-option:last-child {
    margin-bottom: 0;
}

.auto-option-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    flex: 1;
}

.auto-option-checkbox {
    display: none;
}

.auto-option-switch {
    position: relative;
    width: 40px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.auto-option-switch::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: none;
}

.auto-option-checkbox:checked+.auto-option-switch {
    background: #28a909;
}

.auto-option-checkbox:checked+.auto-option-switch::before {
    transform: translateX(20px);
}

.auto-option-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.cashout-input {
    width: 80px;
    margin-left: 10px;
}

.cashout-input input {
    background: #1f1f1f;
    border: none;
    color: white;
    padding: 5px 25px 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    width: 100%;
}

.cashout-input .currency {
    right: 6px;
    font-size: 12px;
}

/* Auto Betting Options (Legacy - keeping for compatibility) */
.auto-betting-options {
    margin-top: 15px;
    padding: 15px;
    background: #1f1f1f;
    border-radius: 10px;
    border: none;
}

.auto-toggle-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.auto-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: white;
}

.auto-toggle-checkbox {
    display: none;
}

.toggle-switch {
    width: 45px;
    height: 22px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}

.auto-toggle-checkbox:checked+.toggle-switch {
    background: #28a909;
}

.auto-toggle-checkbox:checked+.toggle-switch::after {
    transform: translateX(23px);
}

.auto-cashout-group {
    margin-bottom: 15px;
}

.auto-cashout-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.auto-bet-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-top: 10px;
}

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

.stat-label {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2px;
}

.stat-value {
    font-size: 12px;
    font-weight: 600;
    color: #28a909;
}

/* Remove old bet mode toggle styles since we're not using them */

.quick-amounts {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.quick-amount {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(48, 252, 190, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-amount:hover {
    background: #36cb12;
    color: #1e2a3a;
}

.bet-button {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #36cb12 0%, #36cb13 100%);
    border: 1px solid #36cb12;
    border-radius: 8px;
    color: #f7f8faff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    box-shadow:
        0 4px 12px rgba(48, 252, 190, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.bet-button:hover {
    transform: translateY(-1px);
    box-shadow:
        0 6px 20px rgba(54, 203, 18, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #34d211 0%, #36cb12 100%);
}

.bet-button.cashout {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-color: #ffd700;
    color: #0a0f1a;
    box-shadow:
        0 4px 12px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.bet-button.placed {
    background: linear-gradient(135deg, #ffa500, #ff6347);
    color: white;
    cursor: not-allowed;
}

.bet-button.cancel {
    background: linear-gradient(135deg, #fb024c, #ff4081);
    color: white;
}

.bet-button.cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 2, 76, 0.4);
}

.bet-button.cashed-out {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-color: #28a745;
    color: #fff;
    cursor: default;
    opacity: 0.8;
}

.bet-button.cashed-out:hover {
    background: linear-gradient(135deg, #28a745, #20c997);
    transform: none;
    box-shadow: none;
}

.bet-button.auto-mode {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
}

.bet-button.auto-active {
    background: linear-gradient(135deg, #fb024c, #ff4081);
    color: white;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.add-bet-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #28a909, #34d211);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-end;
    margin-bottom: 20px;
}

.add-bet-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(40, 169, 9, 0.4);
}

/* Message Area - Popup Notifications */
#message-area {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(26, 31, 46, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(48, 252, 190, 0.3);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    z-index: 10000;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    min-width: 300px;
    text-align: center;
}

#message-area.show {
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

#message-area.success {
    border-color: #30fcbe;
    box-shadow:
        0 10px 30px rgba(48, 252, 190, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#message-area.error {
    border-color: #fb024c;
    box-shadow:
        0 10px 30px rgba(251, 2, 76, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#message-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(48, 252, 190, 0.1), transparent);
    transition: left 0.5s ease;
}

#message-area:hover::before {
    left: 100%;
}

#message {
    color: #30fcbe;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 0 10px rgba(48, 252, 190, 0.3);
    position: relative;
    z-index: 2;
}



#right-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(48, 252, 190, 0.05), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

#right-sidebar:hover::before {
    left: 100%;
}

#chat-container {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-toggle {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #fb024c, #ff4081);
    color: #1e2a3a;
    padding: 15px 20px;
    border-radius: 15px 0 0 15px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    transition: all 0.3s ease;
}

.chat-toggle:hover {
    transform: translateX(-5px);
}

#chat-container {
    background: #000000;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* Chat open by default, only hide on small screens */
.chat-hidden {
    transform: translateX(100%);
}

.chat-header {
    padding: 15px;
    border-bottom: 1px solid rgba(251, 2, 76, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    color: #fb024c;
    font-size: 18px;
}

.online-count {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #cccccc;
}

.online {
    color: #4ade80;
}

.chat-messages {
    flex: 1;
    overflow: hidden;
    /* Hide overflow to create upward flow effect */
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    height: 100%;
    justify-content: flex-end;
    /* Messages start from bottom */
}

.chat-message {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-size: 13px;
    word-wrap: break-word;
    animation: slideUpFromBottom 0.5s ease-out;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease-out;
    flex-shrink: 0;
    max-height: 100px;
}

.chat-message.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    max-height: 0;
    padding: 0 12px;
    margin-bottom: 0;
}

@keyframes slideUpFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.system {
    background: rgba(251, 2, 76, 0.1);
    border-left: 3px solid #fb024c;
}

.chat-user {
    color: #4facfe;
    font-weight: bold;
    margin-right: 5px;
}

.chat-text {
    color: #ffffff;
}

.chat-input-container {
    padding: 20px;
    border-top: 1px solid rgba(251, 2, 76, 0.2);
    display: flex;
    gap: 10px;
}

#chat-input {
    flex: 1;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(251, 2, 76, 0.3);
    border-radius: 25px;
    color: white;
    font-size: 14px;
}

#chat-input:focus {
    outline: none;
    border-color: #fb024c;
}

.send-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fb024c, #ff4081);
    border: none;
    border-radius: 50%;
    color: #1e2a3a;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-btn:hover {
    transform: scale(1.1);
}

/* Responsive Design - Spribe Mobile Layout */
@media (max-width: 1200px) {
    #main-container {
        grid-template-columns: 250px 1fr 280px;
    }
}

/* Consolidated Mobile Media Queries */
@media (max-width: 900px) {
    .main-content-wrapper {
        min-height: auto;
    }

    /* Show Mobile Toggle Buttons */
    .mobile-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: rgba(48, 252, 190, 0.1);
        border: 1px solid rgba(48, 252, 190, 0.3);
        border-radius: 8px;
        color: #30fcbe;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 16px;
    }

    .mobile-toggle-btn:hover {
        background: rgba(48, 252, 190, 0.2);
        transform: scale(1.05);
    }

    #main-container {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }
}

@media (max-width: 768px) {

    /* Mobile Layout - Single Column Flow */
    body {
        font-size: 14px;
        padding-top: 0;
        /* No need for padding since navigation is sticky */
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .main-content-wrapper {
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
    }

    #navigation {
        position: sticky;
        top: 0;
        z-index: 1000;
        margin-bottom: 0;
        padding: 0 8px;
        height: 55px;
        width: 100%;
        box-sizing: border-box;
    }

    #main-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0;
        height: auto;
        overflow: visible;
    }

    #game-container {
        width: 100vw;
        height: auto;
        min-height: auto;
        max-height: none;
        margin: 0;
        display: flex;
        flex-direction: column;
        overflow-y: visible;
    }

    /* Mobile game content - vertical stack */
    #game-content {
        display: flex;
        flex-direction: column;
        flex: 1;
        overflow: visible;
        position: relative;
        z-index: 1;
    }

    #game-main {
        order: 1;
        width: 100%;
        min-height: 300px;
        /* Reduced from 400px for better mobile flow */
        height: auto;
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        flex-shrink: 0;
        position: relative;
        z-index: 2;
    }

    #betting-controls {
        order: 2;
        flex-shrink: 0;
        background: #000000;
        padding: 15px;
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        position: relative;
        z-index: 100;
        height: auto;
        transition: all 0.3s ease;
    }

    /* Left sidebar appears under betting controls on mobile */
    #left-sidebar {
        order: 3;
        display: block !important;
        position: relative;
        width: 100%;
        height: auto;
        max-height: 400px;
        border-right: none;
        border-top: 2px solid #333;
        transform: none;
        background: #1a1a1a;
        backdrop-filter: none;
        margin-top: 0;
        overflow-y: auto;
        flex-shrink: 0;
        clear: both;
        z-index: 1;
    }

    /* Hide mobile bets section when sidebar is shown */
    #mobile-bets-section {
        display: none !important;
    }

    /* Chat covers entire screen on mobile */
    #right-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 2000;
        background: #1a1a1a;
        border: none;
        box-shadow: none;
        display: none;
    }

    #right-sidebar.chat-open {
        display: flex;
    }
}

/* Desktop Layout - Proper sidebar and mobile section handling */
@media (min-width: 769px) {

    /* Hide mobile bets section on desktop */
    #mobile-bets-section {
        display: none !important;
    }

    /* Ensure left sidebar is visible on desktop */
    #left-sidebar {
        display: flex !important;
        position: static;
        width: 320px;
        height: 100%;
        transform: none;
        background: #1a1a1a;
        backdrop-filter: none;
    }

    /* Enhanced chat positioning and design */
    #right-sidebar {
        position: fixed;
        top: 80px;
        right: 0;
        width: 320px;
        height: calc(100vh - 80px);
        z-index: 99;
        transform: translateX(100%);
        transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
        background: linear-gradient(135deg, rgba(30, 42, 58, 0.95), rgba(25, 35, 48, 0.98));
        backdrop-filter: blur(15px);
        border-left: 1px solid rgba(48, 252, 190, 0.3);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    }

    #right-sidebar.chat-open {
        transform: translateX(0);
        width: 320px;
        max-width: 85vw;
    }

    /* Enhanced chat toggle button */
    .chat-toggle {
        position: fixed;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        z-index: 101;
        background: linear-gradient(135deg, rgba(251, 2, 76, 0.2), rgba(255, 64, 129, 0.2));
        border: 1px solid rgba(251, 2, 76, 0.5);
        border-radius: 50%;
        width: 55px;
        height: 55px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
        backdrop-filter: blur(10px);
        box-shadow:
            0 4px 15px rgba(251, 2, 76, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .chat-toggle:hover {
        transform: translateY(-50%) scale(1.1);
        background: linear-gradient(135deg, rgba(251, 2, 76, 0.3), rgba(255, 64, 129, 0.3));
        border-color: rgba(251, 2, 76, 0.7);
        box-shadow:
            0 6px 20px rgba(251, 2, 76, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    .chat-toggle.active {
        background: linear-gradient(135deg, #fb024c, #ff4081);
        border-color: #fb024c;
        color: #1e2a3a;
        transform: translateY(-50%) scale(0.95);
    }

    .chat-toggle span {
        display: none;
    }

    .chat-toggle i {
        font-size: 18px;
        color: #fb024c;
        transition: all 0.3s ease;
    }

    .chat-toggle.active i {
        color: #1e2a3a;
        transform: rotate(180deg);
    }
}

/* Bet Items Styling */
.bet-item {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.6fr 1fr;
    /* keep in sync with header */
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.bet-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #fb024c;
}

.bet-player {
    font-size: 12px;
    color: #ffffff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bet-player .avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(251, 2, 76, 0.3);
    background: rgba(251, 2, 76, 0.1);
    transition: all 0.3s ease;
    display: inline-block;
    vertical-align: middle;
}

.bet-player .avatar:hover {
    border-color: rgba(251, 2, 76, 0.6);
    box-shadow: 0 0 10px rgba(251, 2, 76, 0.2);
    transform: scale(1.1);
}

.bet-player .avatar[src*="data:image"] {
    background: linear-gradient(135deg, #fb024c, #ff4081);
    border-color: #fb024c;
}

.bet-amount {
    text-align: left;
    font-size: 12px;
    color: #36cb12;
    font-weight: 600;
}

.bet-multiplier {
    text-align: center;
    font-size: 12px;
    color: #ffd700;
    font-weight: 600;
}

.bet-status {
    text-align: right;
    font-size: 11px;
    font-weight: 500;
}

.bet-status.active {
    color: #ffd700;
}

.bet-status.cashed-out {
    color: #30fcbe;
}

/* Green glow animation for cashed-out items */
.bet-item.cashed-glow {
    animation: cashedGlow 1.2s ease-in-out;
}

@keyframes cashedGlow {
    0% {
        box-shadow: 0 0 0 rgba(48, 252, 190, 0);
    }

    40% {
        box-shadow: 0 0 16px rgba(48, 252, 190, 0.55);
    }

    100% {
        box-shadow: 0 0 0 rgba(48, 252, 190, 0);
    }
}

/* Mobile Bet List */
.mobile-bet-list {
    max-height: 200px;
    overflow-y: auto;
}

.mobile-bet-list .bet-item {
    padding: 6px 10px;
    font-size: 11px;
}

/* Additional mobile responsive adjustments */
/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 42, 58, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6b1c0e, #1b2024);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #501a18, #1c2421);
}

/* Site Footer Styles */
.site-footer {
    background: linear-gradient(135deg, #1e2a3a 0%, #2d3a4a 100%);
    border-top: 2px solid #fb024c;
    margin-top: 20px;
    /* Add margin to separate from content */
    width: 100%;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo-img {
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

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

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav-item {
    margin: 0;
}

.footer-nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer-nav-link:hover {
    color: #30fcbe;
    background: rgba(48, 252, 190, 0.1);
    transform: translateY(-2px);
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.payment-icon {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-icon:hover {
    background: rgba(48, 252, 190, 0.1);
    border-color: #30fcbe;
    transform: translateY(-2px);
}

.payment-icon img {
    display: block;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.payment-icon:hover img {
    filter: brightness(1.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: #30fcbe;
    color: #1e2a3a;
    border-color: #30fcbe;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(48, 252, 190, 0.3);
}

.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    width: 100%;
}

.age-restriction {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 3px 10px rgba(238, 90, 82, 0.3);
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
    text-align: center;
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        gap: 20px;
        padding: 30px 0;
    }

    .footer-nav {
        gap: 15px;
    }

    .footer-nav-link {
        font-size: 13px;
        padding: 6px 10px;
    }

    .payment-methods {
        gap: 15px;
    }

    .payment-icon {
        padding: 8px;
    }

    .social-links {
        gap: 12px;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .footer-legal {
        gap: 12px;
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .footer-nav {
        flex-direction: column;
        gap: 10px;
    }

    .payment-methods {
        gap: 10px;
    }

    .payment-icon img {
        max-width: 50px !important;
    }

    .footer-logo-img {
        max-width: 200px !important;
    }
}

/* Profile Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

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

.modal-container {
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333;
    background: #0a0a0a;
}

.modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 0;
}

.profile-tabs {
    display: flex;
    background: #0a0a0a;
    border-bottom: 1px solid #333;
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

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

.tab-btn.active {
    color: #50615c;
    border-bottom-color: #5c6864;
    background: rgba(48, 252, 190, 0.1);
}

.modal-container .tab-content {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.tab-pane {
    display: none;
}

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

/* Profile Details Tab */
.profile-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #424b48, #5c6864);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #111;
}

.profile-details {
    flex: 1;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #222;
}

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

.detail-row .label {
    color: #888;
    font-weight: 500;
}

.detail-row .value {
    color: #fff;
    font-weight: 600;
}

/* Form Styles */
.deposit-form,
.withdrawal-form {
    max-width: 400px;
}

.deposit-form h4,
.withdrawal-form h4,
.transactions-list h4 {
    margin: 0 0 20px 0;
    color: #fff;
    font-size: 18px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #888;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    background: #222;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #30fcbe;
}

.btn-primary,
.btn-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #30fcbe, #1e9e6b);
    color: #111;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(48, 252, 190, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #ffb037, #ff8c00);
    color: #111;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 176, 55, 0.3);
}

/* Transactions Tab */
.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #222;
}

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

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

.transaction-type {
    color: #fff;
    font-weight: 500;
}

.transaction-date {
    color: #888;
    font-size: 12px;
}

.transaction-amount {
    font-weight: 600;
    font-size: 14px;
}

.transaction-amount.positive {
    color: #30fcbe;
}

.transaction-amount.negative {
    color: #ff6b6b;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        margin: 20px;
    }

    .profile-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

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

    .tab-btn {
        min-width: 50%;
        padding: 12px;
        font-size: 13px;
    }

    .modal-header {
        padding: 15px;
    }

    .tab-content {
        padding: 15px;
    }
}

/* Authentication Styles */
.guest-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.auth-btn {
    background: linear-gradient(135deg, #30fcbe, #28d1a0);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: #0a0f1a;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(48, 252, 190, 0.3);
}

.auth-btn.register {
    background: linear-gradient(135deg, #4facfe, #00c9ff);
}

.profile-btn,
.admin-btn,
.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.profile-btn:hover,
.admin-btn:hover,
.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.admin-btn {
    background: linear-gradient(135deg, #ff9500, #ffb347);
    border: none;
    color: #0a0f1a;
    font-weight: 600;
}

.admin-btn:hover {
    background: linear-gradient(135deg, #ffb347, #ffc470);
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.3);
}

.logout-btn {
    background: linear-gradient(135deg, #6d565d, #8f5a6c);
    border: none;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #0d1421 0%, #1a2332 100%);
    margin: 5% auto;
    padding: 0;
    border: 1px solid rgba(48, 252, 190, 0.3);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: rgba(48, 252, 190, 0.1);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(48, 252, 190, 0.3);
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #30fcbe;
    font-size: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer a {
    color: #30fcbe;
    text-decoration: none;
}

.modal-footer a:hover {
    text-decoration: underline;
}

.close {
    color: #ccc;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #fb024c;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ccc;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #30fcbe;
    box-shadow: 0 0 0 2px rgba(48, 252, 190, 0.2);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #30fcbe, #28d1a0);
    color: #0a0f1a;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(48, 252, 190, 0.3);
}

.error-message {
    background: rgba(251, 2, 76, 0.1);
    border: 1px solid #fb024c;
    color: #fb024c;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.success-message {
    background: rgba(40, 169, 9, 0.1);
    border: 1px solid #28a909;
    color: #28a909;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.deposit-instructions {
    background: rgba(48, 252, 190, 0.1);
    border: 1px solid #30fcbe;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.deposit-instructions h4 {
    color: #30fcbe;
    margin-bottom: 1rem;
}

.paybill-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
}

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

.paybill-item span {
    color: #ccc;
    display: block;
    margin-bottom: 0.5rem;
}

.paybill-item strong {
    color: #30fcbe;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .guest-controls {
        flex-direction: column;
        gap: 0.5rem;
    }

    .auth-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        min-width: 60px;
    }

    .profile-btn,
    .admin-btn,
    .logout-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        min-width: 50px;
    }

    .deposit-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        min-width: 60px;
    }

    .user-details {
        font-size: 0.7rem;
    }

    .user-details .username {
        font-size: 0.75rem;
    }

    .user-details .user-id {
        font-size: 0.6rem !important;
    }

    .user-details .user-balance {
        font-size: 0.7rem;
    }

    .paybill-info {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-header,
    .modal-body {
        padding: 1rem;
    }
}

/* Demo Mode Bar Styles */
.demo-mode-bar {
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    padding: 8px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 107, 53, 0.3);
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.2);
    margin-bottom: 5px;
}

.demo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    font-weight: 600;
}

.demo-content i {
    font-size: 16px;
    animation: pulse-demo 2s infinite;
}

.demo-content span {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.demo-content small {
    font-size: 11px;
    opacity: 0.9;
    font-weight: 400;
    margin-left: 5px;
}

@keyframes pulse-demo {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Demo mode specific styling for game elements */
.demo-mode .user-balance {
    color: #ffa726 !important;
    position: relative;
}

.demo-mode .user-balance::after {
    content: " (DEMO)";
    font-size: 10px;
    opacity: 0.8;
}

.demo-mode #counter {
    border-color: #ff6b35 !important;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3) !important;
}

.demo-mode .bet-panel {
    border-top: 2px solid #ff6b35;
}

/* Hide sidebar in demo mode and expand game area */
.demo-mode #left-sidebar {
    display: none !important;
}

.demo-mode .main-content {
    margin-left: 0 !important;
    width: 100% !important;
}

.demo-mode .game-container {
    max-width: 100% !important;
    margin: 0 auto !important;
}

/* Demo mode mobile improvements */
@media (max-width: 768px) {
    .demo-mode .betting-controls {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .demo-mode .bet-panel {
        width: 100%;
        margin-bottom: 10px;
    }

    .demo-mode #betting-controls {
        padding: 15px;
        min-height: auto;
    }

    .demo-mode .main-content-wrapper {
        height: 100vh;
        overflow-y: auto;
    }

    .demo-mode .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* Mobile responsive improvements */
@media (max-width: 768px) {
    .demo-content {
        gap: 5px;
    }

    .demo-content span {
        font-size: 12px;
    }

    .demo-content small {
        font-size: 10px;
    }

    /* Stack betting controls vertically on mobile */
    #betting-controls {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 10px;
        min-height: auto;
        height: auto;
    }

    .bet-panel {
        width: 100%;
        margin-bottom: 0;
    }

    /* Adjust main content wrapper for mobile */
    .main-content-wrapper {
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
    }

    .main-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    #game-main {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    #counterWrapper {
        flex: 1;
        min-height: 200px;
    }

    /* Ensure betting controls are always visible at bottom */
    #betting-controls {
        flex-shrink: 0;
        position: relative;
        background: rgba(0, 0, 0, 0.9);
        border-top: 1px solid #333;
        z-index: 300 !important;
    }

    /* Hide sidebar on mobile for demo */
    body.demo-mode #left-sidebar {
        display: none !important;
    }

    body.demo-mode .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* Additional Mobile Betting Controls Optimizations */
@media (max-width: 768px) {

    /* Ensure betting controls stack properly - both panels always visible */
    #betting-controls {
        flex-direction: column;
        gap: 0;
        padding-bottom: 30px;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        margin-bottom: 20px;
        position: relative !important;
        z-index: 200 !important;
    }

    #betting-controls .bet-panel {
        width: 100%;
        padding: 15px;
        margin-bottom: 15px;
        box-sizing: border-box;
    }

    #second-bet-panel {
        /* display: block !important; - REMOVED: Let toggle functionality work */
        margin-left: 0 !important;
        border-left: none !important;
        border-top: 2px solid #333 !important;
        padding-left: 15px !important;
        padding-top: 20px !important;
        margin-top: 15px !important;
        margin-bottom: 20px !important;
    }

    /* Ensure left sidebar has proper spacing from betting controls */
    #left-sidebar {
        margin-top: 0 !important;
        padding-top: 20px !important;
        position: relative !important;
        z-index: 1 !important;
    }

    /* Force proper stacking order on mobile */
    .main-content {
        position: relative;
        z-index: auto;
    }

    /* Ensure betting panels are positioned properly */
    .bet-panel {
        position: relative;
        z-index: 10;
    }

    #second-bet-panel {
        position: relative !important;
        z-index: 11 !important;
    }

    /* Mobile button sizing */
    .bet-button-container {
        gap: 10px;
    }

    .bet-button {
        padding: 12px 16px;
        font-size: 13px;
    }

    /* Adjust input sizes for mobile */
    .input-wrapper input {
        padding: 12px 35px 12px 12px;
        font-size: 14px;
    }

    /* Quick amounts on mobile */
    .quick-amounts {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .quick-amount {
        flex: 1;
        min-width: calc(50% - 3px);
        padding: 5px 8px;
        font-size: 11px;
    }

    /* Adjust sidebar content padding on mobile */
    #left-sidebar .sidebar-section {
        padding: 15px;
    }

    /* Bet list adjustments for mobile */
    .bet-list {
        max-height: 250px;
    }

    .all-bet-item,
    .bet-item {
        padding: 6px 10px;
        font-size: 11px;
        margin-bottom: 3px;
    }

    .bet-player img.avatar {
        width: 20px;
        height: 20px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-dialog {
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-dialog.modal-lg {
    max-width: 800px;
}

.modal-dialog.modal-xl {
    max-width: 1200px;
}

.modal-content {
    background: #1a1a1a;
    border-radius: 15px;
    border: 1px solid #333;
    overflow: hidden;
}

.modal-header {
    background: #2a2a2a;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.modal-header span {
    color: #fb024c;
    font-size: 18px;
    font-weight: 600;
}

.modal-header .close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-body {
    padding: 20px;
    color: #fff;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 15px 20px;
    background: #2a2a2a;
    border-top: 1px solid #333;
    color: #ccc;
    text-align: center;
}

/* Game Rules Modal Specific */
.rules-list-title {
    color: #fb024c;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
}

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

.list-group-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 8px;
    color: #ccc;
    line-height: 1.5;
}

/* How to Play Modal */
.youtube {
    margin: 20px 0;
}

.embed-responsive {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.embed-responsive-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.steps-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.step h3 {
    background: #fb024c;
    color: #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 20px;
    font-weight: bold;
}

.step-text {
    color: #ccc;
    line-height: 1.5;
}

/* Game Limits Modal */
.limits-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.limit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(251, 2, 76, 0.1);
    border-radius: 10px;
    border-left: 4px solid #fb024c;
}

.limit-label {
    color: #ccc;
    font-weight: 500;
}

.limit-value {
    color: #fb024c;
    font-weight: 600;
    font-size: 18px;
}

/* Provably Fair Modal */
.client-seed,
.server-seed {
    margin: 20px 0;
}

.client-seed-title-main {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fb024c;
    font-weight: 600;
    margin-bottom: 5px;
}

.client-seed-title-sub {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 15px;
}

.client-seed-type {
    margin: 15px 0;
    padding: 15px;
    border: 1px solid #333;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.client-seed-type.active {
    border-color: #fb024c;
    background: rgba(251, 2, 76, 0.1);
}

.key-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #2a2a2a;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.key {
    flex: 1;
    font-family: monospace;
    word-break: break-all;
}

.current {
    color: #fb024c;
}

.btn-change {
    background: #fb024c;
    color: #000;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}

/* Free Bets Modal */
.free-bet-item {
    margin: 20px 0;
}

.cash-block {
    background: rgba(251, 2, 76, 0.1);
    border: 1px solid #fb024c;
    padding: 15px;
    border-radius: 8px;
}

.cash-block.selected {
    background: rgba(251, 2, 76, 0.2);
}

.main-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.radio {
    width: 20px;
    height: 20px;
    border: 2px solid #fb024c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot {
    width: 10px;
    height: 10px;
    background: #fb024c;
    border-radius: 50%;
}

.free-bet-status {
    margin-top: 12px;
    font-size: 0.95rem;
    color: #ccc;
}

.free-bet-status.pending {
    color: #ffc857;
}

.free-bets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    color: #fb024c;
    font-weight: 600;
}

.archive-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #ccc;
}

.content__none {
    text-align: center;
    padding: 40px 20px;
    color: #ccc;
}

.none-text {
    margin-top: 20px;
    font-size: 16px;
}

/* Mobile responsiveness for modals */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 10px;
        max-height: 95vh;
    }

    .modal-dialog.modal-lg,
    .modal-dialog.modal-xl {
        max-width: 100%;
    }

    .steps-container {
        flex-direction: column;
    }

    .limit-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Bet History Table Styles */
.bet-history-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.bet-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.bet-history-table thead {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    position: sticky;
    top: 0;
    z-index: 10;
}

.bet-history-table th {
    padding: 12px 8px;
    text-align: left;
    color: #fb024c;
    font-weight: 600;
    border-bottom: 2px solid #fb024c;
}

.bet-history-table td {
    padding: 10px 8px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bet-row:hover {
    background: rgba(48, 252, 190, 0.05);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.won,
.status-badge.active {
    background: rgba(54, 203, 18, 0.2);
    color: #36cb12;
}

.status-badge.lost {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

.status-badge.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

/* =========================================
   New Dashboard Hero & Grid Styles
   ========================================= */

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/dashboardimg.webp');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fb024c 0%, #ff4081 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(251, 2, 76, 0.3);
}

.hero-text p {
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-cta {
    padding: 16px 32px;
    background: #fb024c;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(251, 2, 76, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(251, 2, 76, 0.4);
    background: #ff1f5a;
}

/* Games Section */
.games-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.section-header h2 {
    font-size: 24px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: #fb024c;
}

.search-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    font-size: 14px;
    width: 200px;
}

.search-bar i {
    color: #888;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.game-card {
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    aspect-ratio: 3/4;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(251, 2, 76, 0.5);
}

.game-card.featured {
    grid-column: auto;
    aspect-ratio: 3/4;
}

.game-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.game-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 ease;
    z-index: 2;
}

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

.play-btn-small {
    background: #fb024c;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.game-card:hover .play-btn-small {
    transform: translateY(0);
}

.game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    z-index: 3;
}

.game-info h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 4px;
}

.game-info span {
    color: #888;
    font-size: 12px;
}

.game-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    z-index: 5;
    color: white;
}

.game-badge.new {
    background: #00c853;
}

.game-badge.popular {
    background: #ff6d00;
}

.game-badge {
    background: #fb024c;
    /* Default HOT style */
}

@media (max-width: 768px) {
    .games-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
    }

    .game-card.featured {
        grid-column: span 2;
    }

    .game-info {
        padding: 10px;
    }

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

    .hero-text h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .hero-section {
        min-height: auto;
        padding: 40px 20px;
        text-align: center;
    }

    .hero-content {
        flex-direction: column;
    }

    .hero-text p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    /* Stack buttons on mobile */
    .hero-cta {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 10px 0 !important;
        /* Override inline margin */
    }

    /* Adjust header for mobile */
    .dashboard-header {
        padding: 10px 15px;
    }

    .user-balance {
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
    }

    .balance-label {
        font-size: 10px;
    }

    .balance-amount {
        font-size: 14px;
    }
}
/* Round Info Modal - Provably Fair Styling */
#round-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#round-info-modal.show {
    display: flex;
}

.round-info-content {
    background: #1a1a1a;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid #333;
}

.round-info-header {
    background: #2a2a2a;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.round-title-section {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #fff;
}

.round-label {
    color: #ccc;
    font-weight: 500;
}

#modal-round-number {
    color: #fff;
    font-weight: 600;
}

.multiplier-badge {
    background: #36cb12;
    color: #000;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
}

.round-time {
    color: #888;
    font-size: 14px;
}

.close-modal {
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #fb024c;
}

.round-info-body {
    padding: 25px;
    color: #fff;
}

.seed-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.seed-section:last-of-type {
    border-bottom: none;
    margin-bottom: 15px;
}

.seed-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.seed-header i {
    color: #ccc;
    font-size: 20px;
    margin-top: 2px;
}

.seed-title {
    flex: 1;
}

.seed-title strong {
    display: block;
    color: #fff;
    font-size: 15px;
    margin-bottom: 4px;
}

.seed-subtitle {
    display: block;
    color: #888;
    font-size: 13px;
}

.seed-value {
    background: #2a2a2a;
    padding: 12px 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #fff;
    word-break: break-all;
    border: 1px solid #333;
}

.player-seeds {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.player-seed-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #2a2a2a;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #333;
    font-size: 13px;
}

.player-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}

.player-label {
    color: #888;
    min-width: 70px;
}

.player-id {
    color: #fff;
    font-weight: 600;
    min-width: 50px;
}

.seed-label {
    color: #888;
    margin-left: auto;
}

.seed-hash {
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.combined-hash {
    background: #2a2a2a;
    padding: 12px 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #fff;
    word-break: break-all;
    border: 1px solid #333;
    margin-bottom: 15px;
}

.hash-result-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: #2a2a2a;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #333;
}

.hash-result-column {
    text-align: center;
}

.hash-result-label {
    color: #888;
    font-size: 12px;
    margin-bottom: 6px;
}

.hash-result-value {
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 600;
}

.result-multiplier {
    color: #36cb12;
    font-size: 16px;
}

.provably-fair-footer {
    text-align: center;
    padding-top: 15px;
    color: #888;
    font-size: 13px;
}

.provably-fair-link {
    color: #fb024c;
    text-decoration: none;
    margin-left: 5px;
    font-weight: 600;
}

.provably-fair-link:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .round-info-content {
        max-width: 100%;
        margin: 10px;
    }

    .round-title-section {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 14px;
    }

    .round-info-body {
        padding: 15px;
    }

    .player-seed-row {
        flex-wrap: wrap;
        font-size: 12px;
    }

    .hash-result-table {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .seed-hash {
        font-size: 11px;
    }
}

/* Connection Status Badge */
.connection-status {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10000;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.connection-status.connected {
    border-color: #00ff00;
    color: #00ff00;
}

.connection-status.connected i {
    color: #00ff00;
    animation: pulse-green 2s infinite;
}

.connection-status.connecting {
    border-color: #ffaa00;
    color: #ffaa00;
}

.connection-status.connecting i {
    color: #ffaa00;
    animation: pulse-orange 1s infinite;
}

.connection-status.disconnected {
    border-color: #ff4444;
    color: #ff4444;
}

.connection-status.disconnected i {
    color: #ff4444;
    animation: pulse-red 1s infinite;
}

.connection-status i {
    font-size: 12px;
}

.connection-status span {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

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

/* Auto-hide for connected status */
.connection-status.auto-hide {
    animation: fadeOut 0.5s ease 3s forwards;
}

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

/* Mobile responsive for connection badge */
@media (max-width: 768px) {
    .connection-status {
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        padding: 6px 12px;
        font-size: 12px;
    }
}
