/* =============================================
   🎮 PC GAMING GIVEAWAY - MODERN STYLES
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #12122a;
    --bg-card: #1a1a3e;
    --bg-card-hover: #222255;
    --text-primary: #ffffff;
    --text-secondary: #b0b0d0;
    --text-muted: #6a6a8a;
    --accent-1: #7c3aed;
    --accent-2: #3b82f6;
    --accent-3: #06b6d4;
    --accent-glow: rgba(124, 58, 237, 0.3);
    --gradient-main: linear-gradient(135deg, #7c3aed, #3b82f6, #06b6d4);
    --gradient-card: linear-gradient(145deg, rgba(124, 58, 237, 0.1), rgba(59, 130, 246, 0.05));
    --gradient-button: linear-gradient(135deg, #7c3aed, #3b82f6);
    --gradient-button-hover: linear-gradient(135deg, #6d28d9, #2563eb);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --border-color: rgba(124, 58, 237, 0.2);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 60px rgba(124, 58, 237, 0.05);
    --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.3), 0 0 40px rgba(59, 130, 246, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-display: 'Orbitron', monospace;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Rajdhani', sans-serif;
}

/* ---- Reset & Base ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ---- Animated Background ---- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* ---- Animated Grid Overlay ---- */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
}

/* ---- Floating Particles ---- */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-1);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-up linear infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* ---- Container ---- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
    position: relative;
}

/* ---- Header ---- */
header {
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
    position: relative;
}

.logo-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.logo-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-main);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow-glow);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.3); }
    50% { box-shadow: 0 0 40px rgba(124, 58, 237, 0.6), 0 0 60px rgba(59, 130, 246, 0.2); }
}

header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
}

header .subtitle {
    font-family: var(--font-accent);
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ---- Ticket Counter / Progress ---- */
.ticket-counter {
    margin: 1.5rem auto;
    max-width: 500px;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.counter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.counter-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.counter-numbers {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-bar-wrapper {
    width: 100%;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 12px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    z-index: 1;
}

.counter-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 0.6rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---- Navigation ---- */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
}

nav a:hover {
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.1);
}

nav a.active {
    color: var(--text-primary);
    background: var(--gradient-button);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

#welcome-user {
    color: var(--accent-3);
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

#auth-links, #user-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.separator {
    color: var(--text-muted);
}

/* ---- Views ---- */
.view {
    display: none;
    animation: fadeIn 0.4s ease;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Cards / Sections ---- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: var(--shadow-card), 0 0 30px rgba(124, 58, 237, 0.05);
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.section-title .icon {
    font-size: 1.5rem;
}

.section-title .gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Prize Section ---- */
.prize-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .prize-grid {
        grid-template-columns: 1fr;
    }
}

.prize-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.prize-item:hover {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.2);
    transform: translateX(5px);
}

.prize-item .prize-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-main);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.prize-item .prize-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prize-item .prize-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* ---- Rules Section ---- */
.rules-list {
    list-style: none;
    counter-reset: rule-counter;
}

.rules-list li {
    counter-increment: rule-counter;
    padding: 1rem 1rem 1rem 3.5rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    line-height: 1.6;
}

.rules-list li:last-child {
    border-bottom: none;
}

.rules-list li::before {
    content: counter(rule-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

.rules-list li strong {
    color: var(--text-primary);
}

/* ---- Payment Section ---- */
.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .payment-grid {
        grid-template-columns: 1fr;
    }
}

.payment-method {
    text-align: center;
    padding: 2rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: rgba(124, 58, 237, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.payment-method .pay-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.payment-method h3 {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.payment-method .pay-detail {
    font-size: 1.1rem;
    color: var(--accent-3);
    font-weight: 600;
    padding: 0.5rem;
    background: rgba(6, 182, 212, 0.1);
    border-radius: var(--radius-sm);
    margin: 0.5rem 0;
    font-family: var(--font-display);
    letter-spacing: 1px;
}

.payment-method .pay-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
}

/* ---- Forms ---- */
.form-container {
    max-width: 480px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input[type="file"] {
    padding: 0.7rem;
    cursor: pointer;
}

.form-input[type="file"]::file-selector-button {
    padding: 0.5rem 1rem;
    background: var(--gradient-button);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.form-input[type="file"]::file-selector-button:hover {
    background: var(--gradient-button-hover);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-button);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-button-hover);
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.5);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-success {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
}

.btn-success:hover {
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
}

.btn-danger:hover {
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ---- Error / Success Messages ---- */
.msg {
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
    display: none;
    animation: slideIn 0.3s ease;
}

.msg.show {
    display: block;
}

.msg-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.msg-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Tables ---- */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    background: rgba(124, 58, 237, 0.1);
    padding: 1rem 1.2rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

tbody td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--text-primary);
}

tbody tr {
    transition: background 0.2s ease;
}

tbody tr:hover {
    background: rgba(124, 58, 237, 0.05);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ---- Status Badges ---- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-approved {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ---- Ticket Grid ---- */
.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.ticket-card {
    background: var(--gradient-card);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.8rem 0.5rem;
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-3);
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.ticket-card::before {
    content: '🎫';
    display: block;
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.ticket-card:hover {
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.1);
}

.tickets-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---- PC Gallery (public) ---- */
.pc-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.pc-gallery .foto-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    background: var(--bg-secondary);
}

.pc-gallery .foto-item:hover {
    border-color: rgba(124, 58, 237, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.pc-gallery .foto-item img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .pc-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Actions area ---- */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ---- CTA Login Card ---- */
.cta-login-card {
    text-align: center;
    border: 2px solid rgba(124, 58, 237, 0.3);
    background: linear-gradient(145deg, rgba(124, 58, 237, 0.12), rgba(59, 130, 246, 0.08));
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.1);
    animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% { border-color: rgba(124, 58, 237, 0.3); }
    50% { border-color: rgba(6, 182, 212, 0.5); }
}

.cta-login-content {
    padding: 1rem 0;
}

.cta-login-icon {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.cta-login-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-login-buttons .btn {
    min-width: 200px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

@media (max-width: 480px) {
    .cta-login-buttons .btn {
        min-width: 100%;
    }
}

/* ---- Wider form for submission view ---- */
#submission-view .form-container {
    max-width: 640px;
}

/* ---- Submission Step 1 - Payment Card ---- */
.submission-payment-card {
    max-width: 800px;
    margin: 0 auto;
}

.step-description {
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.accent-highlight {
    color: var(--accent-3);
    font-weight: 600;
}

.step-payment-grid {
    margin-bottom: 2rem;
}

.pay-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.paypal-link-wrapper {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.paypal-link {
    color: var(--accent-3);
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-all;
}

.paypal-link:hover {
    color: #22d3ee;
    text-decoration: underline;
}

/* ---- Step Confirmation Box ---- */
.step-confirmation-box {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(124, 58, 237, 0.05));
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: var(--radius-lg);
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.step-confirmation-box:hover {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.08);
}

.step-confirmation-icon {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

.step-confirmation-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

/* ---- Large Button ---- */
.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    min-width: 320px;
}

@media (max-width: 480px) {
    .btn-lg {
        min-width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ---- PayPal Amigos e Familiares Badge ---- */
.paypal-ff-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0.6rem auto;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(245, 158, 11, 0.15));
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: var(--radius-sm);
    color: #fbbf24;
    font-size: 0.85rem;
    font-weight: 600;
    max-width: 260px;
    line-height: 1.4;
    animation: pulse-badge 2s ease-in-out infinite;
}

.paypal-ff-badge strong {
    color: #f87171;
    font-weight: 700;
}

@keyframes pulse-badge {
    0%, 100% { border-color: rgba(239, 68, 68, 0.35); }
    50% { border-color: rgba(239, 68, 68, 0.7); box-shadow: 0 0 12px rgba(239, 68, 68, 0.15); }
}

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.95rem;
}

/* ---- Loading Spinner ---- */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent-1);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.4);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    header {
        padding: 1.5rem 0.5rem 1rem;
    }

    header h1 {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    .logo-icon {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
    }

    .glass-card {
        padding: 1.2rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    nav {
        gap: 0.5rem;
    }

    nav a {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .counter-numbers {
        font-size: 1.1rem;
    }

    .prize-item {
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    thead th, tbody td {
        padding: 0.7rem 0.8rem;
        font-size: 0.8rem;
    }

    .tickets-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }

    .ticket-card {
        font-size: 0.75rem;
        padding: 0.6rem 0.3rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.1rem;
    }

    .form-input {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }
}

/* ---- User Dropdown FINAL ---- */
nav { overflow: visible !important; }
#user-links { flex-wrap: nowrap; align-items: center; }
.user-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.user-dropdown-trigger {
    color: var(--accent-3);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: rgba(6,182,212,0.1);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(6,182,212,0.2);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    line-height: 1.4;
}
.user-dropdown-trigger:hover { background: rgba(6,182,212,0.2); }
.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0,0,0,0.8), 0 0 0 1px rgba(124,58,237,0.15);
    z-index: 999999;
    overflow: hidden;
    padding: 0.3rem;
}
.user-dropdown.open .user-dropdown-menu {
    display: block;
    animation: dropdownIn 0.2s ease;
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.user-dropdown-menu a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem !important;
    color: #fca5a5 !important;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: var(--radius-sm) !important;
    transition: all 0.2s;
}
.user-dropdown-menu a:hover { 
    background: rgba(239,68,68,0.15) !important; 
    color: #f87171 !important;
}

/* ---- Foto overlay (lightbox trigger) ---- */
.foto-item { cursor: pointer; }
.foto-item { position: relative; }
.foto-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.45);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; opacity: 0; transition: opacity 0.2s ease;
    border-radius: var(--radius-sm);
    pointer-events: none;
}
.foto-item:hover .foto-overlay { opacity: 1; }

