.card {
     border-radius: 24px;
     padding: 2rem;
     box-shadow: 0 10px 40px rgba(0,0,0,0.05);
     display: flex;
     flex-direction: column;
     justify-content: flex-start;
 }
 .card-header {
     margin-bottom: 1.5rem;
     display: flex;
     justify-content: space-between;
     align-items: center;
 }
 .card-title {
     font-size: 1.25rem;
     font-weight: 700;
     margin-left: 0.75rem;
 }
 .toggle-buttons {
    background: var(--color-light);
     border-radius: 10px;
     padding: 4px;
     display: inline-flex;
 }
 .toggle-btn {
     font-size: 0.9rem;
     border-radius: 8px;
     text-transform: none;
     padding: 6px 12px;
     border: none;
     background: transparent;
     font-weight: 600;
     cursor: pointer;
 }
 .toggle-btn.active {
     background: var(--color-white);
     box-shadow: 0 4px 10px rgba(0,0,0,0.1);
 }
.bot-card:hover,
.add-bot-card:hover {
    background-color: var(--color-light);
    border-color: var(--color-light);
    box-shadow: none;
    transform: none;
}
 .add-bot-card {
     border-width: 1.1px;
     border-color: var(--color-border);
     color: var(--color-dark);
     background-color: var(--color-white);
 }
 .add-bot-card:hover { color: var(--color-dark); }
 .bot-details {
     display: flex;
     flex-direction: column;
     justify-content: center;
 }
 .bot-name {
     font-weight: 550;
     font-size: 1rem;
     color: var(--color-dark);
     line-height: 1.2;
 }
 .bot-broker {
     font-size: 0.8rem;
     color: var(--color-text-secondary);
     line-height: 1.2;
 }
 .bot-icon img {
     width: 28px;
     height: 28px;
     border-radius: 50%;
 }
 .advanced-settings.disabled {
     opacity: 0.4;
     pointer-events: none;
 }
 .backtest-placeholder {
     background-color: var(--color-border);
     border-radius: 12px;
     padding: 4rem 1rem;
     text-align: center;
     color: var(--color-text-tertiary);
     font-weight: 600;
     margin-bottom: 1rem;
 }
 .disclaimer {
     text-align: center;
     font-size: 0.8rem;
     color: var(--color-text-tertiary);
     margin-bottom: 2rem;
 }
 .dashboard-page main {
     padding: 2rem 0;
 }
 .dashboard-page .container {
     max-width: 1280px !important;
 }
 .graph-toggles {
     display: flex;
     align-items: center;
     gap: 1rem;
 }
 .timeframe-dropdown {
     position: relative;
 }
 .timeframe-selected {
     font-size: 0.9rem;
     border-radius: 10px;
     padding: 6px 12px;
     border: none;
    background: var(--color-light);
     font-weight: 600;
     cursor: pointer;
     display: flex;
     align-items: center;
     gap: 0.5rem;
 }
 .timeframe-selected svg {
     width: 16px;
     height: 16px;
     transition: transform 0.3s ease;
 }
 .timeframe-dropdown.active .timeframe-selected svg {
     transform: rotate(180deg);
 }
 .timeframe-list {
     display: none;
     position: absolute;
     top: calc(100% + 5px);
     right: 0;
     background-color: var(--color-white);
     border-radius: 8px;
     box-shadow: 0 5px 25px rgba(0,0,0,0.1);
     border: 1px solid var(--color-border);
     min-width: 120px;
     z-index: 10;
     overflow: hidden;
     padding: 0.5rem;
     list-style: none;
 }
 .timeframe-dropdown.active .timeframe-list {
     display: block;
 }
 .timeframe-list li {
     padding: 10px 15px;
     font-size: 0.9rem;
     cursor: pointer;
     border-radius: 6px;
 }
 .timeframe-list li:hover {
    background-color: var(--color-light);
 }
 .timeframe-list li.active {
     font-weight: 700;
 }
 .graph-placeholder {
     width: 100%;
     min-height: 300px;
    background-color: var(--color-light);
     border-radius: 12px;
     position: relative;
     padding: 20px 20px 40px 40px;
     display: flex;
 }
 .y-axis {
     height: 100%;
     display: flex;
     flex-direction: column;
     justify-content: space-between;
     text-align: right;
     font-size: 0.8rem;
     color: var(--color-text-secondary);
     padding-right: 10px;
     flex-shrink: 0;
 }
 .x-axis {
     position: absolute;
     bottom: 15px;
     left: 40px;
     right: 20px;
     display: flex;
     justify-content: space-between;
     font-size: 0.8rem;
     color: var(--color-text-secondary);
 }
 .stats-grid {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 0.85rem;
     margin-top: 1.5rem;
     text-align: left;
 }
 .stat .value {
     font-size: 3.45rem;
     font-weight: 700;
 }
 .stat .label {
     font-size: 0.8rem;
     color: var(--color-text-secondary);
 }
.bot-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 0;
    min-height: min-content;
    padding: 8px 4px;
}
.bot-card,
.add-bot-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-dark);
    box-sizing: border-box;
    will-change: transform, box-shadow, background-color;
    transition: all 0.2s ease-out;
}
.bot-card {
    background-color: transparent;
    border: none;
    min-height: 86px;
}
.bot-card:hover {
    background-color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: none;
    z-index: 1;
}
.bot-card-main-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: inherit;
    text-decoration: none;
}
 .bot-info {
     display: flex;
     align-items: center;
     gap: 1rem;
     flex-grow: 1;
 }
 .bot-icon, .bot-icon img, .bot-icon svg {
     width: 32px;
     height: 32px;
     border-radius: 50%;
     display: block;
 }
 .bot-details {
     display: flex;
     flex-direction: column;
     justify-content: center;
     gap: 4px;
 }
 .bot-name {
     font-weight: 600;
     font-size: 0.95rem;
     color: var(--color-dark);
     line-height: 1.2;
 }
 .bot-subline {
    display: flex;
    align-items: center;
    gap: 8px;
}
 .bot-broker {
     font-size: 0.8rem;
     color: var(--color-text-secondary);
     line-height: 1;
 }
 .bot-profit {
     font-weight: 600;
     font-size: 0.9rem;
     color: var(--color-green);
     white-space: nowrap;
 }
.add-bot-card {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 1.5rem;
    min-height: auto;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
        background-color: var(--color-light);
        border: 1px solid var(--color-light);
    border-radius: 12px;
    color: var(--color-dark);
    font-weight: 600;
}
.add-bot-card:hover {
     background-color: var(--color-border);
     border-color: var(--color-border);
     color: var(--color-dark);
     transform: translateY(-1px);
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
     z-index: 1;
 }
.add-bot-card:active {
    transform: translateY(0);
    background-color: var(--color-border);
    box-shadow: none;
}
.add-bot-card .bot-icon.add-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    margin-right: 0.5rem;
    width: auto;
    height: auto;
    transition: color 0.2s ease;
}
.add-bot-card:hover .bot-icon.add-icon {
    color: var(--color-dark);
}
.dashboard-page main {
    display: flex;
    justify-content: center;
    width: 100%;
}
.header-app .container {
    max-width: 1280px !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) minmax(320px, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-page .container {
        padding: 0 15px;
    }
}
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1;
}
.status-pill.active {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-green);
}
.status-pill.inactive {
    background-color: var(--color-light);
    color: var(--color-text-tertiary);
}
.status-pill.deleted {
    background-color: rgba(142, 142, 147, 0.12);
    color: var(--color-text-tertiary);
}
.bot-card:has(.status-pill.inactive) .bot-icon,
.bot-card:has(.status-pill.deleted) .bot-icon {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.2s ease;
}
.bot-card:hover .bot-icon {
    filter: grayscale(0%);
    opacity: 1;
}
.setup-completion-card {
    background-color: var(--color-white);
    border-radius: 24px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .setup-completion-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }
}
.progress-indicator-wrapper {
    flex-shrink: 0;
}
.progress-ring {
    position: relative;
    width: 64px;
    height: 64px;
}
.progress-ring__svg {
    width: 64px;
    height: 64px;
    transform: rotate(-90deg);
}
.progress-ring__bg {
    fill: transparent;
    stroke: var(--color-light);
    stroke-width: 8;
}
.progress-ring__circle {
    fill: transparent;
    stroke: var(--color-dark);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    animation: fillProgress 1.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    animation-delay: 0.3s;
}
@keyframes fillProgress {
    to {
        stroke-dashoffset: calc(339.292 - (339.292 * var(--percent, 0) / 100));
    }
}
.progress-ring__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-dark);
}
.setup-content {
    flex-grow: 1;
}
.setup-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.4rem;
    line-height: 1.2;
}
.setup-description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
    max-width: 50ch;
}
@media (max-width: 768px) {
    .setup-description {
        margin: 0 auto;
    }
}
.setup-action {
    flex-shrink: 0;
}
.setup-btn {
    display: inline-block;
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    will-change: transform, box-shadow, background-color;
    transition: all 0.2s ease-out;
}
.setup-btn:hover {
    background-color: var(--color-dark);
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}
.setup-btn:active {
    transform: translateY(0);
    box-shadow: none;
    background-color: var(--color-dark);
}
.info-modal-content {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    background-color: var(--color-white);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.info-modal-content h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.info-modal-content p.modal-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}
.info-modal-content .primary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    background-color: var(--color-dark);
    color: var(--color-white);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(0);
}
.info-modal-content .primary-button:hover {
    background-color: var(--color-dark);
    opacity: 0.9;
    transform: translateY(-1.5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.info-modal-content .primary-button:active {
    transition: all 0.1s;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.api-key-selection-container #existing-keys-section,
.api-key-selection-container .add-new-key-section {
    margin-top: 0rem;
}
.api-key-selection-container .add-new-key-section {
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
}
.api-key-selection-container #existing-keys-section[style*="display: none"] + .add-new-key-section {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}
.api-key-selection-container h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}
#existing-keys-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.api-key-item {
    display: inline-block;
    padding: 8px 25px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
    text-decoration: none;
    background-color: var(--color-dark);
    color: var(--color-white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}
.api-key-item:hover {
    background-color: var(--color-dark);
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
.broker-selection-container {
    max-width: 700px;
    margin: 4rem auto;
    padding: 3rem;
    background-color: var(--color-white);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
}
.broker-selection-container h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-dark);
}
.broker-selection-container p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    max-width: 45ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}
.broker-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
}
.broker-card {
    width: 100%;
    max-width: 160px;
    margin: 0 auto;
    border: none !important;
    border-radius: 16px;
    padding: 1rem;
    background: var(--color-white);
    cursor: pointer;
    position: relative;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: transform 0.3s cubic-bezier(0.4, 0.2, 0.2, 1), box-shadow 0.3s ease;
    transform-style: preserve-3d;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.broker-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: none !important;
}
.broker-logo {
    height: 48px;
    width: auto;
    margin-bottom: 0.75rem;
}
.broker-name {
    font-weight: 600;
    font-size: 1rem;
}
.broker-description {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-top: 0.25rem;
    line-height: 1.4;
}
.broker-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--color-light);
    color: var(--color-dark);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 700;
}
.api-key-selection-container {
    padding: 3rem;
    display: block;
    text-align: center;
}
.api-key-selection-container .close-modal-btn {
    display: none;
}
.api-key-selection-container h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-dark);
}
.api-key-selection-container p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    max-width: 45ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}
.info-modal-content p.modal-description {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 2.5rem;
    max-width: none;
}
.api-key-selection-container p.modal-description {
    white-space: nowrap;
}
.api-key-selection-container .form-group input {
    width: 100%;
    box-sizing: border-box;
}
.api-key-selection-container #existing-keys-section h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0;
    margin-bottom: 1.5rem;
    text-align: left;
}
.api-key-selection-container #add-api-key-form {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.api-key-selection-container .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.api-key-selection-container .form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-dark);
    text-align: left;
}
.api-key-selection-container .form-group input[type="text"],
.api-key-selection-container .form-group input[type="password"] {
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background-color: var(--color-white);
    color: var(--color-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.api-key-selection-container .form-group input[type="text"]:focus,
.api-key-selection-container .form-group input[type="password"]:focus {
    outline: none;
    border-color: var(--color-dark);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}
.api-key-selection-container .primary-button {
    display: block;
    width: 100%;
    font-family: inherit;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    border-radius: 10px;
    border: none;
    background-color: var(--color-dark);
    color: var(--color-white);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 6px 12px -2px rgba(0,0,0,0.1);
    hyphens: auto;
    line-height: 1.2;
}
.api-key-selection-container .primary-button:hover {
    background-color: var(--color-dark);
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.api-key-selection-container #api-key-form-feedback {
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-error);
    margin-top: 0.5rem;
}
.wizard-broker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 520px;
    margin: 0 auto 2rem auto;
}
.wizard-broker-grid .broker-card {
    width: 100%;
    min-height: 130px;
    padding: 1.25rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1), box-shadow 0.2s ease;
    transform-style: preserve-3d;
}
.wizard-broker-grid .broker-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: none !important;
}
.wizard-broker-grid .broker-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}
.wizard-broker-grid .broker-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-dark);
    text-align: center;
}
@media (max-width: 480px) {
    .wizard-broker-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.referral-page .container {
    max-width: 850px;
}
.referral-section {
    background-color: var(--color-white);
    padding: 4rem 3rem 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    text-align: center;
}
.referral-icon,
.referral-icon svg {
    display: none;
}
#invite-friends-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}
@media (min-width: 768px) {
    #invite-friends-btn .invite-btn-icon {
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important;
        flex-shrink: 0 !important;
    }
}
@media (min-width: 768px) {
    #invite-friends-btn .invite-label-mobile,
    #invite-friends-btn .invite-btn-icon {
        display: none !important;
    }
    #invite-friends-btn .invite-label-desktop {
        display: inline;
    }
}
.referral-section .referral-headline {
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.9rem;
}
.referral-section .referral-headline .headline-primary {
    font-size: 3rem;
    color: var(--color-text-secondary);
    font-weight: 600;
}
.referral-section .referral-headline .headline-secondary {
    font-size: 3rem;
    color: var(--color-dark);
}
.referral-section .referral-subheadline {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 45ch;
    margin: 0 auto 3rem auto;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 3rem;
}
.referral-section .referral-subheadline strong {
    color: var(--color-dark);
    font-weight: 600;
}
.referral-stats {
    display: flex;
    justify-content: center;
    gap: clamp(3rem, 9vw, 8rem);
    padding: 1.5rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 3rem;
}
.referral-stats .stat {
    flex: none;
    text-align: center;
}
.stat .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-dark);
}
.stat .stat-label .tooltip-icon {
    margin-left: 0.35rem;
    vertical-align: middle;
    letter-spacing: 0;
    text-transform: none;
}
.stat .stat-label .tooltip-text {
    letter-spacing: 0;
    text-transform: none;
}
.stat .stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.referral-link-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1rem;
    text-align: left;
}
.referral-link-wrapper {
    display: flex;
    gap: 0.75rem;
}
.referral-link-input {
    flex-grow: 1; padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    border: 1px solid var(--color-border); border-radius: 12px;
    background-color: var(--color-light); color: var(--color-text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#copy-link-btn {
    min-width: 120px;
}
#copy-link-btn:hover {
    transform: none !important;
}
.rewards-explanation {
    margin-top: 1.5rem;
    padding-top: 2rem;
    text-align: left;
}
.rewards-explanation h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.rewards-explanation p {
    font-size: 0.9rem;
    max-width: none;
    line-height: 1.6;
}
.referral-stats .stat:not(:last-child)::after {
    display: none;
}
.pro-upgrade-page .container {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem 1.5rem;
}
.pro-upgrade-page .pro-intro-section,
.pro-upgrade-page .guide-section {
    background-color: var(--color-white);
    border-radius: 24px;
    padding: 3rem;
    margin-top: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);
}
@media (max-width: 768px) {
    .pro-upgrade-page .pro-intro-section,
    .pro-upgrade-page .guide-section {
        padding: 2rem;
    }
}
.pro-upgrade-page .pro-intro-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.pro-upgrade-page .pro-intro-text h1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: var(--color-dark);
    letter-spacing: -0.02em;
}
.pro-upgrade-page .pro-intro-text h1 .headline-text-wrapper {
    display: inline-block;
    line-height: 1.2;
}
.pro-upgrade-page .pro-intro-text h1 .headline-secondary {
    display: inline;
    color: var(--color-text-secondary);
    font-weight: 600;
    font-size: 1em;
}
.pro-upgrade-page .pro-icon-headline {
    width: 1.8em;
    height: 1.8em;
    flex-shrink: 0;
}
.pro-upgrade-page .pro-intro-text p {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    max-width: 60ch;
    margin: 1.5rem auto 0 auto;
    line-height: 1.7;
}
.pro-upgrade-page .pro-intro-text p strong {
    color: var(--color-dark);
    font-weight: 600;
}
.pro-upgrade-page .pro-intro-benefits {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 3.5rem auto 0;
  max-width: 700px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem 1.5rem;
  justify-content: center;
}
.pro-upgrade-page .pro-intro-benefits h3 {
  display: none;
}
.pro-upgrade-page .benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
  padding: 0;
  border-bottom: none;
}
.pro-upgrade-page .benefit-item svg {
  width: 36px;
  height: 36px;
    color: var(--color-dark);
  flex-shrink: 0;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}
.pro-upgrade-page .benefit-item p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-primary);
  margin: 0;
  letter-spacing: 0;
}
.pro-upgrade-page .benefit-item p strong {
  color: var(--color-dark);
  font-weight: 600;
  display: block;
  margin-bottom: 0.15rem;
  font-size: 1.05rem;
}
@media (max-width: 768px) {
  .pro-upgrade-page .pro-intro-benefits {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}
.pro-upgrade-page .guide-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--color-dark);
    letter-spacing: -0.02em;
}
.pro-upgrade-page .step-by-step-guide {
    max-width: 700px;
    margin: 0 auto;
}
.pro-upgrade-page .step {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
    padding: 2rem 0;
}
.pro-upgrade-page .step:not(:last-child) {
    border-bottom: 1px solid var(--color-border);
}
.pro-upgrade-page .step-number {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-dark);
    background: var(--color-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    position: relative;
    top: 0;
}
.pro-upgrade-page .step-content {
    flex: 1;
    min-width: 0;
}
.pro-upgrade-page .step-content h3 {
    margin-top: 0;
    margin-bottom: 0.6rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-dark);
}
.pro-upgrade-page .step-content p {
    font-size: 1rem;
    max-width: none;
    margin-bottom: 1.2rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}
.pro-upgrade-page .step-content .btn-primary {
    display: inline-block;
    width: auto;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
    border-radius: 12px;
}
.pro-upgrade-page .guide-accordion {
    border: none;
    width: 100%;
}
.pro-upgrade-page .guide-accordion summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    cursor: pointer;
    list-style: none;
}
.pro-upgrade-page .guide-accordion summary::-webkit-details-marker {
    display: none;
}
.pro-upgrade-page .guide-accordion .summary-content {
    flex-grow: 1;
}
.pro-upgrade-page .guide-accordion .summary-arrow {
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.2s ease-in-out;
    color: var(--color-text-secondary);
}
.pro-upgrade-page .guide-accordion[open] > summary .summary-arrow {
    transform: rotate(180deg);
}
.pro-upgrade-page .guide-accordion .accordion-content {
    padding: 1.5rem 0 0 0;
    margin-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}
.pro-upgrade-page .binance-guide-list {
    padding-left: 0;
    list-style-type: none;
    margin-top: 1.5rem;
}
.pro-upgrade-page .binance-guide-list li {
    margin-bottom: 1.8rem;
}
.pro-upgrade-page .binance-guide-list p {
    color: var(--color-text-secondary);
    margin-top: 0.5rem;
    font-size: 1rem;
}
.pro-upgrade-page .binance-guide-list code {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 0.2em 0.5em;
    border-radius: 6px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    color: var(--color-dark);
    font-size: 0.95em;
}
.pro-upgrade-page .binance-guide-list small {
    color: var(--color-text-secondary);
    font-style: italic;
    font-size: 0.9em;
}
.pro-upgrade-page .copy-box {
    background-color: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.95rem;
    color: var(--color-text-primary);
    white-space: normal;
    word-wrap: break-word;
    margin-top: 0.75rem;
    text-align: left;
}
.account-completion-page .onboarding-progress {
    display: none;
}
.account-completion-page .container {
    max-width: 850px;
}
.account-completion-page main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 2rem 0;
}
.completion-card {
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    text-align: center;
    width: 100%;
}
.completion-card h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--color-dark);
}
.completion-card > p {
    display: none;
}
.completion-form {
    text-align: left;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}
.form-group .form-control {
    width: 100%;
}
.dashboard-grid {
    display: block;
    min-height: 0;
}
.dashboard-main-content {
    --dashboard-rail-gap: 1rem;
    --dashboard-right-rail-width: calc((((100% - (4 * var(--dashboard-rail-gap))) / 5) * 2) + var(--dashboard-rail-gap));
}
.card-main-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
    min-width: 0;
}
.dashboard-sidebar .split-card {
    flex: 1;
}
.split-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 1.5rem;
    padding-top: 2rem;
    min-height: 0;
    border-radius: 16px;
}
.card-header.no-margin-bottom {
    margin-bottom: 1rem;
    flex-shrink: 0;
}
.graph-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.graph-placeholder {
    flex-grow: 1;
}
.scrollable-list-wrapper {
    flex-grow: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    height: 165px;
    padding-bottom: 1rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15px, black calc(100% - 15px), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15px, black calc(100% - 15px), transparent 100%);
}
.scrollable-list-wrapper::-webkit-scrollbar {
    display: none;
}
.bot-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.fixed-action-area {
    flex-shrink: 0;
    padding-top: 1rem;
    margin-top: auto;
    border-top: none;
}
.broker-total-display {
    text-align: right;
    display: flex;
    flex-direction: column;
}
.broker-total-display .label {
    font-size: 0.65rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}
.broker-total-display .amount {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-dark);
}
.bot-subline .bot-count-badge {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    background-color: transparent;
    padding: 0;
    margin-top: 2px;
    font-weight: 400;
    line-height: 1;
}
.timeframe-selected,
.balance-badge {
    height: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 0.85rem;
    line-height: 1;
}
.balance-badge {
    background-color: var(--color-light);
    color: var(--color-dark);
    font-weight: 600;
    white-space: nowrap;
    gap: 8px;
    border: 1px solid transparent;
}
.balance-badge .label {
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
}
.timeframe-selected {
    gap: 6px;
    background-color: transparent;
    color: var(--color-text-secondary);
    border: 1px solid transparent;
    font-family: var(--font-family-base);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.timeframe-selected:hover {
    background-color: rgba(0, 0, 0, 0.04);
}
.timeframe-selected:active {
    transform: scale(0.96);
}
.timeframe-selected svg {
    transform: scaleY(1);
    transition: transform 0.3s ease-in-out;
    transform-origin: center center;
    display: block;
    width: 10px;
    height: 10px;
    color: currentColor;
}
.timeframe-dropdown.active .timeframe-selected svg {
    transform: scaleY(-1);
}
#broker-dropdown .timeframe-list {
    border-radius: 12px;
}
.timeframe-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    margin-top: 1.5rem;
    width: 100%;
    gap: 0.75rem;
}
.timeframe-btn {
    flex: 0 1 auto;
    min-width: 45px;
    text-align: center;
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--color-text-tertiary);
    cursor: pointer;
    padding: 0.5rem 0.25rem;
    border-radius: 8px;
    transition: color 0.2s ease;
    white-space: nowrap;
}
.timeframe-btn:hover,
.timeframe-btn.active {
    color: var(--color-dark);
    background-color: transparent;
}
.graph-overlay-header {
    position: absolute;
    top: 15px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    padding-bottom: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.card-title-small {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-dark);
}
.mini-switcher {
    background: var(--color-light);
    border-radius: 8px;
    padding: 2px;
    height: 32px;
    display: inline-flex;
    align-items: center;
}
.mini-switcher .toggle-btn {
    font-size: 0.8rem;
    padding: 4px 10px;
    height: 28px;
    border-radius: 6px;
}
.card-header:has(.card-title#graph-title) {
    display: none;
}
.graph-container-inner {
    position: relative;
    width: 100% !important;
    height: 450px !important;
    margin-bottom: 2rem;
    padding-top: 0px;
    box-sizing: border-box;
}
.graph-overlay-header {
    position: absolute;
    top: 10px;
    left: 20px;
    right: 20px;
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.graph-container-inner:hover .graph-overlay-header {
    opacity: 1;
    pointer-events: auto;
}
#dashboard-chart {
    width: 100% !important;
    height: calc(100% - 20px) !important;
    will-change: width;
}
.stats-management-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, var(--dashboard-right-rail-width));
    gap: var(--dashboard-rail-gap);
    margin-top: 3rem;
    margin-bottom: 3rem;
    align-items: stretch;
}
.stats-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.25rem;
     background-color: transparent;
    border-radius: 16px;
    gap: 2rem;
    margin: 0;
    font-family: inherit;
}
.stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
    padding-bottom: 15px;
}
.stat:not(:last-child)::after {
    display: none;
}
.stat .value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.2;
}
.stat .label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}
#rendite-value.pos { color: var(--color-green); }
#rendite-value.neg { color: var(--color-text-secondary); }
@media (max-width: 640px) {
    .stats-grid { padding: 1rem 0.9rem; gap: 0.5rem; }
    .stat .value { font-size: 1.1rem; }
    .stat .label { font-size: 0.75rem; }
    .stats-management-row { grid-template-columns: 1fr; }
}
.stat .value {
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}
.stat .value.is-switching {
    opacity: 0;
    transform: translateY(4px);
}
.stat .label {
    transition: opacity 0.4s ease;
}
.stat.is-loading .label {
    opacity: 0.6;
}
.ranking-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--dashboard-rail-gap);
    width: 100%;
}
.dashboard-page .top-movers-tooltip {
    width: min(522px, calc(100vw - 24px));
}
.ranking-card {
    background: var(--color-white);
    border-radius: 18px;
    padding: 1.25rem;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 160px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: all 0.2s ease-out;
    will-change: transform, box-shadow;
}
.ranking-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    cursor: pointer;
}
.ranking-card:hover .copy-btn-mini {
    color: var(--color-dark) ;
}
.friends-ranking-section {
    margin-top: 3.5rem;
    margin-bottom: 9rem;
}
.friends-ranking-grid {
    min-height: 140px;
}
.friends-header-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--dashboard-rail-gap);
    align-items: center;
    width: 100%;
}
.friends-header {
    display: block;
}
.friends-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    grid-column: 1 / 2;
}
.friends-ranking-link {
    grid-column: 2 / 3;
    justify-self: start;
    background: none;
    border: none;
    color: var(--color-text-tertiary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    text-decoration: none;
}
.friends-ranking-link .arrow {
    font-size: 1.2rem;
    line-height: 1;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.friends-ranking-link:hover .arrow {
    transform: translateX(4px);
}
.friends-toggle {
    grid-column: 5 / 6;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
}
.friends-ranking-card {
    background: var(--color-light);
    border-radius: 18px;
    min-height: 140px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: box-shadow 0.2s ease-out, transform 0.2s ease-out;
}
.friends-ranking-card:hover {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    z-index: 100;
    overflow: visible;
}
.friends-card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}
.friends-card-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}
.friends-rank-number {
    font-size: 38px;
    line-height: 0.75;
    margin: 0;
    font-weight: 700;
    color: var(--color-white);
    opacity: 0.65;
}
.friends-alias-label {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-bottom: 5px;
    line-height: 1;
}
.friends-daily-return {
    color: var(--color-green);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 2px;
    line-height: 1;
}
.friends-sparkline {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 65%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
}
.rank-number {
    position: absolute;
    right: -10px;
    bottom: -20px;
    font-size: 7rem;
    font-weight: 1000;
    color: var(--color-light);
    z-index: 1;
    line-height: 1;
    pointer-events: none;
}
.card-main-info {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.trader-alias { font-weight: 700; font-size: 0.85rem; color: var(--color-dark); margin-bottom: 0.5rem; }
.currency-info { display: flex; flex-direction: column; margin-bottom: 0.5rem; margin-top: 1rem; }
.coin-name { font-weight: 600; font-size: 0.95rem; line-height: 1.2; }
.broker-label { font-size: 0.8rem; color: var(--color-text-secondary); margin-bottom: 0.5rem; }
.roi-value { color: var(--color-green); font-weight: 700; font-size: 1.1rem; }
.copy-btn-mini {
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--color-text-tertiary);
    z-index: 3;
    transition: color 0.2s;
}
.copy-btn-mini:hover { color: var(--color-dark); }
.ranking-card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    z-index: 10;
    margin-bottom: 12px;
}
.trader-avatar-wrapper {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
}
.trader-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--avatar-blob-radius);
    overflow: hidden;
    background-color: var(--color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.friends-ranking-card .trader-avatar {
    background-color: var(--color-border);
}
.trader-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}
.trader-avatar-initials {
    color: var(--color-dark);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}
.copy-btn-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    color: var(--color-text-tertiary);
    transition: color 0.2s ease;
    cursor: pointer;
    margin-top: 4px;
    margin-right: 4px;
}
.copy-btn-mini:hover {
    color: var(--color-dark);
}
.avatar-alias-tooltip {
    position: absolute;
    top: 32px;
    left: 0;
    background: rgba(26, 24, 23, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-5px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 2147483647;
}
.trader-avatar-wrapper:hover .avatar-alias-tooltip,
.copy-btn-mini:hover .avatar-alias-tooltip {
    opacity: 1;
    transform: translateY(0);
}
.filter-btn-apple {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-light);
    border: none;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}
.filter-btn-apple:hover {
    background-color: var(--color-border);
    transform: scale(0.98);
}
.filter-modal-content {
    max-width: 480px;
    min-height: 300px;
    background-color: var(--color-white);
    border-radius: 24px;
    padding: 2.5rem;
}
.filter-modal-content {
    max-width: 480px;
    width: 90%;
    background-color: var(--color-white);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
}
.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: none;
}
.filter-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}
.filter-section {
    margin-bottom: 1.5rem;
    text-align: left;
}
.filter-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
    color: var(--color-dark);
}
.filter-options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.filter-pill-label {
    cursor: pointer;
    user-select: none;
}
.filter-pill-input {
    display: none;
}
.filter-pill {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    background-color: var(--color-light);
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}
.filter-pill-input:checked + .filter-pill {
    background-color: var(--color-dark);
    color: var(--color-white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.filter-pill:hover {
    background-color: var(--color-border);
}
.filter-pill-input:checked + .filter-pill:hover {
    background-color: var(--color-dark);
}
.filter-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: none;
    gap: 1rem;
}
.btn-reset-filter {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 10px;
}
.btn-reset-filter:hover {
    color: var(--color-dark);
    text-decoration: underline;
}
.btn-apply-filter {
    background-color: var(--color-dark);
    color: var(--color-white);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    flex-grow: 1;
    transition: transform 0.2s ease;
}
.btn-apply-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.filter-accordion {
    border-bottom: 1px solid var(--color-border);
}
.filter-accordion-item {
    border-bottom: 1px solid var(--color-border);
}
.filter-accordion-item:last-child {
    border-bottom: none;
}
.filter-accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark);
    cursor: pointer;
    text-align: left;
}
.filter-accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
    overflow: hidden;
    padding-bottom: 0;
}
.filter-accordion-content > div {
    min-height: 0;
}
.filter-accordion-item.active .filter-accordion-content {
    grid-template-rows: 1fr;
    padding-bottom: 1rem;
}
.filter-plus-icon {
    position: relative;
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
}
.filter-plus-icon::before,
.filter-plus-icon::after {
    content: '';
    position: absolute;
    background-color: var(--color-text-secondary);
    transition: transform 0.3s ease;
}
.filter-plus-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    margin-top: -1px;
}
.filter-plus-icon::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    margin-left: -1px;
}
.filter-accordion-item.active .filter-plus-icon {
    transform: rotate(45deg);
}
.filter-range-group {
    text-align: left;
}
.filter-range-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 68px;
    align-items: center;
    gap: 0.85rem;
    padding: 0.35rem 0 0.15rem;
}
.filter-range-value {
    min-width: 68px;
    color: var(--color-dark);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    text-align: right;
    white-space: nowrap;
}
.filter-range-slider-shell {
    --range-start: 0%;
    --range-end: 100%;
    position: relative;
    height: 32px;
    display: flex;
    align-items: center;
    touch-action: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.filter-range-track,
.filter-range-track-active {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    border-radius: 999px;
    transform: translateY(-50%);
}
.filter-range-track {
    background: rgba(17, 17, 17, 0.16);
}
.filter-range-track-active {
    left: var(--range-start);
    right: calc(100% - var(--range-end));
    background: var(--color-dark);
}
.filter-range-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: none;
    outline: none;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}
.filter-range-input::-webkit-slider-runnable-track {
    height: 2px;
    background: transparent;
    border: none;
}
.filter-range-input::-moz-range-track {
    height: 2px;
    background: transparent;
    border: none;
}
.filter-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    margin-top: -5px;
    border: none;
    border-radius: 50%;
    background: var(--color-dark);
    box-shadow: none;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.16s ease, opacity 0.16s ease;
}
.filter-range-input::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: var(--color-dark);
    box-shadow: none;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.16s ease, opacity 0.16s ease;
}
.filter-range-input.is-active::-webkit-slider-thumb,
.filter-range-slider-shell.is-dragging .filter-range-input::-webkit-slider-thumb {
    transform: scale(1.25);
    opacity: 0.88;
}
.filter-range-input.is-active::-moz-range-thumb,
.filter-range-slider-shell.is-dragging .filter-range-input::-moz-range-thumb {
    transform: scale(1.25);
    opacity: 0.88;
}
.filter-range-input:focus,
.filter-range-input:focus-visible {
    outline: none;
    box-shadow: none;
}
.filter-range-input-min {
    z-index: 2;
}
.filter-range-input-max {
    z-index: 3;
}
.filter-range-input.is-active {
    z-index: 4;
}
.filter-range-touch-target {
    display: none;
    position: absolute;
    top: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    transform: translate(-50%, -50%);
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}
.filter-range-touch-min {
    left: var(--range-start);
}
.filter-range-touch-max {
    left: var(--range-end);
}
@media (pointer: coarse) {
    .filter-range-touch-target {
        display: block;
        z-index: 5;
    }
}
@media (max-width: 640px) {
    .filter-range-control {
        grid-template-columns: minmax(0, 1fr) 64px;
        gap: 0.7rem;
    }
    .filter-range-value {
        min-width: 64px;
        font-size: 0.85rem;
    }
    .filter-range-input::-webkit-slider-thumb {
        width: 12px;
        height: 12px;
        margin-top: -5px;
    }
    .filter-range-input::-moz-range-thumb {
        width: 12px;
        height: 12px;
    }
}
.add-binance-bot.wizard-preload main {
    opacity: 0;
}
.add-binance-bot main {
    transition: opacity 0.12s ease;
}
.dashboard-main-content .card {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
}
.comparison-toggle .switch input:checked + .slider::before {
    background-color: var(--color-light);
    box-shadow: none;
}
.dashboard-privacy-toggle {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.dashboard-privacy-toggle .switch {
    margin: 0;
}
.management-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0;
}
.management-box {
    background-color: var(--color-white);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    cursor: pointer;
    transition: all 0.2s ease-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid transparent;
    position: relative;
    flex: 1;
    color: inherit;
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.management-box:hover {
    transform: none;
    box-shadow: 0 6px 16px rgba(0,0,0,0.04);
}
.management-box:active {
    background-color: var(--color-white);
    border-color: transparent;
}
.management-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}
.management-action {
    display: none;
}
.management-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 20px;
    height: 20px;
    color: var(--color-text-tertiary);
    transition: all 0.2s ease;
}
.management-box:hover .management-arrow {
    color: var(--color-dark);
    transform: translateX(4px);
}
.primary-button {
    background-color: var(--color-dark);
    color: var(--color-white);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    background-color: var(--color-dark);
}
.primary-button.full-width {
    width: 100%;
    display: block;
}
@media (max-width: 640px) {
    .management-grid {
        grid-template-columns: 1fr;
    }
}
.dashboard-grid {
    display: block;
    min-height: 0;
}
.dashboard-top-row {
    display: grid;
    grid-template-columns: 1fr 0fr;
    gap: 0;
    align-items: start;
    transition: grid-template-columns 0.42s cubic-bezier(0.4, 0, 0.2, 1),
                gap 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: grid-template-columns, gap;
}
.dashboard-chart-panel {
    min-width: 0;
}
.dashboard-sidebar {
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform-origin: right center;
    transform: translate3d(20px, 0, 0);
    position: relative;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.dashboard-grid.sidebar-visible .dashboard-top-row {
    grid-template-columns: minmax(0, 1fr) minmax(320px, var(--dashboard-right-rail-width));
    gap: var(--dashboard-rail-gap);
}
.dashboard-grid.sidebar-visible .dashboard-sidebar {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}
.dashboard-sidebar .split-card {
    display: flex !important;
    width: 100%;
    min-height: 0;
}
.sidebar-panel {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    opacity: 1;
    z-index: 1;
    transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
#sidebar-bots {
    transform: translate3d(-105%, 0, 0);
}
#sidebar-brokers {
    transform: translate3d(105%, 0, 0);
}
.dashboard-grid.active-tab-bots #sidebar-bots,
.dashboard-grid.active-tab-brokers #sidebar-brokers {
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    z-index: 10;
}
.dashboard-grid.active-tab-bots #sidebar-brokers {
    transform: translate3d(105%, 0, 0);
}
.dashboard-grid.active-tab-brokers #sidebar-bots {
    transform: translate3d(-105%, 0, 0);
}
.dashboard-chart-panel,
.dashboard-sidebar,
.sidebar-panel {
    will-change: transform, opacity;
}
@media (prefers-reduced-motion: reduce) {
    .dashboard-top-row,
    .dashboard-sidebar,
    .sidebar-panel {
        transition: none !important;
    }
}
.dashboard-sidebar .scrollable-list-wrapper {
    height: auto;
    min-height: 0;
    flex-grow: 1;
}
@media (max-width: 1024px) {
    .dashboard-grid.sidebar-visible .dashboard-top-row {
        grid-template-columns: 1fr;
    }
    .dashboard-grid.sidebar-visible .dashboard-sidebar {
        display: block;
    }
}
.dashboard-main-content > .card {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
}
.dashboard-sidebar .card.split-card {
    background: var(--color-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 1.5rem;
    width: 100%;
}
.mobile-app-note {
    display: none !important;
}
