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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: radial-gradient(ellipse at top, #1c2659 0%, #1d2839 50%, #1b265a 100%);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    padding-top: 80px;
}

.main-container {
    display: flex;
    height: calc(100vh - 80px);
    min-height: 600px;
}

.chart-section {
    flex: 1;
    background: radial-gradient(ellipse at center, #192e6f 0%, #11204d 30%, #0e1729 70%, #1a5885 100%);
    padding: 25px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chart-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 170, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 136, 0.03) 0%, transparent 50%),
        linear-gradient(45deg, transparent 40%, rgba(0, 212, 170, 0.02) 50%, transparent 60%);
    pointer-events: none;
}

.asset-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    background: radial-gradient(63.89% 57.63% at 36.8% 29.66%, #1d2133 0, #2c324d 100%);
    backdrop-filter: blur(10px);
    padding: 20px 25px;
    border-radius: 16px;
    border: 0px solid rgba(42, 47, 58, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.asset-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.asset-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.asset-name-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.asset-name {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4aa 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.asset-type {
    background: linear-gradient(135deg, #00d4aa 0%, #00ff88 100%);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.2);
}

.trading-banner {
    background: linear-gradient(135deg, #225073 0%, #153d4d 50%, #6d301a 100%);
    border-radius: 12px;
    padding: 15px 25px;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: bannerGlow 3s ease-in-out infinite alternate;
}

.trading-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: bannerShine 2s ease-in-out infinite;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.banner-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.banner-icon svg {
    width: 20px;
    height: 20px;
}

.banner-text {
    flex: 1;
    color: white;
}

.banner-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.banner-subtitle {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
}

.banner-cta {
    flex-shrink: 0;
}

.banner-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #ff6b35;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.banner-btn:hover {
    background: linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@keyframes bannerGlow {
    0% {
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
    }
    100% {
        box-shadow: 0 4px 25px rgba(255, 107, 53, 0.5);
    }
}

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

.price-display {
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-price {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-change {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.price-change.up {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.price-change.down {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.15);
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.market-stats {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 12px;
    color: #8a92a5;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-label {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-weight: 700;
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.chart-container {
    flex: 1;
    background: radial-gradient(63.89% 57.63% at 36.8% 29.66%, #1a265d 0, #252a41 100%);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 0px solid rgba(42, 47, 58, 0.5);
    padding: 25px;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    animation: bannerGlow 2s ease-in-out infinite alternate;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
}

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

.chart-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

.timeframe-buttons {
    display: flex;
    gap: 8px;
}

.timeframe-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeframe-btn:hover,
.timeframe-btn.active {
    background: #00d4aa;
    border-color: #00d4aa;
    box-shadow: 0 0 15px rgba(0, 212, 170, 0.3);
}

.chart-canvas-container {
    flex: 1;
    position: relative;
    height: 400px;
    min-height: 300px;
}

.trading-sidebar {
    width: 400px;
    background: linear-gradient(180deg, rgba(26, 31, 46, 0.9) 0%, rgba(13, 20, 33, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(42, 47, 58, 0.5);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
}

.trading-form {
    padding: 30px;
    border-bottom: 1px solid #2a2f3a;
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.9) 0%, rgba(13, 20, 33, 0.9) 100%);
}

.form-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    color: white;
}

.amount-section {
    margin-bottom: 25px;
    position: relative;
}

.section-label {
    font-size: 14px;
    color: #8a92a5;
    margin-bottom: 10px;
    font-weight: 500;
}

.amount-container {
    position: relative;
    background: linear-gradient(135deg, rgba(13, 20, 33, 0.8) 0%, rgba(26, 31, 46, 0.8) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(42, 47, 58, 0.5);
    border-radius: 10px;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.amount-container:focus-within {
    border-color: #00d4aa;
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.2);
}

.amount-input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 18px 60px 18px 18px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    font-family: 'Courier New', monospace;
}

.amount-input::placeholder {
    color: #8a92a5;
    font-weight: 500;
}

.currency-symbol {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #00d4aa 0%, #00ff88 100%);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.3);
}

.amount-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 15px;
}

.quick-amount {
    background: linear-gradient(135deg, rgba(42, 47, 58, 0.8) 0%, rgba(26, 31, 46, 0.8) 100%);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(58, 64, 72, 0.5);
    color: #8a92a5;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.quick-amount:hover {
    background: linear-gradient(135deg, rgba(58, 64, 72, 0.8) 0%, rgba(42, 47, 58, 0.8) 100%);
    color: white;
    transform: translateY(-1px);
}

.quick-amount.active {
    background: linear-gradient(135deg, #00d4aa 0%, #00ff88 100%);
    color: white;
    border-color: #00d4aa;
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}

.time-selection {
    margin-bottom: 30px;
}

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

.time-btn {
    background: linear-gradient(135deg, rgba(42, 47, 58, 0.8) 0%, rgba(26, 31, 46, 0.8) 100%);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(58, 64, 72, 0.5);
    color: #8a92a5;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.time-btn:hover {
    background: linear-gradient(135deg, rgba(58, 64, 72, 0.8) 0%, rgba(42, 47, 58, 0.8) 100%);
    color: white;
    transform: translateY(-1px);
}

.time-btn.active {
    background: linear-gradient(135deg, #00d4aa 0%, #00ff88 100%);
    color: white;
    border-color: #00d4aa;
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}

.trade-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.action-btn {
    padding: 18px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-up {
    background: linear-gradient(135deg, #00ff88 0%, #00d4aa 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

.btn-up:hover {
    background: linear-gradient(135deg, #00d4aa 0%, #00ff88 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
}

.btn-down {
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.3);
}

.btn-down:hover {
    background: linear-gradient(135deg, #ff3742 0%, #ff4757 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
}

.positions-container {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.9) 0%, rgba(13, 20, 33, 0.9) 100%);
    position: relative;
}

.section-header {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.9) 0%, rgba(13, 20, 33, 0.9) 100%);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid rgba(42, 47, 58, 0.5);
    text-align: center;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.section-header::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.section-header.closed::before {
    background: #8a92a5;
    box-shadow: none;
}

.position-card {
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.9) 0%, rgba(13, 20, 33, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(42, 47, 58, 0.5);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.position-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.position-card.up {
    border-left: 4px solid #00ff88;
}

.position-card.down {
    border-left: 4px solid #ff4757;
}

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

.position-direction {
    font-size: 14px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.position-direction.up {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.position-direction.down {
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.position-status {
    font-size: 12px;
    color: #8a92a5;
    font-weight: 500;
}

.position-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    color: #8a92a5;
    font-weight: 500;
}

.detail-value {
    color: white;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.potential-win {
    color: #00ff88;
    font-weight: 700;
    font-size: 20px;
}

.timer-container {
    background: linear-gradient(135deg, rgba(42, 47, 58, 0.8) 0%, rgba(26, 31, 46, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(58, 64, 72, 0.5);
}

.timer-label {
    font-size: 11px;
    color: #8a92a5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 500;
}

.countdown-timer {
    font-size: 22px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.countdown-timer.expired {
    color: #ff4757;
    text-shadow: 0 0 10px rgba(255, 71, 87, 0.3);
}

.inline-trade-popup {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.9) 0%, rgba(13, 20, 33, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(42, 47, 58, 0.5);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

.inline-trade-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.inline-trade-popup.win {
    border-left: 4px solid #00ff88;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05) 0%, rgba(26, 31, 46, 0.9) 100%);
}

.inline-trade-popup.loss {
    border-left: 4px solid #ff4757;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.05) 0%, rgba(26, 31, 46, 0.9) 100%);
}

.inline-popup-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.inline-popup-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.inline-popup-icon.win {
    background: linear-gradient(135deg, #00ff88 0%, #00d4aa 100%);
    color: white;
}

.inline-popup-icon.loss {
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
    color: white;
}

.inline-popup-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inline-popup-title.win {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.inline-popup-title.loss {
    color: #ff4757;
    text-shadow: 0 0 10px rgba(255, 71, 87, 0.3);
}

.inline-popup-amount {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    margin-bottom: 15px;
}

.inline-popup-amount.win {
   color: #00ff88;
}

.inline-popup-amount.loss {
   color: #ff4757;
}

.inline-popup-details {
   background: rgba(42, 47, 58, 0.6);
   border-radius: 12px;
   padding: 15px;
   border: 1px solid rgba(58, 64, 72, 0.3);
}

.inline-popup-detail-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 12px;
   font-size: 12px;
}

.inline-popup-detail-item {
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.inline-popup-detail-label {
   color: #8a92a5;
   font-weight: 500;
}

.inline-popup-detail-value {
   color: white;
   font-weight: 600;
   font-family: 'Courier New', monospace;
}

.inline-close-btn {
   position: absolute;
   top: 10px;
   right: 15px;
   background: none;
   border: none;
   color: #8a92a5;
   font-size: 18px;
   cursor: pointer;
   padding: 5px;
   border-radius: 50%;
   transition: all 0.2s ease;
   width: 30px;
   height: 30px;
   display: flex;
   align-items: center;
   justify-content: center;
}

.inline-close-btn:hover {
   background: rgba(255, 255, 255, 0.1);
   color: white;
}

.history-item {
   background: linear-gradient(135deg, rgba(26, 31, 46, 0.9) 0%, rgba(13, 20, 33, 0.9) 100%);
   backdrop-filter: blur(10px);
   border-radius: 12px;
   padding: 20px;
   margin-bottom: 15px;
   border: 1px solid rgba(42, 47, 58, 0.5);
   transition: all 0.2s ease;
   position: relative;
}

.history-item:hover {
   transform: translateY(-2px);
   box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.history-item.win {
   border-left: 4px solid #00ff88;
   background: linear-gradient(135deg, rgba(0, 255, 136, 0.05) 0%, rgba(26, 31, 46, 0.9) 100%);
}

.history-item.loss {
   border-left: 4px solid #ff4757;
   background: linear-gradient(135deg, rgba(255, 71, 87, 0.05) 0%, rgba(26, 31, 46, 0.9) 100%);
}

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

.history-direction {
   font-size: 14px;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 0.5px;
   padding: 6px 12px;
   border-radius: 6px;
}

.history-direction.up {
   color: #00ff88;
   background: rgba(0, 255, 136, 0.15);
   border: 1px solid rgba(0, 255, 136, 0.3);
}

.history-direction.down {
   color: #ff4757;
   background: rgba(255, 71, 87, 0.15);
   border: 1px solid rgba(255, 71, 87, 0.3);
}

.history-result {
   font-size: 16px;
   font-weight: 700;
   font-family: 'Courier New', monospace;
   padding: 6px 12px;
   border-radius: 6px;
}

.history-result.win {
   color: #00ff88;
   background: rgba(0, 255, 136, 0.15);
   border: 1px solid rgba(0, 255, 136, 0.3);
}

.history-result.loss {
   color: #ff4757;
   background: rgba(255, 71, 87, 0.15);
   border: 1px solid rgba(255, 71, 87, 0.3);
}

.history-details {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 12px;
   margin-bottom: 15px;
   font-size: 12px;
}

.history-detail-item {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 8px 0;
}

.history-detail-label {
   color: #8a92a5;
   font-weight: 500;
   text-transform: uppercase;
   letter-spacing: 0.5px;
   font-size: 11px;
}

.history-detail-value {
   color: white;
   font-weight: 600;
   font-family: 'Courier New', monospace;
   font-size: 12px;
}

.history-timing {
   background: linear-gradient(135deg, rgba(42, 47, 58, 0.6) 0%, rgba(26, 31, 46, 0.6) 100%);
   border-radius: 8px;
   padding: 12px;
   margin-top: 10px;
   border: 1px solid rgba(58, 64, 72, 0.3);
}

.history-timing-header {
   font-size: 11px;
   color: #8a92a5;
   text-transform: uppercase;
   letter-spacing: 0.5px;
   margin-bottom: 8px;
   font-weight: 500;
   text-align: center;
}

.history-timing-grid {
   display: grid;
   grid-template-columns: 1fr 1fr 1fr;
   gap: 8px;
   font-size: 10px;
}

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

.timing-label {
   color: #6a7280;
   margin-bottom: 3px;
   font-weight: 500;
}

.timing-value {
   color: white;
   font-weight: 600;
   font-family: 'Courier New', monospace;
}

.price-comparison {
   background: linear-gradient(135deg, rgba(42, 47, 58, 0.6) 0%, rgba(26, 31, 46, 0.6) 100%);
   border-radius: 8px;
   padding: 12px;
   margin-top: 10px;
   border: 1px solid rgba(58, 64, 72, 0.3);
}

.price-comparison-header {
   font-size: 11px;
   color: #8a92a5;
   text-transform: uppercase;
   letter-spacing: 0.5px;
   margin-bottom: 8px;
   font-weight: 500;
   text-align: center;
}

.price-flow {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 10px;
}

.price-point {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 4px;
}

.price-point-label {
   font-size: 10px;
   color: #6a7280;
   font-weight: 500;
}

.price-point-value {
   font-size: 12px;
   font-weight: 700;
   font-family: 'Courier New', monospace;
   color: white;
}

.price-arrow {
   font-size: 16px;
   color: #8a92a5;
}

.price-arrow.up {
   color: #00ff88;
}

.price-arrow.down {
   color: #ff4757;
}

.history-meta {
   display: flex;
   justify-content: space-between;
   align-items: center;
   font-size: 11px;
   color: #8a92a5;
   font-weight: 500;
   margin-top: 12px;
   padding-top: 12px;
   border-top: 1px solid rgba(42, 47, 58, 0.5);
}

.trade-duration {
   display: flex;
   align-items: center;
   gap: 4px;
   color: #8a92a5;
}

.duration-badge {
   background: rgba(42, 47, 58, 0.8);
   padding: 2px 6px;
   border-radius: 4px;
   font-size: 10px;
   font-weight: 600;
}

.notification {
   position: fixed;
   top: 30px;
   right: 30px;
   background: linear-gradient(135deg, rgba(26, 31, 46, 0.95) 0%, rgba(13, 20, 33, 0.95) 100%);
   backdrop-filter: blur(15px);
   border: 1px solid rgba(42, 47, 58, 0.5);
   border-radius: 12px;
   padding: 20px 25px;
   min-width: 320px;
   transform: translateX(450px);
   transition: transform 0.3s ease;
   z-index: 1000;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.notification.show {
   transform: translateX(0);
}

.notification.success {
   border-color: #00ff88;
   background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(26, 31, 46, 0.95) 100%);
}

.notification.error {
   border-color: #ff4757;
   background: linear-gradient(135deg, rgba(255, 71, 87, 0.1) 0%, rgba(26, 31, 46, 0.95) 100%);
}

.empty-state {
   text-align: center;
   padding: 50px 25px;
   color: #8a92a5;
   font-style: italic;
}

.loading {
   opacity: 0.6;
   pointer-events: none;
}

.icon {
   width: 14px;
   height: 14px;
   fill: currentColor;
}

.max-positions-warning {
   background: rgba(255, 71, 87, 0.1);
   border: 1px solid rgba(255, 71, 87, 0.3);
   color: #ff4757;
   padding: 12px 16px;
   border-radius: 8px;
   margin-bottom: 15px;
   font-size: 14px;
   font-weight: 500;
   text-align: center;
}

::-webkit-scrollbar {
   width: 6px;
}

::-webkit-scrollbar-track {
   background: rgba(26, 31, 46, 0.3);
}

::-webkit-scrollbar-thumb {
   background: rgba(42, 47, 58, 0.6);
   border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
   background: rgba(58, 64, 72, 0.8);
}

.loading-state {
   display: flex;
   align-items: center;
   justify-content: center;
   flex-direction: column;
   height: 100%;
   color: #8a92a5;
   gap: 15px;
}

.spinner {
   width: 40px;
   height: 40px;
   border: 4px solid rgba(0, 212, 170, 0.2);
   border-top: 4px solid #00d4aa;
   border-radius: 50%;
   animation: spin 1s linear infinite;
}

@keyframes spin {
   0% { transform: rotate(0deg); }
   100% { transform: rotate(360deg); }
}

.potential-win.winning {
  color: #00ff88 !important;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.4) !important;
  font-weight: 700 !important;
}

.potential-win.losing {
  color: #ff4757 !important;
  text-shadow: 0 0 8px rgba(255, 71, 87, 0.4) !important;
  font-weight: 700 !important;
}

.position-card.position-winning {
  border-left: 4px solid #00ff88 !important;
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.2) !important;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05) 0%, rgba(26, 31, 46, 0.9) 100%) !important;
}

.position-card.position-losing {
  border-left: 4px solid #ff4757 !important;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.2) !important;
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.05) 0%, rgba(26, 31, 46, 0.9) 100%) !important;
}

.position-card.position-winning .position-direction {
  background: rgba(0, 255, 136, 0.2) !important;
  border-color: rgba(0, 255, 136, 0.4) !important;
}

.position-card.position-losing .position-direction {
  background: rgba(255, 71, 87, 0.2) !important;
  border-color: rgba(255, 71, 87, 0.4) !important;
}

.countdown-timer.critical {
  color: #ff4757 !important;
  font-size: 24px !important;
  text-shadow: 0 0 10px rgba(255, 71, 87, 0.5) !important;
  animation: pulse 0.5s ease-in-out infinite alternate !important;
}

@keyframes pulse {
  from { opacity: 1; }
  to { opacity: 0.7; }
}

.position-card.expiring {
  border: 2px solid #ff4757 !important;
  box-shadow: 0 0 15px rgba(255, 71, 87, 0.3) !important;
}

@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }
  
  .asset-info {
    display: none !important;
  }
  
  .main-container {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 60px);
  }
  
  .chart-section {
    order: 1;
    padding: 15px;
    margin-bottom: 0;
  }
  
  .trading-sidebar {
    order: 2;
    width: 95%;
    margin: 0 auto 15px auto;
    border-left: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  
  .trading-banner {
    order: 3;
    width: 95%;
    margin: 15px auto;
  }
  
  .chart-canvas-container {
    height: 200px;
    min-height: 180px;
  }
  
  .chart-container {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .chart-title {
    font-size: 18px;
  }
  
  .timeframe-buttons {
    gap: 4px;
  }
  
  .timeframe-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .trading-form {
    padding: 20px;
  }
  
  .positions-container {
    padding: 20px;
  }
  
  .asset-name {
    font-size: 20px;
  }
  
  .current-price {
    font-size: 20px;
  }
  
  .market-stats {
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .stat-value {
    font-size: 12px;
  }
  
  .amount-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .time-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .position-details {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .history-details {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .inline-popup-detail-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .notification {
    top: 20px;
    right: 20px;
    left: 20px;
    min-width: auto;
    transform: translateY(-100px);
  }
  
  .notification.show {
    transform: translateY(0);
  }
  
  .price-display {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .asset-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 50px;
  }
  
  .asset-info {
    display: none !important;
  }
  
  .main-container {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 50px);
  }
  
  .chart-section {
    order: 1;
    padding: 10px;
  }
  
  .trading-sidebar {
    order: 2;
    width: 95%;
    margin: 0 auto 15px auto;
    border-left: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  
  .trading-banner {
    order: 3;
    width: 95%;
    margin: 15px auto;
  }
  
  .chart-canvas-container {
    height: 160px;
    min-height: 140px;
  }
  
  .trading-form {
    padding: 15px;
  }
  
  .positions-container {
    padding: 15px;
  }
  
  .asset-name {
    font-size: 18px;
  }
  
  .current-price {
    font-size: 18px;
  }
  
  .amount-buttons {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  
  .time-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  
  .timeframe-buttons {
    flex-wrap: wrap;
    gap: 3px;
  }
  
  .timeframe-btn {
    padding: 4px 8px;
    font-size: 10px;
  }
  
  .market-stats {
    gap: 15px;
  }
  
  .quick-amount {
    padding: 8px 10px;
    font-size: 11px;
  }
  
  .time-btn {
    padding: 10px;
    font-size: 12px;
  }
}

.xbet-multiplier-q8k {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24) !important;
    border: none !important;
    border-radius: 8px !important;
    color: white !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    min-width: 50px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2) !important;
    margin: 0 2px !important;
    outline: none !important;
}

.xbet-multiplier-q8k.multiply-btn-q8k {
    background: linear-gradient(45deg, #00d2ff, #3a7bd5) !important;
}

.xbet-multiplier-q8k:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
}

.xbet-multiplier-q8k:active {
    transform: translateY(0) !important;
}

.amount-container {
    display: flex !important;
    align-items: center !important;
    gap: 0px !important;
}

@media (max-width: 768px) {
    .xbet-multiplier-q8k {
        padding: 10px 14px !important;
        font-size: 13px !important;
        min-width: 45px !important;
        height: 40px !important;
    }
}
