:root{
  --bg:#07030d;
  --bg2:#11081b;
  --panel:#120a1d;
  --panel-2:#1a1028;
  --panel-soft:rgba(23,14,35,.88);
  --line:rgba(255,255,255,.08);
  --line-strong:rgba(197,112,255,.22);
  --text:#f7f2ff;
  --muted:#b8aacd;
  --accent:#b14dff;
  --accent-2:#d68cff;
  --accent-soft:rgba(177,77,255,.12);
  --good:#58e2a8;
  --good-soft:rgba(88,226,168,.10);
  --danger:#ff7f9c;
  --shadow:0 24px 70px rgba(0,0,0,.36);
  --radius:24px;
  --radius-sm:16px;
}
[hidden]{display:none!important}
*{box-sizing:border-box}
html{color-scheme:dark;scroll-behavior:smooth}
body{
  margin:0;min-height:100vh;overflow-x:hidden;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(157,64,255,.20) 0, transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(255,0,183,.13) 0, transparent 22%),
    linear-gradient(180deg,#090411 0%, #0b0614 28%, #0a0613 58%, #08040f 100%);
}
button,input,select{font:inherit}
a{color:inherit}
.shell{width:min(1180px,calc(100% - 34px));margin:0 auto}
.ambient{position:fixed;z-index:-1;border-radius:999px;pointer-events:none;filter:blur(95px);opacity:.17}
.ambient-one{width:440px;height:440px;top:-160px;right:-120px;background:#bb54ff}
.ambient-two{width:360px;height:360px;left:-180px;bottom:3%;background:#5f2fff}
.topbar{
  position:sticky;top:0;z-index:30;
  border-bottom:1px solid var(--line);
  background:rgba(10,6,18,.82);
  backdrop-filter:blur(18px);
}
.topbar-inner{min-height:80px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand-lockup{display:flex;align-items:center;gap:13px}
.brand-logo{width:50px;height:50px;object-fit:contain;filter:drop-shadow(0 0 18px rgba(177,77,255,.24))}
.brand-name{font-size:13px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.brand-subtitle{font-size:27px;font-weight:800;line-height:1.05;color:#fff;letter-spacing:-.03em}
.top-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:flex-end}
.portal-nav{display:flex;align-items:center;gap:6px;padding:4px;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.02)}
.nav-link{text-decoration:none;color:var(--muted);font-size:12px;font-weight:800;padding:9px 12px;border-radius:10px;transition:.18s ease}
.nav-link:hover{color:var(--text);background:rgba(255,255,255,.05)}
.nav-link.active{color:#fff;background:linear-gradient(135deg,rgba(177,77,255,.22),rgba(221,118,255,.14));box-shadow:inset 0 0 0 1px rgba(214,140,255,.18)}
.live-pill,.auth-badge{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;font-size:12px;font-weight:800;border:1px solid rgba(88,226,168,.18);background:rgba(88,226,168,.08);color:#c6f8e5}
.live-dot{width:7px;height:7px;border-radius:50%;background:var(--good);box-shadow:0 0 14px var(--good)}
.page{padding:44px 0 72px}
.hero-card,.device-section,.results-section,.credit-panel{
  border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(20,12,32,.92),rgba(12,8,22,.96));
  box-shadow:var(--shadow);
  border-radius:var(--radius);
}
.hero,.credits-hero{padding:28px 30px}
.hero{margin-bottom:20px;max-width:none}
.eyebrow{font-size:12px;font-weight:900;letter-spacing:.18em;color:var(--accent-2);margin-bottom:12px;text-transform:uppercase}
.hero h1,.credits-hero h1{font-size:clamp(36px,5.1vw,64px);line-height:1.02;letter-spacing:-.045em;margin:0 0 18px}
.hero p,.credits-hero p{margin:0;max-width:760px;color:var(--muted);font-size:18px;line-height:1.65}
.device-section,.results-section{padding:24px}
.results-section{margin-top:20px}
.section-head,.results-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:20px}
.section-head>div{display:flex;align-items:center;gap:12px}
.section-head h2,.results-head h2{margin:0;font-size:24px;letter-spacing:-.02em}
.step{width:30px;height:30px;display:inline-grid;place-items:center;border-radius:10px;border:1px solid rgba(214,140,255,.20);background:rgba(177,77,255,.12);color:var(--accent-2);font-size:13px;font-weight:900;box-shadow:inset 0 0 0 1px rgba(255,255,255,.02)}
.link-button,.text-button{border:0;background:transparent;color:var(--accent-2);cursor:pointer;padding:8px 0;font-weight:800}
.link-button:hover,.text-button:hover{color:#f0d4ff}
.device-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.device-card{border:1px solid var(--line);background:rgba(255,255,255,.025);color:var(--text);border-radius:18px;padding:18px 15px;cursor:pointer;min-height:108px;text-align:left;transition:.18s ease;display:flex;flex-direction:column;justify-content:space-between;gap:14px}
.device-card:hover{transform:translateY(-2px);border-color:rgba(214,140,255,.28);background:rgba(177,77,255,.07)}
.device-card.active{border-color:rgba(214,140,255,.38);box-shadow:0 0 0 1px rgba(214,140,255,.14),0 12px 30px rgba(116,34,184,.18);background:linear-gradient(145deg,rgba(177,77,255,.14),rgba(255,255,255,.03))}
.device-icon-wrap{position:relative;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center}
.device-icon-svg{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;color:#f3dfff}
.device-icon-svg svg{width:30px;height:30px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.device-icon-svg svg path[fill],.device-icon-svg svg [fill]:not([fill='none']){fill:currentColor}
.device-badge{position:absolute;right:-10px;bottom:-6px;min-width:24px;height:19px;padding:0 6px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:9px;font-weight:900;letter-spacing:.03em;background:rgba(177,77,255,.16);border:1px solid rgba(214,140,255,.26);color:#f0d4ff}
.device-label{font-size:14px;font-weight:820}
.device-count{font-size:11px;color:var(--muted)}
.results-kicker{display:flex;align-items:center;gap:9px;color:var(--accent-2);font-size:11px;font-weight:900;letter-spacing:.1em;margin-bottom:9px}
.results-head p{margin:6px 0 0;color:var(--muted);font-size:13px}
.search-wrap{display:flex;flex-direction:column;gap:6px;min-width:260px}
.search-wrap span{font-size:11px;font-weight:800;color:var(--muted)}
.search-wrap input,.field input{width:100%;border:1px solid var(--line);border-radius:14px;background:#100a19;color:var(--text);padding:12px 14px;outline:none}
.search-wrap input:focus,.field input:focus{border-color:rgba(214,140,255,.55);box-shadow:0 0 0 3px rgba(177,77,255,.10)}
.apps-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.app-card{border:1px solid var(--line);border-radius:20px;background:rgba(255,255,255,.026);overflow:hidden;display:flex;flex-direction:column;min-height:100%;transition:.18s ease}
.app-card:hover{border-color:rgba(214,140,255,.18);transform:translateY(-2px)}
.app-card-main{padding:18px 18px 14px}
.app-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.app-name{font-size:19px;font-weight:870;letter-spacing:-.015em;margin:0}
.app-category{font-size:10px;font-weight:850;letter-spacing:.09em;color:#f2d8ff;background:rgba(177,77,255,.09);border:1px solid rgba(214,140,255,.16);border-radius:999px;padding:6px 8px;white-space:nowrap}
.compat-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:13px}
.compat-chip{font-size:10px;color:#cabdda;border:1px solid var(--line);background:rgba(255,255,255,.025);border-radius:999px;padding:5px 8px}
.codes{border-top:1px solid var(--line);padding:14px 18px;display:grid;gap:8px}
.code-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid rgba(255,255,255,.06);background:#100a19;border-radius:13px;padding:10px 11px}
.code-label{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-weight:800}
.code-value{font-size:16px;font-weight:900;letter-spacing:.03em;margin-top:2px;word-break:break-all}
.copy-button{border:1px solid rgba(214,140,255,.20);background:rgba(177,77,255,.08);color:#f0d4ff;border-radius:10px;padding:8px 10px;cursor:pointer;font-size:11px;font-weight:850;flex:0 0 auto}
.copy-button:hover{background:rgba(177,77,255,.14)}
.app-note{padding:0 18px 14px;color:var(--muted);font-size:12px;line-height:1.55}
.app-actions{display:grid;gap:8px;margin-top:auto;padding:0 18px 18px}
.open-link{display:flex;align-items:center;justify-content:center;text-decoration:none;border:1px solid rgba(214,140,255,.18);color:#f7ecff;background:rgba(177,77,255,.10);border-radius:13px;padding:11px 12px;font-size:12px;font-weight:850}
.open-link:hover{background:rgba(177,77,255,.16)}
.state-card{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;border:1px dashed var(--line);border-radius:18px;color:var(--muted);padding:30px;background:rgba(255,255,255,.015)}
.state-card strong{color:var(--text);font-size:17px}.state-card.error .state-icon{color:var(--danger)}
.state-icon{width:46px;height:46px;border-radius:14px;background:rgba(255,255,255,.04);display:grid;place-items:center;font-size:20px;font-weight:900}
.spinner{width:30px;height:30px;border:3px solid rgba(255,255,255,.08);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite;margin-bottom:5px}
@keyframes spin{to{transform:rotate(360deg)}}
.primary-button,.secondary-button{
  display:inline-flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;
  border-radius:13px;padding:11px 15px;font-size:13px;font-weight:900;transition:.18s ease;
}
.primary-button{border:1px solid rgba(214,140,255,.24);background:linear-gradient(135deg,#b14dff,#d46cff);color:#fff;box-shadow:0 14px 28px rgba(126,34,206,.24)}
.primary-button:hover{transform:translateY(-1px);filter:brightness(1.05)}
.secondary-button{border:1px solid var(--line);background:rgba(255,255,255,.03);color:var(--text)}
.secondary-button:hover{background:rgba(255,255,255,.06)}
.toast{position:fixed;z-index:50;left:50%;bottom:24px;transform:translate(-50%,20px);opacity:0;pointer-events:none;padding:11px 15px;border:1px solid rgba(255,255,255,.12);background:#140c22;border-radius:12px;box-shadow:0 14px 40px rgba(0,0,0,.36);font-size:13px;font-weight:750;transition:.2s ease}.toast.show{opacity:1;transform:translate(-50%,0)}
.footer{border-top:1px solid var(--line);color:var(--muted);font-size:11px;margin-top:8px}
.footer-inner{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px}

/* Instalação / grupos */
.apps-groups{display:grid;gap:20px}
.install-group{display:grid;gap:12px}
.install-group+.install-group{padding-top:18px;border-top:1px solid var(--line)}
.install-group-head{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:11px;padding:2px 2px 4px}
.install-group-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;border:1px solid var(--line);background:rgba(255,255,255,.03);color:var(--accent-2)}
.install-group-icon svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.install-group.store .install-group-icon{color:#a5f2ce;border-color:rgba(88,226,168,.20);background:rgba(88,226,168,.08)}
.install-group.manual .install-group-icon{color:var(--accent-2);border-color:rgba(214,140,255,.20);background:rgba(177,77,255,.08)}
.install-group-head h3{margin:0;font-size:16px}
.install-group-head p{margin:4px 0 0;color:var(--muted);font-size:11px;line-height:1.5}
.install-count{min-width:30px;height:30px;display:grid;place-items:center;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.03);font-size:11px;font-weight:900;color:var(--muted)}
.method-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.method-badge{border-radius:999px;padding:5px 8px;font-size:10px;font-weight:850;border:1px solid var(--line)}
.method-badge.store{color:#d0f9e8;border-color:rgba(88,226,168,.22);background:rgba(88,226,168,.08)}
.method-badge.manual{color:#f0d4ff;border-color:rgba(214,140,255,.18);background:rgba(177,77,255,.08)}
.open-link.store-link{border-color:rgba(88,226,168,.20);background:rgba(88,226,168,.08);color:#d9fff0}

@media(max-width:960px){.device-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.apps-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.top-actions{gap:8px}.brand-subtitle{font-size:16px}.portal-nav{padding:3px}.nav-link{padding:8px 9px;font-size:11px}.live-pill{display:none}}
@media(max-width:640px){
  .shell{width:min(100% - 22px,1180px)}
  .topbar-inner{min-height:72px;align-items:flex-start;padding:12px 0}
  .brand-logo{width:44px;height:44px}.brand-subtitle{font-size:15px}
  .page{padding:30px 0 46px}
  .hero,.credits-hero{padding:22px 18px}
  .hero h1,.credits-hero h1{font-size:38px}
  .device-section,.results-section{padding:16px;border-radius:20px}
  .section-head,.results-head{align-items:flex-start;flex-direction:column}
  .section-head{gap:8px}
  .device-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .device-card{min-height:96px;padding:14px 12px}
  .apps-grid{grid-template-columns:1fr}
  .search-wrap{width:100%;min-width:0}
  .footer-inner{align-items:flex-start;flex-direction:column;justify-content:center;padding:18px 0;gap:6px}
  .install-group-head{grid-template-columns:38px minmax(0,1fr) auto}
  .install-group-icon{width:38px;height:38px}.install-group-head p{font-size:10px}
}
