/**
 * Sorteio Grid - Frontend Styles
 * @package Riviu\Modules\Sorteio
 * @since 2.0.0
 */

/* ========== RESET & BASE ========== */
.riviu-sorteio-wrap * {
    box-sizing: border-box;
}

.riviu-sorteio-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ========== HEADER ========== */
.riviu-sorteio-header {
    text-align: center;
    border-radius: 16px;
    margin-bottom: 30px;
    position: relative;
    color: #fff;
}

.riviu-sorteio-header.has-bg-image {
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.riviu-sorteio-header.has-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 16px;
    z-index: 0;
}

.riviu-sorteio-header h2 {
    font-size: clamp(1rem, 3vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 4px 0;
    position: relative;
    z-index: 1;
    color: #fff;
    line-height: 1.1;
}

.riviu-sorteio-header p {
    font-size: clamp(0.75rem, 1.5vw, 1.15rem);
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

/* ========== FILTROS ========== */
.riviu-sorteio-filters {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    padding: 4px 0;
}

.riviu-filter-btn {
    padding: 8px 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.riviu-filter-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.riviu-filter-btn.active {
    background: #fff;
    color: #1e293b;
    border-color: #fff;
}

/* Mobile: horizontal scroll with snap */
@media (max-width: 640px) {
    .riviu-sorteio-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 4px 8px 12px 8px;
        margin-left: -8px;
        margin-right: -8px;
        position: relative;
    }
    
    .riviu-sorteio-filters::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 8px;
        width: 40px;
        background: linear-gradient(to left, rgba(0,0,0,0.08), transparent);
        pointer-events: none;
        border-radius: 0 20px 20px 0;
    }
    
    .riviu-sorteio-filters::-webkit-scrollbar {
        display: none;
    }
    
    .riviu-filter-btn {
        scroll-snap-align: start;
        flex-shrink: 0;
    }
    
    .riviu-filter-btn:first-child {
        margin-left: 8px;
    }
    
    .riviu-filter-btn:last-child {
        margin-right: 8px;
    }
}

/* ========== GRID ========== */
.riviu-sorteio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.riviu-sorteio-grid.cols-1 { grid-template-columns: 1fr; }
.riviu-sorteio-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
.riviu-sorteio-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }

/* ========== CARD ========== */
.riviu-sorteio-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    animation: rivu-fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.riviu-sorteio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

@keyframes rivu-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.riviu-sorteio-card:nth-child(1) { animation-delay: 0.05s; }
.riviu-sorteio-card:nth-child(2) { animation-delay: 0.1s; }
.riviu-sorteio-card:nth-child(3) { animation-delay: 0.15s; }
.riviu-sorteio-card:nth-child(4) { animation-delay: 0.2s; }
.riviu-sorteio-card:nth-child(5) { animation-delay: 0.25s; }
.riviu-sorteio-card:nth-child(6) { animation-delay: 0.3s; }

/* Card Image */
.riviu-card-image {
    position: relative;
    overflow: hidden;
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    flex-shrink: 0;
}

.riviu-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.riviu-sorteio-card:hover .riviu-card-image img {
    transform: scale(1.05);
}

.riviu-card-image .placeholder-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

/* Status Badge */
.riviu-status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1.2;
    z-index: 2;
}

.riviu-status-badge.aberto {
    background: rgba(72, 187, 120, 0.9);
    color: #fff;
}

.riviu-status-badge.em-breve {
    background: rgba(237, 137, 54, 0.9);
    color: #fff;
}

.riviu-status-badge.aguardando {
    background: rgba(66, 153, 225, 0.9);
    color: #fff;
}

.riviu-status-badge.sorteado {
    background: rgba(159, 122, 234, 0.9);
    color: #fff;
}

.riviu-status-badge.pausado {
    background: rgba(160, 174, 192, 0.9);
    color: #fff;
}

/* Countdown Badge */
.riviu-countdown-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* Card Body */
.riviu-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.riviu-card-body h3 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.3;
}

.riviu-card-description {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Stats */
.riviu-card-stats {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    margin-bottom: 10px;
}

.riviu-card-stats .stat {
    text-align: center;
    flex: 1;
}

.riviu-card-stats .stat-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #667eea;
}

.riviu-card-stats .stat-label {
    font-size: 0.75rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Actions */
.riviu-card-actions {
    display: flex;
    gap: 10px;
}

.riviu-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    flex: 1;
    text-align: center;
}

.riviu-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.riviu-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: #fff;
}

.riviu-btn-secondary {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    color: #4a5568;
}

.riviu-btn-secondary:hover {
    border-color: #667eea;
    color: #667eea;
}

.riviu-btn-success {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: #fff;
}

.riviu-btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.riviu-btn-outline:hover {
    background: #667eea;
    color: #fff;
}

.riviu-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ========== MODAIS ========== */
.riviu-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: rivu-fadeIn 0.3s ease;
}

@keyframes rivu-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.riviu-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.riviu-modal-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: rivu-slideUp 0.3s ease;
}

.riviu-modal-container.modal-large {
    max-width: 750px;
}

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

.riviu-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9fafb;
}

.riviu-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.riviu-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.riviu-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.riviu-modal-body {
    padding: 24px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

/* ========== FORM (modal) ========== */
.riviu-form-group {
    margin-bottom: 20px;
}

.riviu-form-row {
    display: flex;
    gap: 15px;
}

.riviu-form-row .riviu-form-group {
    flex: 1;
}

.riviu-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.riviu-modal-body .riviu-form-group input,
.riviu-modal-body .riviu-form-group select,
.riviu-modal-body .riviu-form-group textarea,
.riviu-modal-body .riviu-contribuicao-form input,
.riviu-sorteio-wrap .riviu-form-group input,
.riviu-sorteio-wrap .riviu-form-group select,
.riviu-sorteio-wrap .riviu-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px;
    font-size: 14px;
    color: #1a202c !important;
    background: #fff !important;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.riviu-form-group select {
    background: #fff;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
}

.riviu-modal-body .riviu-form-group input:focus,
.riviu-modal-body .riviu-form-group select:focus,
.riviu-modal-body .riviu-form-group textarea:focus,
.riviu-modal-body .riviu-contribuicao-form input:focus {
    outline: none;
    border-color: #667eea !important;
    background: #fff !important;
    color: #1a202c !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.riviu-checkbox-group {
    margin: 20px 0;
}

.riviu-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.riviu-checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 3px 0 0 0;
}

.riviu-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* ========== CONTRIBUIÇÃO ========== */
.riviu-contribuicao-intro {
    text-align: center;
    margin-bottom: 24px;
}

.riviu-contribuicao-disclaimer {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    margin-top: 12px;
}

.riviu-contribuicao-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.riviu-valores-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.riviu-valor-btn {
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #1a202c;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 80px;
    text-align: center;
}

.riviu-valor-btn.selected,
.riviu-valor-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.riviu-payment-options {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.riviu-payment-option {
    flex: 1;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.riviu-payment-option:has(input:checked),
.riviu-payment-option:hover {
    border-color: #667eea;
    background: #eef2ff;
}

.riviu-payment-option input[type="radio"] {
    display: none;
}

/* ========== DETALHES (modal) ========== */
.riviu-detalhes-wrap {
    padding: 0;
}

/* Detalhes Header (avatar + title) */
.riviu-detalhes-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.riviu-detalhes-avatar {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.riviu-detalhes-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.riviu-detalhes-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a202c;
    line-height: 1.3;
}

.riviu-detalhes-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

.riviu-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.riviu-meta-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    border-radius: 6px;
}

.riviu-meta-text {
    display: flex;
    flex-direction: column;
}

.riviu-meta-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    font-weight: 600;
}

.riviu-meta-value {
    font-size: 14px;
    color: #374151;
    font-weight: 600;
}

.riviu-detalhes-stats-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.riviu-stat-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    flex: 1;
    justify-content: center;
}

.riviu-stat-chip-value {
    font-size: 1.4rem;
    font-weight: 800;
}

.riviu-stat-chip-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.riviu-detalhes-section {
    margin-bottom: 20px;
}

.riviu-detalhes-section h3 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: #374151;
    font-weight: 700;
    border-bottom: 2px solid #667eea;
    padding-bottom: 6px;
}

.riviu-galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.riviu-galeria-grid img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.riviu-galeria-grid img:hover {
    transform: scale(1.05);
}

.riviu-regulamento-box {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    max-height: 180px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
}

.riviu-detalhes-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

/* ========== EMPTY STATE ========== */
.riviu-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #a0aec0;
}

.riviu-empty-state .icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

/* ========== HEADER PROFILE ========== */
.riviu-header-profile {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 6px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.riviu-header-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== PIX QR CODE ========== */
.riviu-pix-qr-wrap {
    text-align: center;
    margin: 20px 0;
}

.riviu-pix-qr-wrap img {
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    padding: 8px;
    background: #fff;
}

.riviu-pix-copiaecola {
    background: #f0f4ff;
    padding: 14px 18px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 12px;
    word-break: break-all;
    margin: 12px 0;
    border: 1px solid #e2e8f0;
    color: #1a202c;
    max-height: 80px;
    overflow-y: auto;
}

/* ========== INSCRICAO VIEW ========== */
.riviu-inscricao-view {
    text-align: center;
}

.riviu-inscricao-view .riviu-field-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    text-align: left;
}

.riviu-inscricao-view .riviu-field-row .riviu-form-group {
    flex: 1;
}

/* ========== FOOTER ========== */
.riviu-sorteio-footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    color: #718096;
    font-size: 14px;
}

/* ========== LOADING ========== */
.riviu-loading {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    padding: 40px;
}

/* ========== MSG ========== */
.riviu-msg-success {
    background: #f0fff4;
    border: 2px solid #bbf7d0;
    color: #166534;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin: 16px 0;
}

.riviu-msg-error {
    background: #fff5f5;
    border: 2px solid #fed7d7;
    color: #9b2c2c;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin: 16px 0;
}

/* ========== RESULTADO / SLOT MACHINE ========== */
.riviu-resultado-wrap {
    text-align: center;
}

.riviu-resultado-stats {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.riviu-slot-machine {
    position: relative;
    margin: 20px auto;
    max-width: 380px;
}

.riviu-slot-viewport {
    height: 70px;
    overflow: hidden;
    border-radius: 10px;
    border: 2px solid #667eea;
    background: #f9fafb;
    position: relative;
}

.riviu-slot-display {
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    transition: transform 0.03s ease, opacity 0.03s ease, filter 0.03s ease;
}

.riviu-slot-display.riviu-slot-winner {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #48bb78;
}

.riviu-slot-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.2;
}

.riviu-slot-city {
    font-size: 11px;
    color: #718096;
    line-height: 1.2;
    margin-top: 2px;
}

.riviu-slot-winner .riviu-slot-name {
    color: #667eea;
}

.riviu-slot-machine.done .riviu-slot-viewport {
    border-color: #48bb78;
    box-shadow: 0 0 20px rgba(72, 187, 120, 0.3);
}

.riviu-slot-pointer {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #667eea;
}

.riviu-slot-machine.done .riviu-slot-pointer {
    color: #48bb78;
}

/* Winner Reveal */
.riviu-winner-reveal {
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.riviu-winner-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    animation: riviu-scaleIn 0.5s ease;
}

@keyframes riviu-scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.riviu-winner-name {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 8px 0;
    color: #fff;
}

.riviu-winner-id {
    background: rgba(255,255,255,0.2);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.riviu-winner-city {
    margin: 12px 0 0;
    opacity: 0.9;
    font-size: 14px;
    color: #fff;
}

/* Confetti */
.riviu-confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    top: -10px;
    animation: riviu-confettiFall linear forwards;
    opacity: 0.9;
}

@keyframes riviu-confettiFall {
    0% { top: -10px; opacity: 1; transform: rotate(0deg) translateX(0); }
    100% { top: 100%; opacity: 0; transform: rotate(720deg) translateX(40px); }
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 1024px) {
    .riviu-sorteio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .riviu-sorteio-grid {
        grid-template-columns: 1fr;
    }

    .riviu-sorteio-header h2 {
        font-size: 1.8rem;
    }

    .riviu-form-row {
        flex-direction: column;
    }

    .riviu-modal {
        padding: 10px;
    }

    .riviu-modal-container {
        max-width: 100%;
        border-radius: 12px;
    }

    .riviu-card-actions {
        flex-direction: column;
    }

    .riviu-detalhes-actions {
        flex-direction: column;
        align-items: center;
    }

    .riviu-valores-grid {
        flex-direction: column;
    }

    .riviu-sorteio-filters {
        justify-content: flex-start;
        padding: 4px 8px;
    }

    .riviu-card-image {
        width: 120px;
        min-width: 120px;
        max-width: 120px;
    }
}
