* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
}
body {
    background: #0a0a0f;
    background-image:
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    color: #e0e0e5;
    min-height: 100vh;
    overflow-x: hidden;
}
#particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
}
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    z-index: 1;
    padding: 20px;
}
.login-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #6a88cc;
    letter-spacing: -1px;
    text-shadow: 0 0 12px rgba(106, 136, 204, 0.5);
}
.login-button {
    padding: 15px 50px;
    font-size: 1.3rem;
    font-weight: 700;
    background: rgba(15, 15, 25, 0.8);
    color: #6a88cc;
    border: 1px solid #6a88cc;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(106, 136, 204, 0.3);
}
.login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(106, 136, 204, 0.5);
}
.dashboard-container {
    max-width: 800px;
    margin: 30px auto;
    background: rgba(15, 15, 25, 0.8);
    padding: 25px;
    border-radius: 18px;
    border: 1px solid rgba(80, 120, 200, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1;
}
.price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(20, 20, 35, 0.95);
    padding: 15px 25px;
    border-radius: 14px;
    margin-bottom: 25px;
    border: 1px solid rgba(80, 120, 200, 0.2);
}
.price-text {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}
.live-indicator {
    width: 12px; height: 12px;
    background: #6a88cc;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}
#current-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
}
.symbol-input, .interval-select {
    padding: 10px;
    border: 1px solid rgba(80, 120, 200, 0.3);
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    color: #e0e0e5;
    font-size: 1rem;
    transition: border 0.3s ease;
}
.symbol-input:focus, .interval-select:focus {
    outline: none;
    border-color: #6a88cc;
}
.robot-button {
    background: rgba(15,15,25,0.8);
    color: #6a88cc;
    border: 1px solid #6a88cc;
    border-radius: 50%;
    width: 40px; height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.robot-button:hover {
    background: #6a88cc;
    color: #0a0a0f;
}
.input-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}
input[type="number"] {
    padding: 12px;
    border: 1px solid rgba(80, 120, 200, 0.3);
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    color: #e0e0e5;
}
button:not(.robot-button) {
    padding: 12px 30px;
    background: rgba(15,15,25,0.8);
    color: #6a88cc;
    border: 1px solid #6a88cc;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}
button:not(.robot-button):hover {
    background: #6a88cc;
    color: #0a0a0f;
    transform: translateY(-2px);
}
.signal-group h2 {
    font-size: 1.3rem;
    color: #6a88cc;
    margin-bottom: 12px;
    font-weight: 700;
}
.signal-list {
    display: grid;
    gap: 10px;
}
.signal-item {
    background: rgba(255,255,255,0.04);
    padding: 12px 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    border: 1px solid rgba(80,120,200,0.1);
    transition: all 0.2s ease;
}
.signal-item:hover {
    background: rgba(80,120,200,0.08);
    transform: translateX(4px);
}
.buy { color: #88ccaa; font-weight: 700; }
.sell { color: #ff6b8b; font-weight: 700; }
.neutral { color: #999; }
.summary {
    margin-top: 20px;
    padding: 15px;
    background: rgba(20,20,35,0.95);
    border-radius: 12px;
    text-align: center;
    font-size: 1.1rem;
    border: 1px solid rgba(80,120,200,0.2);
}
.robot-chat {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; max-width: 500px;
    height: 80%; max-height: 600px;
    background: rgba(15,15,25,0.95);
    border-radius: 18px;
    border: 1px solid rgba(80,120,200,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    flex-direction: column;
}
.chat-header {
    padding: 15px;
    background: rgba(20,20,35,0.95);
    border-radius: 18px 18px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(80,120,200,0.2);
}
.chat-header h3 { color: #6a88cc; font-weight: 700; }
.chat-header button { background: none; color: #ff6b8b; font-size: 1.3rem; cursor: pointer; }
.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}
.chat-message {
    margin-bottom: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
}
.chat-message.user {
    background: rgba(80,120,200,0.15);
    align-self: flex-end;
    margin-left: auto;
}
.chat-message.bot {
    background: rgba(255,255,255,0.06);
}
.chat-input {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: rgba(20,20,35,0.95);
    border-radius: 0 0 18px 18px;
}
.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid rgba(80,120,200,0.3);
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    color: #e0e0e5;
}
.chat-input button {
    padding: 10px 16px;
    background: #6a88cc;
    color: #0a0a0f;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}
.loading-container {
    margin-top: 10px;
    text-align: center;
}
.loading-bar {
    width: 100%; height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
}
.loading-progress {
    height: 100%;
    background: #6a88cc;
    width: 0%;
    transition: width 0.3s ease;
}
.loading-percentage {
    margin-top: 8px;
    color: #6a88cc;
    font-weight: 600;
}
.loading-message {
    margin-top: 8px;
    color: #aaa;
    font-style: italic;
}
@media (max-width: 768px) {
    .dashboard-container { margin: 15px; padding: 15px; }
    .price-box { flex-direction: column; gap: 12px; }
    .login-title { font-size: 2.2rem; }
}