/* —— Публични страници: избори (тъмна тема) —— */

.civic-page__inner {
    max-width: 1120px;
    margin: 0 auto;
}

/* Hero */
.civic-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px 20px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.civic-hero__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, rgba(26, 140, 255, 0.9), rgba(20, 90, 180, 0.85));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.civic-hero__icon--elections {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.92), rgba(26, 140, 255, 0.88));
}

.civic-hero__icon .icon,
.civic-hero__icon svg {
    width: 26px;
    height: 26px;
}

.civic-hero__main {
    flex: 1 1 260px;
    min-width: 0;
}

.civic-hero__title {
    margin: 0 0 8px;
    font-family: var(--font-primary);
    font-size: clamp(1.55rem, 2.8vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.1;
}

.civic-hero__lead {
    margin: 0;
    max-width: 52ch;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(240, 244, 250, 0.72);
}

.civic-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: -6px 0 20px;
}

.civic-toolbar .btn {
    min-height: 38px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}

/* Списък избори */
.civic-election-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
    margin: 0 0 2rem;
}

.civic-election-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 18px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 16, 30, 0.72);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.civic-election-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.95), rgba(26, 140, 255, 0.4));
    opacity: 0.9;
}

.civic-election-card:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.38);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32), 0 0 24px rgba(139, 92, 246, 0.1);
}

.civic-election-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.civic-election-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.05);
    transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.civic-election-card__arrow .icon {
    width: 16px;
    height: 16px;
}

.civic-election-card:hover .civic-election-card__arrow {
    color: #fff;
    background: rgba(139, 92, 246, 0.25);
    transform: translateX(2px);
}

.civic-election-card__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}

.civic-election-card__meta {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted, #8b97a8);
    line-height: 1.45;
}

.civic-election-card__summary {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(240, 244, 250, 0.82);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.civic-election-card__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin: 4px 0 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(240, 244, 250, 0.55);
}

.civic-election-card__stats-sep {
    opacity: 0.5;
}

/* Детайл избор / кандидат */
.civic-detail--election .civic-detail__head--election,
.civic-detail--nomination .civic-detail__head--candidate {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.14) 0%, rgba(26, 140, 255, 0.08) 45%, transparent 70%);
}

.civic-detail--nomination .civic-detail__head--candidate {
    background: linear-gradient(135deg, rgba(227, 24, 24, 0.12) 0%, rgba(139, 92, 246, 0.1) 50%, transparent 75%);
}

.civic-candidate-photo-wrap {
    padding: 4px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(227, 24, 24, 0.35), rgba(139, 92, 246, 0.35));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.civic-detail--nomination .civic-candidate-photo {
    width: 112px;
    height: 112px;
    border-radius: 12px;
    border: none;
}

.civic-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 1rem;
}

.civic-section-head h2 {
    margin: 0;
}

.civic-section-head__meta {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted, #8b97a8);
}

.civic-candidates-panel {
    margin-top: 1.75rem;
}

.civic-candidate-card {
    padding: 1.1rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 14, 28, 0.55);
    transition: border-color 0.18s ease, background 0.18s ease;
}

.civic-candidate-card:hover {
    border-color: rgba(107, 184, 255, 0.28);
    background: rgba(12, 22, 44, 0.75);
}

.civic-candidate-card__name {
    margin: 0 0 0.35rem;
    font-size: 1.08rem;
}

.civic-candidate-card__name a {
    color: #fff;
    text-decoration: none;
}

.civic-candidate-card__name a:hover {
    color: #8ec8ff;
}

.civic-candidate-card__votes {
    margin: 0.35rem 0 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(240, 244, 250, 0.5);
}

.civic-candidate-card .civic-vote-btn {
    width: 100%;
    max-width: 20rem;
    min-height: 42px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.civic-vote-panel {
    padding: 1.25rem 1.35rem;
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.22);
    background: rgba(34, 197, 94, 0.06);
}

.civic-vote-panel > h2 {
    margin-top: 0;
}

.civic-vote-panel .civic-vote-btn {
    width: 100%;
    max-width: 22rem;
    min-height: 46px;
    border-radius: 10px;
    font-weight: 700;
}

.page-civic-elections .container > h1,
.page-civic-election-detail .container > h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.page-civic-elections .container > p,
.civic-page-intro {
    margin: 0 0 1.25rem;
    color: var(--muted, #8b97a8);
    max-width: 42rem;
    line-height: 1.55;
}

.civic-back {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
}

.civic-back a {
    color: #6eb5ff;
    text-decoration: none;
    font-weight: 600;
}

.civic-back a:hover {
    color: #fff;
    text-decoration: underline;
}

.page-civic-elections .civic-list {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.page-civic-elections .civic-card {
    background: rgba(12, 22, 44, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.2s, transform 0.2s;
}

.page-civic-elections .civic-card:hover {
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.page-civic-elections .civic-card h2 {
    margin: 0.5rem 0 0.35rem;
    font-size: 1.2rem;
    line-height: 1.35;
}

.page-civic-elections .civic-card h2 a {
    color: #fff;
    text-decoration: none;
}

.page-civic-elections .civic-card h2 a:hover {
    color: #6eb5ff;
}

.page-civic-elections .civic-card__meta,
.civic-detail__meta {
    color: var(--muted, #8b97a8);
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
    line-height: 1.45;
}

.page-civic-elections .civic-card > p:not(.civic-card__meta) {
    margin: 0 0 0.5rem;
    color: rgba(240, 244, 250, 0.88);
    line-height: 1.5;
}

.civic-detail-main {
    padding-top: calc(var(--nav-h) + 28px);
    padding-bottom: 3rem;
}

.civic-detail {
    background: rgba(10, 16, 30, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    margin: 0 0 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.38);
}

.civic-detail__head {
    padding: 1.75rem 1.75rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.1) 0%, transparent 55%);
}

.civic-detail__head h1 {
    margin: 0.65rem 0 0.35rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

.civic-detail__summary {
    margin: 0.75rem 0 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(240, 244, 250, 0.9);
    max-width: 48rem;
}

.civic-detail__body {
    padding: 1.5rem 1.75rem 1.75rem;
}

.civic-detail__text {
    line-height: 1.65;
    color: rgba(240, 244, 250, 0.88);
    margin-bottom: 1.5rem;
}

.civic-detail__section {
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.civic-detail__section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.civic-detail__section > h2 {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(240, 244, 250, 0.92);
}

.civic-status {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(240, 244, 250, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.civic-status--vote {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.35);
}

.civic-status--nom {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.35);
}

.civic-status--candidate {
    background: rgba(227, 24, 24, 0.15);
    color: #fca5a5;
    border-color: rgba(227, 24, 24, 0.35);
}

.civic-status--rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.32);
}

.civic-status--muted {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(240, 244, 250, 0.55);
    border-color: rgba(255, 255, 255, 0.1);
}

/* —— Моите номинации и гласове —— */
.page-my-civic .civic-hero--my {
    margin-bottom: 18px;
}

.page-my-civic .civic-hero__icon--my {
    background: linear-gradient(135deg, rgba(227, 24, 24, 0.88), rgba(139, 92, 246, 0.85));
}

.page-my-civic .flash {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

.page-my-civic .flash--ok {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.28);
}

.page-my-civic .flash--err {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.28);
}

.civic-my-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 1.5rem;
}

.civic-my-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 120px;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 16, 30, 0.72);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.civic-my-stat__value {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    letter-spacing: -0.02em;
}

.civic-my-stat__label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(240, 244, 250, 0.52);
}

.civic-my-dashboard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.civic-my-panel {
    padding: 1.25rem 1.35rem 1.35rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 16, 30, 0.72);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.civic-my-panel .civic-section-head {
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.civic-my-panel .civic-section-head h2 {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(240, 244, 250, 0.92);
}

.civic-my-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.civic-my-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 16px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.civic-my-item:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.civic-my-item--vote {
    border-left: 3px solid rgba(34, 197, 94, 0.55);
}

.civic-my-item--nom {
    border-left: 3px solid rgba(139, 92, 246, 0.55);
}

.civic-my-item__main {
    flex: 1 1 180px;
    min-width: 0;
}

.civic-my-item__label {
    margin: 0 0 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(240, 244, 250, 0.45);
}

.civic-my-item__title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
}

.civic-my-item__title a {
    color: #fff;
    text-decoration: none;
}

.civic-my-item__title a:hover {
    color: #6eb5ff;
}

.civic-my-item__meta {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--muted, #8b97a8);
}

.civic-my-item__meta a {
    color: #6eb5ff;
    text-decoration: none;
}

.civic-my-item__meta a:hover {
    color: #fff;
    text-decoration: underline;
}

.civic-my-item__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.civic-my-item__date {
    font-size: 0.78rem;
    color: rgba(240, 244, 250, 0.45);
    white-space: nowrap;
}

.civic-my-item__withdraw {
    margin: 0;
}

.civic-my-item__withdraw .btn {
    min-height: 32px;
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
    font-size: 12px;
}

.civic-my-empty {
    text-align: center;
    padding: 48px 28px 52px;
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(8, 16, 32, 0.65) 0%, rgba(4, 10, 22, 0.4) 100%);
}

.civic-my-empty--compact {
    padding: 28px 20px 32px;
    border-radius: 12px;
    border-style: dashed;
    background: rgba(255, 255, 255, 0.02);
}

.civic-my-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    border-radius: 16px;
    color: rgba(139, 92, 246, 0.92);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.22);
}

.civic-my-empty__icon--vote {
    color: rgba(34, 197, 94, 0.92);
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.22);
}

.civic-my-empty__icon--nom {
    color: rgba(26, 140, 255, 0.92);
    background: rgba(26, 140, 255, 0.1);
    border-color: rgba(26, 140, 255, 0.22);
}

.civic-my-empty__icon .icon,
.civic-my-empty__icon svg {
    width: 26px;
    height: 26px;
}

.civic-my-empty__title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.civic-my-empty__text {
    margin: 0 auto 18px;
    max-width: 40ch;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(240, 244, 250, 0.58);
}

.civic-my-empty__actions {
    margin: 0;
}

.civic-my-empty__actions .btn .icon {
    width: 14px;
    height: 14px;
}

.civic-nom-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.civic-nom-list li {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem 1.15rem;
    background: rgba(255, 255, 255, 0.03);
}

.civic-nom-list h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.civic-nom-list h3 a {
    color: #fff;
    text-decoration: none;
}

.civic-nom-list h3 a:hover {
    color: #6eb5ff;
}

.civic-nom-list li > p {
    margin: 0.25rem 0;
    color: rgba(240, 244, 250, 0.82);
    line-height: 1.5;
}

.civic-geo-status {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.civic-geo-status.is-ok {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.28);
}

.civic-geo-status.is-warn {
    background: rgba(251, 146, 60, 0.12);
    color: #fdba74;
    border: 1px solid rgba(251, 146, 60, 0.28);
}

.civic-vote-form {
    margin-top: 0.75rem;
}

.civic-vote-block {
    display: grid;
    gap: 0.75rem;
    max-width: 28rem;
}

.civic-vote-block .civic-vote-form {
    margin-top: 0;
}

.civic-vote-retry {
    margin: 0;
}

.civic-vote-done {
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.28);
    font-weight: 600;
}

.civic-comment-form {
    display: grid;
    gap: 0.75rem;
    max-width: 36rem;
    margin-top: 1rem;
}

.page-civic-nomination .civic-detail__head h1 {
    text-transform: none;
    letter-spacing: 0.01em;
}

.civic-results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.92rem;
}

.civic-results-table th,
.civic-results-table td {
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    color: rgba(240, 244, 250, 0.9);
}

.civic-results-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted, #8b97a8);
}

.civic-results-table a {
    color: #6eb5ff;
    text-decoration: none;
}

.civic-results-table a:hover {
    text-decoration: underline;
    color: #fff;
}

.civic-results-table tr.is-winner {
    background: rgba(34, 197, 94, 0.1);
}

.civic-comment {
    border-left: 3px solid rgba(227, 24, 24, 0.65);
    padding: 0.65rem 0 0.65rem 1rem;
    margin: 0 0 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 8px 8px 0;
}

.civic-comment strong {
    color: #fff;
}

.civic-comment p {
    margin: 0.35rem 0 0;
    line-height: 1.55;
    color: rgba(240, 244, 250, 0.88);
}

.civic-comment-report {
    margin-top: 0.5rem;
}

.civic-nom-form,
.civic-detail__section form {
    display: grid;
    gap: 0.85rem;
    max-width: 36rem;
}

.civic-nom-form label,
.civic-detail__section form label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(240, 244, 250, 0.88);
}

.civic-nom-form input,
.civic-nom-form textarea,
.civic-detail__section form textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(5, 10, 20, 0.6);
    color: #fff;
    font: inherit;
    box-sizing: border-box;
}

.civic-nom-form textarea,
.civic-detail__section form textarea {
    min-height: 120px;
    resize: vertical;
}

.civic-form-optional {
    font-weight: 400;
    color: var(--muted, #8b97a8);
    font-size: 0.82rem;
}

.civic-nom-form input[type="file"] {
    padding: 0.45rem 0;
    border: none;
    background: transparent;
}

.civic-candidate-photo {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

.civic-candidate-photo--sm {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.12);
}

.civic-candidate-photo--admin {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    vertical-align: middle;
    margin-right: 0.35rem;
}

.civic-detail__head--candidate {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: start;
}

.civic-detail__head-copy {
    min-width: 0;
}

.civic-nom-list__row {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.civic-nom-list__body {
    flex: 1;
    min-width: 0;
}

.civic-detail__map {
    height: 280px;
    margin-top: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.page-civic-election-detail .signals-empty,
.page-civic-elections .signals-empty,
.page-civic-nomination .signals-empty {
    color: var(--muted, #8b97a8);
    padding: 1.5rem 0;
}

.page-civic-election-detail .flash,
.page-civic-elections .flash,
.page-civic-nomination .flash {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.page-civic-election-detail .flash--ok,
.page-civic-nomination .flash--ok {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.28);
}

.page-civic-election-detail .flash--err,
.page-civic-nomination .flash--err {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.28);
}

.page-civic-election-detail .civic-detail-main a:not(.btn):not(.signal-share__btn),
.page-civic-nomination .civic-detail-main a:not(.btn):not(.signal-share__btn) {
    color: #6eb5ff;
}

.page-civic-election-detail .civic-detail-main a:not(.btn):not(.signal-share__btn):hover,
.page-civic-nomination .civic-detail-main a:not(.btn):not(.signal-share__btn):hover {
    color: #fff;
}

/* Споделяне (като signal-share, без signals.css) */
.civic-share {
    margin-top: 1.25rem;
}

.civic-share__label {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted, #8b97a8);
}

.civic-share .signal-share__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.civic-share .signal-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #c8d0dc;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.civic-share .signal-share__btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
}

.civic-share .signal-share__btn .icon {
    width: 18px;
    height: 18px;
}

.civic-share .signal-share__btn--facebook:hover {
    color: #6ea8ff;
}

.civic-share .civic-follow-form {
    display: inline-flex;
    margin: 0;
}

.civic-share .civic-follow-btn {
    width: auto;
    min-width: 40px;
    padding: 0 12px;
    gap: 6px;
    font: inherit;
}

.civic-share .civic-follow-btn__label {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.civic-share .civic-follow-btn__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
}

.civic-share .civic-follow-btn.is-active {
    background: rgba(72, 130, 255, 0.18);
    border-color: rgba(110, 168, 255, 0.45);
    color: #8eb8ff;
}

.civic-share .civic-follow-btn.is-active .civic-follow-btn__count {
    background: rgba(110, 168, 255, 0.22);
}

.civic-share .civic-follow-btn.is-active:hover {
    background: rgba(72, 130, 255, 0.28);
    color: #b8d4ff;
}

@media (max-width: 640px) {
    .civic-my-dashboard {
        grid-template-columns: 1fr;
    }

    .civic-my-item__aside {
        align-items: flex-start;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .civic-detail__head,
    .civic-detail__body {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }

    .civic-detail__head--candidate {
        grid-template-columns: 1fr;
    }

    .civic-candidate-photo {
        width: 96px;
        height: 96px;
    }

    .civic-results-table {
        display: block;
        overflow-x: auto;
    }
}

/* —— Админ: граждански избори —— */
.civic-admin-index {
    margin-top: 0.5rem;
}

.civic-admin-index__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.civic-admin-index__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.civic-admin-index-empty {
    text-align: center;
    padding: 2rem 1.5rem;
}

.civic-admin-index-empty p {
    margin: 0 0 0.75rem;
    color: var(--muted, #8b97a8);
}

.civic-admin-index-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.civic-admin-index-item__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.35rem;
}

.civic-admin-index-item__title {
    font-size: 1.05rem;
    color: #fff;
}

.civic-admin-index-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.civic-admin-index-item__meta {
    margin: 0 0 0.25rem;
    font-size: 0.85rem;
    color: var(--muted, #8b97a8);
    line-height: 1.45;
}

.civic-admin-index-item__meta--dates {
    font-size: 0.8rem;
    opacity: 0.92;
}

.civic-admin-index-item__summary {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: rgba(240, 244, 250, 0.82);
    line-height: 1.45;
}

.civic-admin-index-item__actions {
    margin: 0.65rem 0 0;
    font-size: 0.88rem;
}

.civic-admin-index-item__actions a {
    color: #6eb5ff;
    text-decoration: none;
}

.civic-admin-index-item__actions a:hover {
    text-decoration: underline;
    color: #fff;
}

.civic-admin-editor {
    margin-top: 0.25rem;
}

.civic-admin-back {
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.civic-admin-back a {
    color: #6eb5ff;
    text-decoration: none;
}

.civic-admin-back a:hover {
    text-decoration: underline;
    color: #fff;
}

.civic-admin-editor .pnv-list-card {
    margin-bottom: 1rem;
}

.civic-admin-form-card > h2,
.civic-admin-panel > h3 {
    margin: 0 0 0.5rem;
}

.civic-admin-slug-hint {
    margin: -0.25rem 0 0.75rem;
    font-size: 0.82rem;
    color: var(--muted, #8b97a8);
}

.civic-admin-slug-hint code {
    color: #6eb5ff;
    font-size: 0.85em;
}

.civic-admin-form-lead {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--muted, #8b97a8);
}

.civic-admin-form-lead a {
    color: #6eb5ff;
}

.civic-admin-form .auth-form {
    gap: 0;
}

.civic-admin-section {
    padding: 1.1rem 0 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.civic-admin-section:first-of-type {
    padding-top: 0;
    border-top: none;
}

.civic-admin-section__title {
    margin: 0 0 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(240, 244, 250, 0.88);
}

.civic-admin-section__hint {
    margin: -0.35rem 0 0.85rem;
    font-size: 0.82rem;
    color: var(--muted, #8b97a8);
    line-height: 1.45;
}

.civic-admin-optional {
    font-weight: 400;
    color: var(--muted, #8b97a8);
}

.civic-admin-checks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.65rem 1rem;
}

.civic-admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.85rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.civic-admin-empty {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted, #8b97a8);
}

.civic-admin-phase-form {
    margin-bottom: 1rem;
}

.civic-admin-phase-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.civic-admin-nom-create {
    margin: 0 0 1.25rem;
    padding: 0 0 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.civic-admin-nom-create label {
    display: block;
    margin-bottom: 0.65rem;
    font-size: 0.9rem;
}

.civic-admin-nom-create input[type="text"],
.civic-admin-nom-create textarea,
.civic-admin-nom-create input[type="file"] {
    display: block;
    width: 100%;
    max-width: 36rem;
    margin-top: 0.25rem;
}

.civic-admin-nom-create__check {
    display: flex !important;
    align-items: flex-start;
    gap: 0.5rem;
    max-width: 36rem;
}

.civic-admin-nom-create__check input {
    margin-top: 0.2rem;
    width: auto;
    max-width: none;
}

.civic-admin-nominations {
    list-style: none;
    margin: 0;
    padding: 0;
}

.civic-admin-nominations__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.civic-admin-nominations--queue {
    margin: 0 0 1.5rem;
}

.civic-admin-nominations--queue .civic-admin-nominations__item {
    padding: 0.85rem 0;
}

.civic-admin-nominations--queue .civic-admin-nominations__name {
    min-width: 8rem;
}

.page-auth--wide .civic-admin-nominations--queue .civic-admin-inline-form {
    margin-left: auto;
}

.civic-admin-clusters {
    margin: 0 0 1rem;
    padding-left: 1.1rem;
    color: var(--muted, #8b97a8);
    font-size: 0.9rem;
}

.civic-admin-table-wrap {
    overflow-x: auto;
    margin-top: 0.35rem;
}

.civic-admin-votes-table {
    margin: 0;
    min-width: 480px;
}

.civic-admin-votes-table th,
.civic-admin-votes-table td {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: rgba(240, 244, 250, 0.9);
}

.civic-admin-inline-form {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin: 0.35rem 0 0;
}

.civic-admin-muted {
    color: var(--muted, #8b97a8);
    font-size: 0.85rem;
}

.auth-panel .auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1.3;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.auth-panel .auth-btn--primary {
    background: var(--red, #e31818);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
}

.auth-panel .auth-btn--primary:hover {
    filter: brightness(1.08);
}

.auth-panel .auth-btn--ghost {
    background: transparent;
    color: rgba(240, 244, 250, 0.88);
    border-color: rgba(255, 255, 255, 0.22);
}

.auth-panel .auth-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.auth-panel .auth-btn.auth-btn-small {
    padding: 0.35rem 0.65rem;
    font-size: 12px;
}

@media (max-width: 960px) {
    .civic-admin-checks {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .civic-election-grid {
        grid-template-columns: 1fr;
    }

    .civic-detail__head--candidate {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .civic-candidate-photo-wrap {
        justify-self: center;
    }

    .civic-detail__head-copy .civic-share .signal-share__buttons {
        justify-content: center;
    }

    .civic-admin-form .auth-row-2 {
        grid-template-columns: 1fr;
    }
}
