
:root{
  --pink:#ff2e88;
  --bg:#0b0b10;
  --card:#14141c;
  --muted:#a9a9b3;
  --border:#242433;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  background:radial-gradient(1200px 400px at 50% -100px, #1b0f1a, var(--bg));
  color:#fff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

a{color:#fff;text-decoration:none}
a:hover{opacity:.9}

.container{max-width:1120px;margin:0 auto;padding:0 20px}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(12px);
  background:rgba(11,11,16,.85);
  border-bottom:1px solid var(--border);
}

.header-inner{
  height:96px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.brand img{height:84px}

.nav{display:flex;gap:18px}
.nav a{
  color:#d6d6dd;
  padding:.45rem .7rem;
  border-radius:8px;
}
.nav a:hover{background:#1e1e2d}

/* Buttons */
.btn, button{
  background:linear-gradient(135deg,#ff2e88,#ff5fa5);
  border:none;
  border-radius:10px;
  padding:.7rem 1.2rem;
  color:#fff;
  cursor:pointer;
  font-weight:500;
}
.btn:hover, button:hover{filter:brightness(1.05)}

/* Hero */
.hero{
  padding:72px 0 48px;
  text-align:center;
}
.hero h1{
  margin:0 0 12px;
  font-size:2.6rem;
  color:var(--pink);
}
.hero p{
  margin:0 0 28px;
  color:#d0d0da;
  font-size:1.25rem;
}
.hero video{
  max-width:960px;
  width:100%;
  margin:0 auto 28px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#000;
}

/* Cards */
.grid{display:grid;gap:24px}
.grid-3{grid-template-columns:repeat(3,1fr)}

.card{
  background:linear-gradient(180deg,#161622,#12121a);
  border:1px solid var(--border);
  border-radius:16px;
  padding:20px;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}

.card img{
  width:100%;
  border-radius:12px;
  margin-bottom:12px;
}

.card h3{
  margin:0 0 6px;
  color:var(--pink);
  font-size:1.05rem;
}

.card p{
  margin:0;
  color:#d0d0da;
  line-height:1.45;
}

/* Dashboard */
.dashboard h1{
  color:var(--pink);
  margin:32px 0 24px;
}

.row{display:grid;gap:24px}

/* Influencer image + meta */
.img-wrap{
  width: 320px;
  aspect-ratio: 2 / 3;
  background:#0f0f17;
  border-radius:14px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--border);
}
.img-wrap img{width:100%;height:100%;object-fit:cover;display:block}
.inf-meta{text-align:center;margin-top:.6rem}
.inf-meta .name{font-weight:700}
.inf-meta .vibe{color:var(--muted);margin-top:.15rem}

/* Gallery */
.gallery{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));
  gap:.75rem;
}
.gallery img{
  width:100%;
  aspect-ratio:2/3;
  object-fit:cover;
  border-radius:12px;
  display:block;
  cursor:pointer;
  border:1px solid var(--border);
}

/* Chat panel */
.influencer-grid{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:1rem;
  align-items:start;
}
.chat-card{background:transparent;border:none;padding:0}
.chat-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}
.chat-header h3{margin:0}
.chat-body{
  height:360px;
  overflow-y:auto;
  padding:1rem;
  background:#0f0f17;
  border:1px solid var(--border);
  border-radius:12px;
}
.chat-footer{display:flex;gap:.5rem;margin-top:.5rem}
.chat-footer button{white-space:nowrap}
.chat-footer input{flex:1}

/* Inputs */
input, textarea{
  width:100%;
  padding:0.7rem 0.8rem;
  border-radius:12px;
  border:1px solid var(--border);
  background:#0f0f17;
  color:#fff;
  font-family:inherit;
  outline:none;
}
textarea{min-height:110px;resize:vertical}
label{display:block;font-size:.9rem;margin:.55rem 0 .3rem;color:#d6d6dd}

/* Bubbles */
.bubble{
  max-width:min(520px, 80%);
  padding:.6rem .8rem;
  border-radius:14px;
  margin:.35rem 0;
  font-size:.95rem;
  line-height:1.35;
  position:relative;
  word-wrap:break-word;
  overflow-wrap:anywhere;
}
.bubble.user{background:#262636;margin-left:auto}
.bubble.ai{
  background:#1b1520;
  border:1px solid #ff2e8833;
  margin-right:auto;
}
.bubble .meta{
  display:block;
  margin-top:.25rem;
  font-size:.75rem;
  color:#aaa;
  text-align:right;
}
.ai .heart{position:absolute;top:-8px;left:-8px;font-size:14px;color:var(--pink)}
.typing{color:var(--pink);font-size:.9rem;margin-left:.5rem}

.hidden{display:none}
.muted{color:var(--muted)}
.center{display:flex;gap:1rem;align-items:center}

/* Modal */
#img-modal{
  position:fixed;
  top:0;left:0;
  width:100%;height:100%;
  background:rgba(0,0,0,0.85);
  display:none;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  z-index:1000;
}
#img-modal img{max-width:90%;max-height:80%;border-radius:14px}
#download-btn{margin-top:1rem}

/* Spinner overlay */
#spinner-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.6);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}
#spinner-overlay.show{display:flex}
.spinner{
  border:6px solid rgba(255,255,255,0.2);
  border-top:6px solid var(--pink);
  border-radius:50%;
  width:60px;height:60px;
  animation:spin 0.8s linear infinite;
}
@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}

/* Responsive */
@media (max-width:860px){
  .influencer-grid{grid-template-columns:1fr}
  .img-wrap{width:100%;max-width:420px;margin:0 auto}
}
@media (max-width:960px){
  .grid-3{grid-template-columns:1fr}
  .hero h1{font-size:2.1rem}
}

/* Footer */
.site-footer{
  margin-top:auto;
  background:#09090f;
  border-top:1px solid var(--border);
}
.footer-inner{
  height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
