/*
Theme Name: Mining Game Theme
Author: Mining Game Team
Description: A custom WordPress theme for the Mining Game
Version: 1.0.0
License: GPL v2 or later
Text Domain: mining-game
*/

:root {
    --primary: #000000;
    --secondary: #1A73E8;
    --accent: #34A853;
    --danger: #E94235;
    --warning: #F9A825;
    --gold: #FFD700;
    --silver: #C0C0C0;
    --bronze: #CD7F32;
    --background: #0A0A0A;
    --surface: #1A1A1A;
    --border: #2A2A2A;
    --text-primary: #FFFFFF;
    --text-secondary: #AAAAAA;
    --shadow: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.5);
    --glow: 0 0 15px rgba(26, 115, 232, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Roboto', 'Noto Sans Bengali', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

html {
    margin-top: 0 !important;
}

#wpadminbar {
    display: none !important;
}

.main-header {
    background: var(--surface);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.history-toggle {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.history-toggle:hover {
    background: rgba(26, 115, 232, 0.1);
    color: var(--secondary);
}

.history-toggle i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.history-toggle.active i {
    transform: rotate(180deg);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.3s ease;
    min-width: 160px;
}

.logo.hidden {
    opacity: 0;
}

.logo span {
    color: var(--secondary);
}

.header-history-container {
    position: absolute;
    top: 0;
    left: 52px;
    right: 140px;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.header-history-container.active {
    opacity: 1;
    pointer-events: auto;
}

.header-history-scroll {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    height: 100%;
    display: flex;
    align-items: center;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.header-history-scroll::-webkit-scrollbar {
    display: none;
}

.header-history-items {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding-right: 16px;
}

.header-history-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    padding: 2px 6px;
    transition: all 0.3s ease;
    height: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.header-history-coin {
    font-weight: 800;
    font-size: 11px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-balance {
    display: flex;
    align-items: center;
    background: rgba(26, 115, 232, 0.1);
    border: 1px solid var(--secondary);
    padding: 5px 12px;
    font-weight: 700;
    color: var(--secondary);
    font-size: 14px;
}

.header-balance::before {
    content: '৳';
    margin-right: 3px;
    font-weight: 800;
    font-size: 13px;
}

.content-section {
    display: block;
    padding: 60px 0 40px;
    margin-top: 0;
    min-height: calc(100vh - 60px);
}

.mining-game-container {
    max-width: 100%;
    margin: 0;
    padding-top: 0;
}

.mining-stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
    background: var(--surface);
    margin-bottom: 10px;
}

.stats-card {
    background: var(--background);
    padding: 12px;
    border: 1px solid var(--border);
    text-align: center;
}

.stats-title {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-weight: 600;
}

.stats-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 3px;
}

.stats-label {
    font-size: 10px;
    color: var(--text-secondary);
}

.mining-rigs-display {
    background: var(--surface);
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
    height: 240px;
    margin: 0 0 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.rigs-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.mining-rig {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--surface) 0%, #2A2A2A 100%);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.mining-rig.active {
    border-color: var(--secondary);
    box-shadow: var(--glow);
}

.rig-icon {
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.mining-rig.active .rig-icon {
    color: var(--secondary);
    animation: pulse 2s infinite;
}

.rig-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.rig-hashrate {
    font-size: 10px;
    color: var(--accent);
    font-weight: 700;
}

.rig-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--border);
    overflow: hidden;
}

.rig-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    width: 0%;
    transition: width 0.5s ease;
}

.mining-status {
    background: #000000;
    color: #FFFFFF;
    padding: 12px 24px;
    font-weight: 800;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 25px rgba(52, 168, 83, 0.8), inset 0 0 10px rgba(52, 168, 83, 0.3);
    border: 2px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.mining-status.mining-active {
    background: #000000;
    color: #FFFFFF;
    border: 2px solid var(--accent);
    box-shadow: 0 0 30px rgba(52, 168, 83, 0.9), inset 0 0 15px rgba(52, 168, 83, 0.4);
}

.mining-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 168, 83, 0.2), transparent);
    animation: shine 3s infinite;
}

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

.mining-status i {
    color: var(--accent);
    font-size: 20px;
    filter: drop-shadow(0 0 5px var(--accent));
}

.total-hashrate {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 16px 32px;
    font-weight: 800;
    font-size: 36px;
    z-index: 10;
    box-shadow: var(--shadow-hover);
    text-align: center;
    min-width: 140px;
    display: none;
    border: 2px solid var(--secondary);
}

.total-hashrate-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
    font-weight: 600;
}

.game-controls {
    background: var(--background);
    padding: 4px 0 8px;
    box-shadow: none;
    margin: 0;
}

.control-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 10px;
}

.control-panel {
    background: var(--surface);
    padding: 14px 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin: 0;
    border-left: none;
    border-right: none;
}

.control-panel:first-child {
    border-right: 1px solid var(--border);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.panel-title {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.mode-switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mode-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--background);
    padding: 4px;
    border: 1px solid var(--border);
}

.mode-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-btn.active {
    background: var(--secondary);
    color: white;
}

.help-btn {
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 800;
}

.help-btn:hover {
    background: var(--secondary);
    color: white;
}

.menu-btn-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--secondary), #0d5fc1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.menu-btn-fixed:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.deposit-instruction {
    font-size: 12px;
    color: #FF9800;
    margin-top: 10px;
    padding: 5px;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid #FF9800;
    border-radius: 3px;
    text-align: center;
}

.menu-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--surface);
    z-index: 2000;
    transition: right 0.3s ease;
    box-shadow: var(--shadow-hover);
    border-left: 1px solid var(--border);
}

.menu-drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.drawer-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
}

.close-drawer {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-drawer:hover {
    background: var(--danger);
    color: white;
}

.drawer-content {
    height: calc(100vh - 73px);
    overflow-y: auto;
    padding: 16px;
}

.drawer-section {
    margin-bottom: 24px;
}

.drawer-section-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 600;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.drawer-btn {
    width: 100%;
    padding: 12px;
    background: var(--background);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-btn:hover {
    background: var(--secondary);
    color: white;
}

.mini-game-section {
    margin-top: 32px;
}

.dice-game-container {
    background: var(--background);
    padding: 16px;
    border: 1px solid var(--border);
}

.dice-game-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
    text-align: center;
    margin-bottom: 16px;
}

.dice-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.dice {
    font-size: 64px;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.dice-result {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
}

.dice-bet-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.dice-bet-amount {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    color: var(--text-secondary);
}

.dice-bet-amount.active {
    border-color: var(--accent);
    background: rgba(52, 168, 83, 0.1);
    color: var(--accent);
}

.dice-bet-amount::before {
    content: '৳';
    margin-right: 3px;
    font-weight: 800;
}

.dice-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.dice-custom-bet {
    width: 100%;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    text-align: center;
    outline: none;
}

.dice-custom-bet:focus {
    border-color: var(--secondary);
}

.dice-roll-btn {
    padding: 12px;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: white;
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dice-roll-btn:hover {
    background: linear-gradient(135deg, #2e8b57, #0d5fc1);
    transform: translateY(-2px);
}

.dice-roll-btn:disabled {
    background: #444444;
    cursor: not-allowed;
    transform: none;
}

.dice-game-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.dice-rule {
    font-size: 10px;
    color: var(--text-secondary);
    text-align: center;
    padding: 4px;
    background: rgba(26, 115, 232, 0.1);
    border: 1px solid var(--border);
}

.crash-game-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.crash-game-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
    text-align: center;
    margin-bottom: 10px;
}

.crash-game-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #E91E63, #9C27B0);
    color: white;
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.crash-game-btn:hover {
    background: linear-gradient(135deg, #D81B60, #7B1FA2);
    transform: translateY(-2px);
}

.deposit-modal, .withdraw-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.deposit-modal.active, .withdraw-modal.active {
    display: flex;
}

.deposit-content, .withdraw-content {
    background: var(--surface);
    padding: 24px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 2px solid var(--secondary);
    box-shadow: var(--shadow-hover);
}

.deposit-header, .withdraw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.deposit-title, .withdraw-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
}

.close-deposit, .close-withdraw {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-deposit:hover, .close-withdraw:hover {
    background: var(--danger);
    color: white;
}

.deposit-methods, .withdraw-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.deposit-method, .withdraw-method {
    background: var(--background);
    border: 2px solid var(--border);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.deposit-method.active, .withdraw-method.active {
    border-color: var(--secondary);
    background: rgba(26, 115, 232, 0.1);
}

.method-icon {
    font-size: 24px;
    color: var(--secondary);
    margin-bottom: 8px;
}

.method-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.deposit-amounts, .withdraw-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.amount-option {
    background: var(--background);
    border: 2px solid var(--border);
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    color: var(--text-secondary);
}

.amount-option.active {
    border-color: var(--accent);
    background: rgba(52, 168, 83, 0.1);
    color: var(--accent);
}

.amount-option::before {
    content: '৳';
    margin-right: 3px;
    font-weight: 800;
}

.custom-amount-input, .account-number-input, .trx-id-input {
    width: 100%;
    padding: 12px;
    background: var(--background);
    border: 2px solid var(--border);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    outline: none;
}

.custom-amount-input:focus, .account-number-input:focus, .trx-id-input:focus {
    border-color: var(--secondary);
}

.trx-id-input {
    margin-top: 10px;
}

.payment-info {
    background: var(--background);
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--secondary);
    font-size: 14px;
    text-align: center;
    display: none;
}

.payment-info.active {
    display: block;
}

.deposit-action, .withdraw-action {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: white;
    border: none;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deposit-action:hover, .withdraw-action:hover {
    background: linear-gradient(135deg, #2e8b57, #0d5fc1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.help-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

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

.help-content {
    background: var(--surface);
    padding: 24px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 2px solid var(--secondary);
    box-shadow: var(--shadow-hover);
}

.help-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.help-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
}

.close-help {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-help:hover {
    background: var(--danger);
    color: white;
}

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

.help-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-section-content {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.5;
}

.help-list {
    list-style-type: none;
    padding-left: 0;
}

.help-list li {
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}

.help-list li:before {
    content: "•";
    color: var(--secondary);
    position: absolute;
    left: 0;
}

.difficulty-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.difficulty-btn {
    padding: 10px;
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.difficulty-btn.active {
    color: white;
    border-color: currentColor;
}

.difficulty-btn.low.active {
    background: rgba(52, 168, 83, 0.1);
    color: var(--accent);
    border-color: var(--accent);
}

.difficulty-btn.medium.active {
    background: rgba(249, 168, 37, 0.1);
    color: var(--warning);
    border-color: var(--warning);
}

.difficulty-btn.high.active {
    background: rgba(233, 66, 53, 0.1);
    color: var(--danger);
    border-color: var(--danger);
}

.difficulty-icon {
    font-size: 16px;
}

.auto-controls {
    background: var(--background);
    padding: 12px;
    margin-top: 12px;
    display: none;
    border: 1px solid var(--border);
}

.auto-controls.active {
    display: block;
}

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

.auto-setting-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.auto-setting-value {
    font-weight: 700;
    color: var(--secondary);
    font-size: 14px;
}

.slider-container {
    width: 100%;
    margin-top: 8px;
}

.auto-slider {
    width: 100%;
    height: 6px;
    background: var(--border);
    outline: none;
    -webkit-appearance: none;
}

.auto-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--secondary);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: var(--shadow);
}

.auto-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--secondary);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: var(--shadow);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 11px;
    color: var(--text-secondary);
}

.input-container {
    margin-bottom: 15px;
}

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

.amount-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.amount-value {
    font-weight: 800;
    font-size: 20px;
    color: var(--secondary);
}

.amount-value::before {
    content: '৳';
    margin-right: 3px;
    font-weight: 800;
    font-size: 16px;
}

.amount-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.amount-btn {
    background: var(--surface);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.amount-btn:hover {
    background: var(--secondary);
    color: white;
}

.amount-btn.active {
    background: var(--secondary);
    color: white;
}

.amount-btn::before {
    content: '৳';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 800;
    font-size: 14px;
}

.custom-amount-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.amount-controls {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 4px 8px;
    flex: 1;
    height: 56px;
}

.adjust-btn {
    background: var(--background);
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: bold;
}

.adjust-btn:hover {
    background: var(--secondary);
    color: white;
}

.adjust-btn:disabled {
    background: var(--border);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.adjust-btn:disabled:hover {
    background: var(--border);
    color: var(--text-secondary);
}

.amount-display-value {
    flex: 1;
    text-align: center;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    transition: background 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amount-display-value:hover {
    background: rgba(26, 115, 232, 0.1);
}

.amount-display-input {
    width: 100%;
    text-align: center;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 18px;
    border: 2px solid var(--secondary);
    padding: 8px;
    outline: none;
    background: var(--surface);
    display: none;
    height: 100%;
}

.action-btn {
    height: 56px;
    font-weight: 800;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 180px;
    padding: 0;
}

.action-btn.start {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: white;
}

.action-btn.start:hover {
    background: linear-gradient(135deg, #2e8b57, #0d5fc1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.action-btn.start:disabled {
    background: #444444;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.action-btn.mining {
    background: #000000;
    color: #FFFFFF;
    border: 2px solid var(--accent);
    box-shadow: 0 0 20px rgba(52, 168, 83, 0.5);
    animation: miningGlow 2s infinite;
}

@keyframes miningGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(52, 168, 83, 0.5); }
    50% { box-shadow: 0 0 30px rgba(52, 168, 83, 0.8); }
}

.action-btn.auto {
    background: linear-gradient(135deg, var(--secondary), #0d5fc1);
    color: white;
}

.action-btn.auto:hover {
    background: linear-gradient(135deg, #0d5fc1, #094a9d);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.action-btn.stop {
    background: linear-gradient(135deg, var(--danger), #d32f2f);
    color: white;
}

.action-btn.stop:hover {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.profit-amount {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    margin-top: 5px;
    text-align: center;
}

.notification {
    position: fixed;
    top: 60px;
    right: 20px;
    background: var(--surface);
    padding: 15px 20px;
    border: 2px solid var(--accent);
    border-radius: 5px;
    z-index: 3000;
    display: none;
    box-shadow: var(--shadow-hover);
}

.notification.success {
    border-color: var(--accent);
    background: rgba(52, 168, 83, 0.1);
}

.notification.error {
    border-color: var(--danger);
    background: rgba(233, 66, 53, 0.1);
}

.notification.show {
    display: block;
    animation: slideIn 0.3s ease;
}

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

.current-balance-info {
    background: #1a73e8;
    color: white;
    padding: 10px;
    text-align: center;
    margin-bottom: 15px;
    border-radius: 5px;
    font-weight: bold;
}

.locked-control {
    position: relative;
    cursor: not-allowed;
}

.locked-control::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 5;
}

.locked-control::after {
    content: '🔒';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.locked-control:hover::after {
    opacity: 1;
}

.lock-animation {
    animation: lockPulse 0.5s ease;
}

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

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes mining {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.rig-mining {
    background: linear-gradient(-45deg, var(--surface), #2A2A2A, var(--surface), #2A2A2A);
    background-size: 400% 400%;
    animation: mining 3s ease infinite;
}

.market-crash {
    background: linear-gradient(135deg, #ff0000, #8b0000);
    color: white;
    animation: crashWarning 0.5s infinite alternate;
}

@keyframes crashWarning {
    0% { opacity: 1; }
    100% { opacity: 0.7; }
}

@keyframes spin {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1.2); }
    75% { transform: rotate(270deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@media (max-width: 768px) {
    .main-header {
        padding: 10px 12px;
    }
    
    .logo {
        font-size: 20px;
        min-width: 140px;
    }

    .header-history-container {
        left: 48px;
        right: 120px;
    }
    
    .content-section {
        padding: 56px 0 40px;
    }

    .mining-stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 8px;
    }
    
    .stats-card {
        padding: 8px;
    }
    
    .stats-value {
        font-size: 14px;
    }
    
    .stats-title {
        font-size: 10px;
    }
    
    .stats-label {
        font-size: 9px;
    }

    .mining-rigs-display {
        height: 220px;
    }

    .rigs-container {
        gap: 15px;
    }

    .mining-rig {
        width: 100px;
        height: 100px;
    }

    .rig-icon {
        font-size: 28px;
    }

    .mining-status {
        font-size: 20px;
        padding: 10px 20px;
    }

    .total-hashrate {
        font-size: 32px;
        padding: 12px 24px;
        min-width: 120px;
    }

    .game-controls {
        padding: 4px 0 8px;
    }

    .header-balance {
        font-size: 13px;
        padding: 4px 10px;
    }

    .header-history-item {
        min-width: 42px;
        height: 26px;
        padding: 2px 5px;
    }

    .header-history-coin {
        font-size: 10px;
    }

    .control-panels {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .control-panel {
        border-right: none;
        border-left: none;
        border-bottom: none;
    }

    .control-panel:first-child {
        border-right: none;
    }

    .action-btn {
        width: 160px;
        height: 52px;
        font-size: 13px;
    }

    .amount-controls {
        height: 52px;
    }

    .adjust-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .amount-display-value {
        font-size: 17px;
        padding: 6px;
    }

    .amount-display-input {
        font-size: 17px;
        padding: 6px;
    }

    .amount-btn {
        padding: 10px;
        font-size: 15px;
    }

    .menu-btn-fixed {
        width: 50px;
        height: 50px;
        font-size: 22px;
        bottom: 15px;
        right: 15px;
    }

    .menu-drawer {
        width: 280px;
        right: -280px;
    }

    .dice {
        font-size: 56px;
    }

    .dice-result {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 8px 10px;
    }
    
    .logo {
        font-size: 18px;
        min-width: 120px;
    }

    .history-toggle {
        width: 28px;
        height: 28px;
    }

    .header-history-container {
        left: 44px;
        right: 100px;
    }
    
    .header-controls {
        gap: 6px;
    }

    .header-balance {
        font-size: 12px;
        padding: 3px 8px;
    }

    .content-section {
        padding: 52px 0 40px;
    }

    .mining-stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 6px;
    }
    
    .stats-card {
        padding: 6px;
    }
    
    .stats-value {
        font-size: 12px;
    }
    
    .stats-title {
        font-size: 9px;
    }
    
    .stats-label {
        font-size: 8px;
    }

    .mining-rigs-display {
        height: 200px;
    }

    .rigs-container {
        gap: 10px;
    }

    .mining-rig {
        width: 85px;
        height: 85px;
    }

    .rig-icon {
        font-size: 24px;
    }

    .rig-name {
        font-size: 10px;
    }

    .mining-status {
        font-size: 18px;
        padding: 8px 16px;
    }

    .total-hashrate {
        font-size: 28px;
        padding: 10px 20px;
        min-width: 100px;
    }

    .game-controls {
        padding: 4px 0 8px;
    }

    .header-history-item {
        min-width: 38px;
        height: 24px;
        padding: 1px 4px;
    }

    .header-history-coin {
        font-size: 9px;
    }

    .amount-value {
        font-size: 18px;
    }

    .action-btn {
        width: 140px;
        height: 42px;
        font-size: 12px;
    }

    .amount-controls {
        height: 42px;
    }

    .amount-btn {
        padding: 8px;
        font-size: 14px;
    }

    .control-panels {
        gap: 0;
    }

    .adjust-btn {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }

    .amount-display-value {
        font-size: 16px;
        padding: 5px;
    }

    .amount-display-input {
        font-size: 16px;
        padding: 5px;
    }

    .menu-btn-fixed {
        width: 44px;
        height: 44px;
        font-size: 20px;
        bottom: 10px;
        right: 10px;
    }

    .menu-drawer {
        width: 260px;
        right: -260px;
    }

    .dice {
        font-size: 48px;
    }

    .dice-result {
        font-size: 24px;
    }
}