/* =====================================================================
   PORTAL DO SERVIDOR - DESIGN FESTIVO E RESPONSIVO MOBILE
===================================================================== */

/* Topo Safira com Linha Dourada Nobre */
.user-header {
    background: var(--primary-gradient);
    border-bottom: 3px solid var(--secondary);
    padding: 14px 20px;
    box-shadow: 0 4px 20px rgba(0, 53, 148, 0.25);
    position: sticky;
    top: 0;
    z-index: 100;
}

.user-header-content {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--secondary-gradient);
    color: #1A1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 0 16px rgba(255, 184, 0, 0.4);
}

.brand-area h1 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.2;
}

.brand-area p {
    font-size: 0.75rem;
    color: #E2E8F0;
    font-weight: 600;
}

.user-badge-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: #FFFFFF;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-logout {
    background: transparent;
    border: none;
    color: #FECACA;
    font-size: 1.15rem;
    cursor: pointer;
    padding: 6px;
    transition: var(--transition);
}

.btn-logout:hover {
    color: #FFFFFF;
    transform: scale(1.1);
}

/* Área de Login */
.main-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    text-align: center;
    position: relative;
    border-top: 5px solid var(--secondary);
}

.login-hero-icon {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: var(--secondary-light);
    color: var(--secondary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    box-shadow: var(--shadow-gold);
    animation: pulseIcon 3s ease-in-out infinite;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.login-card h2 {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 8px;
}

.login-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Botões do Quiz de Segurança com Medalhões A, B, C, D */
.grid-opcoes-quiz {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-opcao-quiz {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 700;
    background: #FFFFFF;
    color: var(--text-main);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}

.quiz-medalhao {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-family: var(--font-heading);
    flex-shrink: 0;
    transition: var(--transition);
}

.btn-opcao-quiz:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-opcao-quiz:hover .quiz-medalhao {
    background: var(--primary);
    color: var(--secondary);
}

/* Bilhete / Voucher Estilizado de Alta Definição */
.ticket-cupom {
    border: 2px dashed var(--primary);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #FFFFFF 0%, #F0FDF4 100%);
    padding: 28px 24px;
    position: relative;
    box-shadow: inset 0 0 0 4px #FFFFFF, var(--shadow-lg);
    text-align: center;
}

/* Recortes Laterais Vazados de Ingresso Físico */
.ticket-cupom::before,
.ticket-cupom::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 24px;
    height: 24px;
    background: #0B132B; /* Fundo do modal para contraste perfeito */
    border-radius: 50%;
    transform: translateY(-50%);
}

.ticket-cupom::before { left: -14px; border-right: 2px dashed var(--primary); }
.ticket-cupom::after  { right: -14px; border-left: 2px dashed var(--primary); }

.ticket-codigo {
    font-size: 1.7rem;
    font-weight: 900;
    color: #047857;
    letter-spacing: 2.5px;
    margin: 10px 0;
    font-family: var(--font-mono);
    background: rgba(5, 150, 105, 0.08);
    padding: 10px;
    border-radius: var(--radius-sm);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

/* Faixa de Brilho sobre o Código do Voucher */
.ticket-codigo::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: rotate(25deg);
    animation: shimmerCode 3s infinite;
}

@keyframes shimmerCode {
    0% { left: -60%; }
    50%, 100% { left: 140%; }
}

/* Lista de Eventos no Celular */
.eventos-container {
    max-width: 640px;
    margin: 20px auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.evento-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition);
}

.evento-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.evento-capa {
    width: 85px;
    height: 85px;
    flex-shrink: 0;
    background-color: var(--primary-light);
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 18px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}