/* ── Keyframe Animations ── */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes qrPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(123, 94, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(123, 94, 255, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* ── Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    background-color: #0a0a0a;
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(115, 84, 255, 0) 0%, transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(124, 94, 255, 0.205) 0%, transparent 45%);
    background-attachment: fixed;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #fff;
    cursor: auto;
}

a { cursor: none; }

/* ── Card ── */
.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    overflow: hidden;
    margin: 0;
    animation: fadeSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Header ── */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px 14px;
    background-color: #0000001c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: -0.01em;
}

.brand-bold {
    font-weight: 700;
    color: #fff;
}

.menu-icon {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
}

/* ── Main Row (QR + info) ── */
.main-row {
    display: flex;
    justify-content: center;
    gap: 20px;
}
/* ── QR Code ── */
.qr-wrapper {
    flex-shrink: 0;
    margin-left: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* ── Info Side ── */
.content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
    position: relative;
    overflow: visible;
}

.label {
    margin: 0;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    z-index: 1;
}

/* ── Token Badge ── */
.box {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    background: rgba(77, 77, 77, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    width: fit-content;
}

.usdt {
    width: 18px;
    height: 18px;
}

.network-badge {
    font-size: 9px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.25);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    letter-spacing: 0.05em;
}

/* ── Wallet Address ── */
.address-label {
    margin: 0;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.address {
    margin: 0;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Balance Section ── */
.balance-section {
    padding: 14px 20px;
}


.cent{
    font-size: 10px;
    color: gray;
    margin: 0;
}
.balance-display-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.balance-bdt-label {
    font-size: 10px;
    font-weight: 600;
    padding: 0;
    color: rgb(121, 121, 121);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.balance-amount {
    font-size: 22px;
    margin: 0;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.balance-currency {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.balance-refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0);
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 2px;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
    padding: 0;
}

.balance-refresh-btn:active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.balance-refresh-btn.spinning svg {
    animation: spinOnce 0.5s linear;
}

@keyframes spinOnce {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Divider ── */
.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 0 20px;
}

/* ── Trade Status Log Bar ── */
@keyframes tlbPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .55; }
}
@keyframes tlbCountUp {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes tlbProfitFlash {
    0%   { color: #26c69d; text-shadow: 0 0 8px rgba(38,198,157,.7); }
    100% { color: inherit; text-shadow: none; }
}
@keyframes tlbLossFlash {
    0%   { color: #ff5c5c; text-shadow: 0 0 8px rgba(255,92,92,.6); }
    100% { color: inherit; text-shadow: none; }
}

.trade-log-bar {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0 20px 4px;
    padding: 0;
    background: rgba(12, 12, 12, 0);
    border: 1px solid rgba(255, 255, 255, 0);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

/* Top Gradient Line */
.trade-log-bar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background-color: #000000;
    background: linear-gradient(90deg, transparent, rgba(175, 255, 83, 0.3), transparent);
    pointer-events: none;
}

/* Bottom Gradient Line */
.trade-log-bar::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; /* Changed top: 0 to bottom: 0 */
    height: 1px;
    background-color: #000000;
    background: linear-gradient(90deg, transparent, rgba(175, 255, 83, 0.3), transparent);
    pointer-events: none;
}

.tlb-cell {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
}

.tlb-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.103);
    flex-shrink: 0;
}

.tlb-icon {
    flex-shrink: 0;
    color: rgba(255,255,255,.35);
    display: flex;
    align-items: center;
    animation: tlbPulse 3s ease-in-out infinite;
}

.tlb-icon-profit {
    color: rgba(38,198,157,.7);
    animation: tlbPulse 2.4s ease-in-out infinite;
}

.tlb-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tlb-label {
    font-size: 9px;
    font-weight: 700;
    color: rgba(255,255,255,.28);
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1;
}

.tlb-value {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,.75);
    font-family: 'Courier New', monospace;
    letter-spacing: .02em;
    line-height: 1;
    transition: color .3s ease;
    animation: tlbCountUp .35s ease both;
}

.tlb-profit {
    color: rgba(38,198,157,.9);
}

.tlb-profit.flash-win {
    animation: tlbProfitFlash .6s ease both;
}

.tlb-profit.flash-loss {
    animation: tlbLossFlash .6s ease both;
}

.trade-log-icon {
    font-size: 13px;
    flex-shrink: 0;
    color: rgba(38, 198, 157, 0.85);
}

.trade-log-text {
    flex: 1;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Address row ── */
.address-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
    position: relative;
    z-index: 1;
}

.box, .address-label, .address {
    position: relative;
    z-index: 1;
}

/* ── Small copy icon button ── */
.copy-btn-small {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    padding: 0;
}

.icon-copy {
    width: 13px;
    height: 13px;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
    opacity: 0.7;
}

/* ── Mobile ── */
@media (max-width: 480px) {
    .qr-code {
        width: 90px;
        height: 90px;
    }

    .main-row {
        gap: 16px;
        padding: 16px;
    }

    .divider {
        margin: 0 16px;
    }
}

/* ════════════════════════════════
   SIDE MENU
════════════════════════════════ */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 100;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100%;
    background: #161616;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    z-index: 200;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.5);
}

.side-menu.open {
    transform: translateX(0);
}

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 18px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.close-menu-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    line-height: 1;
}

.menu-list {
    list-style: none;
    margin: 0;
    padding: 12px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    transition: background 0.2s, color 0.2s;
    user-select: none;
}

.menu-item.active {
    background: rgba(123, 94, 255, 0.18);
    color: #a78bff;
    font-weight: 600;
}

.menu-item-icon {
    font-size: 15px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.menu-footer {
    padding: 14px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 11px 14px;
    background: rgba(255, 60, 60, 0.08);
    border: 1px solid rgba(255, 60, 60, 0.22);
    border-radius: 10px;
    color: #ff5858;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s, border-color 0.15s;
}

.logout-btn:hover,
.logout-btn:active {
    background: rgba(255, 60, 60, 0.18);
    border-color: rgba(255, 60, 60, 0.45);
}

.menu-status-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.menu-version {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
}

/* ════════════════════════════════
   STATUS DOT
════════════════════════════════ */
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #444;
    display: inline-block;
    flex-shrink: 0;
    transition: background 0.3s;
}

.status-dot.online {
    background: #26c69d;
    box-shadow: 0 0 6px rgba(38, 198, 157, 0.7);
    animation: statusPulse 1.8s ease-in-out infinite;
}

.status-dot.offline {
    background: #ff5c5c;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.status-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

/* ── Header right side ── */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ════════════════════════════════
   STRATEGY CHECKBOXES
════════════════════════════════ */
.strategy-section {
    padding: 16px 20px 8px;
}

.section-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0;
}

/* ── Level Card Grid (Mining Level) ── */
@keyframes levelPop {
    0%   { transform: scale(0.92); opacity: 0.6; }
    60%  { transform: scale(1.06); }
    100% { transform: scale(1);    opacity: 1; }
}

.dots{
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #8a58ff;
}
.level-card-inner{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.level-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    background-color: #0e0e0e;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgb(26, 26, 26);
}

.level-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 4px;
    border-radius: 8px;
    border: 1px solid rgba(34, 34, 34, 0.07);
    background: rgba(14, 14, 14, 0.03);
    user-select: none;
    overflow: hidden;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.level-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.level-card input[type='radio'] {
    display: none;
}

.level-num {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 4px;
}

.level-tag {
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.2);
    transition: color 0.22s;
}


.level-card:hover .level-num {
    color: rgba(255, 255, 255, 0.65);
}

/* — checked state — */
.level-card:has(input:checked) {
    border-color: #8f75ff69;
    background: rgba(123, 94, 255, 0.13);
    animation: levelGlow 2.4s ease-in-out infinite;
}

.level-card:has(input:checked)::before {
    opacity: 1;
}

.level-card:has(input:checked) .level-num {
    color: #fff;
    animation: levelPop 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.level-card:has(input:checked) .level-tag {
    color: rgba(123, 94, 255, 0.85);
}

/* ── Legacy cb-item (used by API Config complex checkbox) ── */
.cb-item {
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.cb-item input[type='checkbox'],
.cb-item input[type='radio'] {
    display: none;
}

.cb-box {
    width: 17px;
    height: 17px;
    border-radius: 5px;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    position: relative;
}

.cb-box::after {
    content: '';
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) scale(0);
    transform-origin: center;
    transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1);
    margin-top: -2px;
}

.cb-item input:checked+.cb-box {
    background: #7B5EFF;
    border-color: #7B5EFF;
    box-shadow: 0 0 8px rgba(123, 94, 255, 0.4);
}

.cb-item input:checked+.cb-box::after {
    transform: rotate(45deg) scale(1);
}

.cb-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.cb-item input:checked~.cb-label {
    color: #fff;
}

/* ════════════════════════════════
   CONTROLS ROW
════════════════════════════════ */
.controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 20px 8px;
}

/* ── Trade Stats ── */
.trade-stats {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.stat-pill {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    transition: color 0.3s, background 0.3s;
}

.stat-pill.profit {
    color: #26c69d;
    background: rgba(38, 198, 157, 0.1);
    border-color: rgba(38, 198, 157, 0.25);
}

.stat-pill.loss {
    color: #ff6b6b;
    background: rgba(255, 80, 80, 0.1);
    border-color: rgba(255, 80, 80, 0.25);
}

.ctrl-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    padding: 0;
}

/* ════════════════════════════════
   TOGGLE START BUTTON
════════════════════════════════ */
.start-btn-wrap {
    padding: 10px 20px 16px;
}

.start-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(180deg, #7b5eff 0%, #a28dffb7 100%);
    border: 1px solid rgba(140, 156, 214, 0.32);
    border-radius: 18px;
    font-size: 15px;
    font-weight: 700;
    color: #e2e9ff;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, background 0.25s ease, border-color 0.25s ease,
        color 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}

.qr-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 10px;
    border-radius: 8px;
    width: fit-content;
    position: relative;
    z-index: 1;
    box-shadow:
        0 0 0 1px rgba(123, 94, 255, 0.25),
        0 0 18px rgba(123, 94, 255, 0.35),
        0 0 40px rgba(123, 94, 255, 0.15);
}

.start-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 1px;
    /* background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.08)); */
    pointer-events: none;
}

.start-btn::after {
    content: '';
    position: absolute;
    inset: 0;

    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
}

.start-btn:active {
    transform: translateY(0) scale(0.995);
}

.start-btn.running {
    background: linear-gradient(180deg, #13332f 0%, #0f2825 100%);
    border-color: rgba(82, 230, 191, 0.48);
    color: #c5ffef;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.48),
        0 0 0 1px rgba(38, 198, 157, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.start-btn.running::before {
    background: linear-gradient(90deg, rgba(173, 255, 235, 0.1), rgba(173, 255, 235, 0.45), rgba(173, 255, 235, 0.1));
}

.start-btn.running::after {
    background: radial-gradient(90% 150% at 0% 0%, rgba(38, 198, 157, 0.2), rgba(38, 198, 157, 0) 55%);
}

/* ── Toggle inner ── */
.btn-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.btn-inner>span:last-child {
    text-shadow: 0 0 8px rgba(141, 160, 255, 0.2);
}

.start-btn.running .btn-inner>span:last-child {
    text-shadow: 0 0 8px rgba(94, 255, 212, 0.24);
}

.btn-inner.hidden {
    display: none;
}

/* ── Toggle track ── */
.toggle-track {
    width: 44px;
    height: 24px;
    border-radius: 50px;
    background: rgba(9, 13, 23, 0.75);
    border: 1.5px solid rgba(178, 190, 235, 0.35);
    display: flex;
    align-items: center;
    padding: 0 3px;
    flex-shrink: 0;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.toggle-track.on {
    background: rgba(17, 93, 76, 0.72);
    border-color: rgba(88, 240, 201, 0.58);
    box-shadow: 0 0 8px rgba(33, 185, 147, 0.32), inset 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.toggle-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(160deg, #f5f7ff, #b9c6f0);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s;
    flex-shrink: 0;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.toggle-track.off .toggle-thumb {
    transform: translateX(0);
}

.toggle-track.on .toggle-thumb {
    transform: translateX(20px);
    background: linear-gradient(160deg, #e6fff8, #82f3d0);
    box-shadow: 0 0 8px rgba(68, 232, 189, 0.55);
}

/* ════════════════════════════════
   CONSOLE BOX
════════════════════════════════ */
.console-box {
    margin: 16px 20px 20px;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
}

.console-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #111;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.console-dots {
    display: flex;
    gap: 5px;
}

.c-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.c-red {
    background: #ff5f57;
}

.c-yellow {
    background: #febc2e;
}

.c-green {
    background: #28c840;
}

.console-title {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex: 1;
    text-align: center;
    margin-left: -40px;
}

.console-clear-link {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
    transition: color 0.2s;
    margin-left: auto;
}

.console-output {
    padding: 10px 12px;
    height: 160px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.console-output::-webkit-scrollbar {
    width: 4px;
}

.console-output::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.console-line {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
}

.console-line.info {
    color: rgba(255, 255, 255, 0.5);
}

.console-line.success {
    color: #26c69d;
}

.console-line.warn {
    color: #febc2e;
}

.console-line.error {
    color: #ff6b6b;
}

.console-line.system {
    color: #a78bff;
}

/* ── App wrapper ── */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ── Page transition ── */
@keyframes pageLeave {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-14px); }
}

.page-leaving {
    animation: pageLeave 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
    pointer-events: none;
}

/* ════════════════════════════════
   API CONFIG SECTION
════════════════════════════════ */
.api-config-section {
    padding: 12px 20px 14px;
}

.api-config-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 11px;
}

.api-config-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
}

.api-config-row:last-child {
    margin-bottom: 0;
}

.api-config-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.25);
    width: 52px;
    flex-shrink: 0;
}

.api-config-input,
.api-config-select {
    flex: 1;
    background: rgba(63, 63, 63, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    font-family: inherit;
    padding: 5px 9px;
    outline: none;
    min-width: 0;
}

.api-config-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.api-config-select option {
    background: #1e1e1e;
    color: rgba(255, 255, 255, 0.7);
}

/* ════════════════════════════════
   MTG LEVEL SLIDER
════════════════════════════════ */
.mtg-section {
    padding: 14px 20px 16px;
}

.mtg-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.mtg-badge {
    font-size: 11px;
    font-weight: 700;
    color: #a78bff;
    background: rgba(123, 94, 255, 0.15);
    border: 1px solid rgba(123, 94, 255, 0.3);
    padding: 2px 9px;
    border-radius: 20px;
    letter-spacing: 0.04em;
}

.mtg-slider-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.mtg-minmax {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.mtg-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.mtg-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #7B5EFF;
    box-shadow: 0 0 8px rgba(123, 94, 255, 0.5);
}

.mtg-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #7B5EFF;
    border: none;
    box-shadow: 0 0 8px rgba(123, 94, 255, 0.5);
}

.mtg-seq-display {
    font-family: 'Courier New', monospace;
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.7;
    word-break: break-all;
}

/* ════════════════════════════════
   DEMO TRADE BUTTON
════════════════════════════════ */
.demo-btn-row {
    padding: 0 20px 10px;
}

.demo-trade-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 9px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.03em;
}

/* ── Mobile extras ── */
@media (max-width: 480px) {
    .controls-row {
        padding: 12px 16px 6px;
    }

    .start-btn-wrap {
        padding: 8px 16px 12px;
    }

    .start-btn {
        font-size: 14px;
        padding: 13px 18px;
    }

    .strategy-section {
        padding: 14px 16px 8px;
    }

    .level-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .console-box {
        margin: 12px 16px 16px;
    }

    .console-output {
        height: 130px;
    }
}

.status_line{
    width: 100%;
    height: 0.5px;
    background: linear-gradient(
    to right, 
    #000000 0%, 
    #7657FF 50%, 
    #000000 100%
  );
    border-radius: 2px;
    overflow: hidden;
}

/* ── Live Status Bar ── */
.live-status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 10px 16px;
    background: rgba(120, 91, 247, 0);
}

.live-status-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.live-status-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
}

.live-status-value {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.live-status-divider {
    width: 1px;
    height: 32px;
    background: rgba(82, 82, 82, 0.35);
    flex-shrink: 0;
    margin: 0 4px;
}

.indication {
    position: relative;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.3s ease;
}

.indication-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    transition: border-color 0.3s ease;
}

.indication.win {
    background: #26c69d;
    box-shadow: 0 0 8px rgba(38, 198, 157, 0.6);
}

.indication.win .indication-ring {
    border-color: rgba(38, 198, 157, 0.4);
}

.indication.loss {
    background: #ff5050;
    box-shadow: 0 0 8px rgba(255, 80, 80, 0.6);
}

.indication.loss .indication-ring {
    border-color: rgba(255, 80, 80, 0.4);
}

/* legacy — keep in case referenced elsewhere */
.status_info { display: none; }
.virtcle_line { display: none; }