﻿:root {
    --bg-0: #020817;
    --bg-1: #06132f;
    --bg-2: #0e224d;
    --card: rgba(10, 23, 54, 0.88);
    --card-border: rgba(80, 114, 198, 0.28);
    --text: #f4f8ff;
    --muted: #8ca2d9;
    --accent: #4f8dff;
    --accent-strong: #2f6ce2;
    --danger: #ff5663;
    --ok: #28d07f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    min-height: 100vh;
    background: radial-gradient(1200px 700px at 85% 85%, rgba(38, 76, 184, 0.34), transparent 58%),
        linear-gradient(130deg, var(--bg-0), var(--bg-1) 50%, var(--bg-2));
}

.page-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(112, 146, 224, 0.2);
    background: rgba(2, 8, 24, 0.76);
}

.brand {
    font-family: 'Rajdhani', sans-serif;
    font-size: 34px;
    line-height: 1;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.brand span {
    color: #5ea6ff;
}

.nav-tabs {
    display: flex;
    gap: 10px;
}

.tab-btn {
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    border-radius: 14px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.tab-btn.active {
    color: var(--text);
    border-color: rgba(94, 166, 255, 0.36);
    background: rgba(57, 105, 201, 0.28);
    box-shadow: 0 0 0 1px rgba(52, 98, 196, 0.25) inset;
}

.status-pill {
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: #dce6ff;
    background: rgba(20, 35, 82, 0.9);
    border: 1px solid rgba(118, 149, 230, 0.35);
}

.license-pill {
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: #dbf4e9;
    background: rgba(24, 102, 67, 0.6);
    border: 1px solid rgba(78, 204, 143, 0.45);
    white-space: nowrap;
}

.license-pill.expired {
    color: #ffe7ec;
    background: rgba(128, 34, 52, 0.58);
    border-color: rgba(255, 119, 143, 0.48);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.top-language-wrap {
    min-width: 190px;
}

.top-language-select {
    width: 100%;
    border: 1px solid rgba(118, 153, 230, 0.32);
    border-radius: 999px;
    background: rgba(12, 27, 62, 0.92);
    color: var(--text);
    padding: 8px 12px;
    font-size: 13px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

.top-language-select:focus {
    outline: none;
    border-color: rgba(96, 160, 255, 0.75);
}

.layout {
    width: min(1280px, 100% - 36px);
    margin: 24px auto 36px;
}

.tab-section {
    display: none;
}

.tab-section.active {
    display: block;
    animation: reveal 0.28s ease;
}

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

.grid-2 {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
}

.card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 26px;
    padding: 26px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.card-label {
    margin: 0;
    color: var(--muted);
    letter-spacing: 0.12em;
    font-size: 12px;
    font-weight: 700;
}

.config-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.config-subtabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cfg-tab-btn {
    border: 1px solid rgba(112, 149, 230, 0.3);
    background: rgba(9, 22, 50, 0.72);
    color: #9db5e9;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    letter-spacing: 0.05em;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.cfg-tab-btn.active {
    color: #e6f0ff;
    background: rgba(64, 114, 216, 0.38);
    border-color: rgba(110, 170, 255, 0.65);
}

.cfg-tab-panel {
    display: none;
}

.cfg-tab-panel.active {
    display: block;
    animation: reveal 0.22s ease;
}

.sub-label {
    color: #8fa8e3;
    margin: 18px 0 8px;
    font-size: 12px;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.mini-note {
    margin: -2px 0 10px;
    color: #9db3e6;
    font-size: 12px;
}

.money {
    margin: 10px 0 14px;
    font-size: clamp(40px, 4.8vw, 70px);
    line-height: 1;
    font-family: 'Rajdhani', sans-serif;
}

.money-note {
    margin: -8px 0 0;
    color: #9eb5e7;
    font-size: 12px;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(132, 165, 240, 0.26), transparent);
    margin: 20px 0;
}

.inline-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.inline-stats.mt {
    margin-top: 14px;
}

.inline-stats .right {
    text-align: right;
}

.value {
    margin: 6px 0 0;
    font-weight: 700;
    font-size: 28px;
    font-family: 'Rajdhani', sans-serif;
}

.status {
    margin: 6px 0 0;
    font-weight: 700;
    font-size: 30px;
    color: #63a6ff;
    font-family: 'Rajdhani', sans-serif;
}

.insights-row {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.entry-info,
.signal-info {
    border: 1px solid rgba(108, 148, 231, 0.3);
    border-radius: 14px;
    background: rgba(9, 20, 47, 0.9);
    padding: 12px;
}

.entry-info.compact .card-label,
.signal-info .card-label {
    margin-bottom: 6px;
}

.signal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.signal-badge {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    letter-spacing: 0.07em;
    font-weight: 700;
    color: #e6f6ff;
    border: 1px solid rgba(96, 160, 255, 0.55);
    background: rgba(47, 108, 226, 0.36);
}

.signal-info.signal-new {
    box-shadow: 0 0 0 2px rgba(66, 214, 143, 0.45), 0 0 25px rgba(66, 214, 143, 0.25);
}

.entry-grid {
    margin-top: 6px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
}

.signal-grid {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
}

.entry-k {
    display: block;
    color: #8ea7de;
    font-size: 11px;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}

.entry-v {
    display: block;
    color: #eaf2ff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    line-height: 1.1;
    word-break: break-word;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.field-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.field-title > span:first-child {
    display: block;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.07em;
    font-weight: 700;
}

.help-dot {
    width: 17px;
    height: 17px;
    border-radius: 999px;
    border: 1px solid rgba(120, 166, 255, 0.62);
    color: #cfe2ff;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: help;
}

.help-dot::after {
    content: attr(data-help);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) scale(0.96);
    transform-origin: bottom center;
    min-width: 220px;
    max-width: 320px;
    padding: 9px 11px;
    border-radius: 10px;
    background: rgba(4, 12, 30, 0.97);
    border: 1px solid rgba(114, 157, 242, 0.35);
    color: #d7e6ff;
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: normal;
    font-weight: 500;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.16s ease;
    z-index: 20;
}

.help-dot:hover::after,
.help-dot:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

input,
select {
    width: 100%;
    border: 1px solid rgba(118, 153, 230, 0.28);
    border-radius: 14px;
    background: rgba(4, 12, 34, 0.94);
    color: var(--text);
    padding: 12px;
    font-size: 17px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

input:focus,
select:focus {
    outline: none;
    border-color: rgba(96, 160, 255, 0.75);
}

.gale-grid {
    display: grid;
    gap: 8px;
}

.gale-head {
    display: grid;
    grid-template-columns: 70px 1fr 1fr;
    gap: 8px;
    margin-bottom: 6px;
    color: #94ace1;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gale-row {
    display: grid;
    grid-template-columns: 70px 1fr 1fr;
    gap: 8px;
    align-items: center;
}

.gale-row.preview {
    align-items: stretch;
}

.gale-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #8ea8e3;
}

.gale-preview-value {
    border: 1px solid rgba(118, 153, 230, 0.28);
    border-radius: 14px;
    background: rgba(4, 12, 34, 0.94);
    color: var(--text);
    padding: 12px;
    font-size: 17px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

.channels {
    display: grid;
    gap: 8px;
}

.channel-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(114, 149, 228, 0.28);
    border-radius: 12px;
    background: rgba(8, 20, 47, 0.88);
    color: #cfddff;
    padding: 10px 12px;
    cursor: pointer;
}

.channel-btn.on strong {
    color: var(--ok);
}

.channel-btn.off strong {
    color: #ff8891;
}

.tip-box {
    margin-top: 12px;
    border-radius: 12px;
    padding: 11px 12px;
    border: 1px solid rgba(108, 148, 231, 0.3);
    color: #c8dbff;
    background: rgba(9, 20, 47, 0.9);
    font-size: 13px;
    line-height: 1.5;
}

.account-status-card {
    margin-top: 12px;
    border-radius: 14px;
    border: 1px solid rgba(108, 148, 231, 0.3);
    background: rgba(9, 20, 47, 0.9);
    padding: 12px;
}

.account-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.account-badge {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    letter-spacing: 0.07em;
    font-weight: 700;
}

.account-badge.ok {
    color: #e8fff4;
    border: 1px solid rgba(64, 210, 129, 0.6);
    background: rgba(31, 146, 93, 0.35);
}

.account-badge.off {
    color: #ffe8ec;
    border: 1px solid rgba(255, 116, 141, 0.5);
    background: rgba(165, 43, 70, 0.34);
}

.account-line {
    margin: 10px 0 0;
    color: #d4e3ff;
    font-size: 13px;
}

.account-error {
    display: none;
    margin: 10px 0 0;
    color: #ff95a2;
    font-size: 12px;
    line-height: 1.4;
}

.account-error.show {
    display: block;
}

.conta-actions {
    margin-top: 12px;
}

.btn.account-test {
    font-size: 20px;
    padding: 12px 16px;
    color: #e8f1ff;
    border: 1px solid rgba(106, 156, 255, 0.45);
    background: linear-gradient(90deg, rgba(42, 83, 170, 0.88), rgba(55, 109, 215, 0.92));
}

.help-list {
    display: grid;
    gap: 7px;
    margin-top: 12px;
}

.help-list p {
    margin: 0;
    color: #d4e3ff;
    font-size: 14px;
    line-height: 1.45;
}

.actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    border: none;
    border-radius: 16px;
    padding: 14px 16px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn.primary {
    color: white;
    background: linear-gradient(90deg, #3b82f6, #579aff);
    box-shadow: 0 8px 24px rgba(43, 106, 224, 0.45);
}

.btn.danger {
    color: #ff6f7d;
    background: rgba(28, 42, 78, 0.95);
    border: 1px solid rgba(255, 91, 106, 0.4);
}

.btn.motor-toggle {
    color: #f4f8ff;
}

.btn.motor-toggle.motor-on {
    background: linear-gradient(90deg, #1fae63, #31d07e);
    border: 1px solid rgba(90, 236, 157, 0.65);
    box-shadow: 0 8px 24px rgba(26, 170, 96, 0.38);
}

.btn.motor-toggle.motor-off {
    background: linear-gradient(90deg, #ad2440, #d43d5a);
    border: 1px solid rgba(255, 114, 141, 0.55);
    box-shadow: 0 8px 24px rgba(184, 45, 74, 0.38);
}

.btn.ghost {
    color: #ceddff;
    background: rgba(15, 35, 74, 0.9);
    border: 1px solid rgba(92, 128, 206, 0.45);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(105, 142, 220, 0.2);
    font-size: 13px;
}

th {
    color: #90abe3;
    font-size: 11px;
    letter-spacing: 0.07em;
}

td {
    color: #dce6ff;
}

.empty {
    color: #8da3db;
    text-align: center;
    padding: 22px;
}

.guide-list {
    margin: 12px 0 0;
    padding-left: 18px;
    color: #d7e3ff;
    line-height: 1.7;
}

.mode-chip {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #d3e2ff;
    border: 1px solid rgba(109, 146, 224, 0.36);
    background: rgba(16, 35, 76, 0.84);
    font-size: 12px;
    letter-spacing: 0.06em;
}

.login-body {
    display: grid;
    place-items: center;
}

.login-wrap {
    width: min(440px, 100% - 26px);
}

.login-card {
    border-radius: 24px;
    border: 1px solid var(--card-border);
    background: var(--card);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    padding: 28px;
}

.login-card h1 {
    margin: 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 44px;
    line-height: 1;
}

.login-card h1 span {
    color: #5da4ff;
}

.login-card p {
    margin: 10px 0 18px;
    color: #9bb0e1;
}

.error {
    color: #ff7984;
    font-size: 13px;
}

.btn.full {
    width: 100%;
    margin-top: 10px;
}

@media (max-width: 1060px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-wrap: wrap;
    }

    .brand {
        font-size: 28px;
    }

    .topbar-right {
        margin-left: auto;
    }
}

@media (max-width: 760px) {
    .layout {
        width: min(1280px, 100% - 18px);
    }

    .card {
        padding: 18px;
        border-radius: 18px;
    }

    .nav-tabs {
        width: 100%;
        order: 3;
    }

    .topbar-right {
        width: 100%;
        order: 2;
        justify-content: space-between;
    }

    .top-language-wrap {
        min-width: 160px;
        width: 52%;
    }

    .tab-btn {
        flex: 1;
        text-align: center;
    }

    .actions {
        grid-template-columns: 1fr;
    }

    .config-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .cfg-tab-btn {
        flex: 1;
        text-align: center;
    }

    .value {
        font-size: 24px;
    }

    .status {
        font-size: 24px;
    }

    .entry-grid {
        grid-template-columns: 1fr;
    }

    .signal-grid {
        grid-template-columns: 1fr;
    }

    .entry-v {
        font-size: 17px;
    }

    .insights-row {
        grid-template-columns: 1fr;
    }
}
