* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, Helvetica, sans-serif; }
body { background-color: #05010a; color: #e0d4f5; min-height: 100vh; overflow-x: hidden; position: relative; }
.stars { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-image: radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0,0,0,0)), radial-gradient(2px 2px at 40px 70px, #ffffff, rgba(0,0,0,0)), radial-gradient(2px 2px at 50px 160px, #ffffff, rgba(0,0,0,0)), radial-gradient(2px 2px at 90px 40px, #ffffff, rgba(0,0,0,0)); background-repeat: repeat; background-size: 200px 200px; animation: drift 100s linear infinite; z-index: -2; opacity: 0.4; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-200px); } }
.glow-orb { position: fixed; border-radius: 50%; filter: blur(100px); z-index: -1; animation: float 10s infinite alternate ease-in-out; }
.orb-1 { width: 400px; height: 400px; background: rgba(138, 43, 226, 0.4); top: -100px; left: -100px; }
.orb-2 { width: 500px; height: 500px; background: rgba(75, 0, 130, 0.4); bottom: -150px; right: -100px; animation-delay: -5s; }
@keyframes float { 0% { transform: translate(0, 0); } 100% { transform: translate(30px, 50px); } }
.glass-panel { background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 2rem; box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5); }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 2rem; background: rgba(15, 5, 30, 0.7); backdrop-filter: blur(25px); border: 1px solid rgba(177, 84, 255, 0.3); border-radius: 50px; box-shadow: 0 10px 30px rgba(138, 43, 226, 0.2), inset 0 0 15px rgba(177, 84, 255, 0.1); position: sticky; top: 1.5rem; z-index: 100; margin: 1.5rem 5%; }
.nav-brand-container { display: flex; align-items: center; gap: 15px; }
.logo-link { display: flex; align-items: center; text-decoration: none; }
.menu-logo { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 10px rgba(177, 84, 255, 0.4); transition: transform 0.3s ease; }
.user-display-name { color: #ffffff; font-weight: bold; font-size: 1.1rem; text-shadow: 0 0 5px rgba(177, 84, 255, 0.5); border-left: 1px solid rgba(177, 84, 255, 0.4); padding-left: 15px; }
.nav-links { list-style: none; display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { color: #a99ec2; text-decoration: none; font-weight: 600; font-size: 1.1rem; padding: 0.5rem 1rem; border-radius: 10px; transition: all 0.4s ease; display: block; }
.nav-links a.active { color: #ffffff; background: rgba(177, 84, 255, 0.15); box-shadow: 0 0 15px rgba(177, 84, 255, 0.3); transform: translateY(-2px); }
.logout-link { color: #ff6b6b !important; }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 101; padding: 5px; }
.hamburger span { width: 35px; height: 4px; background: linear-gradient(90deg, #b154ff, #4da6ff); border-radius: 4px; transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
.statistics-main { padding: 0 5% 2rem 5%; margin-top: 2rem; display: flex; flex-direction: column; align-items: center; }
.page-title { margin-bottom: 2rem; color: #ffffff; font-weight: 600; text-shadow: 0 0 10px rgba(177, 84, 255, 0.5); text-align: center; }
.filter-section { width: 100%; max-width: 1400px; margin: 0 auto 1.5rem auto; display: flex; justify-content: flex-start; z-index: 50; position: relative; padding: 0 10px; }
.filter-dropdown { position: relative; }
.filter-btn { padding: 12px 24px; font-size: 1rem; width: auto; border: 1px solid rgba(177, 84, 255, 0.4); background: rgba(15, 5, 30, 0.9); }
.filter-content { display: none; position: absolute; top: calc(100% + 10px); left: 0; width: 300px; max-height: 400px; overflow-y: auto; padding: 1.5rem; z-index: 100; flex-direction: column; gap: 15px; }
.filter-content.active { display: flex; }
.filter-item { display: flex; align-items: center; gap: 10px; color: #e0d4f5; cursor: pointer; font-size: 1.1rem; user-select: none; }
.filter-item input { width: 20px; height: 20px; cursor: pointer; accent-color: #b154ff; }
.year-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 10px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; }
.statistics-container { display: flex; gap: 2rem; width: 100%; max-width: 1400px; justify-content: center; align-items: flex-start; }
.stat-panel { flex: 1; max-width: 600px; display: flex; flex-direction: column; max-height: 70vh; }
.stat-panel h2 { color: #4da6ff; margin-bottom: 1.5rem; font-size: 1.3rem; text-align: center; }
.table-wrapper { overflow-y: auto; overflow-x: auto; flex-grow: 1; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); }
.table-wrapper::-webkit-scrollbar { width: 8px; height: 8px; }
.table-wrapper::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 10px; }
.table-wrapper::-webkit-scrollbar-thumb { background: rgba(177, 84, 255, 0.5); border-radius: 10px; }
.glass-table { width: 100%; border-collapse: collapse; min-width: 300px; }
.glass-table th { background: rgba(0,0,0,0.6); color: #fff; padding: 15px; position: sticky; top: 0; z-index: 10; font-weight: bold; text-align: center; border-bottom: 2px solid #4da6ff; }
.glass-table td { padding: 12px 15px; border-bottom: 1px solid rgba(255,255,255,0.05); text-align: center; color: #e0d4f5; }
.glass-table tbody tr { transition: background 0.3s; }
.lotto-balls { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; }
.ball { width: 30px; height: 30px; background: linear-gradient(135deg, #b154ff, #4da6ff); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 0.9rem; box-shadow: 0 0 8px rgba(177, 84, 255, 0.5); }
.freq-bar-container { width: 100%; background: rgba(0,0,0,0.3); height: 10px; border-radius: 5px; margin-top: 5px; overflow: hidden; }
.freq-bar { height: 100%; background: linear-gradient(90deg, #4da6ff, #b154ff); border-radius: 5px; transition: width 0.5s ease; }
.action-btn { width: 100%; padding: 14px; background: linear-gradient(90deg, #b154ff, #4da6ff); border: none; border-radius: 30px; color: white; cursor: pointer; font-size: 1.1rem; font-weight: bold; transition: all 0.3s ease; }
.auth-input { width: 100%; padding: 14px; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(138, 43, 226, 0.4); border-radius: 8px; color: #ffffff; font-size: 1rem; outline: none; transition: all 0.3s; }
.generator-section { width: 100%; max-width: 1400px; margin-top: 2rem; padding: 0 10px; display: flex; justify-content: center; }
.generator-panel { width: 100%; max-width: 1232px; padding: 2rem; display: flex; flex-direction: column; align-items: center; }
.generator-panel h2 { color: #4da6ff; margin-bottom: 0.5rem; font-size: 1.5rem; text-align: center; }
.generator-desc { color: #a99ec2; margin-bottom: 2rem; text-align: center; font-size: 1rem; }
.generator-controls { display: flex; gap: 15px; justify-content: center; max-width: 400px; margin: 0 auto 2rem auto; width: 100%; }
.generator-controls .auth-input { margin: 0; }
.generator-controls .action-btn { margin: 0; width: auto; padding: 0 30px; }
.generated-tickets { display: flex; flex-direction: column; gap: 15px; width: 100%; max-width: 600px; }
.ticket-row { display: flex; align-items: center; justify-content: space-between; background: rgba(0,0,0,0.3); padding: 15px 20px; border-radius: 15px; border: 1px solid rgba(255,255,255,0.05); flex-wrap: wrap; gap: 10px; }
.ticket-label { color: #a99ec2; font-weight: bold; font-size: 1.1rem; }
@media (hover: hover) {
.menu-logo:hover { transform: scale(1.1) rotate(5deg); box-shadow: 0 0 20px rgba(77, 166, 255, 0.7); }
.nav-links a:hover, .nav-links a.active { color: #ffffff; background: rgba(177, 84, 255, 0.15); box-shadow: 0 0 15px rgba(177, 84, 255, 0.3); transform: translateY(-2px); }
.logout-link:hover { background: rgba(255, 107, 107, 0.15) !important; box-shadow: 0 0 15px rgba(255, 107, 107, 0.3) !important; }
.glass-table tbody tr:hover { background: rgba(177, 84, 255, 0.15); }
.filter-btn:hover, #generate-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(77, 166, 255, 0.6); }
}
@media (max-width: 1024px) {
.statistics-container { flex-direction: column; align-items: center; }
.stat-panel { width: 100%; max-width: 100%; max-height: 50vh; }
}
@media (max-width: 768px) {
.navbar { position: relative; margin: 1rem 3%; padding: 0.8rem 1.5rem; border-radius: 30px; z-index: 100; }
.nav-brand-container { gap: 10px; }
.user-display-name { border-left: 1px solid rgba(177, 84, 255, 0.4); padding-left: 10px; font-size: 1rem; }
.hamburger { display: flex; }
.nav-links { position: absolute; top: calc(100% + 15px); left: 0; width: 100%; background: rgba(15, 5, 30, 0.98); backdrop-filter: blur(25px); flex-direction: column; justify-content: flex-start; align-items: stretch; border: 1px solid rgba(177, 84, 255, 0.3); border-radius: 20px; box-shadow: 0 15px 30px rgba(0,0,0,0.6); max-height: 0; overflow-y: auto; overflow-x: hidden; transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out; opacity: 0; z-index: 1000; gap: 0; }
.nav-links.active { max-height: 500px; padding: 1.5rem 0; opacity: 1; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); background: #4da6ff; }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); background: #4da6ff; }
.nav-links a { font-size: 1.2rem; padding: 1rem 2rem; width: 100%; text-align: center; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav-links li:last-child a { border-bottom: none; }
.filter-section { justify-content: center; }
.filter-content { width: 100%; max-width: 300px; left: 50%; transform: translateX(-50%); }
.generator-controls { flex-direction: column; }
.generator-controls .action-btn { width: 100%; padding: 14px; }
.ticket-row { justify-content: center; flex-direction: column; }
}