:root {
    --vote-gradient-start: #ff7e96;
    --vote-gradient-mid: #ff3b5c;
    --vote-gradient-end: #ff1744;
    --vote-surface: rgba(22, 26, 33, 0.85);
    --vote-border: rgba(255, 255, 255, 0.08);
    --vote-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    --text: #F2F5F7;
    --muted: #A7AEBB;
    --surf: #0E1014;
    --surf-2: #1D2330;
    --line: #2A2F3A;
}

.vote-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.vote-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 62, 90, 0.28), rgba(22, 26, 33, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.vote-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 123, 142, 0.28), transparent 55%);
    pointer-events: none;
}

.vote-hero__badge {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: rgba(14, 16, 20, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.vote-hero__badge svg {
    width: 48px;
    height: 48px;
}

.vote-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.35rem;
}

.vote-hero__title {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    font-family: var(--heading);
    background: linear-gradient(120deg, #fff, #ffd7e1 45%, var(--vote-gradient-mid));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.vote-hero__subtitle {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.vote-hero__meta {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    padding: 0.75rem 1.15rem;
    border-radius: 14px;
    background: rgba(14, 16, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 59, 92, 0.15);
}

.vote-hero__reset-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.55);
}

.vote-hero__reset-value {
    font-weight: 800;
    color: #fff;
}

.vote-alert {
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 59, 92, 0.18);
    color: #FFE5EC;
}

.alert-success.vote-alert {
    background: rgba(13, 91, 55, 0.22);
    color: #E1FFE8;
}

.alert-danger.vote-alert {
    background: rgba(136, 8, 36, 0.24);
    color: #FFD7DE;
}

.alert-warning.vote-alert {
    background: rgba(255, 159, 28, 0.22);
    color: #FFECD1;
}

.alert-info.vote-alert {
    background: rgba(66, 165, 245, 0.22);
    color: #E3F4FF;
}

.vote-alert__icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.vote-card {
    background: var(--vote-surface);
    border: 1px solid var(--vote-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    box-shadow: var(--vote-shadow);
}

.vote-card.table-card {
    background: var(--surf);
    border: 1px solid var(--line);
    border-radius: 18px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: var(--vote-shadow);
}

.vote-card.table-card .vote-card__header {
    border-bottom: none;
    padding: 1.15rem 1.35rem 1.05rem;
}

.vote-card.table-card .vote-card__header.section-bar {
    background: linear-gradient(120deg, var(--vote-gradient-mid), var(--vote-gradient-end));
    border-radius: 18px 18px 0 0;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 0.85rem 1.1rem;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.18);
}

.vote-card.table-card .vote-card__header.section-bar .vote-card__eyebrow {
    color: rgba(255, 255, 255, 0.75);
}

.vote-card.table-card .vote-card__header.section-bar .vote-card__title {
    color: #fff;
    margin: 0;
}

.vote-card.table-card .vote-card__header.section-bar .vote-filters {
    gap: 0.6rem;
}

.vote-card.table-card .vote-card__header.section-bar .vote-search {
    background: rgba(14, 16, 20, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.32);
    padding: 0.35rem 0.85rem;
}

.vote-card.table-card .vote-card__header.section-bar .vote-search input {
    color: #fff;
}

.vote-card.table-card .vote-card__header.section-bar .vote-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.vote-card.table-card .vote-card__header.section-bar .vote-search__icon {
    fill: rgba(255, 255, 255, 0.75);
}

.vote-card.table-card .vote-card__header.section-bar .vote-filters .form-select {
    background-color: rgba(14, 16, 20, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: #fff;
}

.vote-card.table-card .vote-card__header.section-bar .vote-filters .form-select:focus {
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.2);
}

.vote-card.table-card .vote-card__header.section-bar .btn-accent {
    background: rgba(14, 16, 20, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
}

.vote-card.table-card .vote-card__header.section-bar .btn-accent:hover:not(:disabled) {
    background: rgba(14, 16, 20, 0.55);
}

.vote-card.table-card .vote-card__header.section-bar .btn-ghost {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.vote-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.vote-card__header--compact {
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.vote-card__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.35rem;
}

.vote-card__title {
    margin: 0;
    font-size: clamp(1.35rem, 2.4vw, 1.6rem);
    font-weight: 800;
    font-family: var(--heading);
}

.vote-card__badge {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--vote-gradient-mid), var(--vote-gradient-end));
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.vote-filters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.vote-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(14, 16, 20, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.vote-search input {
    background: transparent;
    border: 0;
    outline: none;
    color: #fff;
    width: 180px;
    font-weight: 600;
}

.vote-search input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.vote-search__icon {
    width: 18px;
    height: 18px;
    fill: rgba(255, 255, 255, 0.45);
}

.vote-filters .form-select {
    background-color: rgba(14, 16, 20, 0.75);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.35rem 1.9rem 0.35rem 0.9rem;
    font-weight: 600;
}

.vote-filters .form-select:focus {
    border-color: var(--vote-gradient-mid);
    box-shadow: 0 0 0 0.15rem rgba(255, 59, 92, 0.2);
}

.btn-accent {
    background: var(--vote-gradient-mid);
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #fff;
    padding: 0.45rem 1.25rem;
}

.btn-accent:hover:not(:disabled) {
    background: var(--vote-gradient-end);
}

.btn-accent:disabled {
    background: rgba(255, 59, 92, 0.35);
    border-color: rgba(255, 59, 92, 0.2);
    color: rgba(255, 255, 255, 0.65);
}

.btn-ghost {
    background: transparent;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-weight: 700;
    padding: 0.45rem 1.15rem;
}

.btn-ghost:hover {
    border-color: var(--vote-gradient-mid);
    background: rgba(255, 59, 92, 0.15);
    color: #fff;
}

.vote-table {
    color: var(--text);
    border-collapse: separate;
    border-spacing: 0;
}

.vote-table thead {
    background: var(--surf-2);
    box-shadow: inset 0 -1px 0 var(--line);
}

.vote-table thead th {
    background: transparent !important;
    color: var(--muted) !important;
    border-bottom: 1px solid var(--line) !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    padding: 0.9rem 1rem;
}

.vote-table tbody td {
    border-color: var(--line);
    padding: 0.95rem 1rem;
    vertical-align: middle;
    color: var(--text);
}

.vote-table tbody tr {
    background: rgba(12, 15, 21, 0.75);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.vote-table tbody tr:hover {
    background: rgba(18, 22, 30, 0.92);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.vote-table tbody tr.is-gold {
    background: linear-gradient(120deg, rgba(255, 215, 0, 0.12), rgba(18, 22, 30, 0.85));
}

.vote-table tbody tr.is-silver {
    background: linear-gradient(120deg, rgba(192, 192, 192, 0.12), rgba(18, 22, 30, 0.85));
}

.vote-table tbody tr.is-bronze {
    background: linear-gradient(120deg, rgba(205, 127, 50, 0.12), rgba(18, 22, 30, 0.85));
}

.vote-table thead th.text-center {
    text-align: center;
}

.vote-table thead th:first-child {
    border-top-left-radius: var(--radius);
}

.vote-table thead th:last-child {
    border-top-right-radius: var(--radius);
}

.vote-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 800;
    font-size: 1rem;
}

.vote-rank__badge {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.vote-server {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.vote-server__name {
    font-weight: 700;
}

.vote-server__tag {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
}

.vote-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-weight: 800;
    background: rgba(255, 59, 92, 0.22);
    color: #ffe0e7;
    border: 1px solid rgba(255, 59, 92, 0.35);
}

.vote-chip--vip {
    background: linear-gradient(120deg, #f59e0b, #f97316);
    border-color: rgba(255, 255, 255, 0.22);
    color: #1e1305;
}

.vote-sidebar {
    position: relative;
}

.vote-guide {
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(12, 15, 21, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--vote-shadow);
    overflow: hidden;
}

.vote-guide__header {
    padding: 1.75rem 1.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.vote-guide__title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--heading);
}

.vote-guide__subtitle {
    margin: 0.5rem 0 0;
    color: rgba(255, 255, 255, 0.6);
}

.vote-guide__body {
    padding: 1.5rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.vote-guide__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vote-guide__list li {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 0.75rem;
    align-items: start;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.vote-guide__bullet {
    width: 10px;
    height: 10px;
    margin-top: 0.45rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vote-gradient-start), var(--vote-gradient-mid));
    box-shadow: 0 0 10px rgba(255, 59, 92, 0.45);
}

.vote-guide__alert {
    margin: 0;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.vote-pagination {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(12, 16, 23, 0.65);
    padding: 1rem 1.75rem;
}

.vote-pagination .pagination {
    margin-bottom: 0;
}

.vote-pagination .page-link {
    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 16, 23, 0.85);
    color: #fff;
    font-weight: 600;
}

.vote-pagination .page-item.active .page-link,
.vote-pagination .page-link:hover {
    background: linear-gradient(120deg, var(--vote-gradient-mid), var(--vote-gradient-end));
    border-color: transparent;
    color: #fff;
}

.vote-pagination .page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 59, 92, 0.25);
}

@media (max-width: 991.98px) {
    .vote-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .vote-hero__meta {
        margin-left: 0;
        align-items: flex-start;
    }

    .vote-filters {
        width: 100%;
        justify-content: flex-start;
    }

    .vote-search input {
        width: 160px;
    }
}

@media (max-width: 575.98px) {
    .vote-search input {
        width: 140px;
    }

    .vote-card__header {
        padding: 1.25rem;
    }

    .vote-table thead {
        display: none;
    }

    .vote-table tbody td {
        display: block;
        text-align: right;
    }

    .vote-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem 1rem;
        padding: 0.75rem 0.65rem;
    }

    .vote-table tbody td::before {
        content: attr(data-label);
        text-transform: uppercase;
        letter-spacing: 0.16em;
        font-size: 0.68rem;
        color: rgba(255, 255, 255, 0.5);
        float: left;
    }
}
