/* ===== Base ===== */
:root{
  --bg: #0b0b10;
  --card: rgba(255,255,255,0.06);
  --card2: rgba(255,255,255,0.08);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --line: rgba(255,255,255,0.10);
  --accent: #ffd000;
  --accent2: #ff7a00;
  --danger: #ff0054;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 50% -10%, rgba(255, 208, 0, 0.12), transparent 55%),
              radial-gradient(1000px 700px at 20% 30%, rgba(255, 122, 0, 0.10), transparent 60%),
              var(--bg);
  color: var(--text);
}

/* ===== Temas (seu theme.js pode trocar a classe do body) ===== */
.theme-minimal{
  --bg: #0b0b10;
}
.theme-dark{
  --bg: #05060a;
}
.theme-neonnight{
  --bg: #04040a;
}

/* ===== Barra discreta (Instagram in-app) ===== */
.igbar{
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  padding: 10px 12px;
  background: rgba(0,0,0,.60);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.igbar__inner{
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.igbar__text{
  font-size: .90rem;
  line-height: 1.2;
  color: rgba(255,255,255,.92);
}

.igbar__actions{
  display: flex;
  gap: 8px;
  align-items: center;
}

.igbar__btn{
  border: 0;
  cursor: pointer;
  padding: 7px 10px;
  border-radius: 10px;
  font-weight: 800;
  font-size: .85rem;
  background: rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
}

.igbar__btn--ghost{
  background: transparent;
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.22);
}

.igbar__msg{
  max-width: 720px;
  margin: 6px auto 0 auto;
  font-size: .85rem;
  color: rgba(255,255,255,.92);
  opacity: .95;
}

/* ===== Layout ===== */
.container{
  max-width: 560px;
  margin: 22px auto 32px auto;
  padding: 18px 14px 18px 14px;
  text-align: center;
}

.msg-erro{
  max-width: 560px;
  margin: 14px auto 0 auto;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,0,84,0.16);
  border: 1px solid rgba(255,0,84,0.30);
  color: #fff;
  font-weight: 700;
}

/* ===== Avatar ===== */
.avatar-circle{
  width: 92px;
  height: 92px;
  margin: 10px auto 10px auto;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255,208,0,0.22), rgba(255,122,0,0.18));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.avatar-circle img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-circle span{
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
}

.username-minimal{
  font-size: .95rem;
  color: var(--muted);
  margin-top: 4px;
}

.floating-name{
  margin: 8px 0 2px 0;
  font-size: 1.35rem;
  letter-spacing: .2px;
}

.floating-bio{
  margin: 6px 0 16px 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.35;
}

/* ===== Links ===== */
.links{
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.link-wrap{
  position: relative;
  display: block;
}

.neon-btn{
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-decoration: none;
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.neon-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.16);
}

.icon-personal{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.icon-personal img{
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.link-content{
  font-weight: 800;
  font-size: 1rem;
  text-align: left;
  flex: 1;
}

/* Botões admin por link (remover/editar) */
.rem-btn, .edit-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.35);
  color: #fff;
  opacity: .95;
}

.rem-btn{ right: 8px; }
.edit-btn{ right: 48px; }

.rem-btn:hover{ background: rgba(255,0,84,0.25); border-color: rgba(255,0,84,0.35); }
.edit-btn:hover{ background: rgba(255,208,0,0.18); border-color: rgba(255,208,0,0.22); }

/* ===== Footer ===== */
footer{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
  color: var(--muted);
  font-size: .9rem;
}

.socials{
  margin-top: 10px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.socials a{
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

.socials a:hover{
  background: rgba(255,255,255,0.10);
}

/* ===== Admin controls ===== */
.admin-controls{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.admin-controls button,
.admin-controls a,
.theme-select{
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.admin-controls button:hover,
.admin-controls a:hover,
.theme-select:hover{
  background: rgba(255,255,255,0.12);
}

/* ===== Modal ===== */
.modal{
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  padding: 16px;
}

.add-form, .login-form{
  width: 100%;
  max-width: 420px;
  background: rgba(20,20,24,0.96);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  text-align: left;
}

.add-form h2, .login-form h2{
  margin: 6px 0 12px 0;
  text-align: center;
}

.add-form input,
.login-form input{
  width: 100%;
  margin: 8px 0;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  outline: none;
}

.add-form label{
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,0.82);
}

.add-form button, .login-form button{
  width: 100%;
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.add-form button[type="submit"], .login-form button[type="submit"]{
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #111;
}

.add-form button[type="button"], .login-form button[type="button"]{
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
}

/* ===== Botão engrenagem (login admin quando*
