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

body {
    font-family: 'Segoe UI', Barlow, Geneva, Verdana, sans-serif;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../assets/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #1a1a1a; /* Fallback color */
    min-height: 100vh;
    color: white;
    position: relative;
    overflow-x: hidden;
}

/* Background animation container - now transparent to show background image */
#background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: transparent;
    pointer-events: none;
}

/* Beta Notice */
.beta-notice {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.15));
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 0 auto 8px auto;
    max-width: 800px;
    width: calc(100% - 40px);
}

.beta-notice-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #ffc107;
}

.beta-icon {
    font-size: 16px;
    animation: pulse 2s infinite;
}

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

/* Shimmer animation for special buttons */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

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

.beta-text a {
    color: #90EE90;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.beta-text a:hover {
    color: #7CFC00;
    text-decoration: underline;
}

/* Navigation Bar */
.navbar {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-logo h2 {
    color: #90EE90;
    font-size: 24px;
    font-weight: bold;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* Optional: Add hover effect */
.logo-img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.nav-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    position: relative;
}

/* Hide mobile connect button by default */
.mobile-connect-btn {
    display: none;
}

.nav-btn {
    padding: 8px 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    text-decoration: none;
    border: none;
    background: transparent;
    min-width: 100px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    color: white;
}

.source-btn {
    background: transparent;
    color: #666666;
    border: none;
}

.source-btn:hover {
    background: transparent;
    color: white;
    transform: none;
    box-shadow: none;
}

.info-btn {
    background: transparent;
    color: #666666;
    border: none;
}

.info-btn:hover {
    background: transparent;
    color: white;
    transform: none;
    box-shadow: none;
}

.docs-btn {
    background: transparent;
    color: #666666;
    border: none;
}

.docs-btn:hover {
    background: transparent;
    color: white;
    transform: none;
    box-shadow: none;
}

.connect-btn {
    background: #800020;
    color: white;
    opacity: 1 !important;
}

.connect-btn:hover {
    background: #a0002a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.4);
    opacity: 1 !important;
}

.connect-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed;
    transform: none;
}

.connect-btn.connected {
    background: #2d5016;
    opacity: 0.7 !important;
}

.connect-btn.connected:hover {
    background: #3d6e1f;
    opacity: 0.7 !important;
}

.edgeless-btn {
    background: linear-gradient(
        90deg,
        #FFD700 0%,
        #FFA500 25%,
        #FFD700 50%,
        #FFA500 75%,
        #FFD700 100%
    ) !important;
    background-size: 200% 100% !important;
    color: transparent !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    animation: shimmer 2s infinite !important;
    position: relative !important;
}

.edgeless-btn:hover {
    background: linear-gradient(
        90deg,
        #FFFF00 0%,
        #FFD700 25%,
        #FFFF00 50%,
        #FFD700 75%,
        #FFFF00 100%
    ) !important;
    background-size: 200% 100% !important;
    color: transparent !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    border: none !important;
    animation: shimmer 1s infinite !important;
}

.edgeless-btn.active {
    background: transparent !important;
    color: #666666 !important;
    border: none !important;
    box-shadow: none !important;
    animation: none !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
}

.edgeless-btn.active:hover {
    background: transparent !important;
    color: white !important;
    transform: none !important;
    box-shadow: none !important;
    animation: none !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Top Status Display */
#gameStatus {
    max-width: 800px;
    margin: 0 auto 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 50;
    display: flex;
    justify-content: center;
    width: 100%;
}

#gameStatus .status {
    margin: 10px 0;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    width: 100%;
    max-width: 800px;
}

#gameStatus .status.success {
    background: rgba(46, 213, 115, 0.3);
    border: 1px solid #2ed573;
}

#gameStatus .status.error {
    background: rgba(255, 107, 107, 0.3);
    border: 1px solid #ff6b6b;
}

#gameStatus .status.info {
    background: rgba(116, 185, 255, 0.3);
    border: 1px solid #74b9ff;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.connection-status {
    margin-bottom: 20px;
}

.status-card {
    background: rgba(46, 213, 115, 0.2);
    border: 1px solid #2ed573;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    font-weight: bold;
}

.card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    background: #000000;
    border: 1px solid white;
    padding: 12px 25px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    margin: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    background: #333333;
}

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

.btn.confirming {
    background: linear-gradient(45deg, #6c757d, #868e96);
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.btn.confirming:hover {
    background: linear-gradient(45deg, #6c757d, #868e96);
    transform: none;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.btn-secondary {
    background: linear-gradient(45deg, #2d5016, #3d6e1f);
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #3d6e1f, #4d8e2f);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.5);
}

/* Place Bet Button with Green Glow */
#placeBetBtn {
    background: #000000 !important;
    border: 2px solid #90EE90 !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(144, 238, 144, 0.6), 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    font-size: 18px !important;
    padding: 16px 25px !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
}

#placeBetBtn:hover {
    background: #1a1a1a !important;
    box-shadow: 0 0 25px rgba(144, 238, 144, 0.8), 0 6px 20px rgba(0, 0, 0, 0.5) !important;
    transform: translateY(-2px) !important;
    border-color: #7CFC00 !important;
}

#placeBetBtn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: 0 0 10px rgba(144, 238, 144, 0.3), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

#placeBetBtn.confirming {
    background: linear-gradient(45deg, #6c757d, #868e96) !important;
    border-color: #6c757d !important;
    box-shadow: 0 0 10px rgba(108, 117, 125, 0.5), 0 2px 8px rgba(108, 117, 125, 0.3) !important;
    opacity: 0.8 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

#placeBetBtn.confirming:hover {
    background: linear-gradient(45deg, #6c757d, #868e96) !important;
    transform: none !important;
    box-shadow: 0 0 10px rgba(108, 117, 125, 0.5), 0 2px 8px rgba(108, 117, 125, 0.3) !important;
}

/* Glow effect for Buy $WIN button with shimmer */
.nav-btn.glow {
    background: linear-gradient(
        90deg,
        #228B22 0%,
        #32CD32 25%,
        #228B22 50%,
        #32CD32 75%,
        #228B22 100%
    ) !important;
    background-size: 200% 100% !important;
    border: none !important;
    color: transparent !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    animation: shimmer 2s infinite !important;
    position: relative !important;
}

.nav-btn.info-btn.glow:hover {
    background: linear-gradient(
        90deg,
        #90EE90 0%,
        #7CFC00 25%,
        #90EE90 50%,
        #7CFC00 75%,
        #90EE90 100%
    ) !important;
    background-size: 200% 100% !important;
    color: transparent !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    border: none !important;
    animation: shimmer 1s infinite !important;
}

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

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.balance-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.balance-item {
    text-align: center;
    min-width: 120px; /* Fixed width to prevent movement */
    flex: 1;
}

.balance-amount {
    font-size: 14px;
    font-weight: normal;
    color: white;
    min-height: 30px; /* Fixed height to prevent vertical movement */
    display: flex;
    align-items: center;
    justify-content: center;
}

#rollBalance {
    font-size: 14px !important;
    font-weight: normal !important;
    color: white !important;
}

.bet-amount-section {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.bet-limits-display {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.min-bet-display {
    font-size: 14px;
    color: #90EE90;
    opacity: 0.8;
}

.max-bet-display {
    font-size: 14px;
    color: #90EE90;
    opacity: 0.8;
}

.bet-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.bet-input-row input {
    flex: 1;
    background: #000000 !important;
    border: 2px solid white !important;
    color: white !important;
    font-size: 18px !important;
    padding: 16px !important;
    border-radius: 8px !important;
    font-weight: bold;
    text-align: center;
}

.bet-input-row input:focus {
    outline: none;
    border-color: #90EE90 !important;
    box-shadow: 0 0 10px rgba(144, 238, 144, 0.5);
}

.bet-input-row input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    font-weight: normal;
}

.bet-control-btn {
    background: linear-gradient(45deg, #4a5568, #2d3748);
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 60px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bet-control-btn:hover {
    background: linear-gradient(45deg, #2d3748, #1a202c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.bet-control-btn:active {
    transform: translateY(0);
}

.bet-control-btn.double {
    background: linear-gradient(45deg, #38a169, #2f855a);
}

.bet-control-btn.double:hover {
    background: linear-gradient(45deg, #2f855a, #276749);
}

.bet-control-btn.half {
    background: linear-gradient(45deg, #e53e3e, #c53030);
}

.bet-control-btn.half:hover {
    background: linear-gradient(45deg, #c53030, #9c2626);
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-top: 15px;
}

.quick-amount-btn {
    background: #000000;
    border: 1px solid white;
    padding: 10px 8px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.quick-amount-btn:hover {
    background: #333333;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.quick-amount-btn:active {
    transform: translateY(0);
}

.quick-amounts-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    text-align: center;
}

.status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

.status.success {
    background: rgba(46, 213, 115, 0.3);
    border: 1px solid #2ed573;
}

.status.error {
    background: rgba(255, 107, 107, 0.3);
    border: 1px solid #ff6b6b;
}

.status.info {
    background: rgba(116, 185, 255, 0.3);
    border: 1px solid #74b9ff;
}

.bet-history {
    max-height: 400px;
    overflow-y: auto;
}

.bet-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bet-details {
    flex: 1;
}

.bet-result {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 15px;
}

.bet-result.win {
    background: #2ed573;
    color: white;
}

.bet-result.lose {
    color: white;
}

.bet-result.pending {
    background: #ffa502;
    color: white;
}

.bet-result.error {
    background: #ff4757;
    color: white;
}

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

.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: #90EE90;
}

.loading {
    text-align: center;
    opacity: 0.7;
    font-style: italic;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 8px;
    margin: 10px 0;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #90EE90, #7CFC00);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Hamburger Menu Button */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Sidebar Styles */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    color: white;
    margin: 0;
    font-size: 18px;
}

.sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.sidebar-btn {
    background: transparent;
    border: none;
    padding: 15px 20px;
    color: #666666;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    text-decoration: none;
    text-align: left;
    display: block;
    font-family: 'Segoe UI', Barlow, Geneva, Verdana, sans-serif;
    width: 100%;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}


.sidebar-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: none;
    box-shadow: none;
    color: white;
}

/* Green glow styling for Buy $WIN button in sidebar with shimmer */
.sidebar-btn.glow,
#sidebarBuyTokenBtn {
    background: linear-gradient(
        90deg,
        #90EE90 0%,
        #7CFC00 25%,
        #90EE90 50%,
        #7CFC00 75%,
        #90EE90 100%
    ) !important;
    background-size: 200% 100% !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: transparent !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    animation: shimmer 2s infinite !important;
    position: relative !important;
}

.sidebar-btn.glow:hover,
#sidebarBuyTokenBtn:hover {
    background: rgba(144, 238, 144, 0.15) !important;
    color: #90EE90 !important;
    box-shadow: none !important;
    transform: none !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    animation: none !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
}

.sidebar-btn.connect-btn {
    background: #800020;
    border-color: #800020;
}

.sidebar-btn.connect-btn:hover {
    background: #a0002a;
}

.sidebar-btn.connect-btn.connected {
    background: #2d5016;
    opacity: 0.7;
}

.sidebar-btn.connect-btn.connected:hover {
    background: #3d6e1f;
    opacity: 0.7;
}

/* Desktop/Mobile Layout Control */
.desktop-only {
    display: block;
}

.mobile-nav {
    display: none;
}

/* Mobile Connect Button - hidden by default */
.mobile-connect-btn {
    display: none;
    background: #800020;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.mobile-connect-btn:hover {
    background: #a0002a;
}

.mobile-connect-btn.connected {
    background: #2d5016;
    opacity: 0.7;
}

/* Mobile Chain Toggle */
.mobile-chain-toggle-container {
    display: none;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.mobile-chain-toggle-container .toggle-label {
    position: absolute;
    top: -25px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

.mobile-chain-toggle-container .chain-toggle {
    position: relative;
    width: 80px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px;
    overflow: hidden;
}

.mobile-chain-toggle-container .chain-toggle:hover {
    border-color: #90EE90;
    transform: scale(1.05);
}

.mobile-chain-toggle-container .chain-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-chain-toggle-container .chain-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(1.2);
}

.mobile-chain-toggle-container .toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 28px;
    height: 28px;
    background: linear-gradient(45deg, #90EE90, #7CFC00);
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(144, 238, 144, 0.4);
}

/* Base state (default) */
.mobile-chain-toggle-container .chain-toggle.base .toggle-slider {
    transform: translateX(0);
}

.mobile-chain-toggle-container .chain-toggle.base #mobileBaseIcon {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.mobile-chain-toggle-container .chain-toggle.base #mobileHyperevmIcon {
    opacity: 0.3;
}

/* HyperEVM state */
.mobile-chain-toggle-container .chain-toggle.hyperevm .toggle-slider {
    transform: translateX(40px);
}

.mobile-chain-toggle-container .chain-toggle.hyperevm #mobileHyperevmIcon {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.mobile-chain-toggle-container .chain-toggle.hyperevm #mobileBaseIcon {
    opacity: 0.3;
}

/* Gold Edgeless Button in Sidebar with shimmer */
.sidebar-edgeless-btn {
    background: linear-gradient(
        90deg,
        #FFD700 0%,
        #FFA500 25%,
        #FFD700 50%,
        #FFA500 75%,
        #FFD700 100%
    ) !important;
    background-size: 200% 100% !important;
    color: transparent !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-family: 'Segoe UI', Barlow, Geneva, Verdana, sans-serif !important;
    padding: 15px 20px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 16px !important;
    text-decoration: none !important;
    text-align: left !important;
    display: block !important;
    width: 100% !important;
    margin-bottom: 10px !important;
    animation: shimmer 2s infinite !important;
    position: relative !important;
}

.sidebar-edgeless-btn:hover {
    background: rgba(255, 215, 0, 0.15) !important;
    color: #FFD700 !important;
    box-shadow: none !important;
    transform: none !important;
    border: none !important;
    animation: none !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
}

.sidebar-edgeless-btn.active {
    background: transparent !important;
    color: #666666 !important;
    border: none !important;
    box-shadow: none !important;
    animation: none !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.sidebar-edgeless-btn.active:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: white !important;
    transform: none !important;
    box-shadow: none !important;
    animation: none !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
}

/* Sidebar Sections */
.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-section-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sidebar Game Selection */
.sidebar-game-selection {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-game-btn {
    background: transparent;
    border: none;
    color: #666666;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: bold;
    text-align: left;
    font-family: 'Segoe UI', Barlow, Geneva, Verdana, sans-serif;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-game-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: none;
    box-shadow: none;
    color: white;
}

.sidebar-game-btn.active {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: white;
    box-shadow: none;
    transform: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}


/* Desktop Left Sidebar (integrated with navbar style) */
.desktop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 50;
    display: none;
    overflow-y: auto;
}

.desktop-sidebar-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Desktop Sidebar Logo */
.desktop-sidebar-logo {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
}

.sidebar-logo-img {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.sidebar-logo-img:hover {
    opacity: 1;
}

.desktop-sidebar-section {
    margin-bottom: 25px;
}

.desktop-sidebar-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.desktop-game-selection {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.desktop-game-btn {
    background: transparent;
    border: none;
    color: #666666;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    font-family: 'Segoe UI', Barlow, Geneva, Verdana, sans-serif;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}


.desktop-game-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: none;
    box-shadow: none;
    color: white;
    text-decoration: none;
}

/* Remove underlines from Play Games links */
.desktop-game-btn,
.sidebar-btn[href="index.html"] {
    text-decoration: none !important;
}

.desktop-game-btn:hover,
.sidebar-btn[href="index.html"]:hover {
    text-decoration: none !important;
}

.desktop-game-btn.active {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: white;
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.desktop-game-btn.active:last-child {
    border-bottom: none;
}

.desktop-game-btn.active:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    transform: none;
    border: none;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.desktop-game-btn.active:last-child:hover {
    border-bottom: none;
}

/* Desktop Sidebar Navigation Buttons */
.desktop-sidebar-btn {
    background: transparent;
    border: none;
    color: #666666;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    font-family: 'Segoe UI', Barlow, Geneva, Verdana, sans-serif;
    text-decoration: none;
    display: block;
    width: 100%;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.desktop-sidebar-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: none;
    box-shadow: none;
    color: white;
}

/* Green glow styling for Buy $WIN button in desktop sidebar with shimmer */
.desktop-sidebar-btn-glow {
    background: linear-gradient(
        90deg,
        #90EE90 0%,
        #7CFC00 25%,
        #90EE90 50%,
        #7CFC00 75%,
        #90EE90 100%
    ) !important;
    background-size: 200% 100% !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: transparent !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    animation: shimmer 2s infinite !important;
    position: relative !important;
}

.desktop-sidebar-btn-glow:hover {
    background: rgba(144, 238, 144, 0.15) !important;
    color: #90EE90 !important;
    box-shadow: none !important;
    transform: none !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    animation: none !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
}

/* Gold Edgeless Button in Desktop Sidebar with shimmer */
.desktop-sidebar-edgeless-btn {
    background: linear-gradient(
        90deg,
        #FFD700 0%,
        #FFA500 25%,
        #FFD700 50%,
        #FFA500 75%,
        #FFD700 100%
    ) !important;
    background-size: 200% 100% !important;
    color: transparent !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    animation: shimmer 2s infinite !important;
    position: relative !important;
}

.desktop-sidebar-edgeless-btn:hover {
    background: rgba(255, 215, 0, 0.15) !important;
    color: #FFD700 !important;
    box-shadow: none !important;
    transform: none !important;
    border: none !important;
    animation: none !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
}

.desktop-sidebar-edgeless-btn.active {
    background: transparent !important;
    color: #666666 !important;
    border: none !important;
    box-shadow: none !important;
    animation: none !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.desktop-sidebar-edgeless-btn.active:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: white !important;
    transform: none !important;
    box-shadow: none !important;
    animation: none !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
}

/* Connect Button in Desktop Sidebar */
.desktop-sidebar-connect-btn {
    background: #800020 !important;
    border-color: #800020 !important;
}

.desktop-sidebar-connect-btn:hover {
    background: #a0002a !important;
}

.desktop-sidebar-connect-btn.connected {
    background: #2d5016 !important;
    border-color: #2d5016 !important;
    color: white !important;
}

.desktop-sidebar-connect-btn.connected:hover {
    background: #3d6e1f !important;
    border-color: #3d6e1f !important;
}

/* Show desktop sidebar on medium screens and hide top nav buttons */
@media (min-width: 768px) and (max-width: 1024px) {
    .desktop-sidebar {
        display: flex;
        flex-direction: column;
    }
    
    /* Hide desktop logo in navbar when sidebar is shown */
    .nav-logo.desktop-only {
        display: none !important;
    }
    
    /* Show navigation buttons on medium screens - connect wallet moves to top bar */
    .nav-buttons {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        width: 100% !important;
        position: relative !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Hide left side buttons on medium screens - they stay in sidebar */
    .nav-buttons-left {
        display: none !important;
    }
    
    /* Show only connect button on right side for medium screens */
    .nav-buttons-right {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }
    
    /* Style for Connect Wallet button on medium screens */
    .nav-btn.connect-btn {
        margin: 0 !important;
        padding: 8px 12px !important;
        font-size: 13px !important;
        min-width: 150px !important;
        max-width: 150px !important;
        width: 150px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    
    /* Adjust navbar to account for sidebar */
    .navbar {
        margin-left: 250px;
    }
    
    /* Navigation container - show connect button on right for medium screens */
    .nav-container {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding: 15px 30px !important;
        width: 100% !important;
        position: relative !important;
    }
    
    /* Hide connect button from desktop sidebar on medium screens */
    .desktop-sidebar-connect-btn {
        display: none !important;
    }
    
    /* Mobile-style bet input layout for medium screens */
    .bet-input-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .bet-input-row input {
        width: 100%;
        flex-basis: 100%;
        order: 1;
    }

    .bet-control-btn {
        flex: 1;
        font-size: 12px;
        padding: 10px 8px;
        min-width: 0;
        order: 2;
    }
    
    /* Adjust main content to account for sidebar */
    .container {
        margin-left: 250px;
        margin-right: 0;
        max-width: none;
        width: calc(100vw - 250px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 20px 20px 20px 20px;
        min-height: calc(100vh - 120px);
    }
    
    /* Center the cards within the available space */
    .container .card,
    .container .token-lock-section {
        max-width: 800px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Adjust status display */
    #gameStatus {
        margin-left: 250px;
        max-width: calc(800px);
    }
}

/* Show desktop sidebar and top nav buttons on wide screens */
@media (min-width: 1025px) {
    .desktop-sidebar {
        display: flex;
        flex-direction: column;
    }
    
    /* Hide navigation section in sidebar on wide screens - buttons are in top bar */
    .desktop-sidebar .desktop-sidebar-section:has(.desktop-sidebar-btn) {
        display: none !important;
    }
    
    /* Hide desktop logo in navbar when sidebar is shown */
    .nav-logo.desktop-only {
        display: none !important;
    }
    
    /* Adjust navbar to account for sidebar */
    .navbar {
        margin-left: 250px;
    }
    
    /* Navigation container - full width for buttons only */
    .nav-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 15px 30px !important;
        width: 100% !important;
        position: relative !important;
    }
    
    /* Navigation buttons layout - left buttons on left, connect on right */
    .nav-buttons {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        position: relative !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Left side buttons group - stick to left edge */
    .nav-buttons-left {
        display: flex !important;
        gap: 12px !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
    }
    
    /* Right side button - stick to right edge */
    .nav-buttons-right {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }
    
    /* Style for left buttons - proper sizing for text */
    .nav-btn.info-btn,
    .nav-btn.docs-btn, 
    .nav-btn.source-btn,
    .nav-btn.edgeless-btn {
        margin: 0 !important;
        padding: 8px 12px !important;
        font-size: 13px !important;
        min-width: 110px !important;
        max-width: 110px !important;
        width: 110px !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        overflow: hidden !important;
        flex-shrink: 0 !important;
    }
    
    /* Style for Connect Wallet button - proper sizing for text */
    .nav-btn.connect-btn {
        margin: 0 !important;
        padding: 8px 12px !important;
        font-size: 13px !important;
        min-width: 150px !important;
        max-width: 150px !important;
        width: 150px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    
    /* Adjust main content to account for sidebar */
    .container {
        margin-left: 250px;
        margin-right: 0;
        max-width: none;
        width: calc(100vw - 250px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 20px 20px 20px 20px;
        min-height: calc(100vh - 120px);
    }
    
    /* Center the cards within the available space */
    .container .card,
    .container .token-lock-section {
        max-width: 800px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Adjust status display */
    #gameStatus {
        margin-left: 250px;
        max-width: calc(800px);
    }
}

/* Responsive design for mobile screens only */
@media (max-width: 767px) {
    /* Hide desktop elements */
    .desktop-only {
        display: none !important;
    }

    /* Show mobile navigation */
    .mobile-nav {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .nav-container {
        padding: 15px 20px;
    }

    /* Mobile logo styling - positioned in center */
    .mobile-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
    }

    .mobile-logo .logo-img {
        height: 48px;
        max-width: 200px;
    }

    /* Show hamburger menu on mobile - positioned on left */
    .hamburger-btn {
        display: flex !important;
        order: 1;
        z-index: 1002;
    }

    /* Show mobile chain toggle - positioned between hamburger and logo */
    .mobile-chain-toggle-container {
        display: flex !important;
        order: 2;
        z-index: 1002;
        align-items: center;
        justify-content: center;
    }

    /* Mobile logo - positioned in center but not absolutely */
    .mobile-logo {
        position: static;
        transform: none;
        order: 3;
        flex: 1;
        display: flex;
        justify-content: center;
    }

    /* Show mobile connect button - positioned on right */
    .mobile-connect-btn {
        display: block !important;
        order: 4;
        z-index: 1002;
    }

    /* Hide desktop navigation buttons on mobile */
    .nav-buttons {
        display: none !important;
    }

    .balance-info {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .balance-item {
        flex: 1;
        min-width: 0;
    }

    .token-toggle-container {
        flex-shrink: 0;
    }

    .bet-input-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .bet-input-row input {
        width: 100%;
        flex-basis: 100%;
        order: 1;
    }

    .bet-control-btn {
        flex: 1;
        font-size: 12px;
        padding: 10px 8px;
        min-width: 0;
        order: 2;
    }

    .bet-amount-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .quick-amounts {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile responsive adjustments for very narrow screens */
@media (max-width: 360px) {
    .mobile-chain-toggle-container .chain-toggle {
        width: 70px !important;
        height: 35px !important;
    }
    
    .mobile-chain-toggle-container .chain-icon {
        width: 25px !important;
        height: 25px !important;
    }
    
    .mobile-chain-toggle-container .chain-icon img {
        width: 18px !important;
        height: 18px !important;
    }
    
    .mobile-chain-toggle-container .toggle-slider {
        width: 25px !important;
        height: 25px !important;
    }
    
    .mobile-chain-toggle-container .chain-toggle.hyperevm .toggle-slider {
        transform: translateX(33px) !important;
    }
}

@media (max-width: 320px) {
    .mobile-chain-toggle-container .chain-toggle {
        width: 65px !important;
        height: 32px !important;
    }
    
    .mobile-chain-toggle-container .chain-icon {
        width: 22px !important;
        height: 22px !important;
    }
    
    .mobile-chain-toggle-container .chain-icon img {
        width: 16px !important;
        height: 16px !important;
    }
    
    .mobile-chain-toggle-container .toggle-slider {
        width: 22px !important;
        height: 22px !important;
        top: 5px !important;
        left: 5px !important;
    }
    
    .mobile-chain-toggle-container .chain-toggle.hyperevm .toggle-slider {
        transform: translateX(30px) !important;
    }
}


.last-bet-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    margin: 10px 0;
}

.last-bet-result.win {
    background: rgba(46, 213, 115, 0.2);
    border: 1px solid #2ed573;
}

.last-bet-result.lose {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid #ff6b6b;
}

.last-bet-result.pending {
    background: rgba(255, 165, 2, 0.2);
    border: 1px solid #ffa502;
}

.last-bet-details {
    flex: 1;
}

.last-bet-game {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.last-bet-choice {
    font-size: 14px;
    opacity: 0.9;
}

.last-bet-amount {
    text-align: right;
    font-weight: bold;
    font-size: 18px;
}

.last-bet-amount.win {
    color: #2ed573;
}

.last-bet-amount.lose {
    color: #ff6b6b;
}

.last-bet-amount.pending {
    color: #ffa502;
}


/* WIN Promotion Message */
.win-promotion-message {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.1));
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    margin: 10px 0;
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    color: #ffc107;
    box-shadow: 0 1px 4px rgba(255, 193, 7, 0.15);
    opacity: 0.9;
}

/* Token Address Display */
.token-address-display {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.token-address-header {
    margin-bottom: 10px;
}

.token-address-header label {
    font-size: 14px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
}

.token-address-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.token-address-text {
    flex: 1;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 10px 12px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #90EE90;
    word-break: break-all;
    min-height: 20px;
    display: flex;
    align-items: center;
}

.copy-address-btn {
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid rgba(46, 213, 115, 0.3);
    color: #2ed573;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-address-btn:hover {
    background: rgba(46, 213, 115, 0.2);
    border-color: rgba(46, 213, 115, 0.5);
    transform: translateY(-1px);
}

.copy-address-btn.copied {
    background: rgba(46, 213, 115, 0.3);
    border-color: #2ed573;
    color: #fff;
}

.copy-icon {
    width: 16px;
    height: 16px;
    transition: opacity 0.2s ease;
    opacity: 0.8;
}

.copy-address-btn:hover .copy-icon {
    opacity: 1;
}

.copy-address-btn.copied .copy-icon {
    opacity: 1;
}

.copy-address-btn.copied {
    background: #2ed573;
    border-color: #2ed573;
}

.copy-address-btn.copied:hover {
    background: #26d065;
}

/* Token Lock Section */
.token-lock-section {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Social Media Links */
.social-media-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(1.2);
    transition: filter 0.3s ease;
}

.social-link:hover .social-icon {
    filter: brightness(1.5);
}

/* X (Twitter) specific styling */
.social-link[href*="x.com"]:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Telegram specific styling */
.social-link[href*="t.me"]:hover {
    background: rgba(42, 171, 238, 0.2);
    border-color: rgba(42, 171, 238, 0.5);
}

/* Social Top Images */
.social-top-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 8px;
    padding: 10px 0;
}

.social-top-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: brightness(1.1);
    opacity: 0.9;
}

.social-top-icon-large {
    width: 110px;
    height: 110px;
    object-fit: contain;
    filter: brightness(1.1);
    opacity: 0.9;
}

/* Mobile Sidebar Social Footer */
.sidebar-social-footer {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-shrink: 0;
    margin-top: auto;
}

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

/* Desktop Sidebar Social Footer */
.desktop-sidebar-social-footer {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-shrink: 0;
    margin-top: auto;
}

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

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

.message-modal-overlay.show {
    display: flex;
}

.message-modal {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

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

.message-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.message-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

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

.message-modal-content {
    padding: 25px;
}

.message-modal-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}
