/* StarBy — Central de acessos do sistema */
body[data-app="admin"] #tab-systems.tab-content.active{
  display:block!important;
  min-width:0;
}

.starby-access-shell{
  width:min(1240px,100%);
  margin:0 auto;
  display:grid;
  gap:22px;
}

.starby-access-hero{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:190px;
  padding:30px;
  border:1px solid rgba(151,113,255,.28);
  border-radius:26px;
  background:
    radial-gradient(circle at 88% 14%,rgba(166,114,255,.25),transparent 28%),
    radial-gradient(circle at 8% 92%,rgba(74,45,166,.22),transparent 34%),
    linear-gradient(145deg,rgba(24,17,53,.98),rgba(10,8,25,.99));
  box-shadow:0 24px 70px rgba(5,3,18,.28);
}

.starby-access-hero::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,.32) .7px,transparent .7px);
  background-size:22px 22px;
  opacity:.18;
}

.starby-access-hero-copy,
.starby-access-hero-actions{position:relative;z-index:1}

.starby-access-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
  color:#bda7ff;
  font-size:.75rem;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.starby-access-kicker::before{
  content:"✦";
  color:#8d63ff;
}

.starby-access-hero h1{
  margin:0;
  max-width:700px;
  color:#fff;
  font-size:clamp(1.65rem,3vw,2.45rem);
  line-height:1.08;
}

.starby-access-hero p{
  max-width:720px;
  margin:13px 0 0;
  color:#c7c0dc;
  font-size:.98rem;
  line-height:1.65;
}

.starby-access-hero-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:190px;
}

.starby-access-config-btn,
.starby-access-help-btn{
  min-height:46px;
  padding:0 18px;
  border-radius:13px;
  font-weight:850;
  cursor:pointer;
  transition:.18s ease;
}

.starby-access-config-btn{
  border:1px solid #9c79ff;
  background:linear-gradient(135deg,#7d4df2,#9b6cff);
  color:#fff;
  box-shadow:0 12px 28px rgba(115,72,222,.28);
}

.starby-access-help-btn{
  border:1px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.055);
  color:#e8e2f8;
}

.starby-access-config-btn:hover,
.starby-access-help-btn:hover{}

.starby-access-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.starby-access-summary article{
  display:flex;
  align-items:center;
  gap:13px;
  min-height:76px;
  padding:16px 18px;
  border:1px solid rgba(132,98,224,.18);
  border-radius:18px;
  background:rgba(18,14,38,.78);
}

.starby-access-summary span{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  flex:0 0 40px;
  border-radius:12px;
  background:rgba(132,86,255,.15);
  color:#b79cff;
  font-size:1.05rem;
}

.starby-access-summary strong{display:block;color:#fff;font-size:.95rem}
.starby-access-summary small{display:block;margin-top:3px;color:#948ba9;font-size:.78rem}

.starby-access-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.starby-access-card{
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:310px;
  padding:22px;
  border:1px solid rgba(137,103,226,.22);
  border-radius:22px;
  background:linear-gradient(160deg,rgba(26,20,51,.96),rgba(12,10,27,.98));
  box-shadow:0 17px 46px rgba(6,4,18,.2);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}

.starby-access-card:hover{
  border-color:rgba(157,117,255,.5);
  box-shadow:0 22px 58px rgba(9,5,28,.35);
}

.starby-access-card::after{
  content:"";
  position:absolute;
  width:130px;
  height:130px;
  right:-58px;
  top:-62px;
  border-radius:50%;
  background:rgba(135,87,255,.12);
}

.starby-access-card-top{
  position:relative;
  z-index:1;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.starby-access-icon{
  display:grid;
  place-items:center;
  width:52px;
  height:52px;
  border:1px solid rgba(166,128,255,.28);
  border-radius:16px;
  background:linear-gradient(145deg,rgba(139,88,255,.24),rgba(70,42,144,.18));
  font-size:1.35rem;
}

.starby-access-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:28px;
  padding:0 10px;
  border:1px solid rgba(68,214,151,.25);
  border-radius:999px;
  background:rgba(36,180,119,.1);
  color:#7ce8b6;
  font-size:.7rem;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.starby-access-status::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:#47dc98;
  box-shadow:0 0 0 4px rgba(71,220,152,.1);
}

.starby-access-card.is-unconfigured .starby-access-status{
  border-color:rgba(248,183,78,.25);
  background:rgba(248,183,78,.09);
  color:#ffd18a;
}
.starby-access-card.is-unconfigured .starby-access-status::before{background:#f8b74e;box-shadow:0 0 0 4px rgba(248,183,78,.1)}

.starby-access-platform{
  display:inline-block;
  margin-top:19px;
  color:#a98aff;
  font-size:.7rem;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.starby-access-card h2{
  margin:7px 0 0;
  color:#fff;
  font-size:1.2rem;
  line-height:1.25;
}

.starby-access-card p{
  margin:10px 0 20px;
  color:#a9a1ba;
  font-size:.86rem;
  line-height:1.55;
}

.starby-access-card-actions{
  display:grid;
  grid-template-columns:minmax(0,1fr) 42px;
  gap:9px;
  margin-top:auto;
}

.starby-access-open,
.starby-access-copy{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  border-radius:12px;
  font-weight:850;
  text-decoration:none;
  cursor:pointer;
  transition:.16s ease;
}

.starby-access-open{
  border:1px solid #8b62ef;
  background:linear-gradient(135deg,#7042df,#8e5df1);
  color:#fff;
}

.starby-access-copy{
  border:1px solid rgba(255,255,255,.13);
  background:rgba(255,255,255,.045);
  color:#cfc5e5;
}

.starby-access-open:hover,
.starby-access-copy:hover{filter:brightness(1.08)}
.starby-access-open[aria-disabled="true"]{border-color:rgba(255,255,255,.1);background:rgba(255,255,255,.06);color:#a59daf}
.starby-access-copy:disabled{opacity:.45;cursor:not-allowed}

.starby-access-note{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:16px 18px;
  border:1px solid rgba(139,103,226,.18);
  border-radius:17px;
  background:rgba(18,14,37,.74);
  color:#a9a1ba;
  font-size:.84rem;
  line-height:1.5;
}
.starby-access-note b{color:#e8e2f7}
.starby-access-note > span{color:#9e7bff}

.starby-access-modal{
  width:min(720px,calc(100vw - 28px));
  max-height:min(820px,calc(100vh - 34px));
  padding:0!important;
  overflow:hidden!important;
  border:1px solid rgba(157,119,255,.28)!important;
  border-radius:24px!important;
  background:#100c21!important;
}

.starby-access-modal .modal-close{
  z-index:5;
  top:17px!important;
  right:17px!important;
}

.starby-access-modal-scroll{
  max-height:min(820px,calc(100vh - 34px));
  padding:26px;
  overflow:auto;
}

.starby-access-modal-head{padding-right:46px;margin-bottom:21px}
.starby-access-modal-head span{color:#a98aff;font-size:.72rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.starby-access-modal-head h2{margin:6px 0;color:#fff;font-size:1.45rem}
.starby-access-modal-head p{margin:0;color:#9f97b1;font-size:.85rem;line-height:1.5}

.starby-access-form{display:grid;gap:13px}
.starby-access-form label{display:grid;gap:7px;color:#ded7ec;font-size:.82rem;font-weight:800}
.starby-access-form small{color:#81798f;font-weight:500}
.starby-access-form input{
  width:100%;
  min-height:45px;
  padding:0 13px;
  border:1px solid rgba(151,119,230,.24);
  border-radius:12px;
  outline:none;
  background:#17122c;
  color:#fff;
}
.starby-access-form input:focus{border-color:#8f68f1;box-shadow:0 0 0 3px rgba(143,104,241,.12)}

.starby-access-form-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding-top:8px;
}
.starby-access-form-actions button{
  min-height:44px;
  padding:0 18px;
  border-radius:12px;
  font-weight:850;
  cursor:pointer;
}
.starby-access-form-actions .secondary{border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.05);color:#d3cbe1}
.starby-access-form-actions .primary{border:1px solid #9d78ff;background:linear-gradient(135deg,#7547df,#9867f2);color:#fff}

@media (max-width:1050px){
  .starby-access-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:760px){
  .starby-access-hero{align-items:flex-start;flex-direction:column;padding:23px}
  .starby-access-hero-actions{width:100%;min-width:0;flex-direction:row}
  .starby-access-hero-actions button{flex:1}
  .starby-access-summary{grid-template-columns:1fr}
  .starby-access-grid{grid-template-columns:1fr}
  .starby-access-card{min-height:280px}
}

@media (max-width:460px){
  .starby-access-hero-actions{flex-direction:column}
  .starby-access-modal-scroll{padding:22px 17px}
  .starby-access-form-actions{display:grid;grid-template-columns:1fr}
}

/* Reforço de especificidade contra os estilos globais dos modais do painel. */
body[data-app="admin"] #starbySystemAccessModal .admin-modal-content.starby-access-modal{
  width:min(720px,calc(100vw - 28px))!important;
  max-width:min(720px,calc(100vw - 28px))!important;
  max-height:min(820px,calc(100vh - 34px))!important;
  padding:0!important;
  overflow:hidden!important;
  border-radius:24px!important;
}
body[data-app="admin"] #starbySystemAccessModal .modal-close{
  top:17px!important;
  right:17px!important;
  left:auto!important;
}
