/* Base Styles */
:root {
    --primary: #4a00e0;
    --secondary: #8e2de2;
    --accent: #f9c846;
    --danger: #e74c3c;
    --success: #2ecc71;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --text: #333;
    --text-light: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: var(--text);
    line-height: 1.6;
}

.app-container {
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    position: relative;
    padding-bottom: 70px;
}

.app-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-light);
    padding: 15px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
}

.app-header h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.app-header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--dark);
    font-size: 0.8rem;
    transition: var(--transition);
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    background: var(--primary);
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    display: inline-block;
}

.btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.8rem;
}

/* Home Page Styles */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    text-align: center;
}

.hero-image {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-text h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.feature-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

.feature-card p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

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

.stat-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-card i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-card span:first-of-type {
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.stat-card span:last-of-type {
    font-size: 0.8rem;
    color: #666;
}

/* Game Page Specific Styles */
.game-mode .main-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
}

.game-controls {
    margin-bottom: 10px;
}

.game-board-container {
    flex: 1;
    overflow: auto;
    margin-bottom: 10px;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 10px;
    margin: 0 auto;
    max-width: 400px;
}

.tile {
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: transparent;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
}

.tile::before {
    content: '?';
    position: absolute;
    color: var(--text-light);
    font-weight: 700;
}

.tile.flipped {
    transform: rotateY(180deg);
    color: var(--text-light);
    pointer-events: none;
}

.tile.flipped::before {
    display: none;
}

.tile.diamond {
    background: linear-gradient(135deg, #1abc9c, #16a085);
}

.tile.skull {
    background: linear-gradient(135deg, var(--danger), #c0392b);
}

.betting-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 10px;
}

.bet-btn {
    padding: 8px 12px;
    background: var(--light);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary);
}

.bet-btn:hover, .bet-btn.active {
    background: var(--primary);
    color: var(--text-light);
}

.custom-bet {
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-bet input {
    padding: 8px;
    border: 1px solid var(--primary);
    border-radius: 20px;
    width: 80px;
    text-align: center;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.start-btn {
    background: var(--success);
    color: var(--text-light);
}

.start-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.cashout-btn {
    background: var(--accent);
    color: var(--text);
}

.cashout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.game-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

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

.info-label {
    font-size: 0.8rem;
    color: #666;
}

.info-value {
    font-size: 1rem;
    font-weight: 700;
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

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

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    opacity: 0.8;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
}

/* XP Progress Bar */
.xp-progress {
    width: 100%;
    height: 10px;
    background: #eee;
    border-radius: 5px;
    margin: 10px 0;
    overflow: hidden;
}

.xp-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 5px;
    transition: width 0.5s ease;
}

.xp-text {
    font-size: 0.9rem;
    text-align: center;
    color: #666;
}

/* Enable Sound Button */
.enable-sound-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(45deg, #00f, #8000ff);
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 153, 255, 0.7), 0 0 30px rgba(128, 0, 255, 0.7);
    animation: glow 1.5s infinite alternate;
    transition: transform 0.2s ease;
    z-index: 1000;
}

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

@keyframes glow {
    from {
        box-shadow: 0 0 10px #00f, 0 0 20px #8000ff;
    }
    to {
        box-shadow: 0 0 20px #00f, 0 0 40px #8000ff;
    }
}

/* Profile Page Styles */
.profile-section {
    max-width: 600px;
    margin: 0 auto;
}

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

.avatar-upload {
    margin-bottom: 15px;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
}

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

#avatar-upload {
    display: none;
}

.avatar-upload label {
    display: inline-block;
    padding: 8px 15px;
    background: var(--light);
    color: var(--primary);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.avatar-upload label:hover {
    background: var(--primary);
    color: var(--text-light);
}

.profile-header h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.player-level {
    color: var(--primary);
    font-weight: 600;
}

.profile-form {
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.btn-save {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

.profile-stats {
    margin-bottom: 30px;
}

.profile-stats h3 {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 1.2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.stat-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
}

.achievements-section h3 {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 1.2rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.achievement-card {
    background: #f9f9f9;
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    transition: var(--transition);
}

.achievement-card.locked {
    opacity: 0.6;
    filter: grayscale(80%);
}

.achievement-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.achievement-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.achievement-desc {
    font-size: 0.8rem;
    color: #666;
}

/* Dashboard Styles */
.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.balance-card, .stats-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.balance-card h3, .stats-card h3 {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 1.2rem;
}

.balance-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

.dashboard-section {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.dashboard-section h2 {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 1.2rem;
}

.games-history {
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.game-record {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.game-record:last-child {
    border-bottom: none;
}

.game-date {
    color: #666;
    font-size: 0.9rem;
}

.game-result {
    font-weight: 600;
}

.game-result.won {
    color: var(--success);
}

.game-result.lost {
    color: var(--danger);
}

.game-balance {
    font-size: 0.9rem;
    color: #666;
}

/* Exchange Panel */
.exchange-panel {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.exchange-info {
    margin-bottom: 15px;
}

.exchange-rate {
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    display: inline-block;
    font-weight: 600;
    color: var(--primary);
    margin-top: 10px;
}

.exchange-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.exchange-controls input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.exchange-note {
    font-size: 0.9rem;
    color: #666;
}

/* Coin Packages */
.coins-packages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.coin-package {
    background: #f9f9f9;
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    transition: var(--transition);
}

.coin-package:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.coin-package h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

.coin-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.coin-price {
    color: #666;
    margin-bottom: 15px;
}

/* Leaderboard */
.leaderboard-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.leaderboard-tab {
    padding: 8px 15px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    cursor: pointer;
    color: #666;
    transition: var(--transition);
}

.leaderboard-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.leaderboard-tab:hover {
    color: var(--primary);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.leaderboard-table th, .leaderboard-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.leaderboard-table th {
    background: var(--primary);
    color: white;
}

.leaderboard-table tr:nth-child(even) {
    background: #f9f9f9;
}

.leaderboard-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Daily Bonus Card */
.daily-bonus-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: var(--border-radius);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.bonus-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bonus-info i {
    font-size: 2rem;
}

.bonus-info h3 {
    margin-bottom: 5px;
}

.bonus-streak {
    font-size: 0.9rem;
    color: #666;
}

/* Stake Page Styles */
.stake-section {
    max-width: 600px;
    margin: 0 auto;
}

.current-stake, .stake-options, .custom-stake, .stake-info {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.current-stake h3, .stake-options h3, .custom-stake h3, .stake-info h3 {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 1.2rem;
}

.stake-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
}

.stake-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.stake-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 10px;
}

.stake-btn {
    padding: 10px;
    background: var(--light);
    border: 1px solid var(--primary);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary);
}

.stake-btn:hover, .stake-btn.active {
    background: var(--primary);
    color: var(--text-light);
}

.stake-input {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.stake-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.stake-note {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

.info-card {
    background: #f9f9f9;
    padding: 15px;
    border-radius: var(--border-radius);
}

.info-card p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card p:last-child {
    margin-bottom: 0;
}

.info-card i {
    color: var(--primary);
}

/* Multiplayer Page */
.coming-soon {
    text-align: center;
    padding: 30px 20px;
}

.coming-soon-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.coming-soon h2 {
    margin-bottom: 15px;
    color: var(--dark);
}

.coming-soon p {
    margin-bottom: 15px;
    color: #666;
}

.feature-list {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 20px;
    list-style: none;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list i {
    color: var(--success);
}

.notify-btn {
    margin-top: 20px;
}

/* Chatbot Styles */
.chatbot-icon {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 99;
}

.chatbot-icon:hover {
    transform: scale(1.1);
}

.whatsapp-icon {
    position: fixed;
    bottom: 140px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 99;
}

.whatsapp-icon a {
    color: white;
    font-size: 1.5rem;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--light);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 350px;
    width: 90%;
    position: relative;
    transform: translateY(-50px);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal h2, .modal h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.modal p {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.btn-cancel {
    background: var(--light);
    color: var(--text);
}

/* Chatbot Modal */
.chatbot-modal .modal-content {
    padding: 15px;
}

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

.chatbot-header h3 {
    margin: 0;
    color: var(--primary);
}

.close-chatbot {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-messages {
    height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}

.message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 80%;
    font-size: 0.9rem;
    word-wrap: break-word;
}

.bot-message {
    background: #e6e6e6;
    margin-right: auto;
}

.user-message {
    background: var(--primary);
    color: white;
    margin-left: auto;
}

.chat-input {
    display: flex;
    gap: 8px;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
}

.chat-input button {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

/* Reset Button Styles */
.btn-danger {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-danger i {
    margin-right: 5px;
}

/* Sound Notice Modal Styles */
#sound-notice-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

#sound-notice-modal.active {
  display: flex;
}

#sound-notice-modal .modal-content {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  max-width: 500px;
  width: 90%;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease;
}

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

.modal-header {
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  color: var(--accent);
}

.close-modal {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: 20px;
  text-align: center;
}

.notice-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.modal-body p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.modal-footer {
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
}

#understand-btn {
  background: var(--accent);
  color: var(--dark);
  font-weight: bold;
  padding: 10px 25px;
}

/* Community popup events */
.close-popup {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.popup-body p {
    margin-bottom: 20px;
}

.popup-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.join-btn {
    background: var(--success);
}

.later-btn {
    background: var(--light);
    color: var(--text);
}

/* Daily bonus wheel styles */
.daily-bonus-modal .modal-content {
    max-width: 320px;
    padding: 25px;
    text-align: center;
}

.bonus-wheel {
    width: 250px;
    height: 250px;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    box-shadow: 0 0 0 8px var(--primary), 0 0 20px rgba(0, 0, 0, 0.2);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    transform: rotate(0deg);
}

.wheel-center {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--accent);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: bottom right;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-segment:nth-child(2) {
    transform: rotate(60deg);
    background: #ff7675;
}

.wheel-segment:nth-child(3) {
    transform: rotate(120deg);
    background: #74b9ff;
}

.wheel-segment:nth-child(4) {
    transform: rotate(180deg);
    background: #55efc4;
}

.wheel-segment:nth-child(5) {
    transform: rotate(240deg);
    background: #a29bfe;
}

.wheel-segment:nth-child(6) {
    transform: rotate(300deg);
    background: #ffeaa7;
}

.wheel-segment span {
    position: relative;
    transform: rotate(30deg);
    font-weight: bold;
    color: var(--text);
    font-size: 1.2rem;
}

.spin-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 15px;
}

.spin-btn:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Achievement Modal */
.achievement-modal .modal-content {
    max-width: 300px;
}

.achievement-content {
    margin: 20px 0;
}

.achievement-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

/* Confetti */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f00;
    border-radius: 50%;
    animation: confetti-fall 5s linear forwards;
    z-index: 100;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Dark Theme */
body.dark-theme {
    background-color: #121212;
    color: #f5f5f5;
}

body.dark-theme .app-container {
    background-color: #1e1e1e;
}

body.dark-theme .feature-card,
body.dark-theme .balance-card,
body.dark-theme .stats-card,
body.dark-theme .dashboard-section,
body.dark-theme .current-stake,
body.dark-theme .stake-options,
body.dark-theme .custom-stake,
body.dark-theme .stake-info,
body.dark-theme .achievement-card,
body.dark-theme .game-record,
body.dark-theme .coin-package,
body.dark-theme .info-card,
body.dark-theme .stat-item,
body.dark-theme .exchange-panel {
    background-color: #2d2d2d;
    color: #f5f5f5;
}

body.dark-theme .form-group input,
body.dark-theme .stake-input input,
body.dark-theme .custom-bet input,
body.dark-theme .chat-input input,
body.dark-theme #notify-email,
body.dark-theme .exchange-controls input {
    background-color: #333;
    color: #f5f5f5;
    border-color: #444;
}

body.dark-theme .bottom-nav {
    background-color: #2d2d2d;
}

body.dark-theme .nav-item {
    color: #f5f5f5;
}

body.dark-theme .info-label,
body.dark-theme .stat-label,
body.dark-theme .achievement-desc,
body.dark-theme .xp-text,
body.dark-theme .stake-note,
body.dark-theme .coin-price,
body.dark-theme .game-date,
body.dark-theme .game-balance,
body.dark-theme .exchange-note,
body.dark-theme .bonus-streak {
    color: #bbb;
}

body.dark-theme .theme-btn {
    background: var(--secondary);
}

body.dark-theme .leaderboard-table tr:nth-child(even) {
    background-color: #333;
}

body.dark-theme .leaderboard-table th {
    background-color: var(--secondary);
}

body.dark-theme .exchange-rate {
    background-color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-board {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    }

    .action-buttons {
        flex-wrap: wrap;
    }

    .action-btn {
        flex: 1;
        min-width: 120px;
    }

    .features-section {
        grid-template-columns: 1fr;
    }
    
    .dashboard-summary {
        grid-template-columns: 1fr;
    }
    
    .coins-packages {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .game-board {
        grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
        gap: 6px;
    }

    .bet-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .action-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .bottom-nav span {
        display: none;
    }

    .bottom-nav i {
        font-size: 1.5rem;
    }
    
    .coins-packages {
        grid-template-columns: 1fr 1fr;
    }
    
    .leaderboard-tabs {
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .leaderboard-tab {
        white-space: nowrap;
    }
    
    .game-record {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Footer Styles */
.app-footer {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-light);
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin-bottom: 50px;
    font-size: 0.9rem;
}

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

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.8rem;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
}

/* Remove the fixed positioning from the main content */
.main-content {
    padding-bottom: 20px; /* Regular padding instead of extra space for footer */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 5px;
    }
    
    .app-footer {
        padding: 15px;
    }
}

/* Sound Control (kept from original) */
.sound-control {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    }
