* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    color: #fff;
}

#bgVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-box {
    background: rgba(30, 30, 50, 0.95);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    width: 350px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.login-box h1 {
    color: #f0b90b;
    margin-bottom: 10px;
    font-size: 24px;
}

.login-box .subtitle {
    color: #aaa;
    margin-bottom: 30px;
    font-size: 14px;
}

.login-box input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

.login-box input:focus {
    outline: none;
    border-color: #f0b90b;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: #f0b90b;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.login-box button:hover {
    background: #d9a50a;
    transform: translateY(-2px);
}

.error {
    color: #f6465d;
    margin-top: 15px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header h1 {
    color: #f0b90b;
    font-size: 28px;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.bot-control {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.status-card, .stats-card {
    background: rgba(30, 30, 50, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-card h3, .stats-card h3 {
    margin-bottom: 15px;
    color: #f0b90b;
}

.status-indicator {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.toggle-btn {
    background: #0ecb81;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

.toggle-btn.bot-off {
    background: #f6465d;
    color: white;
}

.settings-panel {
    background: rgba(30, 30, 50, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-panel h2 {
    color: #f0b90b;
    margin-bottom: 20px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.setting label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: #aaa;
}

.setting input {
    width: 100%;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
}

.save-btn {
    background: #f0b90b;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.active-trades, .history {
    background: rgba(30, 30, 50, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.active-trades h2, .history h2 {
    color: #f0b90b;
    margin-bottom: 15px;
}

.trades-list {
    max-height: 400px;
    overflow-y: auto;
}

.trade-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.trade-item .symbol {
    font-weight: bold;
    color: #f0b90b;
}

.trade-item .account {
    font-size: 12px;
    color: #aaa;
}

.trade-item.open {
    border-left: 3px solid #0ecb81;
}

.trade-item.closed {
    border-left: 3px solid #f6465d;
    opacity: 0.8;
}

.trade-item .profit.positive {
    color: #0ecb81;
}

.trade-item .profit.negative {
    color: #f6465d;
}