:root{
  --bg:#07070c;
  --stroke:#232343;
  --muted:rgba(255,255,255,.70);
  --muted2:rgba(255,255,255,.55);
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:#fff;
  background:
    radial-gradient(900px 500px at 20% -10%, rgba(120,70,255,.18), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(0,255,180,.10), transparent 55%),
    radial-gradient(700px 500px at 40% 120%, rgba(255,180,0,.10), transparent 55%),
    var(--bg);
  background-repeat:no-repeat;
  background-attachment: scroll;
}

/* Fondo con imagen (PRO) */
body[data-bg="image"]{
  background:
    linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.75)),
    var(--bgImage);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* iPhone/iPad: fixed da problemas */
@supports (-webkit-touch-callout: none){
  body[data-bg="image"]{ background-attachment: scroll; }
}

.wrap{ max-width:560px; margin:0 auto; padding:26px 18px 34px; }

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
}

.header{ display:flex; gap:14px; align-items:flex-start; margin-bottom:12px; }

.avatar{
  width:92px; height:92px;
  border-radius:20px;
  object-fit:cover;
  border:1px solid var(--stroke);
  background:#0f0f18;
}

/* ===== Nombre + badge + menú (sin cortarse en iPhone) ===== */
.nameRow{
  display:flex;
  align-items:center;
  gap:10px;
}

.name{
  font-size:22px;
  margin:0;
  line-height:1.15;

  display:flex;
  align-items:center;
  gap:8px;

  flex:1 1 auto;
  min-width:0; /* CLAVE */
}

/* ✅ Nombre SIN "..." (hasta 2 líneas, no invade el menú) */
.nameText{
  min-width:0;
  overflow:hidden;
  text-overflow:clip;
  white-space:normal;

  display:-webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;   /* 2 líneas */
  line-clamp: 2;
}

/* badge no se encoge */
.ig-verified{
  flex:0 0 auto;
  width:24px;
  height:24px;
}

/* menú */
.menuWrap{ position:relative; flex:0 0 auto; }

/* móviles: un poquito más pequeño para que nunca choque */
@media (max-width: 420px){
  .ig-verified{ width:20px; height:20px; }
  .menuBtn{ width:36px; height:36px; }
}

.bio{ margin:6px 0 0; color:var(--muted); font-size:14px; line-height:1.4; }
/* ===== Demo Audio contenedor ===== */
.demo{
  margin-top:12px;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
}
.demoTitle{
  font-weight:1000;
  font-size:13px;
  opacity:.85;
  margin:0 0 8px;
  display:flex;
  align-items:center;
  gap:8px;
}
.demoMeta{
  font-size:12px;
  opacity:.65;
  margin-top:6px;
}

/* ===== Mini Player ===== */
.miniPlayer{
  display:flex;
  align-items:center;
  gap:10px;
}
.miniPlay{
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color:#fff;
  font-weight:1000;
  cursor:pointer;
  backdrop-filter: blur(8px);
  transition: transform .12s ease, background .12s ease;
}
.miniPlay:hover{ background: rgba(255,255,255,.14); transform: translateY(-1px); }
.miniBar{
  flex:1;
  height:6px;
  border-radius:999px;
  background: rgba(255,255,255,.14);
  overflow:hidden;
  position:relative;
}
.miniProgress{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, rgba(158,203,255,.95), rgba(255,255,255,.92));
}
.miniTime{
  font-size:11px;
  opacity:.72;
  width:40px;
  text-align:right;
}

/* ===== Menu Hamburger (perfil público) ===== */
.menuBtn{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color:#fff;
  border-radius:12px;
  width:38px;
  height:38px;
  font-size:20px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: all .12s ease;
}
.menuBtn:hover{ background: rgba(255,255,255,.12); transform: translateY(-1px); }

.menu{
  position:absolute;
  top:44px;
  right:0;
  width:220px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(12,12,22,.92);
  backdrop-filter: blur(14px);
  border-radius:14px;
  padding:8px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  display:none;
  z-index:1100;
}
.menu.open{ display:block; }

.menuItem, .menuItemMuted{
  display:block;
  padding:10px 10px;
  border-radius:12px;
  text-decoration:none;
  font-weight:900;
  font-size:13px;
}
.menuItem{ color:#fff; }
.menuItem:hover{ background: rgba(255,255,255,.08); }
.menuItemMuted{ color: rgba(255,255,255,.70); font-weight:800; padding-top:8px; padding-bottom:6px; }
.menuSep{ height:1px; margin:6px 6px; background: rgba(255,255,255,.12); }

/* ===== Botones de links ===== */
.btn{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:#fff;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border:1px solid var(--stroke);
  padding:14px 14px;
  border-radius:16px;
  margin:10px 0;
  font-weight:900;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.04);
  border-color:#2f2f5a;
}
.ico{
  width:22px;
  height:22px;
  flex:0 0 22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
}
.ico svg{ width:22px; height:22px; fill:currentColor; }
.label{ flex:1; }
.badge{
  font-size:12px;
  color:var(--muted2);
  border:1px solid var(--stroke);
  padding:6px 10px;
  border-radius:999px;
}

/* Featured */
.btn.featured{
  padding:16px 16px;
  border-color: rgba(255,255,255,.20);
  background:
    radial-gradient(600px 260px at 10% 0%, rgba(255,120,0,.24), transparent 55%),
    radial-gradient(600px 260px at 110% 60%, rgba(120,70,255,.22), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}
.tag{
  display:inline-block;
  font-size:12px;
  font-weight:1000;
  padding:6px 10px;
  border-radius:999px;
  margin-right:8px;
  border:1px solid rgba(255,255,255,.20);
  background: rgba(255,120,0,.14);
  color: rgba(255,255,255,.92);
}

.empty{
  margin:14px 0 6px;
  padding:12px 14px;
  border:1px dashed rgba(255,255,255,.18);
  border-radius:16px;
  color:rgba(255,255,255,.75);
  font-size:13px;
}

/* Premium */
.premium{
  margin-top:12px;
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}
.premium .pbtn{
  display:inline-block;
  margin-top:10px;
  padding:12px 14px;
  border-radius:14px;
  text-decoration:none;
  font-weight:1000;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  color:#fff;
}
.premium .pbtn:hover{ background: rgba(255,255,255,.14); transform: translateY(-1px); }
.premium .note{ font-size:12px; opacity:.75; margin-top:6px; }

/* ===== IG-Style Admin Drawer ===== */
.fab{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:999;
  border-radius:999px;
  padding:12px 14px;
  font-weight:1000;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color:#fff;
  cursor:pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  display:flex;
  align-items:center;
  gap:8px;
}
.fab:hover{ background: rgba(255,255,255,.14); transform: translateY(-1px); }

.backdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.55);
  z-index:998;
  opacity:0;
  pointer-events:none;
  transition: opacity .15s ease;
}
.backdrop.open{ opacity:1; pointer-events:auto; }

.drawer{
  position:fixed;
  top:0;
  right:0;
  height:100%;
  width:min(380px, 92vw);
  z-index:999;
  transform: translateX(110%);
  transition: transform .18s ease;
  border-left:1px solid rgba(255,255,255,.14);

  /* ✅ que se vea integrado con el fondo */
  background:
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.82)),
    radial-gradient(900px 500px at 20% -10%, rgba(120,70,255,.14), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(0,255,180,.10), transparent 55%),
    rgba(12,12,22,.88);

  backdrop-filter: blur(16px);
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.drawer.open{ transform: translateX(0); }

.adTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 10px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  background: rgba(255,255,255,.04);
}
.adProfile{ display:flex; align-items:center; gap:10px; min-width:0; }
.adAvatar{
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  object-fit:cover;
  background:#0f0f18;
}
.adName{ font-weight:1000; letter-spacing:.2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.adMeta{ font-size:12px; opacity:.78; margin-top:2px; }
.adPill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  opacity:.95;
}
.xbtn{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:#fff;
  border-radius:14px;
  padding:10px 12px;
  cursor:pointer;
}
.xbtn:hover{ background: rgba(255,255,255,.10); }

.adActions{ display:flex; gap:10px; flex-wrap:wrap; }
.aChip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color:#fff;
  font-weight:1000;
  cursor:pointer;
  text-decoration:none;
}
.aChip:hover{ background: rgba(255,255,255,.08); transform: translateY(-1px); }
.aChip small{ font-weight:900; opacity:.75; }

.adList{ display:flex; flex-direction:column; gap:10px; }
.adItem{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 12px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color:#fff;
  text-decoration:none;
}
.adItem:hover{ background: rgba(255,255,255,.08); transform: translateY(-1px); }
.adLeft{ display:flex; align-items:center; gap:10px; min-width:0; }
.adIco{
  width:36px;
  height:36px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  flex:0 0 auto;
}
.adTxt{ min-width:0; }
.adTitle{ font-weight:1000; line-height:1.15; }
.adDesc{
  font-size:12px;
  opacity:.72;
  margin-top:2px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.adGo{ opacity:.75; font-weight:1000; }

.toast{
  position:fixed;
  left:50%;
  bottom:86px;
  transform:translateX(-50%);
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(10,10,18,.86);
  backdrop-filter: blur(12px);
  font-size:13px;
  font-weight:900;
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
  z-index:2000;
}
.toast.show{ opacity:1; transform:translateX(-50%) translateY(-6px); }

/* Smartbar */
.smartbar{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:9999;
  padding:10px 14px;
  background: rgba(10,10,18,.86);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(255,255,255,.12);
}
.smartbar .inner{
  max-width:560px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.smartbar .msg{
  font-size:13px;
  opacity:.92;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.smartbar .pill{
  font-size:12px;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  opacity:.95;
}
.smartbar a.cta{
  text-decoration:none;
  font-weight:900;
  font-size:13px;
  padding:8px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color:#9ecbff;
  white-space:nowrap;
}
.smartbar-spacer{ height:44px; }