* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
}

.game-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 10px;
    gap: 10px;
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 18px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header h1 .telegram-link {
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.75em;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.header h1 .telegram-link:hover {
    color: #3b82f6;
    opacity: 1;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}

.row-1 {
    display: flex;
    gap: 10px;
    align-items: center;
}

.trade-controls-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
}

.trade-controls-row .btn-trade,
.trade-controls-row .btn-auto {
    width: auto;
    min-width: 150px;
    margin-bottom: 0;
}

.trade-controls-row .auto-speed {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trade-controls-row .auto-speed label {
    margin-bottom: 0;
    font-size: 11px;
    white-space: nowrap;
}

.header-stats {
    display: flex;
    gap: 10px;
}

.row-2 {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 10px;
    flex: 1;
    min-height: 0;
    overflow: visible;
    align-items: start;
}

.row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.recent-trades {
    background: rgba(30, 41, 59, 0.8);
    padding: 10px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.recent-trades h3 {
    margin-bottom: 8px;
    font-size: 13px;
    color: #60a5fa;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-label {
    display: block;
    font-size: 10px;
    opacity: 0.8;
    margin-bottom: 3px;
}

.stat-value {
    display: block;
    font-size: 14px;
    font-weight: bold;
}

.profit {
    color: #4ade80;
}

.loss {
    color: #f87171;
}


.settings-panel, .stats-panel, .chart-panel {
    background: rgba(30, 41, 59, 0.8);
    padding: 10px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: visible;
    min-height: fit-content;
}

.action-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-top: 10px;
    grid-auto-rows: min-content;
}

.settings-panel h3, .stats-panel h3, .chart-panel h3 {
    margin-bottom: 8px;
    font-size: 13px;
    color: #60a5fa;
}

.setting-group {
    margin-bottom: 8px;
}

.setting-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    opacity: 0.9;
}

.setting-group input[type="range"] {
    width: 100%;
    margin-bottom: 3px;
}

.setting-group input[type="number"], .setting-group select {
    width: 100%;
    padding: 6px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(15, 23, 42, 0.8);
    color: white;
    font-size: 12px;
}

.setting-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.center-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

.btn-trade, .btn-auto, .btn-reset {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.btn-long {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-long:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.btn-long:active {
    transform: translateY(0);
}

.btn-auto {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-auto.active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-reset, .btn-report, .btn-save-profit, .btn-close-account {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    margin-top: 6px;
    padding: 8px;
    font-size: 12px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: bold;
}

.btn-large {
    padding: 12px;
    font-size: 14px;
    font-weight: bold;
}

.btn-report {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.btn-report:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.btn-save-profit {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-save-profit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.btn-close-account {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-close-account:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

.auto-speed {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auto-speed label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
}

.trade-animation-container {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 10px;
    padding: 10px;
    flex: 1;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chart-area {
    width: 100%;
    height: 100%;
    flex: 1;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(96, 165, 250, 0.3);
    min-height: 150px;
}

#candle-chart {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.chart-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    opacity: 0.3;
    user-select: none;
    z-index: 1;
}

.price-line {
    display: none;
}

.trade-indicator {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.trade-indicator.active {
    opacity: 1;
    animation: pulse 1s ease-in-out;
}

.trade-indicator.win {
    background: radial-gradient(circle, #4ade80, #22c55e);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.8);
}

.trade-indicator.loss {
    background: radial-gradient(circle, #f87171, #ef4444);
    box-shadow: 0 0 20px rgba(248, 113, 113, 0.8);
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.5); }
}

.result-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.result-popup.show {
    animation: popupShow 1.5s ease-out;
}

.result-popup.win {
    color: #4ade80;
}

.result-popup.loss {
    color: #f87171;
}

@keyframes popupShow {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

.recent-trades {
    background: rgba(30, 41, 59, 0.8);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
    overflow-y: auto;
}

.recent-trades h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #60a5fa;
}

.trades-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 150px;
    overflow-y: auto;
}

.trade-item {
    background: rgba(15, 23, 42, 0.6);
    padding: 6px 10px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid;
    animation: slideIn 0.3s ease-out;
    font-size: 12px;
}

.trade-item.win {
    border-left-color: #4ade80;
}

.trade-item.loss {
    border-left-color: #f87171;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-item span:last-child {
    font-weight: bold;
    color: #60a5fa;
}

.stat-item .win {
    color: #4ade80;
}

.stat-item .loss {
    color: #f87171;
}

#capital-chart {
    width: 100%;
    height: 200px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
}

.motivational-messages {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    pointer-events: none;
}

.message {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.5);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
}

.message.show {
    opacity: 1;
    transform: translateY(0);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(96, 165, 250, 0.8);
}

.report-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.report-modal.show {
    display: flex;
}

.report-content {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.report-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.report-title {
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
    color: #60a5fa;
}

.report-message {
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border-right: 4px solid #60a5fa;
}

.report-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.report-stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.report-stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #60a5fa;
    display: block;
    margin-top: 5px;
}

@media (max-width: 1400px) {
    .row-2 {
        grid-template-columns: 250px 1fr 250px;
    }
}

@media (max-width: 1024px) {
    .row-1 {
        flex-direction: column;
        align-items: stretch;
    }
    
    .trade-controls-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .trade-controls-row .btn-trade,
    .trade-controls-row .btn-auto {
        width: 100%;
        min-width: auto;
    }
    
    .row-2 {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .row-3 {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
        height: auto;
        min-height: 100vh;
    }
    
    .game-container {
        padding: 8px;
        gap: 8px;
        height: auto;
        min-height: 100vh;
    }
    
    .row-1 {
        flex-direction: column;
        gap: 8px;
    }
    
    .trade-controls-row {
        flex-direction: column;
        gap: 6px;
    }
    
    .trade-controls-row .btn-trade,
    .trade-controls-row .btn-auto {
        width: 100%;
    }
    
    .header {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 16px;
    }
    
    .header-stats {
        gap: 6px;
        width: 100%;
    }
    
    .stat-box {
        padding: 6px 10px;
        flex: 1;
    }
    
    .stat-label {
        font-size: 9px;
    }
    
    .stat-value {
        font-size: 12px;
    }
    
    .row-2 {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .row-3 {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .settings-panel, .stats-panel, .chart-panel, .recent-trades {
        padding: 8px;
        gap: 8px;
    }
    
    .chart-area {
        min-height: 180px;
    }
    
    .trades-list {
        max-height: 150px;
    }
    
    .trade-item {
        padding: 6px;
        font-size: 11px;
    }
    
    .report-content {
        padding: 15px;
        margin: 10px;
        max-width: 95%;
    }
    
    .report-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .report-message {
        font-size: 14px;
        padding: 15px;
    }
    
    .settings-modal-content {
        padding: 20px;
        max-width: 95%;
        max-height: 95vh;
    }
    
    .settings-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .cooldown-content {
        padding: 20px;
        max-width: 95%;
    }
    
    .cooldown-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .timer-circle {
        width: 120px;
        height: 120px;
    }
    
    .timer-circle span:first-child {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .row-1 {
        flex-direction: column;
        gap: 6px;
    }
    
    .row-2, .row-3 {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .chart-area {
        min-height: 150px;
    }
    
    .action-buttons-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

.wallet-panel {
    background: rgba(30, 41, 59, 0.8);
    padding: 10px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.wallet-panel h3 {
    margin-bottom: 8px;
    font-size: 13px;
    color: #fbbf24;
}

.wallet-display {
    background: rgba(15, 23, 42, 0.6);
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid rgba(251, 191, 36, 0.3);
}

.wallet-label {
    font-size: 11px;
    opacity: 0.8;
}

.wallet-value {
    font-size: 16px;
    font-weight: bold;
    color: #fbbf24;
}

.wallet-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wallet-stat {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-stat:last-child {
    border-bottom: none;
}

.btn-save-profit {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-save-profit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.save-profit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.save-profit-modal.show {
    display: flex;
}

.save-profit-content {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.save-profit-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.save-profit-title {
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
    color: #fbbf24;
}

.save-profit-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.save-profit-info p {
    margin: 10px 0;
    font-size: 16px;
}

.save-profit-input-group {
    margin-bottom: 25px;
}

.save-profit-input-group label {
    display: block;
    margin-bottom: 15px;
    font-size: 16px;
}

.save-profit-input-group input[type="range"] {
    width: 100%;
    margin-bottom: 10px;
}

.save-percent-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}

.save-percent-display span:first-child {
    color: #60a5fa;
}

.save-amount-preview {
    color: #fbbf24;
}

.save-profit-preview {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
}

.preview-item:last-child {
    border-bottom: none;
}

.preview-item strong {
    color: #60a5fa;
    font-size: 18px;
}

.btn-confirm-save {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
}

.btn-confirm-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.over-risk-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.over-risk-modal.show {
    display: flex;
}

.over-risk-content {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(239, 68, 68, 0.5);
    position: relative;
    border: 3px solid rgba(239, 68, 68, 0.5);
}

.over-risk-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.over-risk-title {
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
    color: #fbbf24;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.over-risk-message {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
}

.over-risk-message p {
    margin: 10px 0;
    font-size: 18px;
}

.over-risk-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-risk-option {
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.btn-risk-x2 {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-risk-x2:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

.btn-risk-x4 {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-risk-x4:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

.btn-risk-no {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-risk-no:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2500;
    justify-content: center;
    align-items: center;
}

.settings-modal.show {
    display: flex;
}

.settings-modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.settings-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.settings-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.settings-title {
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
    color: #60a5fa;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.settings-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cooldown-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.cooldown-modal.show {
    display: flex;
}

.cooldown-content {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.5);
    position: relative;
    border: 3px solid rgba(251, 191, 36, 0.5);
    text-align: center;
}

.cooldown-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cooldown-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.cooldown-title {
    font-size: 28px;
    margin-bottom: 25px;
    color: #fbbf24;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cooldown-message {
    margin-bottom: 30px;
}

.cooldown-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
}

.timer-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(251, 191, 36, 0.5);
    border: 5px solid rgba(255, 255, 255, 0.3);
}

.timer-circle span:first-child {
    font-size: 48px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.timer-label {
    font-size: 14px;
    color: white;
    opacity: 0.9;
}

.timer-info {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
}

.cooldown-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-cooldown-wait, .btn-cooldown-continue {
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.btn-cooldown-wait {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-cooldown-wait:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.btn-cooldown-continue {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-cooldown-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

