:root {
    --bg: #f6f2ea;
    --panel: #ffffff;
    --ink: #1f2933;
    --muted: #5f6b73;
    --accent: #ff8c42;
    --accent-dark: #d86a24;
    --green: #2d8a5e;
    --red: #d64545;
    --yellow: #e7b10a;
    --shadow: 0 18px 40px rgba(28, 36, 43, 0.12);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top left, #fff8f0 0%, #f6f2ea 45%, #efe7db 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.site-shell {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 100vh;
    width: 100%;
}

.project-list {
    background: #111826;
    color: #f7f3ed;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: linear-gradient(135deg, #ff8c42 0%, #ffd166 100%);
    color: #111826;
}

.brand-title {
    font-weight: 600;
    font-size: 18px;
}

.brand-subtitle {
    font-size: 12px;
    color: rgba(247, 243, 237, 0.7);
}

.list-head {
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
    color: rgba(247, 243, 237, 0.7);
}

.list-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding-right: 4px;
    max-height: 70vh;
}

.project-item {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.project-item:hover {
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.project-item.active {
    background: #ffffff;
    color: #111826;
    border-color: #ffffff;
}

.project-title {
    font-weight: 600;
    font-size: 14px;
}

.project-meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: inherit;
    opacity: 0.8;
    margin-top: 6px;
    align-items: center;
}

.type-chip {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.08);
    color: #eaf2ff;
}

.type-fund {
    background: rgba(255, 152, 72, 0.28);
    color: #ffd2b2;
    border-color: rgba(255, 152, 72, 0.55);
}

.type-vote {
    background: rgba(96, 139, 255, 0.28);
    color: #dbe6ff;
    border-color: rgba(96, 139, 255, 0.55);
}

.status-chip {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid transparent;
    letter-spacing: 0.2px;
    background: rgba(255, 255, 255, 0.08);
    color: #eef2f7;
}

.status-chip.status-open {
    background: rgba(46, 204, 113, 0.26);
    color: #eafff3;
    border-color: rgba(46, 204, 113, 0.55);
}

.status-chip.status-closed {
    background: rgba(148, 163, 184, 0.24);
    color: #e9eef6;
    border-color: rgba(148, 163, 184, 0.55);
}

.admin-card .type-chip,
.admin-card .status-chip,
.project-detail .type-chip,
.project-detail .status-chip,
.list-wrap .type-chip,
.list-wrap .status-chip {
    background: #f4efe7;
    color: #4b3b2a;
    border-color: rgba(112, 86, 58, 0.25);
}

.admin-card .type-fund,
.project-detail .type-fund,
.list-wrap .type-fund {
    background: rgba(255, 161, 90, 0.2);
    color: #9b4a18;
    border-color: rgba(255, 161, 90, 0.45);
}

.admin-card .type-vote,
.project-detail .type-vote,
.list-wrap .type-vote {
    background: rgba(120, 152, 255, 0.2);
    color: #1d4ed8;
    border-color: rgba(120, 152, 255, 0.45);
}

.admin-card .status-chip.status-open,
.project-detail .status-chip.status-open,
.list-wrap .status-chip.status-open {
    background: rgba(46, 204, 113, 0.18);
    color: #1f7a47;
    border-color: rgba(46, 204, 113, 0.4);
}

.admin-card .status-chip.status-closed,
.project-detail .status-chip.status-closed,
.list-wrap .status-chip.status-closed {
    background: rgba(148, 163, 184, 0.18);
    color: #475569;
    border-color: rgba(148, 163, 184, 0.4);
}

/* Dark-surface version for project list chips */
.project-list .type-chip,
.project-list .status-chip {
    background: rgba(255, 255, 255, 0.06);
    color: #f3f6ff;
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.project-list .type-fund {
    background: linear-gradient(180deg, rgba(255, 165, 90, 0.22), rgba(255, 165, 90, 0.08));
    color: #ffd7b8;
    border-color: rgba(255, 165, 90, 0.45);
}

.project-list .type-vote {
    background: linear-gradient(180deg, rgba(110, 150, 255, 0.22), rgba(110, 150, 255, 0.08));
    color: #d9e4ff;
    border-color: rgba(110, 150, 255, 0.45);
}

.project-list .status-chip.status-open {
    background: linear-gradient(180deg, rgba(66, 214, 128, 0.22), rgba(66, 214, 128, 0.08));
    color: #dfffee;
    border-color: rgba(66, 214, 128, 0.5);
}

.project-list .status-chip.status-closed {
    background: linear-gradient(180deg, rgba(160, 176, 200, 0.22), rgba(160, 176, 200, 0.08));
    color: #e6edf7;
    border-color: rgba(160, 176, 200, 0.5);
}

/* Active (white) project item chips on dark list */
.project-list .project-item.active .type-chip,
.project-list .project-item.active .status-chip {
    background: #f4efe7;
    color: #4b3b2a;
    border-color: rgba(112, 86, 58, 0.25);
    box-shadow: none;
}

.project-list .project-item.active .type-fund {
    background: rgba(255, 161, 90, 0.2);
    color: #9b4a18;
    border-color: rgba(255, 161, 90, 0.45);
}

.project-list .project-item.active .type-vote {
    background: rgba(120, 152, 255, 0.2);
    color: #1d4ed8;
    border-color: rgba(120, 152, 255, 0.45);
}

.project-list .project-item.active .status-chip.status-open {
    background: rgba(46, 204, 113, 0.18);
    color: #1f7a47;
    border-color: rgba(46, 204, 113, 0.4);
}

.project-list .project-item.active .status-chip.status-closed {
    background: rgba(148, 163, 184, 0.18);
    color: #475569;
    border-color: rgba(148, 163, 184, 0.4);
}

.aside-footer {
    margin-top: auto;
}

.admin-link {
    color: #ffd166;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.project-detail {
    padding: 32px 40px 60px;
    min-width: 0;
}

.project-header {
    display: flex;
    gap: 24px;
    justify-content: space-between;
    align-items: flex-start;
    background: var(--panel);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.project-header h1 {
    font-family: 'Source Serif 4', serif;
    font-size: 30px;
    margin: 6px 0 10px;
}

.project-type {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--accent-dark);
    font-weight: 700;
}

.project-description {
    color: var(--muted);
    margin-bottom: 12px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.project-details {
    background: #f7efe5;
    border-radius: 12px;
    padding: 12px 16px;
    color: #453a2a;
    font-size: 14px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.project-description a,
.project-details a {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.status-card {
    min-width: 160px;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    font-weight: 600;
}

.status-open {
    background: rgba(45, 138, 94, 0.12);
    color: var(--green);
}

.status-closed {
    background: rgba(214, 69, 69, 0.12);
    color: var(--red);
}

.status-label {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.status-value {
    font-size: 18px;
    margin-top: 6px;
}

.metrics {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.metric-card {
    background: var(--panel);
    padding: 18px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    min-height: 120px;
}

.metric-card.highlight {
    border: 2px solid rgba(255, 140, 66, 0.4);
}

.metric-label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.metric-value {
    font-size: 22px;
    font-weight: 600;
    margin: 10px 0 4px;
}

.metric-sub {
    font-size: 13px;
    color: var(--muted);
}

.progress-panel {
    margin-top: 20px;
    background: var(--panel);
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.progress-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.progress-bar {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: #ece2d1;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff8c42, #ffd166);
    border-radius: 999px;
}

.progress-marker {
    position: absolute;
    top: -24px;
    transform: translateX(-50%);
    font-size: 11px;
    color: #7a5f2c;
}

.progress-foot {
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px;
}

.table-panel {
    margin-top: 24px;
    background: var(--panel);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 20px 24px;
}

.table-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.table-head h2 {
    margin: 0;
    font-size: 20px;
}

.table-head p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.floor-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--muted);
    margin-top: 12px;
}

.floor-filter label {
    margin: 0;
    font-weight: 600;
}

.floor-filter .filter-field {
    min-width: 140px;
}

.floor-filter input,
.floor-filter select {
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid #e2d5c5;
    height: 34px;
}

.table-wrap {
    overflow-x: auto;
}

.project-table {
    margin: 0;
}

.row-status.paid {
    background: rgba(45, 138, 94, 0.12) !important;
}

.row-status.unpaid {
    background: rgba(214, 69, 69, 0.1) !important;
}

.row-status.vote-yes {
    background: rgba(45, 138, 94, 0.12) !important;
}

.row-status.vote-no {
    background: rgba(214, 69, 69, 0.12) !important;
}

.row-status.vote-abstain {
    background: rgba(231, 177, 10, 0.15) !important;
}

.row-status.vote-pending {
    background: rgba(115, 122, 130, 0.08) !important;
}

.placeholder {
    background: var(--panel);
    padding: 32px;
    border-radius: var(--radius);
    text-align: center;
    color: var(--muted);
    box-shadow: var(--shadow);
}

.empty {
    color: rgba(247, 243, 237, 0.8);
    font-size: 13px;
}

@media (max-width: 1100px) {
    .site-shell {
        grid-template-columns: 1fr;
    }

    .project-list {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .list-wrap {
        flex-direction: column;
        max-height: 260px;
    }

    .project-item {
        min-width: 100%;
    }

    .project-detail {
        padding: 24px;
    }

    .project-header {
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .project-list {
        flex-direction: column;
        padding: 20px 16px;
    }

    .project-detail {
        padding: 18px;
    }

    .project-header {
        padding: 20px;
    }

    .metrics {
        grid-template-columns: 1fr;
    }

    .table-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-list {
        gap: 12px;
    }

    .list-wrap {
        max-height: 240px;
    }

    .project-item {
        min-width: 100%;
    }

    .project-detail {
        padding: 16px;
    }

    .project-header {
        padding: 18px;
        gap: 16px;
    }

    .status-card {
        width: 100%;
    }

    .metric-card {
        min-height: auto;
    }

    .table-panel {
        padding: 18px;
    }

    .floor-filter {
        width: 100%;
    }

    .floor-filter .filter-field {
        min-width: 100%;
    }

    .project-table {
        font-size: 13px;
    }

    .project-table th,
    .project-table td {
        white-space: nowrap;
    }
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 20px;
}

.admin-shell--full {
    place-items: start;
    padding: 32px 24px;
}

.admin-shell--full .admin-card,
.admin-shell--full .admin-card.wide {
    width: 100%;
    max-width: 100%;
}

.admin-shell--full .admin-card {
    margin: 0 auto;
}

@media (max-width: 720px) {
    .admin-shell--full {
        padding: 20px 16px;
    }
}

.admin-card {
    background: var(--panel);
    border-radius: var(--radius);
    padding: 28px;
    width: min(480px, 100%);
    box-shadow: var(--shadow);
}

.admin-card.wide {
    width: min(980px, 100%);
}

.super-dashboard {
    width: min(1200px, 100%);
}

.super-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.super-head p {
    margin: 6px 0 0;
    color: var(--muted);
}

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

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

.super-metric {
    background: #fffdf7;
    border: 1px solid #eee1d0;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: var(--shadow);
}

.super-metric .metric-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9a6a23;
}

.super-metric .metric-value {
    font-size: 22px;
    font-weight: 700;
    margin-top: 6px;
}

.super-metric .metric-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.super-table-wrap {
    overflow-x: visible;
}

.super-table th {
    white-space: normal;
}

.super-table td {
    white-space: normal;
}

.admin-dashboard .table th,
.admin-dashboard .table td,
.admin-project-data .admin-table th,
.admin-project-data .admin-table td {
    white-space: normal;
}

.super-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
    overflow-wrap: anywhere;
}

@media (max-width: 1200px) {
    .super-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .super-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .super-metrics {
        grid-template-columns: 1fr;
    }
}

.admin-card h1 {
    margin: 0 0 12px;
    font-family: 'Source Serif 4', serif;
    overflow-wrap: anywhere;
}

.admin-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-head--dashboard {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
}

.admin-head--dashboard h1 {
    margin-bottom: 0;
}

.admin-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-dashboard .admin-actions {
    flex-wrap: wrap;
}

.admin-dashboard .table tbody td.admin-actions {
    flex-wrap: wrap;
    gap: 6px;
}

.admin-dashboard .table-responsive,
.admin-project-data .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.admin-dashboard .table,
.admin-project-data .admin-table {
    min-width: 520px;
}

.admin-actions--stack {
    background: rgba(249, 243, 234, 0.9);
    padding: 6px;
    border-radius: 16px;
    border: 1px solid rgba(216, 208, 196, 0.65);
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    box-shadow: 0 10px 24px rgba(30, 41, 59, 0.08);
}

.admin-actions--stack .btn {
    width: auto;
    min-width: 150px;
    text-align: center;
    padding: 9px 16px;
    font-weight: 600;
    border-radius: 14px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    font-size: 14px;
    line-height: 1.2;
    white-space: normal;
}

.admin-actions--stack .btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 12px 20px rgba(37, 99, 235, 0.25);
}

.admin-actions--stack .btn-outline-secondary {
    background: #fffaf2;
    border-color: rgba(121, 97, 66, 0.35);
    color: #3f3223;
}

.admin-actions--stack .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 14px rgba(31, 41, 51, 0.14);
}

.admin-actions--stack .btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.admin-card.wide {
    padding: 32px;
}

.admin-head {
    align-items: flex-start;
}

@media (max-width: 920px) {
    .admin-actions--stack {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-head--dashboard {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .admin-actions--stack {
        width: 100%;
    }
    .admin-actions--stack .btn {
        min-width: 0;
        flex: 1 1 100%;
        min-height: 46px;
    }
}

.form-section-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    background: #f9f3ea;
    border-radius: 14px;
    border: 1px solid rgba(216, 208, 196, 0.6);
}

.form-section-title {
    font-weight: 600;
    font-size: 14px;
}

.form-section-sub {
    font-size: 12px;
    color: #6b5a46;
}

.form-section-link {
    font-weight: 600;
    color: #2f80ed;
    text-decoration: none;
}

.admin-modal {
    width: min(620px, 92vw);
    border: none;
    border-radius: 18px;
    padding: 0;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.35);
    background: #fffdf7;
}

.admin-modal::backdrop {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.admin-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid #efe3d2;
    background: linear-gradient(90deg, #fff4dd, #fffaf2);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.admin-modal-head h3 {
    margin: 0;
    font-family: 'Source Serif 4', serif;
    font-size: 20px;
}

.admin-modal-body {
    padding: 18px 24px 22px;
    color: #3c2f1f;
    font-size: 14px;
}

.admin-modal-body ol {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
}

.admin-back {
    display: inline-block;
    margin-top: 18px;
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: 600;
}

.admin-filter {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.admin-filter--inline .filter-field {
    min-width: 140px;
}

.admin-filter--inline .form-label {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.admin-filter--inline .form-control,
.admin-filter--inline .form-select {
    height: 34px;
    padding: 6px 10px;
    font-size: 13px;
}

.admin-filter--inline .btn {
    height: 34px;
    padding: 6px 12px;
    font-size: 13px;
}

@media (max-width: 720px) {
    .admin-card.wide {
        padding: 22px;
    }

    .admin-dashboard .admin-actions--stack {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-dashboard .admin-actions--stack .btn {
        width: 100%;
        min-width: 0;
    }

    .admin-dashboard .table-responsive,
    .admin-project-data .table-responsive {
        overflow-x: visible;
    }

    .admin-dashboard .table,
    .admin-project-data .admin-table {
        min-width: 0;
        width: 100%;
    }

    .admin-dashboard .table thead,
    .admin-project-data .admin-table thead {
        display: none;
    }

    .admin-dashboard .table tbody tr,
    .admin-project-data .admin-table tbody tr {
        display: block;
        border: 1px solid #e8dccb;
        border-radius: 14px;
        padding: 12px 14px;
        margin-bottom: 12px;
        background: #fffdf7;
    }

    .admin-dashboard .table tbody td,
    .admin-project-data .admin-table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 0;
        border: none;
    }

    .admin-dashboard .table tbody td::before,
    .admin-project-data .admin-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--muted);
    }

    .admin-dashboard .table tbody td.admin-actions {
        flex-direction: column;
        align-items: flex-end;
    }

    .admin-dashboard .table tbody td.admin-actions::before {
        align-self: flex-start;
    }

    .admin-project-data .admin-table tbody td > .form-control,
    .admin-project-data .admin-table tbody td > .form-select {
        max-width: 160px;
    }

    .admin-filter--inline .filter-field {
        min-width: 100%;
    }
}

@media (max-width: 720px) {
    .super-table thead {
        display: none;
    }

    .super-table tbody tr {
        display: block;
        border: 1px solid #e8dccb;
        border-radius: 14px;
        padding: 12px 14px;
        margin-bottom: 12px;
        background: #fffdf7;
    }

    .super-table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 0;
        border: none;
    }

    .super-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--muted);
    }
}

@media (max-width: 520px) {
    .admin-card.wide {
        padding: 18px;
    }
}

.admin-form textarea {
    resize: vertical;
}

.amount-over {
    border-left: 4px solid #2f80ed;
}

.amount-under {
    border-left: 4px solid #f2994a;
}

.amount-equal {
    border-left: 4px solid #27ae60;
}

.requisites-card {
    margin-top: 18px;
    background: var(--panel);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 20px 24px;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
}

.requisites-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.requisites-text {
    color: var(--muted);
    font-size: 14px;
    white-space: pre-wrap;
}

.requisites-avg {
    background: #fff6e6;
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 220px;
}

.requisites-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9a6a23;
}

.requisites-value {
    font-weight: 600;
    font-size: 18px;
    margin-top: 6px;
    color: #7a4a12;
}

.legal-note {
    margin-top: 18px;
    background: #eef4ff;
    border-radius: 16px;
    padding: 18px 22px;
    border: 1px solid #d8e4ff;
}

.legal-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.legal-note a {
    color: #2f80ed;
    font-weight: 600;
    text-decoration: none;
}

.detail-fund .project-header {
    border-left: 6px solid #ff8c42;
}

.detail-vote .project-header {
    border-left: 6px solid #2f80ed;
}

.bulk-dialog {
    border: none;
    border-radius: 18px;
    width: min(720px, 92vw);
    padding: 0;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.35);
}

.bulk-form {
    display: grid;
    gap: 16px;
    padding: 20px 24px 22px;
}

.bulk-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bulk-body {
    display: grid;
    gap: 12px;
}

.bulk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #e9ddcf;
    border-radius: 12px;
    padding: 10px;
    background: #fff9f2;
}

.bulk-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 6px 8px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: #ffffff;
}

.bulk-item.amount-over {
    border-color: #2f80ed;
    background: rgba(47, 128, 237, 0.12);
    color: #1f4f9c;
}

.bulk-item.amount-under {
    border-color: #f2994a;
    background: rgba(242, 153, 74, 0.12);
    color: #9a4b15;
}

.bulk-item.amount-equal {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.12);
    color: #1f6b3d;
}

.bulk-item.vote-yes {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.12);
    color: #1f6b3d;
}

.bulk-item.vote-no {
    border-color: #d64545;
    background: rgba(214, 69, 69, 0.12);
    color: #9f2d2d;
}

.bulk-item.vote-abstain {
    border-color: #e7b10a;
    background: rgba(231, 177, 10, 0.18);
    color: #8a6c05;
}

.bulk-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.floating-save {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 30;
}

.floating-save .btn {
    box-shadow: 0 12px 28px rgba(29, 45, 61, 0.18);
    padding: 12px 24px;
}

.save-toast {
    position: fixed;
    right: 28px;
    bottom: 96px;
    z-index: 35;
    background: #1f6b3d;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.save-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.save-toast.is-error {
    background: #b63d3d;
}

@media (max-width: 720px) {
    .floating-save {
        left: 16px;
        right: 16px;
        bottom: 14px;
    }

    .floating-save .btn {
        width: 100%;
    }

    .save-toast {
        left: 16px;
        right: 16px;
        text-align: center;
        bottom: 72px;
    }
}

@media (max-width: 720px) {
    .requisites-card {
        flex-direction: column;
    }
}

.amount-over td:nth-child(4) {
    background: rgba(47, 128, 237, 0.12);
    color: #1f4f9c;
    font-weight: 600;
}

.amount-under td:nth-child(4) {
    background: rgba(242, 153, 74, 0.15);
    color: #9a4a15;
    font-weight: 600;
}

.amount-equal td:nth-child(4) {
    background: rgba(39, 174, 96, 0.12);
    color: #1f7a4b;
    font-weight: 600;
}

.decision-card {
    text-align: center;
}

.requisites-card {
    padding-left: 20px;
    padding-right: 20px;
}

.requisites-text {
    margin-left: 0;
}

.table-striped > tbody > tr.amount-over > td:nth-child(4) {
    background-color: rgba(47, 128, 237, 0.12) !important;
    color: #1f4f9c;
    font-weight: 600;
}

.table-striped > tbody > tr.amount-under > td:nth-child(4) {
    background-color: rgba(242, 153, 74, 0.15) !important;
    color: #9a4a15;
    font-weight: 600;
}

.table-striped > tbody > tr.amount-equal > td:nth-child(4) {
    background-color: rgba(39, 174, 96, 0.12) !important;
    color: #1f7a4b;
    font-weight: 600;
}

.project-table.table-striped > tbody > tr.amount-over > td:nth-child(4) {
    background-color: rgba(47, 128, 237, 0.2) !important;
}

.project-table.table-striped > tbody > tr.amount-under > td:nth-child(4) {
    background-color: rgba(242, 153, 74, 0.2) !important;
}

.project-table.table-striped > tbody > tr.amount-equal > td:nth-child(4) {
    background-color: rgba(39, 174, 96, 0.2) !important;
}

.project-table.table-striped > tbody > tr.amount-over > td:nth-child(4),
.project-table.table-striped > tbody > tr.amount-under > td:nth-child(4),
.project-table.table-striped > tbody > tr.amount-equal > td:nth-child(4) {
    box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.001);
}

.project-table.table-striped > tbody > tr.amount-over > td:nth-child(4) {
    box-shadow: inset 0 0 0 999px rgba(47, 128, 237, 0.22) !important;
    color: #1f4f9c;
    font-weight: 600;
}

.project-table.table-striped > tbody > tr.amount-under > td:nth-child(4) {
    box-shadow: inset 0 0 0 999px rgba(242, 153, 74, 0.22) !important;
    color: #9a4a15;
    font-weight: 600;
}

.project-table.table-striped > tbody > tr.amount-equal > td:nth-child(4) {
    box-shadow: inset 0 0 0 999px rgba(39, 174, 96, 0.22) !important;
    color: #1f7a4b;
    font-weight: 600;
}

.admin-footer {
    margin-top: 20px;
    font-size: 13px;
    color: var(--muted);
}

.marketing {
    min-height: 100vh;
    background: radial-gradient(circle at top right, #fff4da 0%, #f7efe2 45%, #efe3d2 100%);
    color: #1f2933;
}

.marketing-hero {
    padding: 48px 60px 40px;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(46, 52, 70, 0.95));
    color: #f8f5f0;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    box-shadow: 0 28px 50px rgba(17, 24, 39, 0.3);
}

.marketing-hero.compact {
    padding-bottom: 28px;
}

.marketing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.marketing-links {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.marketing-links a {
    color: #f9f3ea;
    text-decoration: none;
    font-weight: 600;
}

.hero-body {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 28px;
    margin-top: 36px;
    align-items: start;
}

.hero-body h1 {
    font-family: 'Source Serif 4', serif;
    font-size: 34px;
    margin-bottom: 16px;
}

.hero-body p {
    color: rgba(248, 245, 240, 0.78);
    font-size: 16px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 18px 0;
}

.hero-note {
    background: rgba(255, 214, 102, 0.2);
    color: #ffe8b4;
    border-radius: 999px;
    padding: 6px 14px;
    display: inline-flex;
    font-size: 13px;
    font-weight: 600;
}

.hero-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.hero-card-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.hero-card ul {
    padding-left: 18px;
    margin: 0;
    color: rgba(248, 245, 240, 0.88);
}

.marketing-section {
    padding: 42px 60px 20px;
}

.marketing-section h2 {
    font-family: 'Source Serif 4', serif;
    font-size: 28px;
    margin-bottom: 18px;
    color: #1f2933;
}

.marketing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.marketing-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.marketing-card {
    background: #fffdf9;
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 16px 32px rgba(31, 41, 51, 0.08);
    border: 1px solid rgba(216, 208, 196, 0.6);
}

.marketing-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.marketing-card p {
    margin: 0;
    color: #5f6b73;
}

.marketing-footer {
    padding: 24px 60px 38px;
    font-size: 14px;
    color: #5f6b73;
}

.start-form {
    background: linear-gradient(180deg, #fffdf8 0%, #fff7ec 100%);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 16px 32px rgba(31, 41, 51, 0.1);
    border: 1px solid rgba(216, 208, 196, 0.55);
    max-width: 900px;
    margin: 0 auto;
}

.start-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.start-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.start-field--full {
    grid-column: span 2;
}

.start-domain-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.start-domain-row .input-group {
    width: 100%;
}

.start-domain-row .btn {
    padding: 8px 16px;
    border-radius: 12px;
    white-space: nowrap;
    height: 40px;
}

.start-help-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 4px;
}

.start-actions {
    display: flex;
    justify-content: flex-start;
}

.start-actions .btn {
    min-width: 200px;
    padding: 10px 22px;
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.start-form .form-label {
    font-weight: 600;
    color: #1f2933;
}

.start-form .form-control,
.start-form .form-select,
.start-form .input-group-text {
    border-radius: 12px;
    border: 1px solid #e5d9ca;
    background: #fffaf2;
    font-size: 14px;
    padding: 8px 12px;
    height: 40px;
}

.start-form .form-control:focus,
.start-form .form-select:focus {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.start-form .input-group {
    border-radius: 12px;
    overflow: hidden;
}

.start-form .input-group-text {
    background: #f1e7d7;
    color: #7a4a12;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.start-form .btn-primary {
    border-radius: 12px;
    box-shadow: none;
}

.start-form .form-text {
    font-size: 12px;
    color: #6b5a46;
}

.form-optional {
    font-weight: 500;
    color: #6b5a46;
    font-size: 12px;
}

.start-form .btn-outline-secondary {
    border-radius: 12px;
}

.start-help {
    width: min(560px, 92vw);
    border: none;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.35);
    background: #fffdf7;
}

.start-help::backdrop {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.start-help-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid #efe3d2;
    background: linear-gradient(90deg, #fff4dd, #fffaf2);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.start-help h3 {
    margin: 0;
    font-family: 'Source Serif 4', serif;
    font-size: 20px;
}

.start-help ol {
    margin: 0;
    padding: 18px 26px 22px 44px;
    color: #3c2f1f;
    display: grid;
    gap: 10px;
    font-size: 14px;
}



@media (max-width: 980px) {
    .hero-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .marketing-hero,
    .marketing-section,
    .marketing-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-body h1 {
        font-size: 28px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        min-height: 52px;
        font-size: 16px;
        font-weight: 700;
        border-radius: 16px;
        letter-spacing: 0.2px;
        box-shadow: 0 16px 32px rgba(16, 24, 40, 0.22);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1.2;
        padding: 12px 18px;
    }

    .hero-actions .btn-primary {
        background: linear-gradient(135deg, #2d6ef6, #1f4fd1);
        border: none;
    }

    .hero-actions .btn-outline-light {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.45);
        color: #ffffff;
    }

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

    .start-field--full {
        grid-column: auto;
    }

    .start-domain-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .start-domain-row .btn {
        width: 100%;
    }

    .start-actions {
        justify-content: stretch;
    }

    .start-actions .btn {
        width: 100%;
        min-width: 0;
    }
}

.promo-header {
    background: linear-gradient(120deg, #1b2430, #2a3342);
    color: #f8f5f0;
    padding: 16px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.promo-title {
    font-family: 'Source Serif 4', serif;
    font-size: 20px;
}

.promo-actions .btn {
    font-weight: 600;
}

@media (max-width: 720px) {
    .promo-title {
        font-size: 16px;
    }
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 214, 102, 0.18);
    color: #ffe7b0;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    letter-spacing: 0.02em;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-head {
    margin-bottom: 18px;
}

.section-head p {
    color: #5f6b73;
    margin-bottom: 0;
}

.stat-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.stat-pill {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f5efe6;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.stat-value {
    font-weight: 700;
    color: #ffd166;
}

.stat-label {
    font-size: 12px;
    opacity: 0.85;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.benefit-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px 22px;
    box-shadow: 0 18px 36px rgba(31, 41, 51, 0.12);
    border: 1px solid rgba(216, 208, 196, 0.6);
    position: relative;
    overflow: hidden;
}

.benefit-card::after {
    content: '';
    position: absolute;
    inset: -20% 60% auto -20%;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.18), transparent 70%);
}

.icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 140, 66, 0.15);
    font-size: 20px;
    margin-bottom: 12px;
}

.trust-badge {
    margin-top: 14px;
    font-size: 12px;
    color: rgba(248, 245, 240, 0.75);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 10px;
}

.marketing-hero {
    position: relative;
    overflow: hidden;
}

.marketing-hero::after {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 214, 102, 0.2), transparent 70%);
    pointer-events: none;
}


.marketing {
    --brand-primary: #1d4ed8;
    --brand-secondary: #38bdf8;
    --brand-accent: #f59e0b;
    --brand-ink: #0f172a;
    background: radial-gradient(circle at top right, #f2f7ff 0%, #f5f1e8 45%, #efe3d2 100%);
}

.marketing .brand-mark {
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
    color: #ffffff;
}

.marketing-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(29, 78, 216, 0.88));
}

.promo-header {
    background: linear-gradient(120deg, #0f172a, #1d4ed8);
}

.hero-pill {
    background: rgba(56, 189, 248, 0.18);
    color: #dbeafe;
}

.stat-pill {
    background: rgba(255, 255, 255, 0.12);
}

.stat-value {
    color: #fbbf24;
}

.icon-badge {
    background: rgba(29, 78, 216, 0.12);
}

