* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

:root {
    --primary-red: #ff4444;
    --dark-red: #cc0000;
    --bg-dark: #000000;
    --bg-card: #222222;
    --bg-light: rgba(255, 255, 255, 0.05);
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --border-light: rgba(255, 255, 255, 0.1);
    --border-red: rgba(255, 68, 68, 0.3);
    --success-green: #4CAF50;
    --error-red: #ef4444;
}

html, body {
    overflow: auto;
    position: relative;
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.tg-alert {
    position: fixed;
    top: 75px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    width: 90%;
    max-width: 400px;
    animation: slideDown 0.3s ease-out;
}

.tg-alert-content {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-white);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.dice-animation {
    width: 150px;
    height: 150px;
    margin-bottom: 30px;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: var(--bg-light);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--dark-red) 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

.loading-text {
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-gray);
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 100px 15px 80px;
    position: relative;
    min-height: 100vh;
    display: none;
    background: var(--bg-dark);
}

.chat-toggle-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 998;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.chat-toggle-btn:hover {
    background: linear-gradient(135deg, #ff5555 0%, #dd0000 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
}

.chat-toggle-btn:active {
    transform: translateY(0);
}

.chat-modal {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    transition: bottom 0.3s ease;
    height: 70vh;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
    border-bottom: none;
}

.chat-modal.active {
    bottom: 70px;
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

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

.chat-title .online-count {
    font-size: 14px;
    color: var(--success-green);
    font-weight: 500;
}

.chat-close-btn {
    background: var(--bg-light);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.chat-close-btn:hover {
    background: rgba(255, 68, 68, 0.2);
}

.chat-modal .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-right: 10px;
    scroll-behavior: smooth;
}

.chat-modal .chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-modal .chat-messages::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.chat-modal .chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-red) 0%, var(--dark-red) 100%);
    border-radius: 3px;
}

.chat-modal .message {
    display: flex;
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease-out;
}

.chat-modal .message.outgoing {
    flex-direction: row-reverse;
}

.chat-modal .message.outgoing .message-content {
    background: var(--bg-card);
    border-top-right-radius: 5px;
    border-top-left-radius: 15px;
    margin-left: 0;
    margin-right: 10px;
}

.chat-modal .message.incoming .message-content {
    background: var(--bg-light);
    border-top-right-radius: 15px;
    border-top-left-radius: 5px;
}

.chat-modal .message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 18px;
    flex-shrink: 0;
}

.chat-modal .message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.chat-modal .message-content {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 15px;
    margin-left: 10px;
    position: relative;
}

.chat-modal .message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    gap: 15px;
}

.chat-modal .message-sender {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-white);
}

.chat-modal .message-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.chat-modal .message-text {
    color: var(--text-white);
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-modal .chat-input-container {
    padding: 20px;
    border-top: 1px solid var(--border-light);
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-modal .chat-input {
    flex: 1;
    background: var(--bg-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 12px 20px;
    color: var(--text-white);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.chat-modal .chat-input:focus {
    border-color: var(--primary-red);
    background: rgba(255, 255, 255, 0.15);
}

.chat-modal .chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-modal .chat-send-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-modal .chat-send-btn:hover {
    background: #333333;
}

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

.profile-section {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 20px;
    border: 1px solid var(--border-light);
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-info {
    flex: 1;
}

.username {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.user-id {
    font-size: 12px;
    color: var(--text-gray);
}

.balance-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.balance-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
    color: var(--text-gray);
}

.balance-amount {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: var(--primary-red);
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

.currency {
    font-size: 18px;
    margin-left: 5px;
    opacity: 0.9;
    color: var(--text-gray);
}

.balance-actions {
    display: flex;
    gap: 10px;
}

.balance-btn {
    flex: 1;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: white;
    padding: 12px 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.balance-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-deposit {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    border-color: var(--border-red);
}

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

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-white);
}

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

.game-card {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-red);
    cursor: pointer;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.game-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
    border-color: rgba(255, 68, 68, 0.4);
    box-shadow: 0 5px 20px rgba(255, 68, 68, 0.2);
}

.game-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    margin-bottom: 15px;
}

.game-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-white);
}

.game-status {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.game-status.active {
    background: linear-gradient(135deg, var(--success-green), #8BC34A);
    color: white;
}

.game-status.soon {
    background: linear-gradient(135deg, #FF9800, #FF5722);
    color: white;
}

.back-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: white;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.lobby-section {
    text-align: center;
    padding: 20px;
}

.lobby-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-white);
}

.lobby-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.game-type-selector {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.game-type-card {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-type-card.active {
    background: rgba(255, 68, 68, 0.15) !important;
    border-color: rgba(255, 68, 68, 0.4) !important;
}

.game-type-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.game-type-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    border: 1px solid var(--border-light);
}

.game-type-info {
    flex: 1;
    text-align: left;
}

.game-type-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 5px;
}

.game-type-desc {
    font-size: 12px;
    color: var(--text-gray);
}

.game-mode-section {
    display: none;
    margin-top: 20px;
}

.game-mode-section.active {
    display: block;
}

.bet-input-section {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 25px;
    margin: 25px 0;
    border: 1px solid var(--border-light);
}

.bet-label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-white);
    font-size: 16px;
    text-align: center;
}

.bet-input-container {
    position: relative;
    margin-bottom: 20px;
}

.bet-input {
    width: 100%;
    padding: 18px;
    padding-right: 80px;
    background: var(--bg-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: var(--text-white);
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
}

.bet-input:focus {
    outline: none;
    border-color: var(--primary-red);
}

.bet-currency {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-red);
    font-weight: 700;
    font-size: 16px;
}

.quick-bets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.quick-bet-btn {
    padding: 15px;
    background: var(--bg-light);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: var(--text-white);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-bet-btn:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: rgba(255, 68, 68, 0.4);
    transform: translateY(-2px);
}

.lobby-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
    margin: 0 auto;
}

.pvp-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
    margin: 20px auto;
}

.lobby-btn {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    border: 1px solid var(--border-red);
    border-radius: 15px;
    color: white;
    padding: 18px 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.lobby-btn:hover {
    background: linear-gradient(135deg, #ff5555 0%, #dd0000 100%);
    border-color: rgba(255, 68, 68, 0.5);
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--bg-light);
    border-color: var(--border-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.page-subtitle {
    color: var(--text-gray);
    margin-bottom: 30px;
    text-align: center;
    font-size: 14px;
}

.active-games-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.game-item {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.game-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.game-info {
    text-align: left;
    flex: 1;
}

.game-player-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-player-name {
    font-size: 14px;
    color: var(--text-white);
    font-weight: 500;
}

.game-bet-amount {
    font-size: 14px;
    color: var(--primary-red);
    font-weight: 600;
}

.game-time {
    font-size: 12px;
    color: #888888;
}

.join-btn {
    background: rgba(255, 68, 68, 0.3);
    border: 1px solid var(--border-red);
    border-radius: 10px;
    color: var(--text-white);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-left: 15px;
}

.join-btn:hover {
    background: rgba(255, 68, 68, 0.4);
    transform: translateY(-2px);
}

.refresh-section {
    text-align: center;
    margin-top: 30px;
}

.refresh-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-white);
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.refresh-btn-mini {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-white);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn-mini:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(180deg);
}

.game-info-bar {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    background: var(--bg-light);
    border-radius: 12px;
    font-weight: 600;
    color: var(--text-white);
    font-size: 14px;
    border: 1px solid var(--border-light);
}

.players-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    position: relative;
    padding: 0 10px;
}

.player-section {
    text-align: center;
    flex: 1;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid var(--border-light);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    min-height: 280px;
}

.player-section.active {
    background: rgba(255, 68, 68, 0.1);
    border-color: var(--border-red);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
}

.player-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 24px;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.bot-avatar {
    background: #333333;
}

.player-name {
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 12px;
    font-size: 16px;
}

.player-score {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 20px;
}

.player-bot .player-score {
    color: var(--text-gray);
}

.vs-text {
    background: var(--bg-card);
    color: var(--text-white);
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
    min-width: 70px;
    text-align: center;
}

.game-controls-center {
    text-align: center;
    margin: 35px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rolls-counter {
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-white);
    font-size: 18px;
    background: var(--bg-light);
    padding: 12px 20px;
    border-radius: 12px;
    display: inline-block;
    border: 1px solid var(--border-light);
}

.roll-btn-center {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    border: 1px solid var(--border-red);
    border-radius: 20px;
    color: white;
    padding: 20px 45px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    width: auto;
}

.roll-btn-center:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff5555 0%, #dd0000 100%);
    border-color: rgba(255, 68, 68, 0.5);
    transform: translateY(-5px);
}

.roll-btn-center:disabled {
    background: var(--bg-light);
    color: var(--text-gray);
    cursor: not-allowed;
    transform: none;
    border-color: var(--border-light);
}

.dice-roll-single {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.dice-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dice-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.dice-gif {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dice-current-roll {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-red);
    margin-top: 10px;
    min-height: 30px;
}

@keyframes diceRoll {
    0% {
        transform: rotate(0deg) scale(0.8);
        opacity: 0;
    }
    30% {
        transform: rotate(180deg) scale(1.2);
        opacity: 1;
    }
    60% {
        transform: rotate(360deg) scale(1.1);
        opacity: 1;
    }
    80% {
        transform: rotate(450deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: rotate(540deg) scale(1);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .players-container {
        flex-direction: row;
        gap: 10px;
    }
    
    .player-section {
        min-height: 250px;
        padding: 15px 10px;
    }
    
    .player-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .dice-placeholder {
        width: 50px;
        height: 50px;
    }
    
    .player-score {
        font-size: 28px;
    }
    
    .vs-text {
        padding: 8px 15px;
        font-size: 14px;
        min-width: 60px;
    }
    
    .roll-btn-center {
        padding: 18px 35px;
        font-size: 18px;
    }
    
    .quick-bets {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bet-input {
        font-size: 18px;
        padding: 16px;
        padding-right: 70px;
    }
    
    .lobby-title {
        font-size: 24px;
    }
    
    .chat-toggle-btn {
        bottom: 90px;
        right: 15px;
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .game-type-card {
        padding: 15px;
    }
    
    .game-type-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
}

.stat-label {
    font-size: 12px;
    color: var(--text-gray);
    position: relative;
    z-index: 2;
}

.history-tabs {
    display: flex;
    background: var(--bg-light);
    border-radius: 15px;
    padding: 5px;
    margin-bottom: 20px;
}

.history-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.history-tab.active {
    background: rgba(255, 68, 68, 0.15) !important;
    color: var(--text-white);
}

.history-item {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-info {
    text-align: left;
}

.history-game {
    font-size: 14px;
    color: var(--text-white);
    font-weight: 500;
    margin-bottom: 5px;
}

.history-date {
    font-size: 12px;
    color: var(--text-gray);
}

.history-amount {
    font-size: 16px;
    font-weight: 600;
}

.positive {
    color: var(--success-green);
}

.negative {
    color: var(--primary-red);
}

.no-history-container {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-gray);
}

.no-history-icon {
    font-size: 64px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-history-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-white);
    margin-bottom: 8px;
}

.no-history-subtext {
    font-size: 14px;
    opacity: 0.7;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.payment-method {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.payment-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
}

.payment-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.payment-info {
    flex: 1;
}

.payment-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-white);
}

.payment-desc {
    font-size: 12px;
    color: var(--text-gray);
}

.method-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-white);
    line-height: 1.3;
    text-align: left;
}

.amount-card, .details-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
    animation: fadeInUp 0.5s ease-out;
}

.details-card {
    display: none;
}

.amount-input-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.amount-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.amount-input {
    font-size: 2.5rem;
    font-weight: 600;
    width: 150px;
    background: transparent;
    border: none;
    color: var(--text-white);
    text-align: center;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.input-with-copy {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

.input-with-copy input {
    width: 100%;
    padding: 14px 45px 14px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-white);
    font-family: monospace;
    font-size: 0.9rem;
}

.copy-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.copy-icon:hover {
    color: var(--text-white);
}

.keyboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.key {
    height: 52px;
    border-radius: 12px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-white);
}

.key:hover {
    background: rgba(255, 255, 255, 0.08);
}

.continue-btn {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid var(--border-red);
    color: var(--primary-red);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.continue-btn:disabled {
    background: var(--bg-light);
    border-color: var(--border-light);
    color: var(--text-gray);
    cursor: not-allowed;
}

.continue-btn:hover:not(:disabled) {
    background: rgba(255, 68, 68, 0.2);
    transform: translateY(-2px);
}

.details-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-white);
}

.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    display: none;
    animation: fadeInUp 0.3s ease-out;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.detail-row {
    margin-bottom: 20px;
}

.detail-label {
    color: var(--text-gray);
    margin-bottom: 8px;
    display: block;
    font-size: 0.9rem;
}

.warning-text {
    color: var(--error-red);
    font-size: 0.85rem;
    margin-top: 6px;
    display: none;
}

.ri-loader-4-line {
    animation: spin 1s linear infinite;
    color: var(--text-white);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.method-selector {
    margin-top: 20px;
    margin-bottom: 20px;
}

.method-label {
    color: var(--text-gray);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.method-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.method-option {
    flex: 1;
    min-width: 120px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.method-option.active {
    background: rgba(255, 68, 68, 0.15) !important;
    border-color: rgba(255, 68, 68, 0.4) !important;
}

.method-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.method-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
}

.method-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.method-name {
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 500;
}

.wallet-input {
    margin-top: 20px;
}

.wallet-label {
    display: block;
    color: var(--text-gray);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.wallet-address-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-white);
    font-family: monospace;
    font-size: 0.9rem;
    outline: none;
}

.wallet-address-input:focus {
    border-color: var(--border-red);
}

@media (max-width: 480px) {
    .method-title {
        font-size: 1.4rem;
    }
    
    .amount-input {
        font-size: 2rem;
        width: 120px;
    }
    
    .key {
        height: 45px;
        font-size: 1rem;
    }
    
    .continue-btn {
        height: 45px;
        font-size: 0.9rem;
    }
    
    .method-option {
        min-width: 100px;
        padding: 12px;
    }
}

.user-avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 14px;
    color: white;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.user-name-small {
    font-size: 14px;
    color: var(--text-white);
}

.user-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    margin: 5px 0;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.typing-indicator {
    font-size: 12px;
    color: var(--text-gray);
    padding: 5px 15px;
    display: none;
}

.chat-badge {
    background: var(--primary-red);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    display: none;
}

.chat-modal.active ~ .chat-toggle-btn {
    display: none;
}

.chat-modal .chat-messages {
    scroll-behavior: smooth;
    padding-right: 10px;
}

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

.player-turn-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-green);
    margin-left: 5px;
    animation: pulse 1.5s infinite;
}

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

.message-time-spacer {
    flex: 1;
}

.game-play-section {
    text-align: center;
    padding: 10px;
    display: none;
    height: calc(100vh - 140px);
    overflow: hidden;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    z-index: 100;
    border-top: 1px solid var(--border-light);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-modal.active ~ .bottom-nav {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #8e8e93;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
    flex: 1;
    cursor: pointer;
}

.nav-item.active {
    color: var(--primary-red);
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

.nav-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.quick-actions {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.quick-action-btn {
    flex: 1;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: white;
    padding: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.profile-edit-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-edit-btn:hover {
    background: rgba(255, 68, 68, 0.1);
}

.ref-section {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid var(--border-light);
}

.ref-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-white);
}

.ref-code {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid var(--border-light);
}

.ref-code-value {
    font-weight: 700;
    color: var(--primary-red);
    font-family: monospace;
    flex: 1;
}

.ref-copy-btn {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid var(--border-red);
    border-radius: 8px;
    color: var(--primary-red);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ref-copy-btn:hover {
    background: rgba(255, 68, 68, 0.2);
}

.ref-desc {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.ref-earnings {
    font-size: 14px;
    color: var(--success-green);
    font-weight: 600;
}

.edit-form {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--border-light);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-white);
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--border-red);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-red);
}

.form-help {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 5px;
}

.save-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    border: 1px solid var(--border-red);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-btn:hover {
    background: linear-gradient(135deg, #ff5555 0%, #dd0000 100%);
    transform: translateY(-2px);
}

.game-mode-selector {
    display: flex;
    background: var(--bg-light);
    border-radius: 15px;
    padding: 5px;
    margin: 20px 0;
}

.mode-option {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.mode-option.active {
    background: rgba(255, 68, 68, 0.15) !important;
    color: var(--text-white);
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.quick-amount-btn {
    padding: 15px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-white);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-amount-btn:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: rgba(255, 68, 68, 0.4);
    transform: translateY(-2px);
}

.amount-input-custom {
    width: 100%;
    padding: 15px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 18px;
    text-align: center;
    margin-top: 10px;
}

.amount-input-custom:focus {
    outline: none;
    border-color: var(--border-red);
}

.dice-counter {
    font-size: 14px;
    color: var(--text-gray);
    margin: 10px 0;
    font-weight: 500;
}

.top-tabs {
    display: flex;
    background: var(--bg-light);
    border-radius: 15px;
    padding: 5px;
    margin: 20px 0;
}

.top-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.top-tab.active {
    background: rgba(255, 68, 68, 0.15) !important;
    color: var(--text-white);
}

.top-player-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 15px;
    margin-bottom: 10px;
    border: 1px solid var(--border-light);
}

.top-player-rank {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-red);
    min-width: 30px;
}

.top-player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    overflow: hidden;
}

.top-player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-player-info {
    flex: 1;
}

.top-player-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 5px;
}

.top-player-stats {
    font-size: 12px;
    color: var(--text-gray);
}

.top-player-online {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 10px;
    background: rgba(255, 68, 68, 0.1);
}

.top-player-online.online {
    color: var(--success-green);
    background: rgba(76, 175, 80, 0.1);
}

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

.friends-search-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-white);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.friends-search-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.friends-tabs {
    display: flex;
    background: var(--bg-light);
    border-radius: 15px;
    padding: 5px;
    margin-bottom: 20px;
}

.friends-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.friends-tab.active {
    background: rgba(255, 68, 68, 0.15) !important;
    color: var(--text-white);
}

.requests-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-red);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.friend-item, .friend-request-item, .search-user-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 15px;
    margin-bottom: 10px;
    border: 1px solid var(--border-light);
}

.friend-avatar, .friend-request-avatar, .search-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    overflow: hidden;
}

.friend-avatar img, .friend-request-avatar img, .search-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.friend-info, .friend-request-info, .search-user-info {
    flex: 1;
}

.friend-name, .friend-request-name, .search-user-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 5px;
}

.friend-username, .friend-request-username, .search-user-username {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.friend-online, .friend-request-time, .search-user-online {
    font-size: 12px;
    color: var(--text-gray);
}

.friend-online.online, .search-user-online.online {
    color: var(--success-green);
}

.friend-action-btn, .friend-request-btn {
    padding: 8px 15px;
    border-radius: 8px;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.friend-action-btn.remove, .friend-request-btn.decline {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error-red);
}

.friend-action-btn.add {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.friend-action-btn.accept, .friend-request-btn.accept {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.friend-action-btn.pending {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    color: var(--text-gray);
    cursor: not-allowed;
}

.friend-request-actions {
    display: flex;
    gap: 5px;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--border-red);
}

.search-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-white);
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: rgba(255, 68, 68, 0.1);
}

.game-time-ago {
    font-size: 12px;
    color: #888888;
    margin-top: 2px;
}

.game-card.coming-soon {
    opacity: 0.8;
    filter: grayscale(20%);
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-card.coming-soon:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-5px);
}

.game-coming-soon {
    text-align: center;
    padding: 40px 20px;
}

.coming-soon-icon {
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.coming-soon-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-white);
}

.coming-soon-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.coming-soon-features {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.2) 0%, rgba(204, 0, 0, 0.2) 100%);
    border-radius: 20px;
    padding: 25px;
    margin: 30px 0;
    color: white;
}

.feature {
    display: flex;
    align-items: center;
    margin: 15px 0;
    font-size: 16px;
}

.feature i {
    margin-right: 15px;
    font-size: 20px;
    width: 30px;
    color: var(--primary-red);
}

.notify-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.notify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 68, 68, 0.3);
}

.coming-soon-date {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 12px;
    color: var(--text-gray);
    font-size: 14px;
}

.coming-soon-date i {
    margin-right: 10px;
    color: var(--primary-red);
}

.mine-game-section {
    padding: 20px;
    text-align: center;
}

.mine-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 20px 0;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.mine-cell {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mine-cell:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mine-cell.mine {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--error-red);
}

.mine-cell.safe {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
}

.mine-stats {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 15px;
    margin: 20px 0;
    border: 1px solid var(--border-light);
}

.mine-stat-row {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    font-size: 14px;
}

.mine-stat-label {
    color: var(--text-gray);
}

.mine-stat-value {
    color: var(--text-white);
    font-weight: 600;
}

.mine-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.mine-action-btn {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mine-action-btn.cashout {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.mine-action-btn.cashout:hover {
    background: linear-gradient(135deg, #2dd475, #1db954);
    transform: translateY(-2px);
}

.mine-action-btn.quit {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
}

.mine-action-btn.quit:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mine-bet-section {
    margin-bottom: 20px;
}

.mine-bet-input {
    width: 100%;
    padding: 15px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 18px;
    text-align: center;
    margin-top: 10px;
}

.mine-quick-bets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.mine-quick-bet-btn {
    padding: 12px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-white);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mine-quick-bet-btn:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: rgba(255, 68, 68, 0.4);
}
/* --- Added: Mine PvP/Bot mode selector --- */
.game-mode-selector{
    display:flex;
    gap:10px;
    margin:12px 0 16px;
}
.mode-option{
    flex:1;
    border:1px solid rgba(255,255,255,0.12);
    background:rgba(255,255,255,0.06);
    color:#fff;
    padding:10px 12px;
    border-radius:14px;
    font-weight:600;
    font-size:13px;
}
.mode-option.active{
    border-color: rgba(96, 165, 250, 0.9);
    background: rgba(96, 165, 250, 0.18);
}
.lobby-actions{
    display:flex;
    gap:10px;
}
.lobby-btn.btn-secondary{
    background: rgba(255,255,255,0.08);
}
.active-games-list{
    margin-top:12px;
    display:flex;
    flex-direction:column;
    gap:8px;
}
.mine-active-game{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 12px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,0.10);
    background:rgba(0,0,0,0.18);
}
.mine-active-game .title{
    font-weight:600;
    font-size:13px;
}
.mine-active-game .meta{
    opacity:0.75;
    font-size:12px;
}
.mine-cell.mine-select{
    outline:2px dashed rgba(96,165,250,0.75);
}
.mine-cell.mine-hit{
    animation: shake 0.35s linear 1;
}
@keyframes shake {
    0%{transform:translateX(0)}
    25%{transform:translateX(-3px)}
    50%{transform:translateX(3px)}
    75%{transform:translateX(-2px)}
    100%{transform:translateX(0)}
}
