html {
    scroll-behavior: smooth;
}
:root {
    --primary-green: #00b67a;
    --primary-green-hover: #009966;
    --primary-red: #e53e3e;
    --shadow-sm: 0 1px 3px rgba(255, 255, 255, 0.1);
    --bg-dark: #0f172a;
    --text-light: #e2e8f0;
    --card-bg: #1e293b;
    --border-color: #2d3748;
    --chat-input-bg: #2d3748;
    --chat-message-bg: #334155;
    --chat-message-own-bg: #065f46;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}
.sidebar {
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background-color: #1e293b;
    padding: 1rem;
    overflow-y: auto;
    z-index: 20;
}
.sidebar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 1.5rem;
}
.sidebar ul {
    list-style: none;
    padding: 0;
}
.sidebar li {
    margin: 0.5rem 0;
}
.sidebar a {
    color: var(--text-light);
    font-size: 0.9375rem;
    transition: color 0.2s;
}
.sidebar a:hover {
    color: var(--primary-green);
}
.hamburger {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
}
.main-content {
    margin-left: 250px;
    margin-right: 350px;
    padding: 2rem;
    max-width: calc(100vw - 600px);
    width: 100%;
    box-sizing: border-box;
}
header {
    background-color: #1e293b !important;
    border-bottom: 1px solid var(--border-color);
}
.btn-primary {
    background-color: var(--primary-green);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 120px;
    justify-content: center;
}
.btn-primary:hover {
    background-color: var(--primary-green-hover);
}
.signal-up {
    color: var(--primary-green);
    font-weight: bold;
}
.signal-down {
    color: var(--primary-red);
    font-weight: bold;
}
.signal-direction-hidden {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.signal-direction-visible {
    opacity: 1;
}
.show-direction-btn {
    cursor: pointer;
    padding: 2px 8px;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
    border: none;
    font-size: 14px;
}
.show-direction-btn:hover {
    background-color: #45a049;
}
.faq-item {
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}
.faq-answer {
    display: none;
}
.faq-item.active .faq-answer {
    display: block;
}
.card {
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
table {
    font-size: 0.9375rem;
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 0.75rem;
    white-space: nowrap;
    border: 1px solid var(--border-color);
}
.broker-cell, .registration-cell {
    white-space: normal;
}
.icon-margin {
    margin-right: 0.5rem;
}
.tooltip-icon {
    margin-left: 0.25rem;
}
.chat-messages {
    flex-grow: 1;
    min-height: calc(100vh - 472px);
    overflow-y: auto;
    border: 1px solid var(--border-color);
    padding: 1rem;
    background-color: #1e293b;
    border-radius: 0.5rem;
}
.chat-message {
    margin-bottom: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    background-color: var(--chat-message-bg);
    max-width: 80%;
    word-wrap: break-word;
}
.chat-message.own {
    background-color: var(--chat-message-own-bg);
    margin-left: auto;
    color: var(--text-light);
}
.chat-message strong {
    color: var(--text-light);
    font-weight: 600;
}
.chat-message span {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}
.online-counter {
    color: var(--primary-green);
    font-weight: bold;
}
.star-rating .fa-star {
    color: #4b5563;
}
.star-rating .fa-star.filled {
    color: var(--primary-green);
}
thead th {
    position: sticky;
    top: 0;
    background-color: #1e293b;
    z-index: 10;
}
.signal-loading {
    text-align: center;
    padding: 1rem;
    color: #94a3b8;
}
.tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.tooltip .tooltip-text {
    visibility: hidden;
    max-width: 80vw;
    width: 300px;
    background-color: #2d3748;
    color: var(--text-light);
    text-align: left;
    border-radius: 0.375rem;
    padding: 0.75rem;
    position: absolute;
    z-index: 20;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.875rem;
    white-space: normal;
}
.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
section[id] {
    scroll-margin-top: 120px;
}
.banner {
    background-color: #1e293b;
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
}
.banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 100%;
    transition: opacity 0.5s ease-in-out;
}
.banner-logo {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-light);
    white-space: nowrap;
}
.banner-text {
    font-size: 0.9375rem;
    color: #94a3b8;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.countdown {
    text-align: center;
    font-size: 0.9375rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}
.chat-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background-color: var(--chat-input-bg);
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    margin-top: auto;
    z-index: 10;
}
.chat-inputs input {
    background-color: #1e293b;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    width: 100%;
    box-sizing: border-box;
}
.chat-inputs textarea {
    background-color: #1e293b;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    width: 100%;
    box-sizing: border-box;
    min-height: 120px;
    resize: none;
    overflow-y: auto;
}
.chat-inputs input:focus, .chat-inputs textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}
.chat-inputs button {
    background-color: var(--primary-green);
    color: white;
    border: none;
    border-radius: 1.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.chat-inputs button:hover {
    background-color: var(--primary-green-hover);
}
.chat-inputs button i {
    font-size: 1rem;
}
.emoji-picker {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.1rem;
    justify-content: flex-start;
    margin-top: 0.5rem;
    overflow-x: auto;
    white-space: nowrap;
}
.emoji-picker button {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    flex-shrink: 0;
    padding: 0;
}
.emoji-picker button:hover {
    background-color: #374151;
    border-radius: 4px;
}
.chat-sidebar {
    width: 350px;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    background-color: var(--card-bg);
    padding: 1rem;
    overflow-y: hidden;
    z-index: 20;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
@media (max-width: 1000px) {
    body {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: sticky;
        top: 0;
        z-index: 30;
        display: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.5rem;
        background-color: #1e293b;
    }
    .sidebar.active {
        display: flex;
    }
    .sidebar .logo {
        font-size: 1.25rem;
        margin: 0.5rem;
    }
    .sidebar ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    .sidebar li {
        margin: 0.25rem;
    }
    .sidebar a {
        font-size: 0.875rem;
        padding: 0.25rem 0.5rem;
    }
    .hamburger {
        display: block;
        position: fixed;
        top: 0.5rem;
        left: 0.5rem;
        z-index: 40;
    }
    .main-content {
        margin-left: 0;
        margin-right: 0;
        padding: 1rem;
        margin-top: 60px;
        max-width: 100vw;
        width: 100%;
    }
    .chat-sidebar {
        position: relative;
        width: 100%;
        min-height: calc(100vh - 60px);
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding: 1rem;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }
    .chat-messages {
        flex-grow: 1;
        max-height: calc(100vh - 250px);
    }
    .chat-inputs {
        position: sticky;
        bottom: 0;
        z-index: 10;
    }
    table {
        font-size: 0.875rem;
    }
    th, td {
        padding: 0.5rem;
    }
    h1 {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1.25rem;
    }
}