:root {
    --bg: #030806;
    --bg-soft: #07120d;
    --panel: #0b1711;
    --panel-2: #0f2118;
    --panel-border: rgba(132, 255, 183, 0.12);

    --text: #f4fff8;
    --muted: #99aa9f;
    --muted-2: #708178;

    --green: #24d366;
    --green-soft: rgba(36, 211, 102, 0.14);
    --green-2: #a7ff6a;

    --blue: #2f80ed;
    --red: #ff4d4f;
    --orange: #ffad33;
    --yellow: #ffd166;

    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;

    --max-width: 1440px;
    --topbar-height: 92px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(36, 211, 102, 0.18), transparent 34rem),
        radial-gradient(circle at bottom right, rgba(167, 255, 106, 0.08), transparent 28rem),
        var(--bg);
}

body.app-body {
    padding-top: var(--topbar-height);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

img {
    display: block;
    max-width: 100%;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(244, 255, 248, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text);
    background: rgba(255, 255, 255, 0.055);
    outline: none;
    padding: 0.95rem 1rem;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(36, 211, 102, 0.72);
    box-shadow: 0 0 0 4px rgba(36, 211, 102, 0.12);
    background: rgba(255, 255, 255, 0.075);
}

input::placeholder,
textarea::placeholder {
    color: var(--muted-2);
}

select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

label {
    display: grid;
    gap: 0.55rem;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

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

th {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
    padding: 0.95rem 1rem;
    border-bottom: 1px solid rgba(244, 255, 248, 0.08);
}

td {
    color: var(--text);
    padding: 1rem;
    border-bottom: 1px solid rgba(244, 255, 248, 0.06);
    vertical-align: middle;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.025);
}

.full-width {
    width: 100%;
}

.positive {
    color: var(--green) !important;
}

.negative,
.danger-text {
    color: var(--red) !important;
}

.warning-text {
    color: var(--yellow);
}

.empty-state {
    color: var(--muted);
    text-align: center;
    padding: 1.5rem;
}

::selection {
    color: #031008;
    background: var(--green);
}

@media (max-width: 860px) {
    :root {
        --topbar-height: 76px;
    }

    body.app-body {
        padding-top: 76px;
    }

    td,
    th {
        padding: 0.85rem;
    }
}