/* ============================================
   PUBLIC FRONTEND - Premium Dark UI Styles
   ============================================ */

/* Floating Navbar */
.public-navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 40px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.navbar-links a.nav-link {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar-links a.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.8);
}

.navbar-links a.nav-link:hover {
    color: var(--text-white);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.navbar-links a.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 140px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(236, 72, 153, 0.15) 35%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: pulseOrb 8s infinite alternate ease-in-out;
}

@keyframes pulseOrb {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.hero h1 {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    text-shadow: none;
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 40px;
    font-weight: 400;
}

/* Premium Raffle Cards */
.rifas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
    padding: 20px 0 80px;
}

.rifa-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
}

.rifa-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
}

.rifa-card:hover {
    transform: translateY(-10px);
    border-color: rgba(244, 63, 94, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 30px rgba(244, 63, 94, 0.1);
}

.rifa-card-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 65%;
    overflow: hidden;
    background: transparent;
}

.rifa-card-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
}

.rifa-card:hover .rifa-card-img {
    transform: scale(1.1);
    opacity: 1;
}

.rifa-badge-status {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.rifa-card-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rifa-card-body h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.rifa-prize {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.rifa-stats-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-mini-item { text-align: center; }

.stat-mini-val {
    font-weight: 800;
    font-family: 'Outfit';
    font-size: 20px;
    color: var(--text-primary);
    text-shadow: none;
}

.stat-mini-lbl {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.rifa-buy-area {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.price-tag { display: flex; flex-direction: column; }
.price-tag .amount {
    font-family: 'Outfit';
    font-size: 32px;
    font-weight: 900;
    color: var(--success);
    line-height: 1;
    text-shadow: none;
}
.price-tag .lbl { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px;}

/* Detail Page */
.rifa-detail-hero { padding: 80px 0; position: relative; }
.rifa-detail-content { display: grid; grid-template-columns: 1.2fr 450px; gap: 40px; }

.rifa-img-large {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.05);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.buy-sticky { position: sticky; top: 120px; }

/* Packages Options */
.package-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.package-option:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(244, 63, 94, 0.3);
}

.package-option.selected {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--primary);
    box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.2), 0 0 15px rgba(139, 92, 246, 0.2);
}

.pkg-name { font-family: 'Outfit'; font-weight: 700; font-size: 16px; color: var(--text-white); text-transform: uppercase; letter-spacing: 0.5px;}
.pkg-price { font-family: 'Outfit'; font-weight: 900; font-size: 20px; color: var(--success); text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);}

.qty-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    padding: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.qty-btn {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
}

.qty-btn:hover { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 10px rgba(139, 92, 246, 0.5); }

.qty-input {
    width: 80px; text-align: center;
    font-size: 24px; font-family: 'Outfit'; font-weight: 900;
    background: transparent; border: none; color: var(--success);
    text-shadow: none;
}
.qty-input:focus { outline: none; }

/* Numbers Auth Tag */
.numbers-display { display: flex; flex-wrap: wrap; gap: 12px; }
.number-tag {
    background: var(--gradient-primary);
    color: #fff;
    font-family: 'Outfit'; font-weight: 900; font-size: 22px;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Footer */
.public-footer {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.public-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-title {
    font-family: 'Outfit';
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    padding: 8px 0;
    font-size: 15px;
}

.footer-links a:hover { color: var(--primary-light); text-shadow: 0 0 8px rgba(167, 139, 250, 0.6); }

/* Ticket Grid public visible */
.ticket-number.disponible { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255,255,255,0.05); color: var(--text-muted);}
.ticket-number.vendido { background: rgba(0, 0, 0, 0.5); border-color: rgba(255,255,255,0.02); color: rgba(255,255,255,0.1); }
.ticket-number.mio { background: var(--gradient-primary); color: #fff; border: none; box-shadow: 0 0 20px rgba(236, 72, 153, 0.6); font-weight: 900;}

/* Responsive */
@media (max-width: 992px) {
    .rifa-detail-content { grid-template-columns: 1fr; }
    .hero h1 { font-size: 56px; }
}

@media (max-width: 768px) {
    .navbar-links { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 42px; }
}

/* Auth Pages */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 85px);
    padding: 40px 20px;
    position: relative;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 0 30px rgba(244, 63, 94, 0.1);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: var(--gradient-primary);
}

.auth-brand {
    text-align: center;
    margin-bottom: 32px;
}

.auth-brand h1 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--text-primary);
    text-shadow: none;
}

.auth-brand p {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

.auth-links {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-links a { font-weight: 700; color: var(--primary-light); }