/* ====================================
   VOTE DASHBOARD STYLES
   ==================================== */

:root {
    --primary: #ffd700;
    --bg: #050505;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --text-muted: #888;
    --success-green: #4ade80;
    --error-red: #ff6b6b;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg);
    color: white;
    line-height: 1.6;
}

.vote-dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ====================================
   STATS OVERVIEW
   ==================================== */

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.2);
}

.stat-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    margin: 0 0 0.25rem 0;
    color: white;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.impact-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    border-color: var(--primary);
}

.impact-rank {
    background: linear-gradient(135deg, var(--primary), #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ====================================
   SECTION HEADERS
   ==================================== */

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

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.refresh-btn:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--primary);
    transform: rotate(180deg);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--success-green);
    font-weight: 600;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--success-green);
    border-radius: 50%;
    animation: pulse-live 2s infinite;
}

@keyframes pulse-live {

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

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.view-all-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.view-all-btn:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--primary);
}

/* ====================================
   ACTIVE CONTESTS
   ==================================== */

.active-contests-section {
    margin-bottom: 3rem;
}

.active-contests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.loading-skeleton {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.skeleton-contest-card {
    height: 400px;
    background: linear-gradient(90deg, var(--card-bg) 0%, rgba(255, 255, 255, 0.08) 50%, var(--card-bg) 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 20px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.contest-voting-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
}

.contest-voting-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.2);
}

.contest-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.contest-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
}

.contest-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.contest-category {
    color: var(--text-muted);
}

.contest-time {
    color: var(--error-red);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.contest-card-body {
    padding: 1.5rem;
}

.your-pick-section {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.pick-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: block;
}

.pick-contestant {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.pick-info {
    flex: 1;
}

.pick-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.pick-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.rank-badge {
    background: linear-gradient(135deg, var(--primary), #ffa500);
    color: black;
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.75rem;
}

.votes-count {
    color: var(--primary);
    font-weight: 600;
}

.progress-section {
    margin-bottom: 1.25rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.625rem;
    font-size: 0.875rem;
}

.progress-label {
    color: var(--text-muted);
}

.gap-info {
    color: var(--error-red);
    font-weight: 600;
}

.gap-info.winning {
    color: var(--success-green);
}

.progress-bar-container {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #ffa500);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.contest-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-quick-vote {
    flex: 2;
    background: linear-gradient(135deg, var(--primary), #ffa500);
    color: black;
    border: none;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-quick-vote:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
}

.btn-view-live {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: white;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-view-live:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
}

/* ====================================
   LEADERBOARDS
   ==================================== */

.leaderboards-section {
    margin-bottom: 3rem;
}

.leaderboards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.leaderboard-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.leaderboard-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.leaderboard-header {
    margin-bottom: 1.25rem;
}

.leaderboard-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
}

.leaderboard-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: all 0.3s;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.leaderboard-rank {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.leaderboard-item.top-1 .leaderboard-rank {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: black;
}

.leaderboard-item.top-2 .leaderboard-rank {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    color: black;
}

.leaderboard-item.top-3 .leaderboard-rank {
    background: linear-gradient(135deg, #cd7f32, #b8732d);
    color: black;
}

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

.leaderboard-info {
    flex: 1;
    min-width: 0;
}

.leaderboard-name {
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaderboard-votes {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.vote-change {
    font-size: 0.75rem;
    color: var(--success-green);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ====================================
   VOTING HISTORY
   ==================================== */

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

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s;
}

.history-item:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.history-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.history-details {
    flex: 1;
    min-width: 0;
}

.history-action {
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.history-description {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.history-meta {
    text-align: right;
}

.history-amount {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.history-time {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ====================================
   QUICK VOTE MODAL - FIXED VERSION
   ==================================== */

.quick-vote-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    /* CHANGED: Use center alignment for better scrolling */
    align-items: center;
    justify-content: center;
    /* ADDED: Allow scrolling in the modal container */
    overflow-y: auto;
    overflow-x: hidden;
    /* ADDED: Padding for mobile */
    padding: 1rem;
}

.quick-vote-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.quick-vote-content {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem 2.5rem 2.5rem 2.5rem;
    max-width: 550px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    /* REMOVED: max-height restriction that was causing issues */
    /* max-height: 90vh; */
    /* REMOVED: overflow-y auto from content (parent handles it now) */
    /* overflow-y: auto; */
    /* ADDED: Margin for spacing when scrolling */
    margin: 2rem auto;
    /* ADDED: Ensure content doesn't get cut off */
    min-height: min-content;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

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

.close-modal {
    position: absolute;
    top: 3rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    /* ADDED: Ensure close button is always visible */
    z-index: 1;
}

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

.quick-vote-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contestant-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    margin-bottom: 1rem;
    object-fit: cover;
}

.quick-vote-header h3 {
    font-size: 1.75rem;
    font-weight: 900;
    margin: 0 0 0.5rem 0;
    color: white;
}

.quick-vote-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.quick-vote-presets h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: white;
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.preset-btn:hover {
    border-color: var(--primary);
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-4px);
}

.preset-btn.selected {
    border-color: var(--primary);
    background: rgba(255, 215, 0, 0.15);
}

.preset-btn.popular,
.preset-btn.premium {
    border-color: var(--primary);
}

.popular-badge,
.premium-badge {
    position: absolute;
    top: -10px;
    background: var(--primary);
    color: black;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
}

.preset-count {
    font-size: 2rem;
    font-weight: 900;
    color: white;
}

.preset-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.preset-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.custom-vote-section {
    margin-bottom: 1.5rem;
}

.custom-vote-section label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.custom-vote-input {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-vote-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.125rem;
}

.custom-vote-input input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 215, 0, 0.05);
}

.custom-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 100px;
}

.btn-quick-pay {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), #ffa500);
    color: black;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    /* ADDED: Ensure button is always clickable */
    position: relative;
    z-index: 0;
}

.btn-quick-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.5);
}

.btn-quick-pay:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ====================================
   RESPONSIVE FIXES FOR MODAL
   ==================================== */

@media (max-width: 768px) {
    .quick-vote-modal {
        /* ADDED: Better padding for mobile */
        padding: 0.5rem;
        /* ADDED: Ensure proper alignment on mobile */
        align-items: flex-start;
    }

    .quick-vote-content {
        padding: 2rem;
        /* ADDED: Better spacing on mobile */
        margin: 1rem auto;
        /* ADDED: Allow full width on small screens */
        max-width: 100%;
    }

    .preset-buttons {
        grid-template-columns: 1fr;
    }

    .contestant-avatar-large {
        width: 80px;
        height: 80px;
    }

    .quick-vote-header h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .quick-vote-content {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .close-modal {
        top: 1rem;
        right: 1rem;
        width: 32px;
        height: 32px;
    }

    .preset-btn {
        padding: 1rem;
    }

    .preset-count {
        font-size: 1.5rem;
    }
}

/* ====================================
   BODY SCROLL LOCK (when modal is open)
   ==================================== */

/* Add this class to body when modal opens */
body.modal-open {
    overflow: hidden;
    /* ADDED: Prevent background scroll on iOS */
    position: fixed;
    width: 100%;
    height: 100%;
}

/* ====================================
   SMOOTH SCROLLING FOR MODAL
   ==================================== */

.quick-vote-modal {
    /* ADDED: Smooth momentum scrolling on iOS */
    -webkit-overflow-scrolling: touch;
    /* ADDED: Smooth scrolling behavior */
    scroll-behavior: smooth;
}

/* Custom scrollbar for modal (optional) */
.quick-vote-modal::-webkit-scrollbar {
    width: 8px;
}

.quick-vote-modal::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.quick-vote-modal::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 4px;
}

.quick-vote-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

.quick-vote-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contestant-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    margin-bottom: 1rem;
    object-fit: cover;
}

.quick-vote-header h3 {
    font-size: 1.75rem;
    font-weight: 900;
    margin: 0 0 0.5rem 0;
    color: white;
}

.quick-vote-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.quick-vote-presets h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: white;
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.preset-btn:hover {
    border-color: var(--primary);
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-4px);
}

.preset-btn.selected {
    border-color: var(--primary);
    background: rgba(255, 215, 0, 0.15);
}

.preset-btn.popular,
.preset-btn.premium {
    border-color: var(--primary);
}

.popular-badge,
.premium-badge {
    position: absolute;
    top: -10px;
    background: var(--primary);
    color: black;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
}

.preset-count {
    font-size: 2rem;
    font-weight: 900;
    color: white;
}

.preset-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.preset-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.custom-vote-section {
    margin-bottom: 1.5rem;
}

.custom-vote-section label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.custom-vote-input {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-vote-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.125rem;
}

.custom-vote-input input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 215, 0, 0.05);
}

.custom-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 100px;
}

.btn-quick-pay {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), #ffa500);
    color: black;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-quick-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.5);
}

.btn-quick-pay:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ====================================
   VOTE CART FAB
   ==================================== */

.vote-cart-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
}

.fab-btn {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), #ffa500);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
    transition: all 0.3s;
    position: relative;
    color: black;
}

.fab-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(255, 215, 0, 0.6);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--error-red);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    border: 2px solid var(--bg);
}

/* ====================================
   EMPTY STATES
   ==================================== */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.empty-state-description {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.btn-browse-contests {
    background: linear-gradient(135deg, var(--primary), #ffa500);
    color: black;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-browse-contests:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media (max-width: 768px) {
    .vote-dashboard-container {
        padding: 1rem;
    }

    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.25rem;
    }

    .active-contests-grid,
    .leaderboards-grid {
        grid-template-columns: 1fr;
    }

    .preset-buttons {
        grid-template-columns: 1fr;
    }

    .quick-vote-content {
        padding: 2rem;
    }

    .contest-actions {
        flex-direction: column;
    }

    .btn-quick-vote,
    .btn-view-live {
        flex: 1;
    }

    .vote-cart-fab {
        bottom: 1rem;
        right: 1rem;
    }

    .fab-btn {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .stats-overview {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .live-indicator,
    .view-all-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.875rem;
    }

    .history-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .history-meta {
        text-align: left;
        width: 100%;
    }
}

/* ====================================
   ANIMATIONS & UTILITIES
   ==================================== */

.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-up {
    animation: slideUp 0.5s ease;
}

.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Smooth transitions for dynamic content */
.contest-voting-card,
.leaderboard-card,
.history-item {
    animation: fadeIn 0.3s ease;
}

/* Tooltip */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

[data-tooltip]:hover::before {
    opacity: 1;
}