:root {
    --ink: #16202E;
    --ink-soft: #5B6472;
    --line: #DFE3E9;
    --surface: #FFFFFF;
    --accent: #2d3748;
    --accent-hover: #4a5568;
    --accent-soft: #EAEFFC;
    --danger: #C0293F;
    --danger-soft: #FBEAED;
    --success: #1B7A4C;
    --success-soft: #E8F6EE;
    --gold: #b7893a;
    --gold-bright: #d1a24e;
    --navy: #16233b;
    --stock: #fff;
    --page-bg: #ffffff;
    --bg-soft: #f5f5f5;
    --bg-hover: #f0f2f5;
    --bg-subtle: #f9fafb;
    --header-bg: rgba(255, 255, 255, 0.92);
    --shadow-card: 0 8px 24px rgba(22, 32, 46, 0.08);
    --shadow-ticket: 0 16px 32px rgba(22, 35, 59, 0.16);
    --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.2);
    --modal-overlay-bg: rgba(255, 255, 255, 0.15);
    --scroll-track: #f1f1f1;
    --scroll-thumb: #c1c7cd;
    --header-height: 68px;
    --sidebar-width: 210px;
}

html[data-theme="dark"] {
    --ink: #E5E9F0;
    --ink-soft: #9AA3B2;
    --line: #2A3342;
    --surface: #1A2029;
    --accent: #6C7A94;
    --accent-hover: #8494AD;
    --accent-soft: #1E2632;
    --danger: #E05A6E;
    --danger-soft: #3A1E24;
    --success: #4CAF7D;
    --success-soft: #1B3026;
    --gold: #d1a24e;
    --gold-bright: #e0b862;
    --navy: #10151D;
    --stock: #1A2029;
    --page-bg: #0F141B;
    --bg-soft: #232B36;
    --bg-hover: #2D3644;
    --bg-subtle: #171D26;
    --header-bg: rgba(15, 20, 27, 0.92);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-ticket: 0 16px 32px rgba(0, 0, 0, 0.5);
    --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.6);
    --modal-overlay-bg: rgba(0, 0, 0, 0.5);
    --scroll-track: #1A2029;
    --scroll-thumb: #3A4353;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'DM Mono', 'Courier New', monospace;
    color: var(--ink);
    background: var(--page-bg);
    line-height: 1.5;
    min-height: 100vh;
    transition: background 0.25s ease, color 0.25s ease;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--navy);
    color: var(--stock);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    overflow-y: auto;
    z-index: 700;
    transition: background 0.25s ease;
}

.sidebar img {
    width: 180px;
    margin: 0 auto 24px;
    display: block;
}

.sidebar-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: background 0.15s ease, color 0.15s ease;
    border-left: 4px solid transparent;
    text-transform: capitalize;
}

.sidebar-tab:hover {
    color: var(--gold-bright);
}

.sidebar-tab.active {
    color: var(--gold);
    border-left-color: var(--gold);
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: calc(var(--header-height) + 40px) 24px 80px;
    min-width: 0;
}

.fixed-header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    gap: 16px;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.fixed-header-left {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.fixed-header-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-top: 3px;
}

.fixed-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.fixed-header-meta {
    font-size: 12px;
    color: var(--ink-soft);
    letter-spacing: 0.3px;
}

.fixed-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    border: 2px solid var(--surface);
    box-shadow: 0 0 0 1px var(--line);
}

.user-switcher {
    font-family: inherit;
    font-size: 12px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    border-radius: 20px;
    cursor: pointer;
    outline: none;
    max-width: 180px;
    transition: border-color .15s ease;
}

.user-switcher:hover {
    border-color: var(--accent);
}

.user-switcher:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.theme-toggle {
    position: relative;
    width: 58px;
    height: 30px;
    border-radius: 30px;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    cursor: pointer;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.25s ease, border-color 0.25s ease;
    font-family: inherit;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--accent);
}

.theme-toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

html[data-theme="dark"] .theme-toggle-knob {
    transform: translateX(28px);
}

.theme-icon {
    width: 13px;
    height: 13px;
    z-index: 1;
    position: relative;
    pointer-events: none;
    color: var(--ink-soft);
    transition: color 0.2s ease;
}

.theme-icon.sun {
    color: #b7893a;
}

html[data-theme="dark"] .theme-icon.sun {
    color: var(--ink-soft);
    opacity: 0.5;
}

.theme-icon.moon {
    opacity: 0.5;
}

html[data-theme="dark"] .theme-icon.moon {
    color: #b7893a;
    opacity: 1;
}

.btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 11px 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 400;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
    transition: background 0.12s ease;
    border-radius: 30px;
}

.btn:hover {
    background: var(--accent-hover);
}

.btn-outline {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
}

.btn-outline:hover {
    background: var(--bg-soft);
}

.link-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #2e5474;
    color: #fff;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 400;
    font-size: 14px;
}

.page-head {
    max-width: 1180px;
    margin: 0 auto 40px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 4px solid var(--ink);
    padding-bottom: 20px;
}

.page-head-row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 16px;
    position: relative;
}

.page-head-right-section {
    position: absolute;
    right: 0;
}

.page-head h1 {
    font-weight: 700;
    font-size: 32px;
    letter-spacing: 0.2px;
    margin: 0;
    color: var(--ink);
}

.empty-note {
    max-width: 1180px;
    margin: 60px auto;
    text-align: center;
    color: var(--ink-soft);
    font-size: 15px;
}

.error-banner {
    max-width: 1180px;
    margin: 0 auto 24px;
    background: var(--danger-soft);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
}

.flash {
    max-width: 1180px;
    margin: 0 auto 20px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
}

.flash-success {
    background: var(--success-soft);
    color: var(--success);
}

.flash-error {
    background: var(--danger-soft);
    color: var(--danger);
}

.bounce-in-up {
    animation: bounceInUp 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes bounceInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bounce-in-up {
        animation: none;
    }
}

.stats-strip {
    max-width: 1180px;
    margin: 0 auto 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.stat-box {
    background: var(--surface);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-box:nth-child(2) {
    border-left-color: var(--success);
}

.stat-box:nth-child(3) {
    border-left-color: var(--gold);
}

.stat-box:nth-child(4) {
    border-left-color: #2F5DE3;
}

.stat-label {
    font-size: 15px;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin-bottom: 10px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
}

.ticket-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
}

.ticket {
    display: grid;
    grid-template-columns: 1fr 92px;
    background: var(--surface);
    color: var(--ink);
    position: relative;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.25s ease;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 30px;
}

.ticket:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-ticket);
}

.ticket-main {
    padding: 22px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.ticket-title {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    margin: 0;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ticket-desc {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 36px;
}

.ticket-meta-row {
    display: flex;
    gap: 16px;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 3px dashed var(--line);
}

.ticket-meta {
    font-size: 13px;
    color: var(--ink-soft);
    font-weight: 500;
}

.ticket-meta b {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin-top: 13px;
}

.status-badge {
    align-self: flex-start;
    font-size: 10.5px;
    letter-spacing: 0.4px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-draft {
    color: #6a6350;
}

.status-scheduled {
    color: #2e5474;
}

.status-ongoing {
    color: var(--success);
}

.status-completed {
    color: #4a4372;
}

.status-cancelled {
    color: var(--danger);
}

.ticket-stub {
    background: var(--navy);
    color: var(--stock);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 16px 8px;
}

.ticket-stub::before,
.ticket-stub::after {
    content: '';
    position: absolute;
    left: -11px;
    width: 22px;
    height: 22px;
    background: var(--page-bg);
    border-radius: 50%;
    transition: background 0.25s ease;
}

.ticket-stub::before {
    top: -11px;
}

.ticket-stub::after {
    bottom: -11px;
}

.stub-code {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--gold-bright);
}

.vote-desc {
    max-width: 1180px;
    margin: 0 auto 20px;
    font-size: 14px;
    color: var(--ink-soft);
    padding: 0 4px;
}

.vote-position {
    max-width: 1180px;
    margin: 0 auto 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
}

.vote-position.locked {
    opacity: 0.85;
}

.vote-position-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.vote-position-index {
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vote-flag {
    margin-left: auto;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--ink-soft);
    letter-spacing: 0.06em;
}

.vote-flag.voted {
    color: var(--success);
    font-weight: 700;
}

.vote-position-desc {
    font-size: 13px;
    color: var(--ink-soft);
    margin: 0 0 10px;
    line-height: 1.5;
}

.vote-window {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 11.5px;
    color: var(--ink-soft);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--line);
}

.vote-nominees {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}

.vote-nominee {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: var(--bg-subtle);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .08s ease;
}

.vote-nominee:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
}

.vote-nominee:active {
    transform: scale(0.99);
}

.vote-nominee.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.vote-nominee.disabled:hover {
    border-color: var(--line);
    background: var(--bg-subtle);
}

.vote-nominee.self {
    background: var(--danger-soft);
}

.vote-nominee input[type="radio"] {
    display: none;
}

.vote-nominee-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    transition: border-color .15s ease;
}

.vote-nominee-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vote-nominee-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.vote-nominee-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
}

.vote-nominee-sub {
    font-size: 11.5px;
    color: var(--ink-soft);
}

.vote-nominee-tag {
    font-size: 10.5px;
    color: var(--danger);
    margin-top: 2px;
}

.vote-nominee:has(input[type="radio"]:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.vote-nominee:has(input[type="radio"]:checked) .vote-nominee-avatar {
    border-color: var(--accent);
}

.vote-submit-row {
    max-width: 1180px;
    margin: 24px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
}

.table-wrap {
    max-width: 1180px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    transition: background .25s ease, border-color .25s ease;
}

.votes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.votes-table thead th {
    text-align: left;
    padding: 14px 18px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.votes-table tbody tr {
    border-bottom: 1px solid var(--line);
    transition: background .12s ease;
}

.votes-table tbody tr:last-child {
    border-bottom: none;
}

.votes-table tbody tr:hover {
    background: var(--bg-subtle);
}

.votes-table td {
    padding: 14px 18px;
    vertical-align: middle;
    color: var(--ink);
}

.table-nominee {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.table-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.02em;
}

.table-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.table-nominee-body {
    min-width: 0;
    line-height: 1.25;
}

.table-nominee-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.table-nominee-sub {
    font-size: 11px;
    color: var(--ink-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.table-pos {
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}

.table-pos small {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

.table-election {
    font-size: 12.5px;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    display: block;
}

.table-time {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}

.table-time small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-soft);
    margin-top: 2px;
}

.table-token {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--ink-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
    display: inline-block;
    vertical-align: middle;
}

.table-empty {
    max-width: 1180px;
    margin: 60px auto;
    text-align: center;
    color: var(--ink-soft);
    font-size: 15px;
}

.nom-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.nom-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.nom-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-ticket);
    border-color: var(--accent);
}

.nom-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.nom-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    line-height: 1.3;
}

.nom-sub {
    font-size: 12.5px;
    color: var(--ink-soft);
    margin: -6px 0 0;
}

.nom-desc {
    font-size: 12.5px;
    color: var(--ink-soft);
    margin: -4px 0 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nom-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px 0;
    border-top: 1px dashed var(--line);
    border-bottom: 1px dashed var(--line);
}

.nom-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.nom-stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    font-weight: 700;
}

.nom-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
}

.nom-card-window {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nom-window-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    font-size: 12px;
}

.nom-window-item label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    font-weight: 700;
}

.nom-window-item span {
    color: var(--ink);
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nom-card-brief {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nom-brief-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    font-weight: 700;
}

.nom-brief {
    font-size: 12.5px;
    color: var(--ink-soft);
    line-height: 1.5;
    background: var(--bg-subtle);
    padding: 10px 12px;
    border-radius: 10px;
    max-height: 90px;
    overflow-y: auto;
    word-break: break-word;
}

.nom-brief.empty {
    font-style: italic;
}

.nom-file-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.nom-file-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--ink);
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nom-file-pill svg {
    width: 13px;
    height: 13px;
    color: var(--accent);
}

.nom-file-pill:hover:not(.disabled) {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.nom-file-pill.disabled {
    color: var(--ink-soft);
    opacity: 0.55;
    cursor: not-allowed;
}

.nom-file-pill.disabled svg {
    color: var(--ink-soft);
}

.nom-pitch-ref {
    margin-left: auto;
    font-size: 10px;
    color: var(--ink-soft);
    font-family: 'DM Mono', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.nom-card-actions {
    display: flex;
    margin-top: 4px;
}

.nom-card-actions .btn {
    flex: 1;
    text-align: center;
    font-size: 13px;
    padding: 9px 16px;
}

.nom-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 9px;
    border-radius: 20px;
    background: var(--bg-soft);
    color: var(--ink-soft);
    white-space: nowrap;
}

.nom-badge.draft {
    background: var(--bg-soft);
    color: var(--ink-soft);
}

.nom-badge.scheduled {
    background: #E7EEFF;
    color: #2F5DE3;
}

.nom-badge.ongoing {
    background: var(--accent-soft);
    color: var(--accent);
}

.nom-badge.passed {
    background: #E9E6F7;
    color: #4a4372;
}

.nom-badge.halted {
    background: var(--danger-soft);
    color: var(--danger);
}

.nom-badge.processing {
    background: #F7EDD3;
    color: var(--gold);
}

.nom-badge.voided {
    background: var(--bg-soft);
    color: var(--ink-soft);
}

html[data-theme="dark"] .nom-badge.scheduled {
    background: rgba(47, 93, 227, 0.16);
    color: #7BA7D0;
}

html[data-theme="dark"] .nom-badge.passed {
    background: rgba(74, 67, 114, 0.22);
    color: #A9A2D4;
}

html[data-theme="dark"] .nom-badge.processing {
    background: rgba(183, 137, 58, 0.18);
    color: var(--gold-bright);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-overlay-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-modal);
    max-width: 620px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    position: relative;
    border-radius: 20px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    cursor: pointer;
    color: var(--ink-soft);
    background: none;
    border: none;
    font-family: inherit;
    line-height: 1;
}

.modal-close:hover {
    color: var(--ink);
}

.modal h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 6px;
}

.modal .modal-sub {
    font-size: 13px;
    color: var(--ink-soft);
    margin: 0 0 22px;
}

.modal .field {
    margin-bottom: 18px;
}

.modal .field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

.modal .field textarea,
.modal .field input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    font-family: inherit;
    font-size: 13.5px;
    background: var(--surface);
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.modal .field textarea {
    resize: vertical;
    min-height: 120px;
}

.modal .field textarea:focus,
.modal .field input[type="file"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.modal .field .hint {
    display: block;
    font-size: 11px;
    color: var(--ink-soft);
    margin-top: 6px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

.profile-wrap {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
}

.profile-side {
    background: transparent;
    padding: 24px;
    text-align: center;
    height: fit-content;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--surface);
    border: 4px solid var(--accent);
    padding: 5px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--accent);
    font-weight: 700;
    font-size: 40px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}

.profile-role {
    font-size: 11px;
    text-transform: capitalize;
    letter-spacing: 0.08em;
    color: var(--accent);
    font-weight: 500;
    background: var(--accent-soft);
    display: inline-block;
    padding: 10px;
    border-radius: 20px;
    margin-top: 30px;
}

.profile-main {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
}

.profile-section-title {
    font-size: 15px;
    text-transform: capitalize;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin: 0 0 14px;
    font-weight: 400;
    opacity: 0.6;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 24px;
    margin-bottom: 24px;
}

.profile-field label {
    display: block;
    font-size: 16px;
    text-transform: capitalize;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    font-weight: 400;
    margin-bottom: 4px;
}

.profile-field .val {
    font-size: 14px;
    color: var(--ink);
    border-radius: 8px;
    word-break: break-word;
}

.profile-field .val.empty {
    color: var(--ink-soft);
    font-style: italic;
}

.results-block {
    max-width: 1180px;
    margin: 0 auto 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
}

.results-title {
    font-size: 20px;
    margin: 0 0 4px;
    color: var(--ink);
}

.results-sub {
    font-size: 13px;
    color: var(--ink-soft);
    margin: 0 0 18px;
}

.results-position {
    margin-top: 18px;
}

.results-section-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--ink);
}

.results-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.results-row {
    display: grid;
    grid-template-columns: 180px 1fr 50px;
    gap: 12px;
    align-items: center;
    font-size: 13px;
}

.results-row.winner .results-name::after {
    content: ' ★';
    color: var(--gold);
}

.results-name {
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.results-bar-wrap {
    background: var(--bg-soft);
    border-radius: 20px;
    height: 12px;
    overflow: hidden;
}

.results-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 20px;
    transition: width .4s ease;
}

.results-row.winner .results-bar {
    background: var(--gold);
}

.results-count {
    text-align: right;
    font-weight: 700;
    color: var(--ink);
}

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    font-size: 13px;
    color: var(--ink);
    min-width: 220px;
    max-width: 380px;
    animation: toastIn .25s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.success {
    border-left: 3px solid var(--success);
}

.toast.error {
    border-left: 3px solid var(--danger);
}

.toast svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.toast.success svg {
    color: var(--success);
}

.toast.error svg {
    color: var(--danger);
}

.toast-message {
    flex: 1;
    min-width: 0;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--scroll-track);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--scroll-thumb);
    border-radius: 4px;
}

* {
    scrollbar-width: thin;
}

@media (max-width: 900px) {
    .ticket-grid {
        grid-template-columns: 1fr;
    }

    .fixed-header {
        left: 0;
        padding: 0 16px;
        gap: 10px;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0;
        padding-top: calc(var(--header-height) + 28px);
    }

    .fixed-header-meta {
        display: none;
    }

    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-wrap {
        grid-template-columns: 1fr;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .nom-grid {
        grid-template-columns: 1fr;
    }

    .votes-table thead {
        display: none;
    }

    .votes-table,
    .votes-table tbody,
    .votes-table tr,
    .votes-table td {
        display: block;
    }

    .votes-table tbody tr {
        padding: 14px 16px;
        border-bottom: 1px solid var(--line);
    }

    .votes-table td {
        padding: 6px 0;
        border: none;
    }

    .votes-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--ink-soft);
        margin-bottom: 4px;
    }

    .table-nominee-name,
    .table-nominee-sub,
    .table-election {
        max-width: none;
    }
}

@media (max-width: 600px) {
    .page-head {
        padding-bottom: 14px;
        margin-bottom: 24px;
    }

    .page-head h1 {
        font-size: 22px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .vote-submit-row {
        padding: 16px;
    }

    .vote-submit-row .btn {
        width: 100%;
    }

    .results-row {
        grid-template-columns: 110px 1fr 40px;
        font-size: 12px;
    }

    .results-block {
        padding: 16px;
    }

    .vote-position {
        padding: 16px;
    }

    .user-switcher {
        max-width: 110px;
        font-size: 11px;
    }

    .modal {
        padding: 20px;
    }

    .nom-card-actions .btn {
        width: 100%;
    }

    .nom-card-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .nom-pitch-ref {
        max-width: 100px;
    }
}

#viewContainer {
    transition: opacity .15s ease;
}

#viewContainer.is-loading {
    opacity: .45;
    pointer-events: none;
}

button.fixed-header-avatar {
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.logout-modal {
    max-width: 520px;
    padding: 44px 40px 32px;
    border-radius: 24px;
    text-align: center;
}

.logout-modal .modal-close {
    top: 14px;
    right: 18px;
    font-size: 22px;
    line-height: 1;
}

.logout-icon-wrap {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--danger-soft);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 26px;
}

.logout-icon-wrap svg {
    width: 42px;
    height: 42px;
}

.logout-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 14px;
    text-align: center;
    letter-spacing: 0.2px;
}

.logout-message {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.7;
    margin: 0 auto 26px;
    max-width: 380px;
    text-align: center;
}

.logout-account {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-soft);
    border-radius: 16px;
    margin-bottom: 26px;
    text-align: left;
}

.logout-account-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--navy);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.logout-account-info {
    min-width: 0;
    flex: 1;
    line-height: 1.3;
}

.logout-account-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-account-email {
    font-size: 12px;
    color: var(--ink-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-actions.logout-actions {
    display: flex;
    gap: 12px;
    margin-top: 0;
    border-top: none;
    padding-top: 0;
    justify-content: stretch;
}

.logout-actions .btn {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    text-align: center;
}

@media (max-width: 480px) {
    .logout-modal {
        padding: 34px 22px 24px;
    }

    .logout-title {
        font-size: 24px;
    }

    .logout-icon-wrap {
        width: 76px;
        height: 76px;
        margin-bottom: 20px;
    }

    .logout-icon-wrap svg {
        width: 36px;
        height: 36px;
    }
}

.elections-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 260px;
    max-width: 420px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.search-box svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #6b7280;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.85rem;
}

.search-box input::placeholder {
    color: #6b7280;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-pill {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #9aa4b2;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-pill:hover {
    border-color: rgba(255, 255, 255, 0.18);
    color: #e5e7eb;
}

.filter-pill.active {
    background: #48557a;
    border-color: #48557a;
    color: #ffffff;
}

.elections-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 16px;
}

.voting-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    font-family: inherit;
    color: var(--text-color, #111827);
}

.voting-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.voting-step-badge {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted, #6b7280);
}

.voting-title {
    font-size: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.voting-instruction {
    font-size: 0.9rem;
    color: var(--text-muted, #4b5563);
    margin-bottom: 32px;
    opacity: 0.6;
}

.voting-progress-dots {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.dot-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
}

.dot-wrapper:last-child {
    flex: 0;
}

.dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border-color, #d1d5db);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted, #6b7280);
    background: var(--bg-color, #fff);
    transition: all 0.3s;
}

.dot.active {
    background: #064e3b;
    border-color: #064e3b;
    color: #fff;
}

.line {
    flex: 1;
    height: 2px;
    background: var(--border-color, #d1d5db);
    margin: 0 12px;
}

.position-countdown {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    border: none;
    letter-spacing: 0.2px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.position-countdown svg {
    flex-shrink: 0;
}

.position-countdown.countdown-live {
    color: #059669;
}

.position-countdown.countdown-pending {
    color: #b45309;
}

.position-countdown.countdown-closed {
    color: #dc2626;
}

.position-countdown.countdown-none {
    color: #6b7280;
}

.position-countdown .countdown-text {
    font-variant-numeric: tabular-nums;
}

.candidate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.candidate-card {
    border: 1px solid var(--border-color, #e5e7eb);
    padding: 16px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: var(--card-bg, #fff);
}

.candidate-card:hover {
    border-color: #064e3b;
}

.candidate-card.selected {
    border-color: #064e3b;
    box-shadow: 0 0 0 1px #064e3b, 0 4px 12px rgba(6, 78, 59, 0.1);
    background: rgba(6, 78, 59, 0.02);
}

.candidate-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.candidate-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.candidate-photo {
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--input-bg, #f3f4f6);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-muted, #9ca3af);
}

.candidate-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.candidate-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.candidate-sub {
    font-size: 0.85rem;
    color: var(--text-muted, #6b7280);
}

.candidate-radio {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.radio-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border-color, #d1d5db);
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--card-bg, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.candidate-card:hover .radio-circle {
    border-color: #064e3b;
    transform: scale(1.05);
}

.radio-circle.checked {
    border-color: #064e3b;
    background: #064e3b;
    box-shadow: 0 0 0 4px rgba(6, 78, 59, 0.15);
}

.radio-circle.checked::after {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.voting-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.voting-footer .btn {
    padding: 12px 24px;
    font-weight: 400;
    font-size: 0.85rem;
    cursor: pointer;
    text-transform: capitalize !important;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 0 !important;
}

.voting-footer .btn-outline {
    background: transparent;
    border: 1px solid var(--border-color, #d1d5db);
    color: var(--text-color, #374151);
}

.voting-footer .btn-outline:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.voting-footer .btn-primary {
    background: #064e3b;
    border: none;
    color: #fff;
}

.voting-footer .btn-primary:hover {
    background: #043c2b;
}

.already-voted-message {
    padding: 16px;
    border-radius: 8px;
    color: #064e3b;
    font-weight: 600;
    margin: 30px 0 30px;
    text-align: center;
}

.review-step {
    animation: fadeIn 0.3s ease-in-out;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px 20px;
}

.review-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--border-color, #e5e7eb);
    background: var(--card-bg, #fff);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s;
}

.review-card-num {
    font-size: 1.5rem;
    font-weight: 700;
    width: 24px;
    text-align: center;
    color: var(--text-muted, #9ca3af);
    flex-shrink: 0;
}

.review-card-avatar {
    width: 52px;
    height: 52px;
    overflow: hidden;
    background: var(--input-bg, #f3f4f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted, #9ca3af);
    flex-shrink: 0;
    border-radius: 5px;
}

.review-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-card-info {
    flex: 1;
    min-width: 0;
}

.review-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color, #111827);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-card-name {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-color, #374151);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-card-sub {
    font-size: 0.8rem;
    color: var(--text-muted, #9ca3af);
}

.review-card-check {
    color: #064e3b;
    flex-shrink: 0;
    margin-left: auto;
}

.review-card-check.missing {
    color: #ef4444;
}

#successVoteModal.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(15, 23, 42, 0.6) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    backdrop-filter: blur(4px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    z-index: 99999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.25s ease, visibility 0.25s ease !important;
    box-sizing: border-box !important;
}

#successVoteModal.modal-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#successVoteModal .success-modal {
    background: #ffffff;
    border-radius: 18px;
    padding: 44px 36px 36px;
    text-align: center;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.3);
    transform: translateY(24px) scale(0.94);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
    border: 1px solid #e2e8f0;
    font-family: inherit;
    box-sizing: border-box;
}

#successVoteModal.modal-overlay.active .success-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

#successVoteModal .success-icon-wrap {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #064e3b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 26px;
    box-shadow: 0 10px 24px rgba(6, 78, 59, 0.28);
}

#successVoteModal .success-icon-wrap svg {
    width: 42px;
    height: 42px;
}

#successVoteModal .success-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-family: inherit;
    line-height: 1.1;
}

#successVoteModal .success-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 28px;
    line-height: 1.5;
}

#successVoteModal .success-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 26px 24px;
    margin-bottom: 28px;
    text-align: center;
}

#successVoteModal .success-box-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #064e3b;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.6px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

#successVoteModal .success-box-header svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

#successVoteModal .success-box-text {
    color: #334155;
    font-size: 0.9rem;
    margin: 0 0 6px;
    line-height: 1.5;
}

#successVoteModal .success-box-text:last-child {
    margin-bottom: 0;
}

#successVoteModal .success-box-text.bold {
    font-weight: 700;
    color: #0f172a;
}

#successVoteModal .btn-home {
    background: #064e3b;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 16px;
    width: 100%;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: inherit;
}

#successVoteModal .btn-home:hover {
    background: #043c2b;
}

#successVoteModal .btn-home:active {
    transform: scale(0.985);
}

[data-theme="dark"] #successVoteModal .success-modal {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] #successVoteModal .success-title {
    color: #f3f4f6;
}

[data-theme="dark"] #successVoteModal .success-subtitle {
    color: #9ca3af;
}

[data-theme="dark"] #successVoteModal .success-box {
    background: #111827;
    border-color: #374151;
}

[data-theme="dark"] #successVoteModal .success-box-header {
    color: #34d399;
}

[data-theme="dark"] #successVoteModal .success-box-text {
    color: #d1d5db;
}

[data-theme="dark"] #successVoteModal .success-box-text.bold {
    color: #f3f4f6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-theme="dark"] .voting-wrapper {
    color: #f3f4f6;
}

[data-theme="dark"] .voting-instruction {
    color: #9ca3af;
}

[data-theme="dark"] .dot {
    background: #1f2937;
    border-color: #374151;
    color: #9ca3af;
}

[data-theme="dark"] .line {
    background: #374151;
}

[data-theme="dark"] .candidate-card {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .candidate-photo {
    background: #374151;
}

[data-theme="dark"] .candidate-sub {
    color: #9ca3af;
}

[data-theme="dark"] .voting-footer {
    border-top-color: #374151;
}

[data-theme="dark"] .voting-footer .btn-outline {
    border-color: #374151;
    color: #e5e7eb;
}

[data-theme="dark"] .already-voted-message {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

[data-theme="dark"] .review-card {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .review-card-avatar {
    background: #374151;
}

[data-theme="dark"] .review-card-title {
    color: #9ca3af;
}

[data-theme="dark"] .review-card-sub {
    color: #9ca3af;
}

[data-theme="dark"] .review-card-check {
    color: #10b981;
}

[data-theme="dark"] .review-card-check.missing {
    color: #f87171;
}

[data-theme="dark"] .candidate-card.selected {
    background: rgba(6, 78, 59, 0.15);
}

[data-theme="dark"] .position-countdown.countdown-live {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
}

[data-theme="dark"] .position-countdown.countdown-pending {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

[data-theme="dark"] .position-countdown.countdown-closed {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

[data-theme="dark"] .position-countdown.countdown-none {
    background: rgba(107, 114, 128, 0.15);
    border-color: rgba(107, 114, 128, 0.4);
    color: #9ca3af;
}

[data-theme="light"] .search-box,
[data-theme="light"] .filter-pill {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .elections-count {
    color: #111827;
}

@media (max-width: 520px) {
    #successVoteModal .success-modal {
        padding: 34px 22px 26px;
        border-radius: 16px;
    }

    #successVoteModal .success-icon-wrap {
        width: 72px;
        height: 72px;
        margin-bottom: 20px;
    }

    #successVoteModal .success-icon-wrap svg {
        width: 34px;
        height: 34px;
    }

    #successVoteModal .success-title {
        font-size: 1.55rem;
    }

    #successVoteModal .success-box {
        padding: 20px 16px;
    }

    #successVoteModal .success-box-header {
        font-size: 0.75rem;
        letter-spacing: 0.4px;
    }
}