/* ═══ HUB App — overrides on top of styles.css ═══ */

/* Profile header inside .content */
.profile-head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.profile-photo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.3rem;
  color: #0a0a0a;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px oklch(100% 0 0 / 0.08) inset;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { flex: 1; min-width: 0; }
.profile-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.profile-name { font-size: 1.05rem; font-weight: 600; color: var(--text); }
.profile-stats { display: flex; gap: 20px; margin-bottom: 8px; }
.profile-stat { text-align: center; }
.profile-stat-num { font-family: "JetBrains Mono", monospace; font-weight: 600; font-size: .95rem; color: var(--text); font-variant-numeric: tabular-nums; }
.profile-stat-label { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.profile-bio { font-size: .8rem; line-height: 1.5; color: var(--text-2); margin-bottom: 4px; }
.profile-meta { font-size: .72rem; color: var(--muted); margin-bottom: 4px; }
.profile-social { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.profile-social a { font-size: .72rem; color: var(--accent); transition: .15s; }
.profile-social a:hover { color: var(--text); }
.profile-actions { display: flex; gap: 8px; margin-top: 8px; }

/* Role badges */
.role-badge { font-size: .62rem; padding: 2px 7px; border-radius: 4px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.role-influencer { background: color-mix(in oklch, var(--accent) 12%, transparent); color: var(--accent); border: 1px solid color-mix(in oklch, var(--accent) 25%, transparent); }
.role-admin { background: color-mix(in oklch, var(--info) 12%, transparent); color: var(--info); border: 1px solid color-mix(in oklch, var(--info) 25%, transparent); }
.role-usuario { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }

/* IG connect button */
.btn-ig-connect { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 6px; font-weight: 600; font-size: .76rem; cursor: pointer; border: 1px solid transparent; text-decoration: none; transition: .15s; }
.btn-ig-connect.instagram { background: linear-gradient(135deg, #f09433, #dc2743, #cc2366); color: #fff; }
.btn-ig-connect.instagram:hover { box-shadow: 0 4px 12px rgba(220, 39, 67, .25); }

/* Meta auth pill */
.meta-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 4px; font-size: .66rem; font-weight: 600; background: color-mix(in oklch, var(--warn) 10%, transparent); border: 1px solid color-mix(in oklch, var(--warn) 20%, transparent); color: var(--warn); }
.meta-pill svg { width: 12px; height: 12px; }
.meta-value-muted { color: color-mix(in oklch, var(--text) 30%, transparent); font-size: .78rem; }

/* Nav dot (new badge in sidebar) */
.nav-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px color-mix(in oklch, var(--gold) 50%, transparent); }

/* Tutorial / onboarding dots */
.tut-dot { width: 8px; height: 8px; border-radius: 50%; }
.tut-dot.done { background: var(--pos); }
.tut-dot.pending { background: var(--muted); }

/* Page layout */
.page-dash { padding: 0; }
.chart-area { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; height: 320px; display: flex; flex-direction: column; box-shadow: 0 0 40px rgba(0,194,255,0.04); }
.chart-title { font-size: 13px; font-weight: 550; padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.chart-placeholder { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.carousel { display: flex; gap: 8px; overflow-x: auto; }

/* Form inputs */
.inp { width: 100%; padding: 8px 10px; font-size: 13px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-family: inherit; box-sizing: border-box; }
.inp:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45,124,255,0.1); }
textarea.inp { resize: vertical; min-height: 60px; }
select.inp { cursor: pointer; }

/* KPI grid (app variant) */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; box-shadow: 0 0 40px rgba(0,194,255,0.08); }
.stat-label { font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.stat-value { font-size: 24px; font-weight: 600; font-family: "JetBrains Mono", monospace; }
.stat-delta { font-size: 12px; margin-top: 4px; }
.stat-delta.positive { color: var(--pos); }

/* Responsive tweaks for app-specific */
@media (max-width: 900px) {
  .profile-head { flex-direction: column; gap: 12px; padding: 12px 0; }
  .profile-stats { gap: 12px; }
}
