:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #dbe2ea;
    --primary: #0f766e;
    --primary-dark: #115e59;
    --danger-bg: #fee2e2;
    --danger-text: #991b1b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(70, 206, 66, 0.16), transparent 34rem),
        radial-gradient(circle at 88% 10%, rgba(206, 238, 75, 0.12), transparent 32rem),
        radial-gradient(circle at 54% 88%, rgba(122, 218, 64, 0.1), transparent 28rem),
        linear-gradient(180deg, #080d07 0%, #071107 46%, #030503 100%);
    background-attachment: fixed;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
    position: relative;
}

body:not(.auth-page)::before {
    background-image:
        linear-gradient(rgba(163, 238, 75, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(163, 238, 75, 0.025) 1px, transparent 1px);
    background-size: 54px 54px;
    content: "";
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: 0;
}

body:not(.auth-page) .topbar,
body:not(.auth-page) .page {
    position: relative;
    z-index: 1;
}

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

.topbar {
    align-items: center;
    background: rgba(5, 14, 7, 0.9);
    border-bottom: 1px solid rgba(163, 238, 75, 0.22);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 24px;
}

.brand {
    color: #d9ff8b;
    font-size: 18px;
    font-weight: 700;
}

.nav {
    align-items: center;
    display: flex;
    gap: 16px;
}

.nav a,
.nav button {
    background: transparent;
    border: 0;
    color: #c7d6bf;
    cursor: pointer;
    font: inherit;
}

.language-switcher {
    margin: 0;
}

.language-switcher label {
    align-items: center;
    display: inline-flex;
    gap: 6px;
    font-size: 13px;
    font-weight: 400;
}

.language-switcher select {
    min-height: 34px;
    padding: 6px 8px;
}

.nav a:hover,
.nav button:hover {
    color: #d9ff8b;
}

.page {
    margin: 0 auto;
    max-width: 1120px;
    padding: 32px 20px;
}

.auth-panel,
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow-x: auto;
    padding: 24px;
}

.auth-panel {
    margin: 40px auto;
    max-width: 440px;
}

.auth-switch {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    text-align: center;
}

.auth-switch p {
    margin: 0;
}

.narrow {
    max-width: 680px;
}

h1,
h2 {
    margin: 0 0 10px;
}

.muted {
    color: var(--muted);
}

.form {
    display: grid;
    gap: 28px;
    margin-top: 24px;
}

.inline-form {
    border-top: 1px solid var(--line);
    margin-top: 20px;
    padding-top: 20px;
}

.form-grid {
    display: grid;
    column-gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 34px;
}

label {
    display: grid;
    gap: 13px;
    font-weight: 700;
}

.form-section-title {
    border-top: 1px solid var(--line);
    font-size: 20px;
    margin: 4px 0 -4px;
    padding-top: 24px;
}

.segmented-field {
    border: 0;
    display: grid;
    gap: 13px;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.segmented-field legend {
    color: var(--text);
    font-weight: 700;
    padding: 0;
}

.segmented-control {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 7px;
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    padding: 5px;
}

.segmented-control label {
    display: block;
    font-weight: 600;
}

.segmented-control input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.segmented-control span {
    align-items: center;
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 5px;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    justify-content: center;
    min-height: 42px;
    padding: 10px 12px;
    text-align: center;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.segmented-control input:checked + span {
    background: #ecfdf5;
    border-color: var(--primary);
    color: var(--primary-dark);
}

.segmented-control input:focus-visible + span {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.segmented-control-compact {
    gap: 4px;
    grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
}

.segmented-control-compact span {
    font-size: 14px;
    min-height: 36px;
    padding: 8px 8px;
}

.field-help {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    margin: -5px 0 0;
}

.label-row {
    align-items: center;
    display: inline-flex;
    gap: 7px;
}

.required-star {
    color: #dc2626 !important;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}

.info-tip {
    align-items: center;
    background: #ffffff;
    border: 2px solid #6b7280;
    border-radius: 50%;
    color: #374151;
    cursor: help;
    display: inline-flex;
    flex: 0 0 auto;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    height: 22px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    padding: 0;
    position: relative;
    vertical-align: middle;
    width: 22px;
    z-index: 3;
}

.info-tip:hover,
.info-tip:focus {
    background: #f9fafb;
    border-color: #374151;
    outline: 0;
}

.floating-tooltip {
    background: #111827;
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    color: #ffffff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    max-width: 260px;
    min-width: 160px;
    padding: 8px 10px;
    pointer-events: none;
    position: fixed;
    white-space: normal;
    width: max-content;
    z-index: 9999;
}

input,
select,
textarea {
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    font-weight: 400;
    min-height: 54px;
    padding: 11px 12px;
}

select option {
    font-weight: 400;
}

textarea {
    resize: vertical;
}

button {
    background: var(--primary);
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 11px 14px;
}

.button-link {
    background: var(--primary);
    border-radius: 6px;
    color: #ffffff;
    display: inline-block;
    font-weight: 700;
    padding: 11px 14px;
}

.button-link.full-width {
    text-align: center;
    width: 100%;
}

.button-link:hover {
    background: var(--primary-dark);
}

.button-link.secondary {
    background: #e5e7eb;
    color: var(--text);
}

.button-link.secondary:hover {
    background: #d1d5db;
}

.share-button {
    align-items: center;
    display: inline-flex;
    gap: 7px;
}

.share-button span {
    font-size: 17px;
    line-height: 1;
}

button:hover {
    background: var(--primary-dark);
}

button.info-tip,
button.info-tip:hover,
button.info-tip:focus {
    align-items: center;
    background: #ffffff;
    border: 2px solid #6b7280;
    border-radius: 50%;
    color: #374151;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    height: 22px;
    justify-content: center;
    padding: 0;
    width: 22px;
}

button.info-tip:hover,
button.info-tip:focus {
    background: #f9fafb;
    border-color: #374151;
}

.alert {
    background: var(--danger-bg);
    border-radius: 6px;
    color: var(--danger-text);
    margin-top: 16px;
    padding: 12px;
}

.notice {
    background: #dcfce7;
    border-radius: 6px;
    color: #166534;
    margin-top: 16px;
    padding: 12px;
}

.auth-link {
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 700;
    justify-self: start;
}

.auth-link:hover {
    text-decoration: underline;
}

.page-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.master-data-heading {
    margin-bottom: 22px;
}

.master-data-heading h1 {
    font-size: 34px;
    line-height: 1.1;
    margin: 0 0 8px;
}

.master-data-layout {
    align-items: start;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
}

.master-sidebar {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.master-sidebar-title {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.master-sidebar nav {
    display: grid;
    gap: 6px;
}

.master-sidebar a {
    border-radius: 6px;
    color: var(--text);
    font-weight: 600;
    padding: 11px 12px;
    text-decoration: none;
}

.master-sidebar a:hover {
    background: #f1f8f5;
    color: var(--primary-dark);
}

.master-sidebar a.active {
    background: #eef7f4;
    color: var(--primary-dark);
    box-shadow: inset 3px 0 0 var(--primary);
}

.master-data-content {
    min-width: 0;
}

.admin-settings-layout {
    align-items: start;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
}

.admin-settings-sidebar {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.admin-settings-sidebar-title {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.admin-settings-sidebar nav {
    display: grid;
    gap: 6px;
}

.admin-settings-sidebar a {
    border-radius: 6px;
    color: var(--text);
    font-weight: 600;
    padding: 11px 12px;
}

.admin-settings-sidebar a:hover {
    background: #f1f8f5;
    color: var(--primary-dark);
}

.admin-settings-sidebar a.active {
    background: #eef7f4;
    box-shadow: inset 3px 0 0 var(--primary);
    color: var(--primary-dark);
}

.admin-settings-content {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.admin-user-filters {
    align-items: end;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    margin: 18px 0 20px;
    padding: 14px;
}

.admin-user-filters label {
    gap: 7px;
}

.admin-user-filter-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-user-actions {
    display: grid;
    gap: 8px;
    min-width: 380px;
}

.admin-settings-form {
    max-width: 720px;
}

.admin-settings-form textarea {
    min-height: 150px;
}

.settings-field-note {
    margin: -18px 0 0;
}

.settings-help {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    padding: 14px;
}

.settings-help p {
    margin: 0;
}

.muted-badge {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #4b5563;
}

.actions {
    align-items: center;
    display: flex;
    gap: 10px;
}

.actions form {
    margin: 0;
}

.danger-button {
    background: #b91c1c;
}

.danger-button:hover {
    background: #991b1b;
}

.danger-button.small {
    font-size: 13px;
    margin-top: 8px;
    padding: 8px 10px;
}

.detail-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 16px;
}

.details {
    display: grid;
    gap: 10px 16px;
    grid-template-columns: 150px 1fr;
}

.details dt {
    color: var(--muted);
    font-weight: 700;
}

.details dd {
    margin: 0;
}

.score {
    color: var(--primary-dark);
}

.check-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-grid label {
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    display: flex;
    font-weight: 400;
    gap: 10px;
    padding: 10px;
}

.check-grid input {
    width: auto;
}

.image-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.image-groups {
    display: grid;
    gap: 24px;
}

.image-group h3 {
    margin: 0 0 12px;
}

.image-grid figure {
    margin: 0;
}

.image-thumb {
    background: transparent;
    border: 0;
    cursor: zoom-in;
    display: block;
    padding: 0;
    width: 100%;
}

.image-grid img {
    aspect-ratio: 16 / 10;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: block;
    object-fit: cover;
    width: 100%;
}

.image-thumb:hover img,
.image-thumb:focus img {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.image-grid figcaption {
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
}

.image-lightbox {
    align-items: center;
    background: rgba(15, 23, 42, 0.82);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 28px;
    position: fixed;
    z-index: 10000;
}

.image-lightbox[hidden] {
    display: none;
}

.image-lightbox figure {
    margin: 0;
    max-width: min(1100px, 94vw);
}

.image-lightbox img {
    background: #111827;
    border-radius: 8px;
    display: block;
    max-height: 82vh;
    max-width: 100%;
    object-fit: contain;
}

.image-lightbox figcaption {
    color: #ffffff;
    margin-top: 10px;
    text-align: center;
}

.image-lightbox-close {
    align-items: center;
    background: #ffffff;
    border: 0;
    border-radius: 50%;
    color: #111827;
    display: flex;
    font-size: 28px;
    height: 42px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: fixed;
    right: 24px;
    top: 24px;
    width: 42px;
}

.share-card-panel {
    background:
        radial-gradient(circle at 18% 78%, rgba(39, 242, 154, 0.18), transparent 30%),
        radial-gradient(circle at 78% 34%, rgba(39, 242, 154, 0.12), transparent 34%),
        #050807;
    border: 1px solid #123b33;
    border-radius: 8px;
    overflow-x: auto;
    padding: 18px;
}

.trade-share-card {
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
    display: block;
    height: auto;
    max-width: 100%;
}

.metrics {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
}

.metrics article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.metrics span {
    color: var(--muted);
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}

.metrics strong {
    font-size: 26px;
}

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

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 12px 8px;
    text-align: left;
}

.badge {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    color: #3730a3;
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 8px;
}

.table-form {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.table-form select,
.table-form button {
    min-height: 38px;
    padding: 8px 10px;
}

.checkbox-row {
    align-items: center;
    display: inline-flex;
    gap: 6px;
    font-weight: 400;
}

.checkbox-row input {
    min-height: auto;
}

@media (max-width: 760px) {
    .topbar,
    .nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar {
        padding: 16px 20px;
    }

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

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

    .master-data-layout,
    .admin-settings-layout {
        grid-template-columns: 1fr;
    }

    .admin-user-filters {
        grid-template-columns: 1fr;
    }

    .admin-user-actions {
        min-width: 0;
    }

    .detail-grid,
    .check-grid,
    .image-grid {
        grid-template-columns: 1fr;
    }
}

body.auth-page {
    --auth-bg-main: #070b08;
    --auth-bg-deep: #030503;
    --auth-green-bright: #ceee4b;
    --auth-green-main: #a3ee4b;
    --auth-green-muted: #7ada40;
    --auth-green-deep: #46ce42;
    --auth-text-main: #f4f7ef;
    --auth-text-soft: #d8e2d0;
    --auth-text-muted: #aab4a4;
    background:
        radial-gradient(circle at top left, rgba(70, 206, 66, 0.18), transparent 34rem),
        radial-gradient(circle at 84% 18%, rgba(206, 238, 75, 0.13), transparent 32rem),
        radial-gradient(circle at 52% 82%, rgba(122, 218, 64, 0.12), transparent 26rem),
        linear-gradient(180deg, #080d07 0%, var(--auth-bg-main) 44%, var(--auth-bg-deep) 100%);
    color: var(--auth-text-main);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

body.auth-page::before {
    background-image:
        linear-gradient(rgba(163, 238, 75, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(163, 238, 75, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    content: "";
    inset: 0;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 84%);
    pointer-events: none;
    position: fixed;
    z-index: -2;
}

body.auth-page::after {
    background:
        radial-gradient(circle, rgba(206, 238, 75, 0.16), transparent 60%),
        radial-gradient(circle, rgba(70, 206, 66, 0.14), transparent 62%);
    content: "";
    filter: blur(52px);
    height: 30rem;
    left: 50%;
    pointer-events: none;
    position: fixed;
    top: 44%;
    transform: translate(-50%, -50%);
    width: min(42rem, 90vw);
    z-index: -3;
}

body.auth-page .topbar {
    display: none;
}

body.auth-page .page {
    align-items: center;
    display: flex;
    justify-content: center;
    max-width: none;
    min-height: 100vh;
    padding: 34px 18px;
}

body.auth-page .auth-panel {
    background:
        radial-gradient(circle at 70% 0%, rgba(206, 238, 75, 0.12), transparent 34%),
        radial-gradient(circle at 8% 96%, rgba(70, 206, 66, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(17, 25, 18, 0.9), rgba(4, 8, 7, 0.94));
    border: 1px solid rgba(163, 238, 75, 0.42);
    border-radius: 28px;
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.48),
        0 0 48px rgba(163, 238, 75, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    margin: 0 auto;
    max-width: 492px;
    overflow: hidden;
    padding: 31px 48px 48px;
    position: relative;
    width: min(100%, 492px);
}

body.auth-page .auth-panel::before {
    background:
        linear-gradient(90deg, transparent, rgba(206, 238, 75, 0.62), transparent),
        rgba(163, 238, 75, 0.12);
    content: "";
    height: 1px;
    left: 48px;
    position: absolute;
    right: 48px;
    top: calc(100% - 174px);
}

body.auth-page .auth-brand-row {
    align-items: center;
    display: flex;
    gap: 14px;
    margin: 0 0 58px;
}

body.auth-page .auth-brand-mark {
    align-items: center;
    background: linear-gradient(135deg, var(--auth-green-bright), var(--auth-green-deep));
    border-radius: 13px;
    box-shadow: 0 0 28px rgba(163, 238, 75, 0.28);
    color: #071006;
    display: inline-flex;
    font-size: 15px;
    font-weight: 900;
    height: 44px;
    justify-content: center;
    letter-spacing: -0.04em;
    width: 44px;
}

body.auth-page .auth-brand-text {
    color: var(--auth-text-main);
    font-size: 19px;
    font-weight: 850;
    letter-spacing: -0.02em;
}

body.auth-page .auth-panel h1 {
    color: var(--auth-text-main);
    font-size: 52px;
    letter-spacing: -0.045em;
    line-height: 0.98;
    margin: 0 0 12px;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.38);
}

body.auth-page .auth-panel > .muted {
    color: var(--auth-text-muted);
    font-size: 18px;
    line-height: 1.5;
    margin: 0 0 32px;
}

body.auth-page .form {
    gap: 25px;
    margin-top: 0;
}

body.auth-page label {
    color: var(--auth-text-main);
    gap: 13px;
    font-size: 17px;
    font-weight: 800;
}

body.auth-page .auth-input-shell {
    align-items: center;
    background: rgba(3, 7, 7, 0.66);
    border: 1px solid rgba(163, 238, 75, 0.5);
    border-radius: 8px;
    box-shadow:
        0 0 22px rgba(163, 238, 75, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    min-height: 54px;
    padding: 0 10px 0 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.auth-page .auth-input-shell:focus-within {
    background: rgba(3, 8, 7, 0.82);
    border-color: rgba(206, 238, 75, 0.9);
    box-shadow:
        0 0 28px rgba(163, 238, 75, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.auth-page .auth-input-icon {
    color: var(--auth-green-main);
    display: grid;
    place-items: center;
}

body.auth-page .auth-input-shell input {
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--auth-text-main);
    min-height: 52px;
    padding: 0 8px;
    width: 100%;
}

body.auth-page .auth-input-shell input:focus {
    outline: 0;
}

body.auth-page input:-webkit-autofill,
body.auth-page input:-webkit-autofill:hover,
body.auth-page input:-webkit-autofill:focus,
body.auth-page input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(3, 7, 7, 0.96) inset !important;
    -webkit-text-fill-color: var(--auth-text-main) !important;
    caret-color: var(--auth-text-main);
    transition: background-color 9999s ease-in-out 0s;
}

body.auth-page .auth-input-shell input:-webkit-autofill,
body.auth-page .auth-input-shell input:-webkit-autofill:hover,
body.auth-page .auth-input-shell input:-webkit-autofill:focus,
body.auth-page .auth-input-shell input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(3, 7, 7, 0.74) inset !important;
}

body.auth-page .auth-panel label > input:not([type="hidden"]) {
    background: rgba(3, 7, 7, 0.66);
    border: 1px solid rgba(163, 238, 75, 0.5);
    border-radius: 8px;
    box-shadow:
        0 0 22px rgba(163, 238, 75, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    color: var(--auth-text-main);
    min-height: 54px;
}

body.auth-page .auth-panel label > input:not([type="hidden"]):focus {
    border-color: rgba(206, 238, 75, 0.9);
    box-shadow:
        0 0 28px rgba(163, 238, 75, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    outline: 0;
}

body.auth-page .auth-password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--auth-green-main);
    display: inline-flex;
    height: 38px;
    justify-content: center;
    padding: 0;
    width: 38px;
}

body.auth-page .auth-password-toggle:hover,
body.auth-page .auth-password-toggle:focus {
    background: transparent;
    color: var(--auth-green-bright);
    outline: 0;
}

body.auth-page .auth-link {
    color: var(--auth-green-main);
    font-size: 16px;
    font-weight: 750;
    margin-top: -2px;
}

body.auth-page .auth-link:hover {
    color: var(--auth-green-bright);
}

body.auth-page .auth-primary-button {
    align-items: center;
    background: linear-gradient(135deg, var(--auth-green-bright), var(--auth-green-muted));
    border: 1px solid rgba(206, 238, 75, 0.55);
    border-radius: 8px;
    box-shadow:
        0 0 28px rgba(163, 238, 75, 0.26),
        0 18px 42px rgba(0, 0, 0, 0.34);
    color: #071006;
    display: inline-flex;
    font-size: 19px;
    gap: 16px;
    justify-content: center;
    min-height: 56px;
    padding: 13px 18px;
}

body.auth-page .auth-panel form > button:not(.auth-password-toggle) {
    align-items: center;
    background: linear-gradient(135deg, var(--auth-green-bright), var(--auth-green-muted));
    border: 1px solid rgba(206, 238, 75, 0.55);
    border-radius: 8px;
    box-shadow:
        0 0 28px rgba(163, 238, 75, 0.26),
        0 18px 42px rgba(0, 0, 0, 0.34);
    color: #071006;
    display: inline-flex;
    font-size: 19px;
    gap: 16px;
    justify-content: center;
    min-height: 56px;
    padding: 13px 18px;
}

body.auth-page .auth-panel form > button:not(.auth-password-toggle):hover {
    background: linear-gradient(135deg, #ddf66c, #82e74a);
    box-shadow:
        0 0 34px rgba(206, 238, 75, 0.34),
        0 20px 48px rgba(0, 0, 0, 0.4);
}

body.auth-page .auth-primary-button:hover {
    background: linear-gradient(135deg, #ddf66c, #82e74a);
    box-shadow:
        0 0 34px rgba(206, 238, 75, 0.34),
        0 20px 48px rgba(0, 0, 0, 0.4);
}

body.auth-page .auth-switch {
    border-top: 0;
    gap: 15px;
    margin-top: 43px;
    padding-top: 0;
    position: relative;
}

body.auth-page .auth-switch p {
    color: var(--auth-text-muted);
    font-size: 17px;
}

body.auth-page .button-link.secondary.auth-secondary-button,
body.auth-page .auth-switch .button-link.secondary {
    align-items: center;
    background: rgba(3, 7, 7, 0.58);
    border: 1px solid rgba(163, 238, 75, 0.36);
    border-radius: 8px;
    color: var(--auth-text-main);
    display: inline-flex;
    gap: 13px;
    justify-content: center;
    min-height: 58px;
}

body.auth-page .button-link.secondary.auth-secondary-button:hover,
body.auth-page .auth-switch .button-link.secondary:hover {
    background: rgba(163, 238, 75, 0.08);
    border-color: rgba(206, 238, 75, 0.72);
}

body.auth-page .alert {
    background: rgba(255, 104, 104, 0.13);
    border: 1px solid rgba(255, 104, 104, 0.26);
    color: #ffc9c9;
}

body.auth-page .notice {
    background: rgba(163, 238, 75, 0.12);
    border: 1px solid rgba(163, 238, 75, 0.28);
    color: var(--auth-text-main);
}

body.auth-page .auth-hp {
    height: 1px;
    left: -10000px;
    overflow: hidden;
    position: absolute;
    top: auto;
    width: 1px;
}

body.auth-page .auth-captcha {
    display: grid;
    gap: 8px;
    justify-items: start;
}

body.auth-page .auth-captcha .muted {
    color: var(--auth-text-muted);
    font-size: 13px;
    margin: 0;
}

body.auth-page .g-recaptcha {
    max-width: 100%;
}

@media (max-width: 560px) {
    body.auth-page .page {
        align-items: stretch;
        padding: 12px;
    }

    body.auth-page .auth-panel {
        border-radius: 22px;
        min-height: calc(100vh - 24px);
        padding: 28px 24px 34px;
    }

    body.auth-page .auth-panel::before {
        left: 24px;
        right: 24px;
        top: calc(100% - 160px);
    }

    body.auth-page .auth-brand-row {
        margin-bottom: 48px;
    }

    body.auth-page .auth-brand-text {
        font-size: 16px;
    }

    body.auth-page .auth-panel h1 {
        font-size: 45px;
    }

    body.auth-page .auth-panel > .muted {
        font-size: 16px;
    }
}

.master-data-content table input,
.master-data-content table textarea {
    margin: 0;
    min-width: 180px;
    width: 100%;
}

.master-data-content table textarea {
    min-height: 42px;
    resize: vertical;
}

.inline-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inline-actions form {
    margin: 0;
}

.inline-actions button {
    margin: 0;
    white-space: nowrap;
}

.danger-link {
    background: transparent;
    border: 0;
    color: #dc2626;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    padding: 0;
}

.danger-link:hover,
.danger-link:focus {
    color: #991b1b;
    text-decoration: underline;
}

.heading-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button-link.button-link-secondary {
    background: #e5e7eb;
    color: var(--text);
}

.button-link.button-link-secondary:hover {
    background: #d1d5db;
}

.import-panel {
    display: grid;
    gap: 20px;
    max-width: 860px;
}

.backtest-entry-panel,
.backtest-list-panel {
    background:
        radial-gradient(circle at 18% 0%, rgba(163, 238, 75, 0.1), transparent 26%),
        linear-gradient(145deg, #071107, #0d1a12 55%, #071107);
    border-color: rgba(163, 238, 75, 0.34);
    box-shadow:
        0 22px 70px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: #e8f3df;
}

.backtest-entry-panel h2,
.backtest-list-panel h2 {
    color: #f4fbef;
}

.backtest-entry-panel .form-grid {
    gap: 18px 20px;
}

.backtest-entry-panel label,
.backtest-entry-panel legend {
    color: #dcebd4;
}

.backtest-entry-panel input,
.backtest-entry-panel select,
.backtest-entry-panel textarea {
    background: rgba(4, 12, 8, 0.78);
    border-color: rgba(163, 238, 75, 0.36);
    color: #f6fff0;
}

.backtest-entry-panel input[type="date"]::-webkit-calendar-picker-indicator,
.backtest-entry-panel input[type="time"]::-webkit-calendar-picker-indicator {
    background-color: #d9ff8b;
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(163, 238, 75, 0.32);
    cursor: pointer;
    filter: none;
    height: 18px;
    opacity: 1;
    padding: 3px;
    width: 18px;
}

.backtest-entry-panel input[type="date"]::-webkit-calendar-picker-indicator:hover,
.backtest-entry-panel input[type="time"]::-webkit-calendar-picker-indicator:hover {
    background-color: #f0ffc4;
    box-shadow: 0 0 16px rgba(163, 238, 75, 0.46);
}

.backtest-entry-panel input:focus,
.backtest-entry-panel select:focus,
.backtest-entry-panel textarea:focus {
    border-color: rgba(190, 242, 100, 0.9);
    box-shadow: 0 0 0 3px rgba(163, 238, 75, 0.16);
}

.backtest-entry-panel .segmented-control {
    background: rgba(2, 8, 5, 0.62);
    border-color: rgba(163, 238, 75, 0.24);
}

.backtest-entry-panel .segmented-control span {
    background: rgba(8, 19, 11, 0.94);
    border-color: rgba(163, 238, 75, 0.22);
    color: #dbe9d4;
}

.backtest-entry-panel .segmented-control input:checked + span {
    background: linear-gradient(135deg, rgba(118, 198, 48, 0.32), rgba(18, 74, 35, 0.84));
    border-color: rgba(190, 242, 100, 0.72);
    color: #d9ff8b;
}

.backtest-entry-panel .field-help,
.backtest-entry-panel .muted {
    color: #a9bba3;
}

.backtest-entry-panel button[type="submit"] {
    background: linear-gradient(135deg, #c8f13f, #6edf35);
    border: 0;
    color: #071107;
    font-weight: 800;
}

.backtest-entry-panel button[type="submit"]:hover {
    background: linear-gradient(135deg, #d9f85f, #7dec43);
}

.backtest-panel-title {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.backtest-panel-title h2 {
    margin: 0;
}

.backtest-title-dot {
    background: #c8f13f;
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(200, 241, 63, 0.55);
    display: inline-block;
    height: 12px;
    width: 12px;
}

.backtest-table-wrap {
    border: 1px solid rgba(163, 238, 75, 0.2);
    border-radius: 8px;
    overflow-x: auto;
}

.backtest-table {
    border-collapse: separate;
    border-spacing: 0;
    color: #dfead8;
    min-width: 980px;
}

.backtest-table th {
    background: rgba(163, 238, 75, 0.07);
    border-bottom: 1px solid rgba(163, 238, 75, 0.22);
    color: #bdf35a;
    font-size: 13px;
    padding: 13px 16px;
    white-space: nowrap;
}

.backtest-table td {
    background: rgba(9, 20, 12, 0.72);
    border-bottom: 1px solid rgba(163, 238, 75, 0.13);
    color: #e7f0e1;
    padding: 11px 16px;
    vertical-align: middle;
}

.backtest-table tbody tr {
    box-shadow: inset 4px 0 0 #b7f23a;
}

.backtest-table tbody tr:hover td {
    background: rgba(17, 35, 20, 0.9);
}

.backtest-table td strong,
.backtest-table td span,
.backtest-table td small {
    display: block;
}

.backtest-table td strong {
    color: #f1f8ec;
    font-size: 13px;
}

.backtest-table td span,
.backtest-table td small {
    color: #aebfa8;
    font-size: 12px;
    line-height: 1.35;
}

.bt-badge {
    border-radius: 6px;
    display: inline-flex !important;
    font-size: 11px !important;
    font-weight: 800;
    line-height: 1;
    min-width: 42px;
    padding: 7px 9px;
    text-align: center;
    text-transform: lowercase;
}

.bt-badge-long,
.bt-badge-tp {
    background: rgba(40, 107, 38, 0.68);
    color: #bdf35a !important;
}

.bt-badge-short,
.bt-badge-sl {
    background: rgba(106, 35, 30, 0.72);
    color: #ff766f !important;
}

.bt-badge-breakeven,
.bt-badge-manual,
.bt-badge-open,
.bt-badge-neutral {
    background: rgba(148, 163, 184, 0.14);
    color: #d1d9cf !important;
}

.bt-r {
    display: inline-block !important;
    font-size: 15px !important;
    font-weight: 900;
}

.bt-r-positive {
    color: #bdf35a !important;
}

.bt-r-negative {
    color: #ff625d !important;
}

.bt-valid {
    color: #dfead8 !important;
    display: inline-flex !important;
}

.backtest-table .inline-actions {
    align-items: flex-start;
    gap: 6px 10px;
}

.backtest-table .inline-actions a {
    color: #dfead8;
    font-size: 12px;
}

.backtest-table .danger-link {
    color: #ff625d;
    font-size: 11px;
}

.backtest-edit-button {
    background: rgba(163, 238, 75, 0.08) !important;
    border: 1px solid rgba(163, 238, 75, 0.42);
    color: #bdf35a !important;
    min-width: 112px;
    text-align: center;
}

.backtest-edit-button:hover {
    background: rgba(163, 238, 75, 0.16) !important;
}

.backtest-table-footer {
    align-items: center;
    border: 1px solid rgba(163, 238, 75, 0.16);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    color: #d3dfcc;
    display: flex;
    font-size: 13px;
    min-height: 42px;
    padding: 10px 16px;
}

@media (max-width: 760px) {
    .backtest-entry-panel,
    .backtest-list-panel {
        border-radius: 12px;
        padding: 16px;
    }

    .backtest-table {
        min-width: 900px;
    }
}

.trade-entry-panel,
.trade-list-panel {
    background:
        radial-gradient(circle at 18% 0%, rgba(163, 238, 75, 0.1), transparent 26%),
        linear-gradient(145deg, #071107, #0d1a12 55%, #071107);
    border-color: rgba(163, 238, 75, 0.34);
    box-shadow:
        0 22px 70px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: #e8f3df;
}

.trade-entry-panel h2,
.trade-list-panel h2 {
    color: #f4fbef;
}

.trade-entry-panel .form-grid {
    gap: 18px 20px;
}

.trade-entry-panel label,
.trade-entry-panel legend {
    color: #dcebd4;
}

.trade-entry-panel input,
.trade-entry-panel select,
.trade-entry-panel textarea {
    background: rgba(4, 12, 8, 0.78);
    border-color: rgba(163, 238, 75, 0.36);
    color: #f6fff0;
}

.trade-entry-panel input:focus,
.trade-entry-panel select:focus,
.trade-entry-panel textarea:focus {
    border-color: rgba(190, 242, 100, 0.9);
    box-shadow: 0 0 0 3px rgba(163, 238, 75, 0.16);
}

.trade-entry-panel .segmented-control {
    background: rgba(2, 8, 5, 0.62);
    border-color: rgba(163, 238, 75, 0.24);
}

.trade-entry-panel .segmented-control span {
    background: rgba(8, 19, 11, 0.94);
    border-color: rgba(163, 238, 75, 0.22);
    color: #dbe9d4;
}

.trade-entry-panel .segmented-control input:checked + span {
    background: linear-gradient(135deg, rgba(118, 198, 48, 0.32), rgba(18, 74, 35, 0.84));
    border-color: rgba(190, 242, 100, 0.72);
    color: #d9ff8b;
}

.trade-entry-panel .field-help,
.trade-entry-panel .muted {
    color: #a9bba3;
}

.trade-entry-panel button[type="submit"] {
    background: linear-gradient(135deg, #c8f13f, #6edf35);
    border: 0;
    color: #071107;
    font-weight: 800;
}

.trade-entry-panel button[type="submit"]:hover {
    background: linear-gradient(135deg, #d9f85f, #7dec43);
}

.trade-entry-panel .info-tip {
    background: rgba(7, 17, 7, 0.9);
    border-color: rgba(190, 242, 100, 0.72);
    color: #bdf35a;
}

.trade-table {
    min-width: 1040px;
}

.bt-badge-closed,
.bt-badge-win {
    background: rgba(40, 107, 38, 0.68);
    color: #bdf35a !important;
}

.bt-badge-loss {
    background: rgba(106, 35, 30, 0.72);
    color: #ff766f !important;
}

.backtest-shell-panel,
.backtest-metrics article {
    background:
        radial-gradient(circle at 18% 0%, rgba(163, 238, 75, 0.1), transparent 26%),
        linear-gradient(145deg, #071107, #0d1a12 55%, #071107);
    border-color: rgba(163, 238, 75, 0.34);
    box-shadow:
        0 22px 70px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: #e8f3df;
}

.backtest-shell-panel h2,
.backtest-shell-panel h3,
.backtest-metrics article strong {
    color: #f4fbef;
}

.page:has(.backtest-entry-panel) > .page-heading h1,
.page:has(.backtest-shell-panel) > .page-heading h1,
.page:has(.backtest-metrics) > .page-heading h1 {
    color: #f4fbef;
}

.page:has(.backtest-entry-panel) > .page-heading .muted,
.page:has(.backtest-shell-panel) > .page-heading .muted,
.page:has(.backtest-metrics) > .page-heading .muted {
    color: #a9bba3;
}

.backtest-shell-panel .muted,
.backtest-metrics article span {
    color: #a9bba3;
}

.backtest-shell-panel table {
    border-collapse: separate;
    border-spacing: 0;
    color: #dfead8;
    min-width: 760px;
}

.backtest-shell-panel th {
    background: rgba(163, 238, 75, 0.07);
    border-bottom: 1px solid rgba(163, 238, 75, 0.22);
    color: #bdf35a;
    font-size: 13px;
    padding: 13px 16px;
    white-space: nowrap;
}

.backtest-shell-panel td {
    background: rgba(9, 20, 12, 0.72);
    border-bottom: 1px solid rgba(163, 238, 75, 0.13);
    color: #e7f0e1;
    padding: 11px 16px;
}

.backtest-shell-panel tbody tr:hover td {
    background: rgba(17, 35, 20, 0.9);
}

.backtest-shell-panel td strong {
    color: #f1f8ec;
}

.backtest-metrics article {
    border: 1px solid rgba(121, 255, 72, 0.58);
    border-radius: 18px;
    box-shadow:
        0 0 0 1px rgba(198, 255, 134, 0.2),
        0 0 9px rgba(105, 255, 62, 0.16),
        0 0 18px rgba(0, 255, 174, 0.06),
        inset 0 0 0 1px rgba(205, 255, 167, 0.18),
        inset 0 0 18px rgba(79, 255, 98, 0.05),
        inset 0 -10px 16px rgba(4, 255, 91, 0.05);
    overflow: hidden;
    position: relative;
}

.backtest-metrics article::before {
    background:
        radial-gradient(ellipse at top center, rgba(210, 255, 115, 0.66) 0%, rgba(106, 255, 48, 0.26) 22%, transparent 50%),
        linear-gradient(90deg, transparent 0%, rgba(178, 255, 75, 0.42) 48%, rgba(255, 255, 255, 0.32) 50%, rgba(178, 255, 75, 0.42) 52%, transparent 100%);
    content: "";
    height: 10px;
    left: 18%;
    opacity: 0.62;
    pointer-events: none;
    position: absolute;
    right: 18%;
    top: -5px;
    z-index: 0;
}

.backtest-metrics article::after {
    background:
        radial-gradient(circle, rgba(139, 255, 72, 0.28) 1px, transparent 1.6px),
        radial-gradient(circle, rgba(139, 255, 72, 0.18) 1px, transparent 1.6px);
    background-position: 14px 16px, calc(100% - 96px) calc(100% - 68px);
    background-size: 8px 8px, 8px 8px;
    content: "";
    inset: 0;
    mask-image:
        radial-gradient(circle at 38px 36px, #000 0, #000 58px, transparent 94px),
        radial-gradient(circle at calc(100% - 40px) calc(100% - 36px), #000 0, #000 58px, transparent 94px);
    -webkit-mask-image:
        radial-gradient(circle at 38px 36px, #000 0, #000 58px, transparent 94px),
        radial-gradient(circle at calc(100% - 40px) calc(100% - 36px), #000 0, #000 58px, transparent 94px);
    opacity: 0.34;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.backtest-metrics article > * {
    position: relative;
    z-index: 1;
}

.backtest-entry-panel details {
    color: #e8f3df;
}

.backtest-entry-panel summary.button-like {
    background: rgba(163, 238, 75, 0.08);
    border: 1px solid rgba(163, 238, 75, 0.42);
    color: #bdf35a;
}

.backtest-entry-panel summary.button-like:hover {
    background: rgba(163, 238, 75, 0.16);
}

.backtest-entry-panel .form-note,
.backtest-entry-panel .checkbox-row {
    color: #dcebd4;
}

.backtest-entry-panel .form-section-title {
    border-top-color: rgba(163, 238, 75, 0.18);
    color: #f4fbef;
}

@media (max-width: 760px) {
    .trade-entry-panel,
    .trade-list-panel {
        border-radius: 12px;
        padding: 16px;
    }

    .trade-table {
        min-width: 960px;
    }
}

.import-project {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
}

.import-project span {
    color: var(--muted);
    font-weight: 600;
}

.import-message {
    border-radius: 8px;
    padding: 16px;
}

.import-message p {
    margin: 0 0 8px;
}

.import-message p:last-child {
    margin-bottom: 0;
}

.import-message-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.import-message-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.import-result-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin: 12px 0 0;
}

.import-result-grid div {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 10px 12px;
}

.import-result-grid dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.import-result-grid dd {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
}

.import-form {
    display: grid;
    gap: 18px;
}

.import-form input[type="file"] {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    width: 100%;
}

.import-note {
    background: #f8fafc;
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    color: var(--muted);
    padding: 12px 14px;
}

.import-note p {
    margin: 0 0 6px;
}

.import-note p:last-child {
    margin-bottom: 0;
}

body:not(.auth-page) {
    color: #e8f3df;
}

body:not(.auth-page) .page-heading h1,
body:not(.auth-page) .master-data-heading h1 {
    color: #f4fbef;
    text-shadow: 0 8px 26px rgba(0, 0, 0, 0.42);
}

body:not(.auth-page) .page-heading .muted,
body:not(.auth-page) .master-data-heading .muted,
body:not(.auth-page) .muted {
    color: #a9bba3;
}

body:not(.auth-page) .panel,
body:not(.auth-page) .metrics article,
body:not(.auth-page) .stat-card,
body:not(.auth-page) .stats-filter-panel,
body:not(.auth-page) .stats-table-card,
body:not(.auth-page) .stats-section,
body:not(.auth-page) .master-sidebar,
body:not(.auth-page) .admin-settings-sidebar,
body:not(.auth-page) .import-project,
body:not(.auth-page) .import-note,
body:not(.auth-page) .import-result-grid div {
    background:
        radial-gradient(circle at 18% 0%, rgba(163, 238, 75, 0.1), transparent 26%),
        linear-gradient(145deg, #071107, #0d1a12 55%, #071107);
    border-color: rgba(163, 238, 75, 0.34);
    box-shadow:
        0 22px 70px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: #e8f3df;
}

body:not(.auth-page) .panel h2,
body:not(.auth-page) .panel h3,
body:not(.auth-page) .metrics article strong,
body:not(.auth-page) .stat-card strong,
body:not(.auth-page) .stats-table-card h2,
body:not(.auth-page) .stats-section h2,
body:not(.auth-page) .master-sidebar-title,
body:not(.auth-page) .admin-settings-sidebar-title,
body:not(.auth-page) .import-result-grid dd {
    color: #f4fbef;
}

body:not(.auth-page) .panel table,
body:not(.auth-page) .stats-table-card table,
body:not(.auth-page) .stats-section table {
    color: #dfead8;
}

body:not(.auth-page) .panel th,
body:not(.auth-page) .stats-table-card th,
body:not(.auth-page) .stats-section th {
    background: rgba(163, 238, 75, 0.07);
    border-bottom-color: rgba(163, 238, 75, 0.22);
    color: #bdf35a;
}

body:not(.auth-page) .panel td,
body:not(.auth-page) .stats-table-card td,
body:not(.auth-page) .stats-section td {
    border-bottom-color: rgba(163, 238, 75, 0.13);
    color: #e7f0e1;
}

body:not(.auth-page) .panel tbody tr:hover td,
body:not(.auth-page) .stats-table-card tbody tr:hover td,
body:not(.auth-page) .stats-section tbody tr:hover td {
    background: rgba(17, 35, 20, 0.9);
}

body:not(.auth-page) .panel input,
body:not(.auth-page) .panel select,
body:not(.auth-page) .panel textarea,
body:not(.auth-page) .stats-filter-panel input,
body:not(.auth-page) .stats-filter-panel select,
body:not(.auth-page) .stats-filter-panel textarea,
body:not(.auth-page) .import-form input[type="file"] {
    background: rgba(4, 12, 8, 0.78);
    border-color: rgba(163, 238, 75, 0.36);
    color: #f6fff0;
}

body:not(.auth-page) .panel input:focus,
body:not(.auth-page) .panel select:focus,
body:not(.auth-page) .panel textarea:focus,
body:not(.auth-page) .stats-filter-panel input:focus,
body:not(.auth-page) .stats-filter-panel select:focus,
body:not(.auth-page) .stats-filter-panel textarea:focus {
    border-color: rgba(190, 242, 100, 0.9);
    box-shadow: 0 0 0 3px rgba(163, 238, 75, 0.16);
}

body:not(.auth-page) .master-sidebar a {
    color: #dcebd4;
}

body:not(.auth-page) .master-sidebar a:hover,
body:not(.auth-page) .master-sidebar a.active,
body:not(.auth-page) .admin-settings-sidebar a:hover,
body:not(.auth-page) .admin-settings-sidebar a.active {
    background: rgba(163, 238, 75, 0.12);
    color: #d9ff8b;
}

body:not(.auth-page) .admin-settings-sidebar a {
    color: #dcebd4;
}

body:not(.auth-page) .segmented-control {
    background: rgba(2, 8, 5, 0.62);
    border-color: rgba(163, 238, 75, 0.24);
}

body:not(.auth-page) .segmented-control span {
    background: rgba(8, 19, 11, 0.94);
    border-color: rgba(163, 238, 75, 0.22);
    color: #dbe9d4;
}

body:not(.auth-page) .segmented-control input:checked + span {
    background: linear-gradient(135deg, rgba(118, 198, 48, 0.32), rgba(18, 74, 35, 0.84));
    border-color: rgba(190, 242, 100, 0.72);
    color: #d9ff8b;
}

body:not(.auth-page) .check-grid label {
    background: rgba(8, 19, 11, 0.94);
    border-color: rgba(163, 238, 75, 0.22);
    color: #dcebd4;
}

body:not(.auth-page) .check-grid label:has(input:checked) {
    background: linear-gradient(135deg, rgba(118, 198, 48, 0.22), rgba(18, 74, 35, 0.72));
    border-color: rgba(190, 242, 100, 0.64);
    color: #d9ff8b;
}

body:not(.auth-page) .check-grid input {
    accent-color: #a3ee4b;
}

body:not(.auth-page) .import-message-success {
    background: rgba(4, 74, 43, 0.72);
    border-color: rgba(74, 222, 128, 0.44);
    color: #d9fce7;
}

body:not(.auth-page) .import-message-error {
    background: rgba(100, 24, 24, 0.72);
    border-color: rgba(248, 113, 113, 0.44);
    color: #ffe0e0;
}

body:not(.auth-page) .import-project span,
body:not(.auth-page) .import-result-grid dt {
    color: #a9bba3;
}
