.vote-page-wrapper {
    max-width: 1220px;
    margin: 0 auto;
    padding: 42px 18px 72px;
}

.vote-card-shell {
    max-width: 760px;
    margin: 0 auto;
}

.simple-vote-page {
    position: relative;
}

.vote-main-card {
    position: relative;
    padding: 34px 34px 38px;
    text-align: center;
    color: #dcecff;
    background: rgba(10, 16, 26, 0.92);
    border: 1px solid rgba(57, 162, 255, 0.35);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.vote-main-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(57, 162, 255, 0.16);
    pointer-events: none;
}

.vote-black-banner {
    position: relative;
    margin-bottom: 24px;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.88);
    color: #8fd0ff;
    border: 1px solid rgba(57, 162, 255, 0.28);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.vote-main-copy {
    position: relative;
    max-width: 620px;
    margin: 0 auto 24px;
    color: #dcecff;
    font-size: 14px;
    line-height: 1.7;
}

.vote-main-copy p {
    margin: 0 0 10px;
}

.vote-main-button {
    position: relative;
    max-width: 240px;
    margin: 4px auto 18px;
}

.vote-panel {
    position: relative;
    max-width: 760px;
    margin: 24px auto 0;
    padding: 24px;
    background: rgba(10, 16, 26, 0.95);
    border: 1px solid rgba(57, 162, 255, 0.22);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.vote-panel-hidden {
    display: none;
}

.vote-panel-header h2 {
    margin: 0 0 8px;
    color: #eaf6ff;
    font-size: 20px;
}

.vote-panel-header p {
    margin: 0 0 18px;
    color: #c4d8ea;
    font-size: 14px;
}

/* Popup */
.vote-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.68);
}

.vote-popup-overlay.is-open {
    display: flex;
}

.vote-popup {
    width: 100%;
    max-width: 430px;
    background: rgba(10, 16, 26, 0.98);
    border: 1px solid rgba(57, 162, 255, 0.55);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.75),
        0 0 30px rgba(57, 162, 255, 0.12);
}

.vote-popup-top {
    position: relative;
    padding: 13px 46px;
    text-align: center;
    background: rgba(0, 0, 0, 0.92);
    color: #8fd0ff;
    border-bottom: 1px solid rgba(57, 162, 255, 0.35);
}

.vote-popup-top h2 {
    margin: 0;
    color: #8fd0ff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.vote-popup-close {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #8fd0ff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.vote-popup-close:hover {
    color: #ffffff;
}

.vote-popup-body {
    padding: 30px 34px 34px;
    text-align: center;
}

/* Form */
.vote-form-row {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.vote-form-row-stacked {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

.usernameInputField {
    width: 100%;
    height: 46px;
    min-height: 46px;
    flex: 0 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.06);
    color: #eaf6ff;
    border: 1px solid rgba(143, 208, 255, 0.28);
    outline: none;
}

.usernameInputField::placeholder {
    color: rgba(220, 236, 255, 0.58);
}

.usernameInputField:focus,
.form-control:focus {
    border-color: rgba(72, 178, 255, 1);
    box-shadow: 0 0 24px -8px rgba(72, 178, 255, 1);
}

/* Buttons - blue theme */
.voteActionButton,
.voteSiteButton {
    background: linear-gradient(180deg, #2db7ff 0%, #005aa8 100%);
    border: none;
    color: white;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .04em;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.voteActionButton:hover,
.voteSiteButton:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 8px 18px rgba(0, 91, 168, 0.35);
}

.voteActionButton {
    width: 100%;
    min-width: 180px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 4px;
}

.vote-warning {
    display: none;
    margin-top: 14px;
    padding: 10px;
    background-color: rgba(0, 83, 153, 0.85);
    border: 1px solid rgba(143, 208, 255, 0.35);
    color: white;
    font-size: 13px;
    font-weight: 700;
}

.vote-warning.is-visible,
.vote-warning.show,
.vote-warning.active {
    display: block;
}

.vote-site-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.vote-site-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(57, 162, 255, 0.18);
}

.vote-site-card h3 {
    margin: 0;
    font-size: 1.1rem;
}

.vote-site-card p {
    min-height: 48px;
    margin: 0;
    color: #d4d4d4;
}

.voteSiteButton {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 4px;
}

.vote-site-meta {
    color: #b7d9ef;
    font-size: 0.9rem;
}

.vote-empty-state {
    grid-column: 1 / -1;
    padding: 20px;
    color: #d8eaff;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(57, 162, 255, 0.22);
}

.voteframe {
    width: 100vw;
    height: 85vh;
}

@media (max-width: 767px) {
    .vote-page-wrapper {
        padding-top: 24px;
    }

    .vote-card-shell,
    .vote-panel {
        padding: 20px;
    }

    .vote-popup-body {
        padding: 28px 22px 30px;
    }

    .voteActionButton {
        width: 100%;
    }
}