:root {
    --br-bg: #030706;
    --br-panel: rgba(7, 14, 11, 0.88);
    --br-panel-strong: rgba(8, 18, 13, 0.96);
    --br-line: rgba(255, 255, 255, 0.08);
    --br-green: #00ff88;
    --br-cyan: #00e1ff;
    --br-muted: #8ea397;
}

body {
    background:
        radial-gradient(circle at 16% 0%, rgba(0, 255, 136, 0.12), transparent 440px),
        radial-gradient(circle at 92% 10%, rgba(0, 225, 255, 0.09), transparent 480px),
        linear-gradient(180deg, #030706 0%, #050b09 54%, #030706 100%) !important;
}

.sidebar {
    background: rgba(5, 10, 8, 0.86) !important;
    border-right: 1px solid var(--br-line) !important;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(18px);
}

.nav-link {
    border-radius: 12px !important;
    border: 1px solid transparent;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, color 0.18s ease !important;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(0, 255, 136, 0.1) !important;
    border-color: rgba(0, 255, 136, 0.18) !important;
    color: #fff !important;
    transform: translateX(3px);
}

.content-header,
.dashboard-card,
.stat-card,
.message-content,
.calculator-container,
.vip-card,
.settings-card,
.contact-card,
.partner-card,
.compact-arbitrage-table,
.messenger-body,
.messenger-bodyVIP {
    background: var(--br-panel) !important;
    border: 1px solid var(--br-line) !important;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32) !important;
    backdrop-filter: blur(16px);
}

.content-header {
    position: relative;
    overflow: hidden;
}

.content-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(0, 255, 136, 0.12), transparent 48%),
        radial-gradient(circle at 90% 10%, rgba(0, 225, 255, 0.14), transparent 230px);
}

.content-header > * {
    position: relative;
    z-index: 1;
}

.arbitrage-table thead th {
    background: rgba(5, 10, 8, 0.98) !important;
    border-bottom: 1px solid rgba(0, 255, 136, 0.22) !important;
}

.arbitrage-row {
    transition: background 0.18s ease, outline-color 0.18s ease, transform 0.18s ease;
}

.arbitrage-row:hover {
    background: rgba(0, 255, 136, 0.055) !important;
    outline: 1px solid rgba(0, 255, 136, 0.18);
    transform: translateY(-1px);
}

.profit-main,
.trend-up,
.stat-value {
    color: var(--br-green) !important;
    text-shadow: 0 0 18px rgba(0, 255, 136, 0.22);
}

.toast-container {
    position: fixed !important;
    top: 22px !important;
    right: 22px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 2147483000 !important;
    width: min(370px, calc(100vw - 32px));
    pointer-events: none;
}

.toast {
    width: 100%;
    min-width: 0 !important;
    max-width: none !important;
    border-radius: 12px !important;
    background: rgba(5, 10, 8, 0.94) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(18px);
}

.toast-success {
    border-left-color: var(--br-green) !important;
}

.toast-error {
    border-left-color: #ff4d67 !important;
}

.br-panel-tools {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 18px;
}

.br-tool {
    background: rgba(7, 14, 11, 0.82);
    border: 1px solid var(--br-line);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
}

.br-tool-label {
    color: var(--br-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
}

.br-tool-value {
    color: #fff;
    font-weight: 800;
    font-size: 15px;
}

.br-live-tools {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 160px 160px;
    gap: 10px;
    margin: 14px 0;
}

.br-live-tools input,
.br-live-tools button {
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(0, 0, 0, .32);
    color: #fff;
    padding: 0 14px;
    font-weight: 700;
}

.br-live-tools button {
    cursor: pointer;
    background: rgba(0, 255, 136, .1);
}

.br-live-tools button:hover {
    background: rgba(0, 255, 136, .18);
}

.br-calc-history {
    margin-top: 16px;
    display: grid;
    gap: 8px;
}

.br-calc-history-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
    color: #fff;
    font-size: 13px;
}

.br-calc-history-item span:last-child {
    color: var(--br-green);
    font-weight: 800;
}

.login-container,
.register-container {
    background:
        radial-gradient(circle at 18% 0%, rgba(0, 255, 136, 0.13), transparent 420px),
        radial-gradient(circle at 88% 12%, rgba(0, 225, 255, 0.09), transparent 440px),
        linear-gradient(180deg, #030706 0%, #050b09 100%) !important;
}

.login-form,
.register-form {
    background: rgba(7, 14, 11, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 18px !important;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48) !important;
    backdrop-filter: blur(18px);
}

.login-form::before,
.register-form::before {
    background: linear-gradient(90deg, var(--br-green), var(--br-cyan)) !important;
}

.form-input,
.calculator-container input,
.calculator-container select {
    background: rgba(0, 0, 0, 0.34) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.form-input:focus,
.calculator-container input:focus,
.calculator-container select:focus {
    border-color: var(--br-green) !important;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.12) !important;
}

@media (max-width: 980px) {
    .br-panel-tools,
    .br-live-tools {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .toast-container {
        top: 14px !important;
        right: 14px !important;
        width: calc(100vw - 28px);
    }

    .content-header,
    .dashboard-card,
    .stat-card,
    .message-content,
    .calculator-container,
    .login-form,
    .register-form {
        border-radius: 14px !important;
    }

    .br-panel-tools,
    .br-live-tools {
        grid-template-columns: 1fr;
    }
}
