/**
 * Forum4 Polls - Advanced Modal Styles
 * Dark & Light Mode Support
 */

/* ============================================
   MODAL BASE
   ============================================ */

.forum4-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
}

.forum4-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.forum4-modal-container {
    background: linear-gradient(135deg, #1e2936 0%, #0f1419 100%);
    border: 2px solid #2d3748;
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(50px) scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.forum4-modal-overlay.active .forum4-modal-container {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Light Mode */
body.light-mode .forum4-modal-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-color: #e2e8f0;
}

/* ============================================
   CLOSE BUTTON
   ============================================ */

.forum4-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: #fecaca;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.forum4-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    transform: rotate(90deg) scale(1.1);
}

body.light-mode .forum4-modal-close {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ============================================
   REWARDS BANNER
   ============================================ */

.modal-rewards-banner {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    padding: 20px;
    margin: 24px 24px 0 24px;
    animation: bannerSlide 0.5s ease-out 0.2s both;
}

body.light-mode .modal-rewards-banner {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: rgba(102, 126, 234, 0.25);
}

@keyframes bannerSlide {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.rewards-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

body.light-mode .rewards-title {
    color: #1e293b;
}

.rewards-icon {
    font-size: 28px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.rewards-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(15, 20, 25, 0.6);
    border: 2px solid #2d3748;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

body.light-mode .reward-item {
    background: rgba(255, 255, 255, 0.8);
    border-color: #e2e8f0;
}

.reward-item.unlocked {
    border-color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.reward-item.unlocked::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.2), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    to { left: 100%; }
}

.reward-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

body.light-mode .reward-item:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.reward-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.reward-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reward-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

body.light-mode .reward-name {
    color: #1e293b;
}

.reward-points {
    font-size: 12px;
    color: #a0aec0;
}

body.light-mode .reward-points {
    color: #64748b;
}

.reward-badge {
    font-size: 20px;
}

/* ============================================
   POLL HEADER
   ============================================ */

.modal-header {
    padding: 80px 24px 24px 24px;
    border-bottom: 2px solid #2d3748;
}

body.light-mode .modal-header {
    border-bottom-color: #e2e8f0;
}

.poll-category-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.light-mode .poll-category-badge {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.poll-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

body.light-mode .poll-title {
    color: #1e293b;
}

.poll-description {
    font-size: 15px;
    color: #a0aec0;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

body.light-mode .poll-description {
    color: #64748b;
}

.poll-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.poll-votes, .poll-time {
    font-size: 14px;
    color: #a0aec0;
    font-weight: 600;
}

body.light-mode .poll-votes,
body.light-mode .poll-time {
    color: #64748b;
}

/* ============================================
   VOTING SECTION
   ============================================ */

.modal-voting-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    padding: 24px;
}

.voting-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vote-option {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(30, 41, 54, 0.6);
    border: 2px solid #2d3748;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

body.light-mode .vote-option {
    background: #ffffff;
    border-color: #e2e8f0;
}

.vote-option:not(.voted):not(.results-mode):hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: #667eea;
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

body.light-mode .vote-option:not(.voted):not(.results-mode):hover {
    background: rgba(102, 126, 234, 0.08);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.vote-option.voted {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    cursor: default;
}

body.light-mode .vote-option.voted {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

body.light-mode .vote-option.voted .option-text {
    color: #000000 !important;
    font-weight: 700;
}

body.light-mode .vote-option.voted .stats-percentage {
    color: #000000 !important;
}

body.light-mode .vote-option.voted .stats-votes {
    color: rgba(0, 0, 0, 0.7) !important;
}

.vote-option.results-mode {
    cursor: default;
}

.option-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(102, 126, 234, 0.1);
}

body.light-mode .option-thumbnail {
    background: rgba(102, 126, 234, 0.08);
}

.option-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.vote-option:hover .option-thumbnail img {
    transform: scale(1.1) rotate(2deg);
}

.option-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.option-text {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

body.light-mode .option-text {
    color: #1e293b;
}

.option-link {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.4);
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
}

.option-link:hover {
    background: #667eea;
    color: #fff;
    transform: scale(1.1);
}

body.light-mode .option-link {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.option-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stats-bar {
    height: 8px;
    background: rgba(15, 20, 25, 0.6);
    border-radius: 10px;
    overflow: hidden;
}

body.light-mode .stats-bar {
    background: rgba(226, 232, 240, 0.6);
}

.stats-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stats-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
}

.stats-percentage {
    color: #fff;
}

body.light-mode .stats-percentage {
    color: #1e293b;
}

.stats-votes {
    color: rgba(255, 255, 255, 0.7);
}

body.light-mode .stats-votes {
    color: rgba(30, 41, 59, 0.6);
}

.voted-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    animation: checkPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body.light-mode .voted-badge {
    background: rgba(0, 0, 0, 0.15);
    color: #000;
}

@keyframes checkPop {
    0% {
        transform: scale(0) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

/* ============================================
   CHART
   ============================================ */

.voting-chart {
    background: rgba(30, 41, 54, 0.4);
    border: 2px solid #2d3748;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.light-mode .voting-chart {
    background: #ffffff;
    border-color: #e2e8f0;
}

/* ============================================
   LOADING STATE
   ============================================ */

.forum4-modal-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 999998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.forum4-modal-loading p {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

/* ============================================
   SCROLLBAR
   ============================================ */

.forum4-modal-container::-webkit-scrollbar {
    width: 8px;
}

.forum4-modal-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.forum4-modal-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.forum4-modal-container::-webkit-scrollbar-thumb:hover {
    background: #5a67d8;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .modal-voting-section {
        grid-template-columns: 1fr;
    }
    
    .voting-chart {
        order: -1;
        min-height: 250px;
    }
    
    .forum4-modal-container {
        max-width: 100%;
        margin: 0 10px;
        border-radius: 20px;
    }
    
    .modal-header {
        padding: 70px 20px 20px 20px;
    }
    
    .poll-title {
        font-size: 22px;
    }
    
    .modal-rewards-banner {
        margin: 20px 20px 0 20px;
        padding: 16px;
    }
    
    .rewards-list {
        grid-template-columns: 1fr;
    }
    
    .option-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .vote-option {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .poll-title {
        font-size: 20px;
    }
    
    .option-text {
        font-size: 14px;
    }
    
    .forum4-modal-close {
        width: 40px;
        height: 40px;
        top: 16px;
        right: 16px;
    }
}

/* ============================================
   LOADING STATE
   ============================================ */

.forum4-modal-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 999998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.forum4-modal-loading p {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

/* ============================================
   LOGIN MODAL
   ============================================ */

.forum4-login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
}

.forum4-login-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.forum4-login-modal-container {
    background: linear-gradient(135deg, #1e2936 0%, #0f1419 100%);
    border: 2px solid #667eea;
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    padding: 48px 40px;
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(102, 126, 234, 0.5);
}

.forum4-login-modal-overlay.active .forum4-login-modal-container {
    transform: scale(1);
    opacity: 1;
}

body.light-mode .forum4-login-modal-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-color: #667eea;
}

.login-modal-icon {
    margin: 0 auto 24px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.login-modal-icon svg {
    stroke: #667eea;
}

body.light-mode .login-modal-icon svg {
    stroke: #5a67d8;
}

.login-modal-title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
}

body.light-mode .login-modal-title {
    color: #1e293b;
}

.login-modal-description {
    font-size: 15px;
    color: #a0aec0;
    line-height: 1.6;
    margin: 0 0 32px 0;
}

body.light-mode .login-modal-description {
    color: #64748b;
}

.login-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-button,
.register-button {
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid #667eea;
    color: #fff;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.login-button:hover {
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

.register-button {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.3);
    color: #667eea;
}

.register-button:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    transform: translateY(-2px);
}

body.light-mode .register-button {
    background: rgba(102, 126, 234, 0.08);
    border-color: rgba(102, 126, 234, 0.25);
    color: #5a67d8;
}

body.light-mode .register-button:hover {
    background: rgba(102, 126, 234, 0.15);
}

@media (max-width: 480px) {
    .forum4-login-modal-container {
        padding: 36px 24px;
    }
    
    .login-modal-icon {
        width: 80px;
        height: 80px;
    }
    
    .login-modal-title {
        font-size: 22px;
    }
}

/* ============================================
   MESSAGE MODALS (Centered & Professional)
   ============================================ */

.forum4-message-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 99999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.forum4-message-modal.active {
    opacity: 1;
}

.forum4-message-container {
    background: linear-gradient(135deg, #1e2936 0%, #0f1419 100%);
    border: 2px solid;
    border-radius: 24px;
    max-width: 480px;
    width: 100%;
    padding: 48px 40px;
    text-align: center;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.forum4-message-modal.active .forum4-message-container {
    transform: scale(1);
    opacity: 1;
}

body.light-mode .forum4-message-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

/* Success Style */
.forum4-message-container.success {
    border-color: #10b981;
    box-shadow: 0 25px 50px -12px rgba(16, 185, 129, 0.5);
}

/* Error Style */
.forum4-message-container.error {
    border-color: #ef4444;
    box-shadow: 0 25px 50px -12px rgba(239, 68, 68, 0.5);
}

/* Already Voted Style */
.forum4-message-container.already-voted {
    border-color: #f59e0b;
    box-shadow: 0 25px 50px -12px rgba(245, 158, 11, 0.5);
}

/* Login Required Style */
.forum4-message-container.login-required {
    border-color: #667eea;
    box-shadow: 0 25px 50px -12px rgba(102, 126, 234, 0.5);
}

.message-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes iconPop {
    0% { transform: scale(0) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.already-voted .message-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 191, 36, 0.2));
}

.already-voted .message-icon svg {
    stroke: #f59e0b;
}

.login-required .message-icon {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
}

.login-required .message-icon svg {
    stroke: #667eea;
}

.message-icon-simple {
    font-size: 64px;
    margin-bottom: 20px;
    animation: iconPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.forum4-message-container h3 {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
}

body.light-mode .forum4-message-container h3 {
    color: #1e293b;
}

.forum4-message-container p {
    font-size: 15px;
    color: #a0aec0;
    line-height: 1.6;
    margin: 0 0 32px 0;
}

body.light-mode .forum4-message-container p {
    color: #64748b;
}

.message-button,
.message-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid;
}

.message-button,
.message-button.primary,
.message-buttons a.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.message-button:hover,
.message-buttons a.primary:hover {
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

.message-buttons a.secondary {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    color: #667eea;
}

.message-buttons a.secondary:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.message-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .forum4-message-container {
        padding: 36px 24px;
    }
    
    .message-icon {
        width: 80px;
        height: 80px;
    }
    
    .forum4-message-container h3 {
        font-size: 22px;
    }
    
    .message-buttons {
        flex-direction: column;
    }
}

/* ============================================
   CASINO PREMIUM: Vote Confirmation Modal
   ============================================ */

.forum4-message-container.confirm-vote {
    border-color: #667eea;
    box-shadow: 0 25px 50px -12px rgba(102, 126, 234, 0.6);
    max-width: 500px;
}

.message-icon-large {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconBounce 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.message-icon-large::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 0.8; }
}

.message-icon-large svg {
    stroke: #667eea;
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.6));
    position: relative;
    z-index: 2;
}

.confirm-option {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    padding: 16px 24px;
    border-radius: 16px;
    margin: 16px 0;
    border: 2px solid rgba(102, 126, 234, 0.3);
    text-align: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

body.light-mode .confirm-option {
    color: #5a67d8;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.confirm-description {
    font-size: 15px;
    color: #a0aec0;
    margin-bottom: 32px;
}

body.light-mode .confirm-description {
    color: #64748b;
}

/* ============================================
   CASINO PREMIUM: Close Button (X)
   ============================================ */

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5);
}

.modal-close-btn svg {
    stroke: #ef4444;
    transition: stroke 0.3s;
}

.modal-close-btn:hover svg {
    stroke: #fff;
}

body.light-mode .modal-close-btn {
    background: rgba(239, 68, 68, 0.1);
}

body.light-mode .modal-close-btn svg {
    stroke: #dc2626;
}

/* ============================================
   CASINO PREMIUM: Button Styles
   ============================================ */

.message-button.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.message-button.primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.message-button.primary:hover::before {
    width: 300px;
    height: 300px;
}

.message-button.primary:hover {
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

.message-button.secondary {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    color: #667eea;
}

.message-button.secondary:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    transform: translateY(-2px);
}

.message-button.tertiary {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    margin-top: 12px;
}

.message-button.tertiary:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

body.light-mode .message-button.primary {
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

body.light-mode .message-button.secondary {
    background: rgba(102, 126, 234, 0.08);
    color: #5a67d8;
}

body.light-mode .message-button.tertiary {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

/* Responsive */
@media (max-width: 480px) {
    .message-icon-large {
        width: 100px;
        height: 100px;
    }
    
    .confirm-option {
        font-size: 18px;
        padding: 14px 20px;
    }
    
    .message-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .message-button {
        width: 100%;
    }
}

/* ============================================
   CASINO PREMIUM: Modal Container
   ============================================ */

.forum4-modal-container.premium {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: #667eea #2d3748;
}

.forum4-modal-container.premium::-webkit-scrollbar {
    width: 8px;
}

.forum4-modal-container.premium::-webkit-scrollbar-track {
    background: #2d3748;
    border-radius: 4px;
}

.forum4-modal-container.premium::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

/* ============================================
   CASINO PREMIUM: Header
   ============================================ */

.modal-premium-header {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.modal-poll-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(102, 126, 234, 0.3);
    position: relative;
}

.modal-poll-thumbnail::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 70%
    );
    animation: thumbnailShine 3s infinite;
}

@keyframes thumbnailShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.modal-poll-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-poll-header-content {
    flex: 1;
    min-width: 0;
}

.poll-category-badge-premium {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.poll-title-premium {
    font-size: 28px;
    font-weight: 700;
    color: var(--f4-text-primary);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.poll-description-premium {
    font-size: 15px;
    color: var(--f4-text-secondary);
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.poll-meta-premium {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.meta-icon {
    font-size: 18px;
}

.meta-label {
    font-size: 13px;
    color: var(--f4-text-secondary);
    font-weight: 600;
}

.meta-value {
    font-size: 14px;
    color: var(--f4-accent);
    font-weight: 700;
}

body.light-mode .modal-premium-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.03));
}

body.light-mode .poll-title-premium {
    color: #1e293b;
}

/* ============================================
   CASINO PREMIUM: Leader Banner
   ============================================ */

.modal-leader-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
    margin: 0;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.modal-leader-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: bannerShine 3s infinite;
}

@keyframes bannerShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.modal-leader-banner.is-leading {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.1));
    border-color: rgba(245, 158, 11, 0.3);
}

.modal-leader-banner.is-draw {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.1));
    border-color: rgba(102, 126, 234, 0.3);
}

.leader-icon {
    font-size: 48px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: leaderPulse 2s ease-in-out infinite;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

@keyframes leaderPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.leader-content {
    flex: 1;
}

.leader-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--f4-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.leader-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.leader-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.leader-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--f4-text-primary);
}

.leader-percentage {
    font-size: 24px;
    font-weight: 700;
    color: #f59e0b;
    text-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
}

.modal-leader-banner.is-draw .leader-percentage {
    color: #667eea;
    text-shadow: 0 2px 8px rgba(102, 126, 234, 0.5);
}

/* ============================================
   CASINO PREMIUM: Voting Section
   ============================================ */

.modal-voting-section-premium {
    padding: 32px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--f4-text-primary);
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.section-title svg {
    stroke: var(--f4-accent);
}

.voting-options-premium {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vote-option-premium {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--f4-bg-tertiary);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vote-option-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.vote-option-premium:hover::before {
    width: 8px;
}

.vote-option-premium.is-leader {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.05));
}

.vote-option-premium.is-leader::before {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.vote-option-premium.is-draw {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
}

.vote-option-premium.voted {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
}

.vote-option-premium.voted::before {
    background: linear-gradient(135deg, #10b981, #059669);
}

.option-thumbnail-premium {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.option-thumbnail-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.option-content-premium {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-header-premium {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.option-text-premium {
    font-size: 18px;
    font-weight: 700;
    color: var(--f4-text-primary);
}

.option-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.option-badge.leader {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.option-badge.draw {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.option-badge.voted {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.option-progress-bar-premium {
    width: 100%;
    height: 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-fill-premium {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.6);
    position: relative;
    overflow: hidden;
}

.progress-fill-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.progress-fill-premium.leader {
    background: linear-gradient(90deg, #f59e0b, #d97706);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

.option-stats-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-votes {
    font-size: 13px;
    color: var(--f4-text-secondary);
    font-weight: 600;
}

.stat-percentage {
    font-size: 20px;
    font-weight: 700;
    color: var(--f4-accent);
}

.vote-option-premium.is-leader .stat-percentage {
    color: #f59e0b;
}

/* ============================================
   CASINO PREMIUM: Charts Section
   ============================================ */

.modal-charts-section {
    padding: 32px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), transparent);
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.chart-container {
    background: var(--f4-bg-tertiary);
    padding: 24px;
    border-radius: 16px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(102, 126, 234, 0.1) 50%,
        transparent 70%
    );
    animation: chartShine 3s infinite;
}

@keyframes chartShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.chart-container canvas {
    max-height: 300px !important;
    position: relative;
    z-index: 2;
    animation: chartFadeIn 1s ease-out;
}

@keyframes chartFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.chart-label {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--f4-text-secondary);
    margin: 16px 0 0 0;
    position: relative;
    z-index: 2;
}

body.light-mode .chart-container {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Loading State */
.chart-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: chartSpin 0.8s linear infinite;
    z-index: 1;
}

@keyframes chartSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}


.chart-label {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--f4-text-secondary);
    margin: 16px 0 0 0;
}

/* ============================================
   CASINO PREMIUM: Rewards Section
   ============================================ */

.modal-rewards-section {
    padding: 32px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), transparent);
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.reward-card {
    background: var(--f4-bg-tertiary);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reward-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.1),
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s;
}

.reward-card:hover::before {
    opacity: 1;
}

.reward-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.reward-card.unlocked {
    border-color: #10b981;
}

.reward-card.unlocked:hover {
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.reward-card.locked {
    opacity: 0.6;
}

.reward-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
}

.reward-placeholder {
    width: 80px;
    height: 80px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.reward-info-card {
    text-align: center;
    width: 100%;
}

.reward-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--f4-text-primary);
    margin-bottom: 4px;
}

.reward-points-card {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--f4-accent);
}

.reward-status {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(102, 126, 234, 0.1);
    color: var(--f4-accent);
}

.reward-card.unlocked .reward-status {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.reward-card.locked .reward-status {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .modal-premium-header {
        flex-direction: column;
        padding: 24px;
    }
    
    .modal-poll-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .poll-title-premium {
        font-size: 24px;
    }
    
    .poll-meta-premium {
        flex-direction: column;
        gap: 12px;
    }
    
    .modal-leader-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .leader-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }
    
    .modal-voting-section-premium,
    .modal-charts-section,
    .modal-rewards-section {
        padding: 24px 16px;
    }
    
    .vote-option-premium {
        flex-direction: column;
        padding: 16px;
    }
    
    .option-thumbnail-premium {
        width: 100%;
        height: 150px;
    }
    
    .charts-grid,
    .rewards-grid {
        grid-template-columns: 1fr;
    }
}

body.light-mode .modal-voting-section-premium,
body.light-mode .modal-charts-section,
body.light-mode .modal-rewards-section {
    background: rgba(102, 126, 234, 0.03);
}

body.light-mode .vote-option-premium,
body.light-mode .chart-container,
body.light-mode .reward-card {
    background: #ffffff;
}

body.light-mode .option-text-premium,
body.light-mode .reward-title {
    color: #1e293b;
}

/* ============================================
   PREMIUM LOGIN REQUIRED MODAL
   ============================================ */

.forum4-message-container.login-required-premium {
    border-color: #667eea;
    box-shadow: 0 25px 50px -12px rgba(102, 126, 234, 0.6);
    max-width: 500px;
    padding: 48px 40px;
}

.login-description {
    font-size: 15px;
    color: #a0aec0;
    margin-bottom: 32px;
    line-height: 1.6;
}

body.light-mode .login-description {
    color: #64748b;
}

/* Benefits Section */
.login-benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 16px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.benefit-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    flex-shrink: 0;
}

.benefit-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--f4-text-primary);
}

body.light-mode .login-benefits {
    background: rgba(102, 126, 234, 0.08);
}

body.light-mode .benefit-item {
    background: rgba(255, 255, 255, 0.5);
}

body.light-mode .benefit-item:hover {
    background: rgba(255, 255, 255, 0.8);
}

body.light-mode .benefit-text {
    color: #1e293b;
}

/* Stacked Buttons */
.message-buttons-stacked {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.message-button.full-width {
    width: 100%;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    padding: 16px 24px;
}

.message-button.full-width svg {
    flex-shrink: 0;
}

/* Primary Button (Prijavi se) */
.message-button.primary.full-width {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid #667eea;
    color: #fff;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.message-button.primary.full-width::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.message-button.primary.full-width:hover::before {
    width: 400px;
    height: 400px;
}

.message-button.primary.full-width:hover {
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

/* Secondary Button (Registruj se) */
.message-button.secondary.full-width {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.3);
    color: #667eea;
}

.message-button.secondary.full-width:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    transform: translateY(-2px);
}

/* Tertiary Button (Zatvori) */
.message-button.tertiary.full-width {
    background: transparent;
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.message-button.tertiary.full-width:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

body.light-mode .message-button.primary.full-width {
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

body.light-mode .message-button.secondary.full-width {
    background: rgba(102, 126, 234, 0.08);
    color: #5a67d8;
}

body.light-mode .message-button.tertiary.full-width {
    color: #dc2626;
}

/* Responsive */
@media (max-width: 480px) {
    .forum4-message-container.login-required-premium {
        padding: 36px 24px;
    }
    
    .login-benefits {
        padding: 20px;
    }
    
    .benefit-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .benefit-text {
        font-size: 14px;
    }
    
    .message-button.full-width {
        padding: 14px 20px;
        font-size: 15px;
    }
}
/* ============================================
   FALLBACK: CSS-only Animated Bars
   ============================================ */

.chart-fallback {
    padding: 24px;
    background: var(--f4-bg-tertiary);
    border-radius: 16px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    margin-top: 24px;
}

.fallback-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fallback-bar-item {
    animation: barSlideIn 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes barSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fallback-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--f4-text-primary);
}

.fallback-bar-value {
    color: var(--f4-accent);
    font-weight: 700;
}

.fallback-bar-track {
    height: 24px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.fallback-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 12px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.6);
    position: relative;
    overflow: hidden;
}

.fallback-bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: fallbackShine 2s infinite;
}

@keyframes fallbackShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

body.light-mode .chart-fallback {
    background: #ffffff;
}
