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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    z-index: 1;
    position: relative;
    padding: 20px;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #d4af37;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.7);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 12px rgba(212, 175, 55, 0.7); }
    to { text-shadow: 0 0 20px rgba(212, 175, 55, 1); }
}

.login-button {
    padding: 15px 50px;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(45deg, #d4af37, #f0c14b);
    color: #0a0a0a;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.5);
    touch-action: manipulation;
}

.login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.7);
}

.login-button.explode {
    animation: explode 0.5s ease-out forwards;
}

@keyframes explode {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(2); opacity: 0; }
}

.dashboard-container {
    max-width: 800px;
    margin: 30px auto;
    background: rgba(255, 255, 255, 0.06);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
    z-index: 1;
    position: relative;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.price-text {
    display: flex;
    align-items: center;
    text-align: left;
    position: relative;
}

.live-indicator {
    width: 12px;
    height: 12px;
    background: #00cc00;
    border-radius: 50%;
    margin-right: 12px;
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

#current-price {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
}

.symbol-input {
    padding: 12px;
    width: 100%;
    max-width: 100px;
    border: 1px solid #d4af37;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
    margin-right: 10px;
}

.symbol-input:focus {
    outline: none;
    border-color: #f0c14b;
}

.symbol-input::placeholder {
    color: #999;
}

.symbol-suggestions {
    position: absolute;
    top: 100%;
    left: 24px;
    width: 100px;
    max-height: 200px;
    overflow-y: auto;
    background: #0a0a0a;
    border: 1px solid #d4af37;
    border-radius: 10px;
    z-index: 1000;
    display: none;
}

.symbol-suggestions div {
    padding: 8px 12px;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.symbol-suggestions div:hover {
    background: rgba(212, 175, 55, 0.2);
}

.interval-select {
    padding: 12px;
    width: 100%;
    max-width: 100px;
    border: 1px solid #d4af37;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
    align-self: center;
    margin: 0 10px 0 10px;
}

.interval-select:focus {
    outline: none;
    border-color: #f0c14b;
}

.interval-select option {
    background: #0a0a0a;
    color: #ffffff;
}

.robot-button {
    background: linear-gradient(45deg, #d4af37, #f0c14b);
    color: #0a0a0a;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.robot-button:hover {
    transform: scale(1.1);
}

.input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

input {
    padding: 12px;
    width: 100%;
    max-width: 350px;
    border: 1px solid #d4af37;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #f0c14b;
}

input::placeholder {
    color: #999;
}

button:not(.robot-button) {
    padding: 12px 30px;
    background: linear-gradient(45deg, #d4af37, #f0c14b);
    color: #0a0a0a;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background 0.3s ease, transform 0.3s ease;
    touch-action: manipulation;
}

button:not(.robot-button):hover {
    background: linear-gradient(45deg, #b89b2f, #d4af37);
    transform: translateY(-2px);
}

.signal-group {
    margin-bottom: 25px;
}

.signal-group h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.signal-list {
    display: grid;
    gap: 12px;
}

.signal-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease;
}

.signal-item:hover {
    transform: translateX(5px);
}

.signal-item span {
    font-size: 1rem;
    font-weight: 500;
}

.buy {
    color: #00cc00;
    font-weight: bold;
}

.sell {
    color: #cc0000;
    font-weight: bold;
}

.neutral {
    color: #999999;
}

.summary {
    font-size: 1.2rem;
    text-align: center;
    margin: 25px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.robot-chat {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    height: 80%;
    max-height: 600px;
    background: #2a2a2a;
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    z-index: 2000;
    flex-direction: column;
    opacity: 1;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translate(-50%, -40%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #3a3a3a;
    border-radius: 16px 16px 0 0;
}

.chat-header h3 {
    color: #d4af37;
    font-size: 1.2rem;
    font-weight: 700;
}

.chat-header button {
    background: none;
    color: #d4af37;
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #2a2a2a;
    color: #ffffff;
}

.chat-message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.chat-message.user {
    background: rgba(212, 175, 55, 0.4);
    text-align: right;
}

.chat-message.bot {
    background: rgba(255, 255, 255, 0.15);
}

.typing-indicator {
    display: inline-block;
}

.typing-dots {
    display: inline-block;
    animation: typing 1.5s infinite;
}

@keyframes typing {
    0%, 60%, 100% { transform: scale(1); }
    30% { transform: scale(1.2); }
}

.chat-input {
    display: flex;
    padding: 15px;
    gap: 10px;
    background: #3a3a3a;
    border-radius: 0 0 16px 16px;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #d4af37;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.chat-input button {
    padding: 10px 15px;
    background: #d4af37;
    color: #0a0a0a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.loading-container {
    width: 100%;
    max-width: 350px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(45deg, #d4af37, #f0c14b);
    transition: width 0.3s ease;
}

.loading-percentage {
    margin-top: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: #d4af37;
}

.loading-message {
    margin-top: 8px;
    font-size: 1rem;
    color: #ffffff;
    opacity: 1;
    animation: fadeMessage 3s infinite;
}

@keyframes fadeMessage {
    0% { opacity: 0; transform: translateY(5px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-5px); }
}

@media (max-width: 600px) {
    .robot-chat {
        width: 95%;
        height: 85%;
    }
    .price-box {
        flex-direction: column;
        gap: 10px;
    }
    .price-text {
        text-align: center;
    }
    .symbol-input {
        max-width: 150px;
        margin: 10px auto;
    }
    .symbol-suggestions {
        left: 0;
        width: 150px;
        margin: 0 auto;
    }
    #current-price {
        font-size: 1.2rem;
    }
    .interval-select {
        max-width: 150px;
        margin: 10px auto;
    }
    .login-title {
        font-size: 2.2rem;
        margin-bottom: 1.2rem;
    }
    .login-button {
        padding: 12px 40px;
        font-size: 1.1rem;
    }
    .dashboard-container {
        padding: 15px;
    }
    .price-box {
        padding: 10px 20px;
    }
    input {
        font-size: 1rem;
        padding: 10px;
    }
    button:not(.robot-button) {
        font-size: 1rem;
        padding: 10px 25px;
    }
    .signal-group h2 {
        font-size: 1.2rem;
    }
    .signal-item span {
        font-size: 0.9rem;
    }
    .summary {
        font-size: 1.1rem;
    }
    .loading-container {
        max-width: 300px;
    }
    .loading-percentage {
        font-size: 0.9rem;
    }
    .loading-message {
        font-size: 0.9rem;
    }
}