:root {
    /* Cyber-Pastel Palette */
    --bg-dark: #0f172a;
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.5);
    --secondary: #ec4899;
    --accent: #06b6d4;
    /* Cyan */
    --surface: rgba(30, 41, 59, 0.7);
    --surface-border: rgba(255, 255, 255, 0.1);
    --text-white: #f8fafc;
    --text-gray: #94a3b8;

    --font-display: 'Outfit', sans-serif;
    --font-body: 'Be Vietnam Pro', sans-serif;

    --card-radius: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Scene */
.fixed-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #0B0E14;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(30px, -50px);
    }

    66% {
        transform: translate(-20px, 20px);
    }
}

/* Layout */
.app-layout {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
}

@media (min-width: 1024px) {
    .app-layout {
        grid-template-columns: 350px 1fr;
    }
}

/* Sidebar */
.sidebar {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--surface-border);
    position: relative;
    z-index: 10;
}

.brand h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 800;
    margin-top: 1rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-glow {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
}

.highlight-year {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.context-box {
    color: var(--text-gray);
    line-height: 1.6;
}

.highlight-mgl {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2em;
    background: linear-gradient(90deg, #F472B6, #C084FC, #22D3EE);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
    text-shadow: 0 0 30px rgba(192, 132, 252, 0.4);
    position: relative;
    white-space: nowrap;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.global-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

.input-wrapper input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--surface-border);
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 12px;
    color: white;
    font-family: var(--font-body);
    transition: all 0.3s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #5865F2;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.discord-btn:hover {
    transform: translateY(-2px);
}

/* Discord Auth Section */
.auth-section {
    margin-top: 1rem;
}

.auth-section label {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
}

.discord-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    background: linear-gradient(135deg, #5865F2, #7289DA);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.discord-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.5);
    filter: brightness(1.1);
}

.discord-login-btn i {
    font-size: 1.4rem;
}

.auth-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(88, 101, 242, 0.15);
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(88, 101, 242, 0.3);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 700;
    color: var(--text-white);
    font-size: 1rem;
}

.user-id {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.logout-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.auth-user.hidden,
.auth-guest.hidden {
    display: none;
}

.footer-info {
    margin-top: auto;
}

.hiring-box {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-gray);
    position: relative;
    overflow: hidden;
}

.hiring-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--secondary);
}

.hiring-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    color: var(--secondary);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    background: rgba(236, 72, 153, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

.hiring-link:hover {
    background: var(--secondary);
    color: white;
    transform: translateX(5px);
}

/* Gallery Main */
.gallery-container {
    padding: 2rem;
    position: relative;
    overflow-y: auto;
    max-height: 100vh;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.progress-indicator {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Base Card Grid */
.cards-grid {
    display: grid;
    /* Increased min-width for "Big Frame" look */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding-bottom: 5rem;
    perspective: 1000px;
}

/* Styling for Individual Candidate Cards */
.person-card {
    background: rgba(30, 41, 59, 0.4);
    /* More transparent for glass effect */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    /* Larger radius */
    padding: 2rem;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.person-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.person-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(40, 50, 70, 0.6);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.person-card.voted {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
    transform: translateY(-5px) scale(1.02);
}

/* Optional: Dim others when one is selected (needs JS support if we want to add this class) */
.person-card.dimmed {
    opacity: 0.5;
    filter: grayscale(0.5);
    transform: scale(0.95);
}

.status-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--success);
    transition: all 0.3s;
}

.person-card.voted .status-indicator {
    background: #10B981;
    color: white;
}

.card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    margin-bottom: 1rem;
    border: 3px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.card-role {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.card-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.card-username {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    background: #1e293b;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    position: relative;
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.hidden .modal-card {
    transform: scale(0.9);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-header {
    background: linear-gradient(to right, rgba(139, 92, 246, 0.1), transparent);
    padding: 2rem;
    border-radius: 24px 24px 0 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.role-badge {
    background: var(--primary);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.modal-scroll-content {
    padding: 2rem;
    overflow-y: auto;
}

.form-section {
    margin-bottom: 2rem;
}

.section-label {
    display: block;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
}

textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    font-family: inherit;
    resize: vertical;
}

/* Pills Selection */
.pills-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    /* Increased gap for better row spacing */
    margin-bottom: 1.5rem;
}

.pill-checkbox {
    display: none;
}

.pill-label {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    user-select: none;
    display: flex;
    /* Ensure content centers properly */
    align-items: center;
}

.pill-label:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.pill-checkbox:checked+.pill-label {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.other-input-group {
    position: relative;
    margin-top: 1rem;
}

.other-input-group input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    /* Darker, distinct background */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Visible border */
    border-radius: 12px;
    color: white;
    padding: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.other-input-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.other-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: right;
}

.save-btn {
    background: white;
    color: var(--bg-dark);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.save-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Floating Action Dock */
.action-dock {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
}

.submit-all-btn {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.4);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.submit-all-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.submit-all-btn.disabled {
    background: #334155;
    color: #64748b;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .app-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding: 1.5rem;
    }

    .gallery-container {
        padding: 1rem;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .modal-card {
        width: 95%;
        height: 90vh;
    }

    .brand h1 {
        font-size: 2.5rem;
    }
}

/* Toast */
.toast {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #10B981;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    z-index: 200;
    transition: all 0.3s;
}

.toast.hidden {
    opacity: 0;
    transform: translate(-50%, -20px);
}

/* Sections for Roles */
.role-section {
    margin-bottom: 4rem;
}

.role-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 5px solid var(--accent);
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Custom Popup Modal */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.popup-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.popup-container {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: popupSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--secondary);
    border: 2px solid rgba(236, 72, 153, 0.3);
}

.popup-icon.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.popup-icon.warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
}

.popup-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.popup-message {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.popup-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
    filter: brightness(1.1);
}

/* Success Celebration Popup */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.success-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

#confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.success-container {
    position: relative;
    z-index: 2;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border: 2px solid rgba(16, 185, 129, 0.4);
    border-radius: 28px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(16, 185, 129, 0.2);
    animation: successBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-user-info {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.success-user-info img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.success-user-info span {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: 500;
}

@keyframes successBounce {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(50px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.success-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.4);
    animation: iconPulse 1s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.success-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(90deg, #fbbf24, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.success-subtitle {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.voted-candidates {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.voted-candidate {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
}

.voted-candidate img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent);
}

.voted-candidate .info {
    text-align: left;
}

.voted-candidate .name {
    font-weight: 700;
    color: var(--text-white);
    font-size: 0.95rem;
}

.voted-candidate .role {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
}

.success-thanks {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.success-btn {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.success-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
    filter: brightness(1.1);
}
/* Login Group Layout */
.login-group {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

/* Copy Link Button */
.copy-link-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    border-radius: 14px;
    padding: 0 1.25rem;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-link-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.copy-link-btn:active {
    transform: translateY(0);
}

/* Auth Note Helper */
.auth-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-gray);
    background: rgba(15, 23, 42, 0.4);
    padding: 0.75rem;
    border-radius: 10px;
    line-height: 1.6;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 0.5s ease-out;
}

.auth-note i {
    color: var(--accent);
    margin-right: 0.4rem;
}

/* Hide content when popup is active */
.hidden-for-popup {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s;
}

/* Success Popup Stylized Count */
.vote-result-box {
    text-align: center;
    margin: 1rem 0;
}

.vote-count-number {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.4));
}

.vote-count-label {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Make sure success overlay has no bad interactions */
.success-overlay.hidden {
    display: none !important;
}
