/* CoinHelp Support — Premium Black & Gold UI */
:root{
  --bg:#0b0b0c;
  --bg2:#0e0e10;
  --panel:rgba(255,255,255,0.06);
  --stroke:rgba(255,255,255,0.12);
  --text:#e9e6dc;
  --muted:#9a968a;
  --gold:#f4c542;
  --gold-2:#e3a400;
  --shadow:0 12px 40px rgba(0,0,0,.5);
  --radius:22px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--text);
  background: radial-gradient(1200px 800px at 80% -20%, rgba(244,197,66,0.08), transparent 60%),
              radial-gradient(1200px 800px at -10% 110%, rgba(227,164,0,0.06), transparent 60%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, "Helvetica Neue", sans-serif;
  overflow-x:hidden;
}

/* Soft animated particles */
.bg{
  position:fixed; inset:0; pointer-events:none;
  background-image:
    radial-gradient(40vmax 40vmax at 10% 10%, rgba(244,197,66,.05), transparent 60%),
    radial-gradient(30vmax 30vmax at 90% 90%, rgba(227,164,0,.05), transparent 60%);
  animation: drift 22s ease-in-out infinite;
}
@keyframes drift{50%{transform:translateY(-10px)}}

/* Header */
.site-header{
  display:flex; align-items:center; justify-content:center;
  padding:18px 20px; border-bottom:1px solid var(--stroke);
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.12), transparent);
}
.brand{display:flex; align-items:center; gap:12px;}
.brand .logo{width:40px; height:40px; filter: drop-shadow(0 8px 24px rgba(244,197,66,.25));}
.brand-text h1{margin:0; font-size:22px; font-weight:800; letter-spacing:.4px}
.brand-text h1 span{color:var(--gold)}
.brand-text .sub{margin:2px 0 0; font-size:12px; color:var(--muted)}

/* Hero */
.hero{min-height:calc(100dvh - 120px); display:grid; place-items:center; padding:30px}
.glass{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.welcome-card{width:min(960px,92vw); padding:28px; text-align:center; animation: rise .6s ease both}
@keyframes rise{from{opacity:0; transform:translateY(8px)} to{opacity:1; transform:translateY(0)}}
.welcome-card .status-pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px; border:1px solid var(--stroke);
  font-size:12px; background:rgba(0,0,0,.35);
}
.status-pill .dot{width:8px; height:8px; border-radius:999px; background:#27ffb6; box-shadow:0 0 0 4px rgba(39,255,182,.18)}
.welcome-card h2{margin:12px 0 6px; font-size:38px; letter-spacing:.3px}
.welcome-card h2 span{color:var(--gold)}
.welcome-card p{margin:0 auto 14px; max-width:680px; color:var(--muted)}
.ticks{display:grid; grid-template-columns:repeat(3,1fr); gap:10px; list-style:none; padding:0; margin:18px 0 24px}
.ticks li{padding:10px 12px; border:1px solid var(--stroke); border-radius:14px; background:rgba(255,255,255,.04)}
.cta{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  height:50px; padding:0 20px; border-radius:999px; border:1px solid rgba(244,197,66,.45);
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  color:#0b0b0c; font-weight:800; cursor:pointer;
  box-shadow: 0 10px 30px rgba(244,197,66,.25);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.cta:hover{transform:translateY(-1px); filter:saturate(110%); box-shadow: 0 16px 40px rgba(244,197,66,.3)}

/* Chat bubble */
#chat-bubble{
  position:fixed; right:20px; bottom:20px; width:64px; height:64px;
  border-radius:999px; border:1px solid rgba(244,197,66,.45);
  background: radial-gradient(circle at 30% 30%, #fff5, transparent 35%), linear-gradient(160deg, var(--gold), var(--gold-2));
  color:#0b0b0c; display:grid; place-items:center; cursor:pointer;
  box-shadow: 0 10px 30px rgba(244,197,66,.35);
  transition: transform .18s ease, box-shadow .18s ease;
  z-index: 50;
}
#chat-bubble:hover{ transform: translateY(-2px); box-shadow: 0 18px 40px rgba(244,197,66,.42) }
#chat-bubble .pulse{ position:absolute; inset:-8px; border-radius:999px; border:2px solid rgba(244,197,66,.25); animation:pulse 2s infinite }
@keyframes pulse{ 50%{transform:scale(1.06); opacity:.6} }

#chat-bubble svg{ width:26px; height:26px; }

/* Chat window */
.chat-window{
  position: fixed; right: 20px; bottom: 92px; width: 360px; max-width: calc(100vw - 24px); height: 520px;
  display:none; flex-direction:column; overflow:hidden; z-index: 60;
}
.chat-window.open{ display:flex; animation: pop .18s ease }
@keyframes pop{ from{ transform: translateY(10px); opacity:0 } to{ transform: translateY(0); opacity:1 } }

.chat-header{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:10px 12px; border-bottom:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.2));
}
.chat-header .left{ display:flex; align-items:center; gap:10px }
.chat-header img{ width:28px; height:28px; border-radius:8px; filter: drop-shadow(0 6px 16px rgba(244,197,66,.25)); }
.chat-header .title{ font-weight:800 }
.chat-header .presence{ font-size:12px; color:var(--muted) }
.chat-header .presence .dot{ width:8px; height:8px; display:inline-block; border-radius:999px; background:#27ffb6; box-shadow:0 0 0 4px rgba(39,255,182,.18) }
.chat-header .close{ background:transparent; border:1px solid var(--stroke); color:var(--text); border-radius:10px; padding:6px 8px; cursor:pointer }

.chat-body{ flex:1; padding:12px; overflow:auto; display:flex; flex-direction:column; gap:10px; }
.msg{ display:flex; flex-direction:column; gap:4px; max-width:85% }
.msg .bubble{ padding:10px 12px; border-radius:16px; border:1px solid var(--stroke); background: rgba(255,255,255,.04); }
.msg .time{ font-size:11px; color:var(--muted) }
.msg.user{ align-self:flex-end }
.msg.user .bubble{ background: linear-gradient(180deg, rgba(244,197,66,.15), rgba(244,197,66,.05)); border-color: rgba(244,197,66,.45) }
.typing{ display:none; align-items:center; gap:6px; color:var(--muted); font-size:12px }
.typing .dot{ width:6px; height:6px; border-radius:999px; background:var(--muted); animation: blink 1s infinite alternate }
.typing .dot:nth-child(2){ animation-delay:.2s } .typing .dot:nth-child(3){ animation-delay:.4s }
@keyframes blink{ to{ opacity:.3 } }

.chat-input{ display:flex; gap:8px; padding:10px; border-top:1px solid var(--stroke); }
.chat-input input{ flex:1; padding:12px; border-radius:14px; border:1px solid var(--stroke); background:rgba(255,255,255,.03); color:var(--text); outline:none }
.chat-input .send{ width:44px; border-radius:14px; border:1px solid rgba(244,197,66,.45); background: linear-gradient(160deg, var(--gold), var(--gold-2)); color:#0b0b0c; cursor:pointer; font-weight:900 }
.tos{ text-align:center; font-size:11px; color:var(--muted); padding:6px 0; border-top:1px solid var(--stroke) }

/* Footer */
.site-footer{ border-top:1px solid var(--stroke); padding:16px; text-align:center; color:var(--muted) }

/* Responsive */
@media (max-width:480px){
  .chat-window{ right:12px; left:12px; width:auto; height:70vh }
  .ticks{ grid-template-columns: 1fr }
}
