/* HEXIVIA Social-style UI (original, not a clone) */

:root{
  --hx-bg: #eef1f5;
  --hx-card: #ffffff;
  --hx-border: rgba(15, 23, 42, .08);
  --hx-shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --hx-radius: 16px;
  --hx-text: #0f172a;
  --hx-muted: rgba(15, 23, 42, .62);
}

.hx-body{
  background: var(--hx-bg);
  color: var(--hx-text);
}

.hx-topbar{
  border-bottom: 1px solid var(--hx-border);
}

.hx-brand{
  letter-spacing: .3px;
}

.hx-brand-sub{
  font-weight: 600;
  color: var(--hx-muted);
  margin-left: 6px;
}

.hx-search .form-control{
  width: min(520px, 100%);
  border-radius: 999px;
  background: #f7f8fb;
  border: 1px solid var(--hx-border);
}

.hx-card{
  border: 1px solid var(--hx-border);
  border-radius: var(--hx-radius);
  background: var(--hx-card);
}

.hx-alert{
  border-radius: 14px;
  border: 1px solid var(--hx-border);
}

.hx-hero{
  padding: 18px 4px;
}

.hx-badge{
  background: #ffffff;
  color: var(--hx-text);
  border: 1px solid var(--hx-border);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 600;
}

.hx-mini-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 992px){
  .hx-mini-grid{ grid-template-columns: 1fr; }
}

.hx-mini-card{
  border: 1px solid var(--hx-border);
  border-radius: var(--hx-radius);
  background: rgba(255,255,255,.7);
  padding: 14px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .04);
}

.hx-mini-title{
  font-weight: 800;
  margin-bottom: 4px;
}

.hx-mini-text{
  color: var(--hx-muted);
  font-size: 14px;
}

.hx-avatar{
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #22c55e);
  box-shadow: 0 10px 25px rgba(37, 99, 235, .18);
}

.hx-avatar-sm{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
}

.hx-media{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hx-media img{
  width: 180px;
  max-width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--hx-border);
  box-shadow: 0 10px 20px rgba(15, 23, 42, .06);
}

.hx-modal{
  border-radius: 18px;
  border: 1px solid var(--hx-border);
}
/* Grid Status (LIGHT / match index style) */
.hx-grid-status{
  border-radius: var(--hx-radius);
  border: 1px solid var(--hx-border);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.75));
  box-shadow: var(--hx-shadow);
  padding: 16px;
}

.hx-grid-cards{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 992px){
  .hx-grid-cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .hx-grid-cards{ grid-template-columns: 1fr; }
}

.hx-stat{
  border: 1px solid var(--hx-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
  padding: 14px 14px;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* “accent” leggero, originale, non copia di nessuno */
.hx-stat::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(220px 120px at 20% 20%, rgba(37,99,235,.10), transparent 60%),
              radial-gradient(220px 120px at 80% 30%, rgba(34,197,94,.10), transparent 60%);
  pointer-events:none;
}

.hx-stat-title{
  font-weight: 800;
  font-size: 14px;
  color: var(--hx-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  position: relative;
}

.hx-stat-value{
  margin-top: 4px;
  font-weight: 900;
  font-size: 34px;
  letter-spacing: .2px;
  color: var(--hx-text);
  position: relative;
}

.hx-login-uri{
  border: 1px solid var(--hx-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
  padding: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hx-login-uri::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(420px 140px at 50% 0%, rgba(124,58,237,.10), transparent 60%),
              radial-gradient(420px 160px at 50% 100%, rgba(6,182,212,.10), transparent 65%);
  pointer-events:none;
}

.hx-login-uri-title{
  font-weight: 800;
  font-size: 14px;
  color: var(--hx-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  position: relative;
}

.hx-login-uri-value{
  margin-top: 6px;
  font-weight: 900;
  font-size: 22px;
  color: var(--hx-text);
  word-break: break-all;
  position: relative;
}
