:root{color-scheme:dark;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5;--bg-primary: #0b0f19;--bg-secondary: #111827;--bg-card: #1a1f2e;--bg-hover: #242b3d;--border: #2a3149;--text-primary: #f0f2f5;--text-secondary: #8b95a5;--accent: #3b82f6;--accent-glow: rgba(59, 130, 246, .3);--green: #22c55e;--green-glow: rgba(34, 197, 94, .4);--red: #ef4444;--orange: #f59e0b;--purple: #a855f7}*{box-sizing:border-box;margin:0;padding:0}html,body,#root{min-height:100vh;background:var(--bg-primary);color:var(--text-primary)}.app{min-height:100vh;display:flex;flex-direction:column}.header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.5rem;border-bottom:1px solid var(--border);background:var(--bg-secondary);position:sticky;top:0;z-index:50}.header-left{display:flex;align-items:center;gap:.75rem}.logo-icon{width:32px;height:32px;background:var(--accent);border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:1rem;box-shadow:0 0 12px var(--accent-glow)}.header h1{font-size:1.15rem;font-weight:700;letter-spacing:-.02em}.header-right{display:flex;align-items:center;gap:1rem}.live-badge{display:flex;align-items:center;gap:.5rem;font-size:.8rem;color:var(--green);font-weight:600}.live-dot{width:8px;height:8px;border-radius:50%;background:var(--green);animation:pulse 1.5s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1;box-shadow:0 0 0 0 var(--green-glow)}50%{opacity:.7;box-shadow:0 0 0 6px transparent}}.time-range{display:flex;gap:.25rem}.time-btn{padding:.35rem .75rem;border-radius:6px;border:1px solid var(--border);background:transparent;color:var(--text-secondary);font-size:.78rem;cursor:pointer;transition:all .15s}.time-btn:hover{background:var(--bg-hover);color:var(--text-primary)}.time-btn.active{background:var(--accent);color:#fff;border-color:var(--accent)}.main{flex:1;padding:1.25rem;display:grid;grid-template-columns:1fr 320px;grid-template-rows:auto 1fr;gap:1.25rem;max-width:1600px;margin:0 auto;width:100%}.stats-row{grid-column:1 / -1;display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}.stat-card{background:var(--bg-card);border:1px solid var(--border);border-radius:12px;padding:1.15rem 1.25rem;display:flex;flex-direction:column;gap:.35rem;transition:border-color .2s}.stat-card:hover{border-color:var(--accent)}.stat-label{font-size:.78rem;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.05em;font-weight:500}.stat-value{font-size:1.65rem;font-weight:700;letter-spacing:-.02em}.stat-change{font-size:.78rem;font-weight:600;display:flex;align-items:center;gap:.25rem}.stat-change.up{color:var(--green)}.stat-change.down{color:var(--red)}.map-section{background:var(--bg-card);border:1px solid var(--border);border-radius:12px;overflow:hidden;display:flex;flex-direction:column}.section-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-bottom:1px solid var(--border)}.section-title{font-size:.95rem;font-weight:600}.map-container{flex:1;position:relative;min-height:380px;background:radial-gradient(ellipse at center,#141b2d,#0b0f19);overflow:hidden}.map-container svg{width:100%;height:100%}.sidebar{display:flex;flex-direction:column;gap:1.25rem}.sidebar-card{background:var(--bg-card);border:1px solid var(--border);border-radius:12px;overflow:hidden}.country-list{padding:.5rem 0;max-height:260px;overflow-y:auto}.country-list::-webkit-scrollbar{width:4px}.country-list::-webkit-scrollbar-thumb{background:var(--border);border-radius:2px}.country-item{display:flex;align-items:center;padding:.55rem 1.25rem;gap:.75rem;transition:background .15s}.country-item:hover{background:var(--bg-hover)}.country-flag{font-size:1.15rem;line-height:1}.country-info{flex:1;min-width:0}.country-name{font-size:.82rem;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.country-bar-wrap{height:3px;background:#ffffff0f;border-radius:2px;margin-top:.3rem;overflow:hidden}.country-bar{height:100%;border-radius:2px;background:var(--accent);transition:width .6s ease}.country-count{font-size:.82rem;font-weight:600;color:var(--text-secondary);white-space:nowrap}.activity-feed{padding:.5rem 0;max-height:300px;overflow-y:auto}.activity-feed::-webkit-scrollbar{width:4px}.activity-feed::-webkit-scrollbar-thumb{background:var(--border);border-radius:2px}.activity-item{display:flex;align-items:flex-start;padding:.6rem 1.25rem;gap:.75rem;transition:background .15s;animation:fadeIn .3s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.activity-item:hover{background:var(--bg-hover)}.activity-dot{width:7px;height:7px;border-radius:50%;margin-top:.45rem;flex-shrink:0}.activity-dot.pageview{background:var(--accent)}.activity-dot.click{background:var(--green)}.activity-dot.scroll{background:var(--orange)}.activity-dot.form{background:var(--purple)}.activity-content{flex:1;min-width:0}.activity-text{font-size:.8rem;line-height:1.4}.activity-text strong{font-weight:600;color:var(--text-primary)}.activity-meta{font-size:.72rem;color:var(--text-secondary);margin-top:.15rem}.sources-list{padding:.75rem 1.25rem 1rem;display:flex;flex-direction:column;gap:.65rem}.source-item{display:flex;align-items:center;gap:.75rem}.source-icon{width:28px;height:28px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:.8rem;flex-shrink:0}.source-info{flex:1;min-width:0}.source-name{font-size:.82rem;font-weight:500}.source-bar-wrap{height:4px;background:#ffffff0f;border-radius:2px;margin-top:.35rem;overflow:hidden}.source-bar{height:100%;border-radius:2px;transition:width .6s ease}.source-pct{font-size:.82rem;font-weight:600;color:var(--text-secondary)}@keyframes dotPing{0%{r:3;opacity:1}to{r:12;opacity:0}}.visitor-ping{animation:dotPing 2s ease-out infinite}@media(max-width:1024px){.main{grid-template-columns:1fr;grid-template-rows:auto auto auto}.stats-row{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.stats-row{grid-template-columns:1fr}.header{flex-wrap:wrap;gap:.5rem}.time-range{order:3;width:100%;justify-content:center}}
