@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--text:#11131a;--muted:#747c8c;--line:#e9ecf2;--blue:#0095f6;--bg:#fff;--soft:#f7f8fa;--card:#fff}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Manrope,system-ui,sans-serif;color:var(--text);background:#fff}a{text-decoration:none;color:inherit}img{display:block;max-width:100%}
.profile-shell{max-width:1040px;margin:0 auto;padding:0 24px 80px}
.profile-topbar{height:66px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fffdfd;z-index:20}
.profile-topbar a{font-size:22px}.profile-topbar strong{font-size:16px}.profile-topbar .more{font-size:24px}
.profile-header{display:grid;grid-template-columns:150px 1fr;gap:42px;padding:42px 24px 28px;border-bottom:1px solid var(--line)}
.avatar-ring{width:150px;height:150px;border-radius:50%;padding:4px;background:linear-gradient(135deg,#f9ce34,#ee2a7b 52%,#6228d7);align-self:start}
.avatar-ring img{width:100%;height:100%;object-fit:cover;border-radius:50%;border:4px solid #fff}
.identity-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.identity-row h1{font-size:28px;margin:0;letter-spacing:-.04em}.verify{width:17px;height:17px;display:inline-grid;place-items:center;background:#3897f0;color:#fff;clip-path:polygon(50% 0,58% 8%,69% 4%,75% 14%,87% 13%,89% 25%,100% 31%,94% 42%,100% 50%,94% 58%,100% 69%,89% 75%,87% 87%,75% 86%,69% 96%,58% 92%,50% 100%,42% 92%,31% 96%,25% 86%,13% 87%,11% 75%,0 69%,6% 58%,0 50%,6% 42%,0 31%,11% 25%,13% 13%,25% 14%,31% 4%,42% 8%);font:900 10px Arial}
.handle{color:var(--muted);font-size:13px;margin-top:3px}
.action-row{display:flex;gap:10px;margin-top:16px}.btn{border-radius:9px;padding:10px 16px;font-size:12px;font-weight:700}.btn.primary{background:var(--blue);color:#fff}.btn.secondary{background:#f0f1f3}
.stat-row{display:flex;gap:30px;margin-top:22px}.stat-row span{display:flex;gap:4px;align-items:baseline}.stat-row b{font-size:17px}.stat-row small{font-size:12px;color:var(--muted)}
.bio{margin-top:18px;max-width:650px;font-size:13px;line-height:1.5;color:#485164}
.tabs{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--line);position:sticky;top:66px;background:#fff;z-index:15}
.tab-btn{border:0;background:#fff;padding:16px 8px;font:700 11px Manrope;color:#8a91a0;border-bottom:2px solid transparent;cursor:pointer}.tab-btn.active{color:#111;border-color:#111}
.tab-panel{display:none;padding:24px 0}.tab-panel.active{display:block}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.post{position:relative;aspect-ratio:1/1;overflow:hidden;background:#111}.post img{width:100%;height:100%;object-fit:cover}.post:after{content:'◧';position:absolute;right:10px;top:8px;color:#fff;font-size:18px;text-shadow:0 1px 5px #000}
.insight-hero{display:grid;grid-template-columns:1.1fr .9fr;gap:16px}.metric-card{border:1px solid var(--line);border-radius:18px;padding:20px;background:#fff}.metric-card.big{background:#0f1115;color:#fff}.metric-card h3{font-size:12px;color:#8b93a4;margin:0 0 10px}.metric-card strong{font-size:38px;letter-spacing:-.04em}.metric-card p{font-size:11px;color:#8b93a4;margin:6px 0 0}
.metric-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.metric-grid .metric-card strong{font-size:24px;color:#111}.source{font-size:9px;color:#9298a6;margin-top:12px}
.audience-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.aud-card{border:1px solid var(--line);border-radius:18px;padding:18px}.aud-card h3{font-size:15px;margin:0 0 16px}.bar-row{display:grid;grid-template-columns:70px 1fr 42px;gap:10px;align-items:center;margin:12px 0}.bar-row span,.bar-row b{font-size:10px}.track{height:8px;border-radius:99px;background:#eef0f4;overflow:hidden}.track i{display:block;height:100%;background:linear-gradient(90deg,#ec54c7,#8e54ff);border-radius:99px}
.partners{display:grid;grid-template-columns:1fr 1fr;gap:14px}.partner-card{border:1px solid var(--line);border-radius:18px;padding:18px}.partner-card h3{margin:0 0 8px;font-size:16px}.partner-card p{font-size:11px;color:var(--muted);line-height:1.5}.partner-card .tag{display:inline-flex;margin-top:10px;padding:7px 10px;border-radius:99px;background:#f2f3f5;font-size:9px}
.bottom-nav{display:none}
@media(max-width:700px){
 .profile-shell{padding:0 0 84px}.profile-topbar{padding:0 16px}.profile-header{grid-template-columns:88px 1fr;gap:18px;padding:24px 16px 18px}.avatar-ring{width:88px;height:88px;padding:3px}.identity-row h1{font-size:20px}.verify{width:15px;height:15px;font-size:8px}.handle{font-size:10px}.action-row{gap:8px;margin-top:12px}.btn{padding:9px 12px;font-size:10px}.stat-row{gap:16px;margin-top:16px}.stat-row b{font-size:14px}.stat-row small{font-size:9px}.bio{grid-column:1/-1;font-size:11px;margin-top:4px}.tabs{top:66px}.tab-btn{font-size:9px;padding:14px 4px}.tab-panel{padding:14px 0}.grid{gap:2px}.insight-hero{grid-template-columns:1fr;padding:0 12px}.metric-grid{grid-template-columns:repeat(2,1fr)}.metric-card{padding:16px}.metric-card strong{font-size:34px}.audience-grid,.partners{grid-template-columns:1fr;padding:0 12px}.bottom-nav{position:fixed;left:0;right:0;bottom:0;height:68px;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);z-index:30}.bottom-nav button{border:0;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#697180}.bottom-nav button.active{color:#111}.bottom-nav small{font-size:8px}
}


/* v2: current Instagram-inspired profile refinement */
body{background:#fff}
.profile-shell{max-width:935px}
.profile-topbar{
  height:60px;
  border-bottom:1px solid #efefef;
  background:#fff;
}
.profile-topbar strong{font-size:15px}
.profile-header{
  grid-template-columns:136px 1fr;
  gap:34px;
  padding:34px 18px 24px;
  border-bottom:0;
}
.avatar-ring{
  width:136px;height:136px;padding:3px;
  background:linear-gradient(45deg,#f9ce34,#ee2a7b 55%,#6228d7);
}
.avatar-ring img{border-width:3px}
.identity-row{gap:7px}
.identity-row h1{font-size:25px;font-weight:600;letter-spacing:-.03em}
.verify{
  width:16px;height:16px;font-size:8px;
  background:#0095f6;
}
.handle{font-size:12px;color:#737373}
.action-row{margin-top:14px;gap:8px}
.btn{border-radius:8px;padding:8px 14px;font-size:11px}
.btn.primary{background:#0095f6}
.btn.secondary{background:#efefef;color:#262626;border:0}
.stat-row{gap:24px;margin-top:18px}
.stat-row b{font-size:16px;font-weight:600}
.stat-row small{font-size:11px;color:#737373}
.bio{font-size:12px;line-height:1.45;color:#262626;margin-top:14px}
.tabs{
  grid-template-columns:repeat(3,1fr);
  border-top:1px solid #efefef;
  border-bottom:1px solid #efefef;
  position:sticky;top:60px;
}
.tab-btn{
  padding:14px 8px;
  font-size:10px;
  letter-spacing:.02em;
  color:#8e8e8e;
  border-bottom:1px solid transparent;
}
.tab-btn.active{color:#262626;border-color:#262626}
.tab-panel{padding:22px 0}
.insight-hero{gap:12px}
.metric-card,.aud-card,.partner-card{
  border:1px solid #efefef;
  border-radius:12px;
  box-shadow:none;
}
.metric-card.big{
  background:#fff;
  color:#111;
}
.metric-card h3{font-size:10px;color:#8e8e8e;text-transform:none}
.metric-card strong{font-size:36px}
.metric-card.big strong{color:#111}
.metric-card p{color:#737373}
.metric-grid{gap:10px}
.metric-grid .metric-card strong{font-size:22px}
.source{padding:0 2px;color:#a0a0a0}
.audience-grid,.partners{gap:12px}
.aud-card h3,.partner-card h3{font-size:14px}
.bar-row{grid-template-columns:66px 1fr 40px}
.track{height:6px;background:#f0f0f0}
.track i{background:#0095f6}
.partner-card .tag{
  background:#efefef;
  color:#737373;
  border-radius:8px;
}
.bottom-nav{
  grid-template-columns:repeat(3,1fr)!important;
  height:62px!important;
}
.bottom-nav button{font-size:19px}
.bottom-nav small{font-size:8px}

@media(max-width:700px){
  .profile-shell{padding-bottom:72px}
  .profile-topbar{height:54px;padding:0 14px}
  .profile-header{
    grid-template-columns:82px 1fr;
    gap:16px;
    padding:18px 14px 14px;
  }
  .avatar-ring{width:82px;height:82px}
  .identity-row h1{font-size:18px}
  .verify{width:14px;height:14px;font-size:7px}
  .handle{font-size:10px}
  .action-row{margin-top:10px}
  .btn{padding:8px 10px;font-size:9px}
  .stat-row{gap:12px;margin-top:13px;flex-wrap:wrap}
  .stat-row b{font-size:13px}
  .stat-row small{font-size:8px}
  .bio{grid-column:1/-1;margin-top:2px;font-size:10.5px}
  .tabs{top:54px}
  .tab-btn{padding:12px 4px;font-size:8.5px}
  .tab-panel{padding:12px 0}
  .insight-hero{padding:0 10px}
  .metric-card{padding:14px}
  .metric-card strong{font-size:30px}
  .metric-grid .metric-card strong{font-size:20px}
  .audience-grid,.partners{padding:0 10px}
  .aud-card,.partner-card{padding:14px}
  .bottom-nav{height:62px!important}
}

/* Profile colorful icon language */
.profile-nav-icon{
  width:30px;height:30px;border-radius:10px;display:grid;place-items:center;
}
.profile-nav-icon svg{
  width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;
}
.pni-insights{color:#1597f4;background:#eaf6ff}
.pni-audience{color:#16a36a;background:#eaf8f1}
.pni-partners{color:#f08b20;background:#fff4e8}
.bottom-nav button{font-size:inherit}


/* Adaptive dark theme for media profile pages */
:root{color-scheme:light dark}

@media (prefers-color-scheme: dark){
  :root{
    --text:#f5f7fb;
    --muted:#9ba4b4;
    --line:#282d36;
    --blue:#3aa7ff;
    --bg:#0f1115;
    --soft:#171a20;
    --card:#15181e;
  }

  html,body{background:var(--bg);color:var(--text)}
  body{background:#0f1115}
  .profile-shell{background:#0f1115}

  .profile-topbar,
  .tabs,
  .tab-btn,
  .bottom-nav,
  .bottom-nav button{
    background:#111419;
    border-color:var(--line);
    color:#dce2ea;
  }
  .profile-topbar{background:#111419}
  .profile-topbar a,.profile-topbar strong,.profile-topbar .more{color:#f7f8fa}

  .profile-header{border-color:var(--line)}
  .identity-row h1{color:#fff}
  .handle,
  .stat-row small,
  .metric-card h3,
  .metric-card p,
  .source,
  .partner-card p{
    color:var(--muted);
  }
  .stat-row b{color:#fff}

  .btn.secondary{background:#23272f;color:#f4f6f8}
  .btn.primary{background:#148df0;color:#fff}

  .tabs{border-color:var(--line)}
  .tab-btn{color:#8f98a7}
  .tab-btn.active{color:#fff;border-color:#fff}

  .metric-card,
  .aud-card,
  .partner-card{
    background:var(--card);
    border-color:var(--line);
    color:#f6f7f9;
  }
  .metric-card.big{background:var(--card);color:#fff}
  .metric-card strong,
  .metric-card.big strong,
  .metric-grid .metric-card strong,
  .aud-card h3,
  .partner-card h3{
    color:#fff;
  }

  .track{background:#242a33}
  .track i{background:#2ea7ff}
  .partner-card .tag{background:#242931;color:#b7c0cd}

  .pni-insights{color:#6fc0ff;background:#16334a}
  .pni-audience{color:#63d99f;background:#17372a}
  .pni-partners{color:#ffb267;background:#3a2a18}

  .bottom-nav{border-color:var(--line)}
  .bottom-nav button{color:#9aa4b3}
  .bottom-nav button.active{color:#fff}
  .verify{background:#2ea7ff}
}
