*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-deep: #040810;
  --bg-dark: #0a1628;
  --bg-petrol: #0b1a2e;
  --cyan: #00e5ff;
  --cyan-dim: #00799980;
  --cyan-glow: #00e5ff60;
  --amber: #ffb300;
  --amber-glow: #ffb30060;
  --green: #00ff88;
  --green-dim: #00ff8880;
  --white: #e8f0ff;
  --white-dim: #8899bb;
  --red: #ff3355;
  --purple: #820ad1;
}

html, body, main, #__next {
  width: 100%; height: 100%;
  background: var(--bg-deep);
  font-family: 'Rajdhani', sans-serif;
  color: var(--white);
  overflow: hidden !important;
}
html::-webkit-scrollbar, body::-webkit-scrollbar, main::-webkit-scrollbar { display:none; }
html, body, main { scrollbar-width:none; }

.bg-base {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 50% 40%, #0e2244 0%, #091830 35%, #050e1e 65%, #030810 100%);
}

#bgCanvas {
  position: fixed; inset: 0; z-index: 1;
  width: 100%; height: 100%;
}

.bg-grid-markers {
  display: none;
}

.bg-vignette {
  position: fixed; inset: 0; z-index: 3;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 25%, rgba(5,14,30,0.4) 55%, rgba(3,8,16,0.85) 85%, #030810 100%);
  pointer-events: none;
}

.top-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 24px;
  background: linear-gradient(180deg, #0a1628ee 0%, #0a162800 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ffffff10;
}
.nav-left { display: flex; align-items: center; gap: 16px; }
.hamburger:hover span { background: var(--cyan) !important; }
.nav-title { font-family: 'Orbitron', monospace; font-size: 14px; font-weight: 700; letter-spacing: 3px; color: var(--white); text-transform: uppercase; }
.nav-tabs { display: flex; gap: 0; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-tab { padding: 16px 20px; cursor: pointer; font-family: 'Orbitron', monospace; font-size: 11px; font-weight: 500; letter-spacing: 2px; color: var(--white-dim); border-bottom: 2px solid transparent; transition: all 0.3s; text-transform: uppercase; }
.nav-tab:hover { color: var(--white); }
.nav-tab.active { color: #fff; border-bottom-color: var(--cyan); text-shadow: 0 0 10px var(--cyan-glow); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-date { display: flex; align-items: center; gap: 6px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--white-dim); }
.nav-date svg { width: 14px; height: 14px; stroke: var(--white-dim); }
.nav-bell { position: relative; cursor: pointer; }
.nav-bell svg { width: 18px; height: 18px; stroke: var(--white-dim); }
.nav-bell .dot { position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; background: var(--red); border-radius: 50%; border: 1.5px solid var(--bg-dark); }
.nav-user { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.nav-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #1a3a5c, #0d1f3d); border: 1.5px solid var(--cyan-dim); display: flex; align-items: center; justify-content: center; }
.nav-avatar svg { width: 14px; height: 14px; stroke: var(--white-dim); }
.nav-username { font-family: 'Orbitron', monospace; font-size: 11px; font-weight: 500; letter-spacing: 1px; color: var(--white-dim); }
.nav-arrow { font-size: 10px; color: var(--white-dim); }

.canvas { position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hub-container { position: relative; width: min(90vw, 1100px); height: min(85vh, 800px); transition: transform 0.15s ease-out; transform-origin: center center; overflow: visible; }
.connections-svg { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; }

.nucleus{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) translateY(0);z-index:20;width:240px;height:240px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:50%;transition:transform .4s cubic-bezier(.175,.885,.32,1.275),box-shadow .4s,filter .3s;box-shadow:0 14px 45px rgba(0,0,0,0.75),0 6px 20px rgba(0,0,0,0.5),0 0 35px #00e5ff12,0 0 70px #00e5ff06;filter:brightness(1);animation:nucleus-breathe 4s ease-in-out infinite}
.nucleus:hover{transform:translate(-50%,-50%) translateY(-6px);box-shadow:0 28px 70px rgba(0,0,0,0.85),0 14px 35px rgba(0,0,0,0.6),0 0 60px #00e5ff25,0 0 120px #00e5ff10;filter:brightness(1.12);animation:none}
.nucleus:active{transform:translate(-50%,-50%) translateY(3px);box-shadow:0 3px 10px rgba(0,0,0,0.6),0 1px 4px rgba(0,0,0,0.5),0 0 15px #00e5ff15;filter:brightness(0.95);transition:transform .08s,box-shadow .08s,filter .08s}
@keyframes nucleus-breathe{0%,100%{transform:translate(-50%,-50%) translateY(0) scale(1)}50%{transform:translate(-50%,-50%) translateY(0) scale(1.015)}}
.nucleus-contact-shadow{position:absolute;bottom:-18px;left:50%;transform:translateX(-50%);width:180px;height:20px;background:radial-gradient(ellipse,rgba(0,0,0,0.6) 0%,transparent 70%);border-radius:50%;filter:blur(6px);transition:all .4s;pointer-events:none}
.nucleus:hover .nucleus-contact-shadow{width:200px;height:28px;bottom:-28px;opacity:.8;filter:blur(10px)}
.nucleus:active .nucleus-contact-shadow{width:160px;height:12px;bottom:-8px;opacity:1;filter:blur(3px)}
.nucleus::after{content:'';position:absolute;inset:18px;border-radius:50%;background:linear-gradient(180deg,transparent 40%,#030a14 55%,#0a1525 70%,#040c18 100%);transform:translateY(8px);z-index:-1;filter:blur(1px);opacity:.85;transition:transform .4s,opacity .4s}
.nucleus:hover::after{transform:translateY(12px);opacity:.9}
.nucleus:active::after{transform:translateY(3px);opacity:.7}
.nucleus-rings{position:absolute;inset:0}
.nucleus-bevel{position:absolute;inset:4px;border-radius:50%;border:3px solid transparent;background:linear-gradient(180deg,#3a5a7a 0%,#0a1525 50%,#020810 100%) border-box;-webkit-mask:linear-gradient(#fff 0 0) padding-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.35;pointer-events:none}
.nucleus-ring-outer{position:absolute;inset:-10px;border-radius:50%;border:2.5px solid var(--cyan);box-shadow:0 0 20px #00e5ff60,0 0 40px #00e5ff40,inset 0 0 15px #00e5ff60;animation:rp 3s ease-in-out infinite}
.nucleus-ring-inner{position:absolute;inset:10px;border-radius:50%;border:2px solid var(--amber);box-shadow:0 0 15px #ffb30060,0 0 30px #ffb30060,inset 0 0 10px #ffb30060;animation:rp 3s ease-in-out infinite 1.5s}
.nucleus-bg{position:absolute;inset:20px;border-radius:50%;background:conic-gradient(from 0deg,#0c1e35,#162e4a,#0a1828,#1a3350,#0c1e35,#142a42,#081420,#162e4a,#0c1e35);border:1px solid #ffffff18;box-shadow:inset 0 8px 25px rgba(255,255,255,0.05),inset 0 -10px 25px rgba(0,0,0,0.6),inset 0 0 40px rgba(0,20,40,0.4)}
.nucleus-specular{position:absolute;top:24px;left:35%;width:60px;height:35px;border-radius:50%;background:radial-gradient(ellipse at 50% 50%,rgba(255,255,255,0.14) 0%,rgba(255,255,255,0.04) 40%,transparent 70%);pointer-events:none;filter:blur(2px)}
.nucleus-highlight{position:absolute;inset:20px;border-radius:50%;background:linear-gradient(168deg,rgba(255,255,255,0.06) 0%,transparent 40%);pointer-events:none}
.nucleus-orbit{position:absolute;inset:-20px;border-radius:50%;pointer-events:none}
.orbit-particle{position:absolute;width:4px;height:4px;border-radius:50%;top:50%;left:50%}
.orbit-particle:nth-child(1){animation:orbit1 6s linear infinite}
.orbit-particle:nth-child(2){animation:orbit2 8s linear infinite}
.orbit-particle:nth-child(3){animation:orbit3 10s linear infinite}
.orbit-particle::after{content:'';position:absolute;inset:0;border-radius:50%;background:#00e5ff;box-shadow:0 0 6px #00e5ff,0 0 12px #00e5ff60}
.orbit-particle:nth-child(2)::after{background:#ffb300;box-shadow:0 0 6px #ffb300,0 0 12px #ffb30060;width:3px;height:3px}
.orbit-particle:nth-child(3)::after{background:#00ffcc;box-shadow:0 0 5px #00ffcc,0 0 10px #00ffcc60;width:3px;height:3px}
@keyframes orbit1{from{transform:rotate(0deg) translateX(125px) rotate(0deg)}to{transform:rotate(360deg) translateX(125px) rotate(-360deg)}}
@keyframes orbit2{from{transform:rotate(120deg) translateX(118px) rotate(-120deg)}to{transform:rotate(480deg) translateX(118px) rotate(-480deg)}}
@keyframes orbit3{from{transform:rotate(240deg) translateX(130px) rotate(-240deg)}to{transform:rotate(600deg) translateX(130px) rotate(-600deg)}}
.nucleus-holo{position:absolute;inset:-50px;pointer-events:none;z-index:2}
.holo-scan{position:absolute;inset:0;border-radius:50%;animation:holo-rotate 8s linear infinite}
.holo-scan::before{content:'';position:absolute;inset:2px;border-radius:50%;border:1.5px solid transparent;border-top-color:#00e5ff;border-right-color:#00e5ff40;filter:drop-shadow(0 0 4px #00e5ff)}
.holo-scan::after{content:'';position:absolute;top:-1px;left:50%;width:5px;height:5px;border-radius:50%;background:#00e5ff;box-shadow:0 0 8px #00e5ff,0 0 16px #00e5ff60;transform:translateX(-50%)}
.holo-scan-outer{position:absolute;inset:-8px;border-radius:50%;animation:holo-rotate-reverse 12s linear infinite}
.holo-scan-outer::before{content:'';position:absolute;inset:2px;border-radius:50%;border:1px solid transparent;border-bottom-color:#ffb30060;border-left-color:#ffb30025;filter:drop-shadow(0 0 3px #ffb30040)}
.holo-data-ring{position:absolute;inset:6px;border-radius:50%;border:1px dashed #00e5ff20;animation:holo-rotate 30s linear infinite}
.holo-pulse-ring{position:absolute;inset:10px;border-radius:50%;border:1px solid #00e5ff;opacity:0;animation:holo-pulse-expand 3s ease-out infinite}
.holo-pulse-ring:nth-child(5){animation-delay:1.5s}
.holo-crosshair{position:absolute;inset:0}
.holo-crosshair::before,.holo-crosshair::after{content:'';position:absolute;background:#00e5ff}
.holo-crosshair::before{top:0;left:50%;width:1px;height:12px;transform:translateX(-50%);opacity:.25;box-shadow:0 0 4px #00e5ff40}
.holo-crosshair::after{bottom:0;left:50%;width:1px;height:12px;transform:translateX(-50%);opacity:.25;box-shadow:0 0 4px #00e5ff40}
.holo-crosshair-h::before{top:50%;left:0;width:12px;height:1px;transform:translateY(-50%);opacity:.25;box-shadow:0 0 4px #00e5ff40}
.holo-crosshair-h::after{top:50%;right:0;width:12px;height:1px;transform:translateY(-50%);opacity:.25;box-shadow:0 0 4px #00e5ff40}
.holo-bracket{position:absolute;width:16px;height:16px;opacity:.2}
.holo-bracket::before,.holo-bracket::after{content:'';position:absolute;background:#00e5ff}
.holo-bracket.tl{top:8px;left:8px}.holo-bracket.tl::before{top:0;left:0;width:8px;height:1px}.holo-bracket.tl::after{top:0;left:0;width:1px;height:8px}
.holo-bracket.tr{top:8px;right:8px}.holo-bracket.tr::before{top:0;right:0;width:8px;height:1px}.holo-bracket.tr::after{top:0;right:0;width:1px;height:8px}
.holo-bracket.bl{bottom:8px;left:8px}.holo-bracket.bl::before{bottom:0;left:0;width:8px;height:1px}.holo-bracket.bl::after{bottom:0;left:0;width:1px;height:8px}
.holo-bracket.br{bottom:8px;right:8px}.holo-bracket.br::before{bottom:0;right:0;width:8px;height:1px}.holo-bracket.br::after{bottom:0;right:0;width:1px;height:8px}
.holo-label{position:absolute;font-family:'JetBrains Mono',monospace;font-size:6px;letter-spacing:1.5px;color:#00e5ff;opacity:.2;text-transform:uppercase}
.holo-label.top{top:0;left:50%;transform:translateX(-50%) translateY(-2px)}
.holo-label.bottom{bottom:0;left:50%;transform:translateX(-50%) translateY(2px)}
.holo-label.left{top:50%;left:-2px;transform:translateY(-50%) rotate(-90deg);transform-origin:center}
.holo-label.right{top:50%;right:-2px;transform:translateY(-50%) rotate(90deg);transform-origin:center}
@keyframes rp{0%,100%{opacity:.7}50%{opacity:1}}
@keyframes fp{0%,100%{opacity:.3}50%{opacity:.6}}
@keyframes holo-rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
@keyframes holo-rotate-reverse{from{transform:rotate(360deg)}to{transform:rotate(0deg)}}
@keyframes holo-pulse-expand{0%{inset:10px;opacity:.35;border-color:#00e5ff}100%{inset:-40px;opacity:0;border-color:#00e5ff00}}
.nucleus:hover .holo-scan{animation-duration:3s}
.nucleus:hover .holo-scan-outer{animation-duration:5s}
.nucleus:hover .holo-crosshair::before,.nucleus:hover .holo-crosshair::after,.nucleus:hover .holo-crosshair-h::before,.nucleus:hover .holo-crosshair-h::after{opacity:.5}
.nucleus:hover .holo-bracket{opacity:.4}
.nucleus:hover .holo-label{opacity:.4}
.nucleus:hover .holo-pulse-ring{animation-duration:1.5s}
.nucleus-content{position:relative;z-index:5;text-align:center;display:flex;flex-direction:column;align-items:center;gap:4px}
.nucleus-icon{display:flex;align-items:center;gap:4px;margin-bottom:4px}
.nucleus-icon svg{width:18px;height:18px}
.nucleus-label{font-family:'Orbitron',monospace;font-size:10px;font-weight:600;letter-spacing:3px;color:var(--white);text-transform:uppercase;opacity:.8}
.nucleus-value{font-family:'Orbitron',monospace;font-size:22px;font-weight:800;letter-spacing:1px;color:#fff;text-shadow:0 0 20px #00e5ff60}
.nucleus-trend{display:block;text-align:center;font-family:'JetBrains Mono',monospace;font-size:12px;font-weight:600;color:var(--green);text-shadow:0 0 10px #00ff8880;line-height:1.2}

.node { position: absolute; z-index: 15; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: grab; transition: filter 0.3s; touch-action: none; user-select: none; }
.node:hover { filter: brightness(1.3); }
.node:hover .node-circle { box-shadow: 0 0 15px var(--cyan), 0 0 30px var(--cyan-glow), 0 0 50px #00e5ff20, inset 0 0 15px #00e5ff15; border-color: #40f0ff; }
.node.dragging { cursor: grabbing; z-index: 50; filter: brightness(1.3) drop-shadow(0 0 16px var(--cyan-glow)); transition: none; }
.node-circle { width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #1a2a4d, #0a1628); border: 2px solid var(--cyan); box-shadow: 0 0 10px var(--cyan-glow), 0 0 25px #00e5ff25, inset 0 0 8px #00e5ff10; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; transition: box-shadow 0.3s; }
.node-emoji { font-size: 40px; filter: drop-shadow(0 0 4px rgba(255,179,0,0.4)); }
.node-info { text-align: center; max-width: 160px; }
.node-name { font-family: 'Orbitron', monospace; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--white); text-transform: uppercase; text-shadow: 0 0 8px #00000080; line-height: 1.3; }
.node-value { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 600; color: var(--cyan); text-shadow: 0 0 8px var(--cyan-glow); }
.node-sub { font-family: 'Rajdhani', sans-serif; font-size: 10px; color: var(--white-dim); letter-spacing: 0.5px; }
.node-logo { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Orbitron', monospace; font-weight: 900; font-size: 13px; }
.logo-nubank { background: var(--purple); color: white; font-size: 11px; font-weight: 700; }
.logo-xp { background: #fff; color: #000; font-size: 12px; font-weight: 900; }

.pct-label { position: absolute; z-index: 12; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 600; color: var(--green); text-shadow: 0 0 8px var(--green-dim); background: #040810cc; padding: 2px 6px; border-radius: 4px; border: 1px solid #00ff8830; }

@keyframes ring-pulse { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
@keyframes flare-pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.6; } }
@keyframes fade-in { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
.node { animation: fade-in 0.6s ease-out backwards; }
.node:nth-child(1) { animation-delay: 0.1s; } .node:nth-child(2) { animation-delay: 0.2s; } .node:nth-child(3) { animation-delay: 0.3s; }
.node:nth-child(4) { animation-delay: 0.4s; } .node:nth-child(5) { animation-delay: 0.5s; } .node:nth-child(6) { animation-delay: 0.6s; }
.node:nth-child(7) { animation-delay: 0.7s; } .node:nth-child(8) { animation-delay: 0.8s; } .node:nth-child(9) { animation-delay: 0.9s; }

.modal-overlay { position: fixed; inset: 0; z-index: 1000; background: #000000aa; backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal { background: linear-gradient(135deg, #0d1f3d, #0a1628); border: 1px solid var(--cyan-dim); border-radius: 16px; padding: 32px; width: 420px; max-width: 90vw; box-shadow: 0 0 40px #00e5ff20, 0 20px 60px #00000080; }
.modal h2 { font-family: 'Orbitron', monospace; font-size: 14px; font-weight: 700; letter-spacing: 2px; color: var(--cyan); margin-bottom: 24px; text-transform: uppercase; }
.modal label { display: block; font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 600; color: var(--white-dim); margin-bottom: 6px; letter-spacing: 1px; text-transform: uppercase; }
.modal input { width: 100%; padding: 10px 14px; background: #050a18; border: 1px solid #ffffff15; border-radius: 8px; color: var(--white); font-family: 'JetBrains Mono', monospace; font-size: 14px; margin-bottom: 16px; outline: none; transition: border-color 0.3s; }
.modal input:focus { border-color: var(--cyan); box-shadow: 0 0 8px #00e5ff30; }
.modal-buttons { display: flex; gap: 12px; margin-top: 8px; }
.modal-buttons button { flex: 1; padding: 10px; border: none; border-radius: 8px; font-family: 'Orbitron', monospace; font-size: 11px; font-weight: 600; letter-spacing: 1px; cursor: pointer; transition: all 0.3s; text-transform: uppercase; }
.btn-save { background: linear-gradient(135deg, var(--cyan), #0088aa); color: #000; }
.btn-save:hover { box-shadow: 0 0 16px var(--cyan-glow); transform: translateY(-1px); }
.btn-cancel { background: transparent; border: 1px solid #ffffff20 !important; color: var(--white-dim); }
.btn-cancel:hover { border-color: var(--white) !important; color: var(--white); }

/* Visao Geral Panel */
.overview-panel { position: fixed; inset: 0; z-index: 50; display: none; padding-top: 56px; overflow-y: auto; }
.overview-panel.active { display: block; }
.overview-bg { position: fixed; inset: 0; background: rgba(4,8,16,0.4); z-index: -1; backdrop-filter: blur(2px); }
.overview-content { max-width: 1100px; margin: 0 auto; padding: 30px 24px 60px; }
.overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 28px; }
.ov-card { background: linear-gradient(135deg, rgba(12,30,53,0.85), rgba(8,20,40,0.9)); border: 1px solid var(--cyan-dim); border-radius: 14px; padding: 20px 22px; position: relative; overflow: hidden; transition: all 0.3s; box-shadow: 0 0 8px #00e5ff10, 0 0 20px #00e5ff06, inset 0 0 6px #00e5ff04; animation: fade-in 0.6s ease-out backwards; }
.ov-card:nth-child(1) { animation-delay: 0.1s; } .ov-card:nth-child(2) { animation-delay: 0.2s; } .ov-card:nth-child(3) { animation-delay: 0.3s; } .ov-card:nth-child(4) { animation-delay: 0.4s; }
.ov-card:hover { border-color: var(--cyan); box-shadow: 0 0 15px var(--cyan-glow), 0 0 35px #00e5ff12; transform: translateY(-3px); }
.ov-card-label { font-family: 'Orbitron', monospace; font-size: 9px; font-weight: 600; letter-spacing: 2px; color: var(--white-dim); text-transform: uppercase; margin-bottom: 8px; text-shadow: 0 0 4px #00e5ff20; }
.ov-card-value { font-family: 'Orbitron', monospace; font-size: 24px; font-weight: 800; color: #fff; text-shadow: 0 0 12px currentColor; }
.ov-card-sub { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--white-dim); margin-top: 4px; }
.ov-card-bar { position: absolute; bottom: 0; left: 0; height: 3px; border-radius: 0 0 14px 14px; animation: bar-pulse 3s ease-in-out infinite; }
@keyframes bar-pulse { 0%,100% { opacity: 0.12; } 50% { opacity: 0.25; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes syncPulse { 0%,100% { opacity:0.3; } 50% { opacity:0.8; } }

/* Custom dropdown for transaction */
.tx-dropdown { position: relative; width: 100%; margin-bottom: 20px; }
.tx-dropdown-btn { width: 100%; padding: 12px 16px; background: #050a18; border: 1px solid var(--cyan-dim); border-radius: 10px; color: var(--white-dim); font-family: 'JetBrains Mono', monospace; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; transition: all 0.3s; }
.tx-dropdown-btn:hover, .tx-dropdown-btn.open { border-color: var(--amber); box-shadow: 0 0 12px #ffb30015; }
.tx-dropdown-btn.selected { color: var(--white); }
.tx-dropdown-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: linear-gradient(135deg, #0a1628, #081020); border: 1px solid var(--cyan-dim); border-radius: 10px; max-height: 280px; overflow-y: auto; z-index: 10; display: none; box-shadow: 0 8px 32px rgba(0,0,0,0.6); }
.tx-dropdown-list.open { display: block; }
.tx-dropdown-item { padding: 10px 16px; cursor: pointer; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #ffffff06; transition: background 0.2s; }
.tx-dropdown-item:hover { background: #00e5ff08; }
.tx-dropdown-item:last-child { border-bottom: none; }
.tx-item-logo { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #1a3a5c, #0d1f3d); border: 1px solid var(--cyan-dim); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.tx-item-logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: contain; background: #fff; padding: 1px; }
.tx-item-info { flex: 1; min-width: 0; }
.tx-item-name { font-family: 'Orbitron', monospace; font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--white); text-transform: uppercase; }
.tx-item-group { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--white-dim); margin-top: 2px; }
.tx-item-bal { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; color: var(--cyan); text-align: right; white-space: nowrap; text-shadow: 0 0 6px var(--cyan-glow); }
.ov-section-title { font-family: 'Orbitron', monospace; font-size: 10px; font-weight: 700; letter-spacing: 3px; color: var(--cyan); text-transform: uppercase; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; text-shadow: 0 0 6px var(--cyan-glow); }
.ov-section-title::before, .ov-section-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #00e5ff15, transparent); }
.ov-table { width: 100%; border-collapse: collapse; }
.ov-table th { font-family: 'Orbitron', monospace; font-size: 9px; font-weight: 600; letter-spacing: 2px; color: var(--cyan); text-transform: uppercase; padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--cyan-dim); text-shadow: 0 0 6px var(--cyan-glow); }
.ov-table td { font-family: 'JetBrains Mono', monospace; font-size: 13px; padding: 12px 14px; border-bottom: 1px solid #00e5ff08; color: var(--white); transition: background 0.3s, box-shadow 0.3s; }
.ov-table tr { animation: fade-in 0.5s ease-out backwards; }
.ov-table tr:hover td { background: #00e5ff06; box-shadow: inset 0 0 20px #00e5ff04; }
.ov-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 8px; box-shadow: 0 0 6px var(--cyan); }

/* Fluxo de Caixa Panel */
.cashflow-panel { position: fixed; inset: 0; z-index: 50; display: none; padding-top: 56px; overflow-y: auto; }
.cashflow-panel.active { display: block; }
.cashflow-content { max-width: 1100px; margin: 0 auto; padding: 30px 24px 60px; }
.cf-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid #00e5ff08; transition: all 0.3s; animation: fade-in 0.5s ease-out backwards; }
.cf-row:hover { background: #00e5ff06; box-shadow: inset 0 0 30px #00e5ff04; }
.cf-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; transition: box-shadow 0.3s; }
.cf-icon.in { background: #00ff8818; color: var(--green); box-shadow: 0 0 8px #00ff8825; }
.cf-icon.out { background: #ff335518; color: var(--red); box-shadow: 0 0 8px #ff335525; }
.cf-info { flex: 1; }
.cf-name { font-family: 'Rajdhani', sans-serif; font-size: 14px; font-weight: 600; color: var(--white); }
.cf-date { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--white-dim); }
.cf-amount { font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 700; }
.cf-amount.in { color: var(--green); text-shadow: 0 0 8px #00ff8840; }
.cf-amount.out { color: var(--red); text-shadow: 0 0 8px #ff335540; }
.cf-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.cf-balance-bar { height: 6px; border-radius: 3px; background: #00e5ff0a; border: 1px solid #00e5ff08; overflow: hidden; margin-top: 10px; }
.cf-balance-fill { height: 100%; border-radius: 3px; transition: width 0.5s; box-shadow: 0 0 6px currentColor; }
.cf-empty { text-align: center; padding: 60px 20px; color: var(--white-dim); }
.cf-empty svg { margin: 0 auto 16px; opacity: 0.3; }

.history-panel { position:fixed; top:56px; right:-420px; bottom:0; width:400px; max-width:90vw; z-index:150; background:linear-gradient(165deg,#0d1f35 0%,#091828 50%,#060e1c 100%); border-left:1px solid #8855ff25; box-shadow:-10px 0 40px rgba(0,0,0,0.6),0 0 20px #8855ff08; backdrop-filter:blur(20px); overflow-y:auto; transition:right 0.35s cubic-bezier(0.4,0,0.2,1); padding:24px 20px 40px; }
.history-panel.active { right:0; }
.history-panel::-webkit-scrollbar { width:4px; }
.history-panel::-webkit-scrollbar-thumb { background:#8855ff40; border-radius:4px; }
.hist-card { padding:14px 16px; background:#ffffff04; border:1px solid #ffffff08; border-radius:10px; transition:all 0.2s; }
.hist-card:hover { border-color:#8855ff30; background:#ffffff08; }
.hist-card.undone { opacity:0.35; }
.hist-undo-btn { cursor:pointer; padding:4px 12px; border-radius:6px; background:linear-gradient(135deg,#ff3355,#cc2244); font-family:'Orbitron',monospace; font-size:8px; font-weight:700; letter-spacing:1px; color:#fff; text-transform:uppercase; border:none; transition:all 0.2s; }
.hist-undo-btn:hover { box-shadow:0 0 10px #ff335560; }

/* Sales Panel */
.sales-panel { position:fixed; top:56px; bottom:0; width:540px; max-width:95vw; z-index:160; background:linear-gradient(165deg,#0a1628 0%,#081422 50%,#050e1c 100%); border-left:1px solid #00e5ff12; box-shadow:-10px 0 60px rgba(0,0,0,0.7),-4px 0 20px rgba(0,229,255,0.03); backdrop-filter:blur(24px); overflow-y:auto; overflow-x:hidden; transition:transform 0.4s cubic-bezier(0.4,0,0.2,1); padding:0; transform:translateX(100%); right:0; }
.sales-panel.active { transform:translateX(0); }

/* Asset config modals (offer + ad-account) — centered floating modals */
#offerConfigPanel, #adAccountConfigPanel {
  top: 50% !important;
  bottom: auto !important;
  left: 50% !important;
  right: auto !important;
  transform: translate(-50%, -50%) scale(0.95) !important;
  opacity: 0;
  pointer-events: none;
  width: 560px !important;
  max-width: 92vw !important;
  max-height: 86vh !important;
  height: auto !important;
  border-left: none !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04) inset !important;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease !important;
}
#offerConfigPanel.active, #adAccountConfigPanel.active {
  transform: translate(-50%, -50%) scale(1) !important;
  opacity: 1;
  pointer-events: auto;
}
/* Backdrop for centered modals */
.config-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  z-index: 159;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.config-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.sales-inner { zoom: var(--sales-zoom, 1); }
.sales-resize-handle { position:absolute; left:-18px; top:0; bottom:0; width:36px; cursor:ew-resize; z-index:170; display:flex; align-items:center; justify-content:center; }
.sales-resize-grip { width:36px; height:64px; border-radius:10px 0 0 10px; background:linear-gradient(135deg,#0d1f35,#0a1628); border:1px solid #00e5ff15; border-right:none; display:flex; align-items:center; justify-content:center; transition:all 0.25s; box-shadow:-2px 0 12px rgba(0,0,0,0.4); }
.sales-resize-grip svg { transition:all 0.25s; }
.sales-resize-handle:hover .sales-resize-grip { background:linear-gradient(135deg,#122a45,#0d1f35); border-color:#00e5ff30; box-shadow:-4px 0 20px rgba(0,229,255,0.1); }
.sales-resize-handle:hover .sales-resize-grip svg { stroke:#00e5ff; }
.sales-resize-handle:active .sales-resize-grip { background:linear-gradient(135deg,#163050,#122a45); border-color:#00e5ff50; box-shadow:-4px 0 24px rgba(0,229,255,0.2); }
.sales-panel::-webkit-scrollbar { width:14px; }
.sales-panel::-webkit-scrollbar-track { background:#0a1628; border-left:1px solid #ffffff08; }
.sales-panel::-webkit-scrollbar-thumb { background:linear-gradient(180deg,#ffffff30,#ffffff12); border-radius:7px; min-height:60px; border:3px solid #0a1628; }
.sales-panel::-webkit-scrollbar-thumb:hover { background:linear-gradient(180deg,#ffffff45,#ffffff20); }
.sales-panel::-webkit-scrollbar-thumb:active { background:linear-gradient(180deg,#ffffff60,#ffffff30); }
.sales-panel { scrollbar-width:auto; scrollbar-color:#ffffff25 #0a1628; overflow-y:scroll !important; }
/* Sales-only mode (?sales=1) — render the panel as a full-viewport standalone view */
body.sales-only { background:#050e1c !important; overflow:hidden !important; }
body.sales-only > *:not(#salesPanel):not(#saleActionMenu):not(#moveAccountModal):not(#moveAccountBackdrop):not(#duplicateSaleModal) { display:none !important; }
body.sales-only #salesPanel {
  position:fixed !important;
  top:0 !important; right:0 !important; bottom:0 !important; left:0 !important;
  width:100vw !important; max-width:100vw !important;
  transform:translateX(0) !important;
  border-left:none !important;
  box-shadow:none !important;
}
body.sales-only #salesPanel .sales-resize-handle { display:none !important; }
.sales-header { position:relative; padding:24px 28px 0; }
.sales-kpi-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:18px 0; }
.sales-kpi { padding:14px 12px; border-radius:12px; text-align:center; position:relative; overflow:hidden; }
.sales-kpi::before { content:''; position:absolute; inset:0; border-radius:12px; border:1px solid transparent; pointer-events:none; }
.sales-kpi-value { font-family:'Orbitron',monospace; font-size:22px; font-weight:800; line-height:1; }
.sales-kpi-label { font-family:'JetBrains Mono',monospace; font-size:9px; letter-spacing:1.5px; text-transform:uppercase; margin-top:6px; opacity:0.6; }
.sales-offer-tab { padding:10px 18px; border-radius:8px; cursor:pointer; font-family:'Orbitron',monospace; font-size:11px; font-weight:700; letter-spacing:1.5px; color:var(--white-dim); background:#ffffff04; border:1px solid #ffffff08; transition:all 0.25s; text-transform:uppercase; position:relative; }
.sales-offer-tab:hover { border-color:#ffffff20; color:var(--white); }
.sales-offer-tab.active { color:#fff; border-color:#ffffff30; background:linear-gradient(135deg,#ffffff0c,#ffffff04); text-shadow:none; box-shadow:0 0 12px #ffffff08; }
.sales-offer-tab .tab-count { position:absolute; top:-6px; right:-6px; min-width:18px; height:18px; border-radius:9px; background:#22c55e; color:#050e1c; font-size:9px; font-weight:800; display:flex; align-items:center; justify-content:center; padding:0 5px; }
.sale-card { background:linear-gradient(135deg,#ffffff03,#ffffff01); border:1px solid #ffffff06; border-radius:14px; transition:all 0.3s cubic-bezier(0.4,0,0.2,1); position:relative; overflow:hidden; }
.sale-card::before { content:''; position:absolute; left:0; top:0; bottom:0; width:4px; border-radius:4px 0 0 4px; }
.sale-card:hover { border-color:#ffffff12; background:linear-gradient(135deg,#ffffff06,#ffffff02); transform:translateX(-3px); box-shadow:4px 0 16px rgba(0,0,0,0.2); }
.sale-card.approved::before { background:linear-gradient(180deg,#22c55e,#16a34a); box-shadow:0 0 8px #22c55e40; }
.sale-card.fake { opacity:0.5; }
.sale-card.fake::before { background:linear-gradient(180deg,#ff3355,#cc2244); box-shadow:0 0 8px #ff335540; }
.sale-card.refunded { opacity:0.6; }
.sale-card.refunded::before { background:linear-gradient(180deg,#ffb300,#cc8f00); box-shadow:0 0 8px #ffb30040; }
.sale-badge { font-size:9px; font-weight:700; font-family:'Orbitron',monospace; letter-spacing:1.5px; padding:4px 10px; border-radius:5px; text-transform:uppercase; display:inline-flex; align-items:center; gap:5px; }
.sale-badge::before { content:''; width:6px; height:6px; border-radius:50%; }
.sale-badge.approved { background:#22c55e10; color:#22c55e; border:1px solid #22c55e20; }
.sale-badge.approved::before { background:#22c55e; box-shadow:0 0 4px #22c55e; }
.sale-badge.fake { background:#ff335510; color:#ff3355; border:1px solid #ff335520; }
.sale-badge.fake::before { background:#ff3355; box-shadow:0 0 4px #ff3355; }
.sale-badge.refunded { background:#ffb30010; color:#ffb300; border:1px solid #ffb30020; }
.sale-badge.refunded::before { background:#ffb300; box-shadow:0 0 4px #ffb300; }
.sale-action-btn { width:30px; height:30px; border-radius:8px; border:1px solid; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all 0.2s; font-size:13px; background:transparent; }
.sale-action-btn:hover { transform:scale(1.1); }

/* Custom Campaign Dropdown — matches panel's cyberpunk style */
.camp-select-wrap { position:relative; width:100%; }
.camp-select-btn {
  width:100%;
  padding:10px 14px;
  border-radius:8px;
  background:linear-gradient(135deg,#ffffff05,#ffffff02);
  border:1px solid #ffffff10;
  color:var(--white);
  font-family:'JetBrains Mono',monospace;
  font-size:12px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  transition:all 0.2s;
  text-align:left;
  position:relative;
  overflow:hidden;
}
.camp-select-btn::before {
  content:'';
  position:absolute;
  left:0; top:0; bottom:0;
  width:3px;
  background:linear-gradient(180deg,#00e5ff00,#00e5ff40,#00e5ff00);
  opacity:0;
  transition:opacity 0.25s;
}
.camp-select-btn:hover { border-color:#00e5ff30; background:linear-gradient(135deg,#00e5ff08,#00e5ff02); }
.camp-select-btn:hover::before { opacity:1; }
.camp-select-btn.open { border-color:#00e5ff50; background:linear-gradient(135deg,#00e5ff10,#00e5ff03); box-shadow:0 0 16px #00e5ff18; }
.camp-select-btn.open::before { opacity:1; }
.camp-select-label { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-family:'Rajdhani',sans-serif; font-size:14px; font-weight:500; letter-spacing:0.3px; }
.camp-select-label.empty { color:#ffffff30; font-style:italic; font-size:12px; }
.camp-select-arrow { flex-shrink:0; transition:transform 0.3s cubic-bezier(0.4,0,0.2,1); color:#ffffff40; }
.camp-select-btn:hover .camp-select-arrow { color:#00e5ff80; }
.camp-select-btn.open .camp-select-arrow { transform:rotate(180deg); color:#00e5ff; }
.camp-select-dropdown {
  position:absolute;
  top:calc(100% + 6px);
  left:0; right:0;
  z-index:30;
  background:linear-gradient(165deg,#0d1f35 0%,#0a1628 100%);
  border:1px solid #00e5ff25;
  border-radius:10px;
  box-shadow:0 16px 48px rgba(0,0,0,0.7),0 0 24px #00e5ff10;
  max-height:280px;
  overflow-y:auto;
  padding:6px;
  animation:campDropIn 0.2s cubic-bezier(0.4,0,0.2,1);
  backdrop-filter:blur(12px);
}
@keyframes campDropIn { from { opacity:0; transform:translateY(-8px) scaleY(0.95); transform-origin:top; } to { opacity:1; transform:translateY(0) scaleY(1); } }
.camp-select-dropdown::-webkit-scrollbar { width:8px; }
.camp-select-dropdown::-webkit-scrollbar-track { background:transparent; }
.camp-select-dropdown::-webkit-scrollbar-thumb { background:#00e5ff15; border-radius:4px; }
.camp-select-dropdown::-webkit-scrollbar-thumb:hover { background:#00e5ff30; }
.camp-option {
  padding:10px 12px;
  border-radius:7px;
  cursor:pointer;
  font-family:'Rajdhani',sans-serif;
  font-size:13px;
  font-weight:500;
  color:var(--white-dim);
  display:flex;
  align-items:center;
  gap:10px;
  transition:all 0.15s;
  border:1px solid transparent;
  position:relative;
}
.camp-option:hover { background:#00e5ff0a; color:var(--white); border-color:#00e5ff15; transform:translateX(2px); }
.camp-option.selected { background:linear-gradient(90deg,#00e5ff15,#00e5ff05); color:#00e5ff; border-color:#00e5ff30; box-shadow:inset 2px 0 0 #00e5ff; }
.camp-option.selected .camp-opt-dot { background:#00e5ff; box-shadow:0 0 6px #00e5ff; }
.camp-option.empty-opt { color:#ffffff30; font-style:italic; }
.camp-option.empty-opt:hover { color:#ffffff50; }
.camp-opt-dot { width:6px; height:6px; border-radius:50%; background:#ffffff15; flex-shrink:0; transition:all 0.2s; }
.camp-opt-name { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.camp-opt-spend { font-family:'JetBrains Mono',monospace; font-size:9px; color:#ffffff25; flex-shrink:0; padding:2px 6px; border-radius:4px; background:#ffffff05; border:1px solid #ffffff08; }
.camp-option:hover .camp-opt-spend { color:#00e5ff80; border-color:#00e5ff20; }
.camp-option.selected .camp-opt-spend { color:#00e5ff; background:#00e5ff10; border-color:#00e5ff30; }
.camp-dropdown-empty { padding:16px 12px; text-align:center; color:#ffffff25; font-family:'Rajdhani',sans-serif; font-size:12px; font-style:italic; }

/* Sale action context menu (opens from the gear button on each sale card) */
#saleActionMenu {
  position:fixed;
  z-index:1000;  /* Must be above .sales-panel (z-index:160) since they're sibling stacking contexts */
  background:linear-gradient(165deg,#0d1f35 0%,#0a1628 100%);
  border:1px solid #00e5ff25;
  border-radius:12px;
  box-shadow:0 16px 48px rgba(0,0,0,0.75),0 0 24px #00e5ff12;
  padding:6px;
  min-width:200px;
  backdrop-filter:blur(14px);
  animation:campDropIn 0.18s cubic-bezier(0.4,0,0.2,1);
}
.sale-menu-item {
  padding:10px 12px;
  border-radius:7px;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:12px;
  font-family:'Rajdhani',sans-serif;
  font-size:13px;
  font-weight:500;
  transition:all 0.15s;
  border:1px solid transparent;
  white-space:nowrap;
}
.sale-menu-item:hover { background:#ffffff06; transform:translateX(3px); }
.sale-menu-icon { width:18px; text-align:center; font-size:13px; flex-shrink:0; }
.sale-menu-label { flex:1; }
.sale-menu-sep { height:1px; background:#ffffff10; margin:5px 8px; }
.sale-gear-btn { transition:all 0.25s; }
.sale-gear-btn:hover { transform:rotate(45deg) scale(1.05); }

/* Loading spinner for modal buttons */
@keyframes btnSpin { to { transform:rotate(360deg); } }
.btn-spinner {
  display:inline-block;
  width:12px; height:12px;
  border:2px solid rgba(5,14,28,0.3);
  border-top-color:#050e1c;
  border-radius:50%;
  animation:btnSpin 0.7s linear infinite;
  vertical-align:middle;
}
.sales-add-form { margin:0 28px 18px; padding:16px; border-radius:14px; background:linear-gradient(135deg,#ffffff04,#ffffff01); border:1px solid #ffffff08; }
.sales-add-input { padding:10px 14px; border-radius:8px; background:#ffffff06; border:1px solid #ffffff10; color:var(--white); font-family:'JetBrains Mono',monospace; font-size:14px; outline:none; transition:all 0.2s; }
.sales-add-input:focus { border-color:#22c55e40; box-shadow:0 0 8px #22c55e10; }
.sales-add-input::placeholder { color:#ffffff25; }
.sales-gateway-chip { display:flex; align-items:center; gap:6px; padding:10px 14px; border-radius:8px; cursor:pointer; font-family:'JetBrains Mono',monospace; font-size:12px; font-weight:600; letter-spacing:0.5px; border:1px solid #ffffff08; background:#ffffff03; transition:all 0.2s; color:var(--white-dim); }
.sales-gateway-chip:hover { border-color:#ffffff20; }
.sales-gateway-chip.selected { border-color:#22c55e40; background:#22c55e08; color:#22c55e; }
.sales-gateway-chip .gw-dot { width:8px; height:8px; border-radius:50%; }
@keyframes saleSlideIn { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:translateX(0); } }
.pnl-panel { margin:0 28px 18px; padding:20px; border-radius:14px; background:linear-gradient(165deg,#0d1a2e 0%,#091422 100%); border:1px solid #00e5ff10; position:relative; overflow:hidden; }
.pnl-panel::before { content:''; position:absolute; top:0; left:0; right:0; height:1px; background:linear-gradient(90deg,transparent,#00e5ff20,transparent); }
.pnl-row { display:flex; align-items:center; justify-content:space-between; padding:8px 0; }
.pnl-row.highlight { padding:12px 0; margin-top:6px; border-top:1px solid #ffffff08; }
.pnl-label { font-family:'Rajdhani',sans-serif; font-size:16px; font-weight:500; color:var(--white-dim); display:flex; align-items:center; gap:8px; }
.pnl-value { font-family:'JetBrains Mono',monospace; font-size:16px; font-weight:600; }
.pnl-divider { height:1px; background:linear-gradient(90deg,transparent,#ffffff08,transparent); margin:6px 0; }
.pnl-metric { text-align:center; padding:10px 4px; }
.pnl-metric-value { font-family:'Orbitron',monospace; font-size:16px; font-weight:800; }
.pnl-metric-label { font-family:'JetBrains Mono',monospace; font-size:9px; letter-spacing:1.5px; text-transform:uppercase; margin-top:4px; color:#ffffff30; }

@keyframes calFadeIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.cal-weekday { text-align:center; font-family:'Orbitron',monospace; font-size:9px; font-weight:600; letter-spacing:1px; color:var(--cyan); padding:6px 0; text-transform:uppercase; }
.cal-day { text-align:center; font-size:13px; font-weight:500; color:var(--white-dim); padding:8px 0; border-radius:8px; cursor:pointer; transition:all 0.15s; border:1px solid transparent; position:relative; }
.cal-day:hover { color:var(--white); background:#ffffff08; border-color:#ffffff15; }
.cal-day.today { color:var(--cyan); font-weight:700; }
.cal-day.today::after { content:''; position:absolute; bottom:3px; left:50%; transform:translateX(-50%); width:4px; height:4px; border-radius:50%; background:var(--cyan); box-shadow:0 0 6px var(--cyan); }
.cal-day.selected { color:#000; font-weight:700; background:linear-gradient(135deg,var(--amber),#cc8800); border-color:var(--amber); box-shadow:0 0 12px var(--amber-glow); }
.cal-day.selected.today::after { background:#000; box-shadow:none; }
.cal-day.other-month { color:#334466; }
.cal-day.other-month:hover { color:#556688; }
.cal-day.future { color:#223344; cursor:default; }
.cal-day.future:hover { background:transparent; border-color:transparent; color:#223344; }

@media (max-width: 768px) {
  .nav-tabs { display: none; }
  .nav-title { font-size: 11px; letter-spacing: 1.5px; }
  .hub-container { width: 95vw; height: 90vh; }
  .nucleus { width: 160px; height: 160px; }
  .nucleus-value { font-size: 14px; }
  .nucleus-label { font-size: 8px; }
  .node-circle { width: 70px; height: 70px; }
  .node-emoji { font-size: 30px; }
  .node-name { font-size: 8px; }
  .node-value { font-size: 11px; }
  .pct-label { font-size: 8px; }
}
