@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* ── Palette ── */
  --bg:           #080010;
  --bg-card:      rgba(255,255,255,0.04);
  --bg-elevated:  rgba(255,255,255,0.07);
  --bg-glass:     rgba(20,0,30,0.7);

  --primary:      #e8125c;
  --primary-dim:  #b00d47;
  --primary-hover:#ff2070;
  --accent:       #ff1a5e;
  --accent2:      #c41e8a;   /* purple-pink second stop */
  --accent-glow:  rgba(232, 18, 92, 0.45);
  --accent-glow2: rgba(196, 30, 138, 0.3);

  --grad-btn:     linear-gradient(135deg, #ff1a5e 0%, #c41e8a 100%);
  --grad-card:    linear-gradient(135deg, rgba(232,18,92,0.12) 0%, rgba(196,30,138,0.06) 100%);
  --grad-hero:    linear-gradient(160deg, #1a0030 0%, #0d0018 50%, #080010 100%);

  --text:         #ffffff;
  --text-soft:    rgba(255,255,255,0.85);
  --text-muted:   rgba(255,255,255,0.45);
  --text-faint:   rgba(255,255,255,0.25);

  --border:       rgba(232,18,92,0.2);
  --border-bright:rgba(232,18,92,0.5);
  --border-glass: rgba(255,255,255,0.08);

  --radius:       14px;
  --radius-lg:    20px;
  --radius-pill:  999px;

  --shadow-glow:  0 0 24px var(--accent-glow), 0 4px 16px rgba(0,0,0,0.6);
  --shadow-card:  0 4px 24px rgba(0,0,0,0.5), 0 0 0 1px var(--border-glass);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(196,30,138,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 80%, rgba(232,18,92,0.1) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#app {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 env(safe-area-inset-bottom, 0);
}

/* ── Desktop layout ── */
@media (min-width: 1024px) {
  html, body { overflow: hidden; height: 100%; }

  #app.desktop-layout {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    flex-direction: row;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }
}

a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 800; line-height: 1.2; }
p { color: var(--text-muted); }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ── Utilities ── */
.hidden          { display: none !important; }
.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.gap-2           { gap: 0.5rem; }
.gap-3           { gap: 0.75rem; }
.gap-4           { gap: 1rem; }
.items-center    { align-items: center; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center     { text-align: center; }
.w-full          { width: 100%; }
.mt-2            { margin-top: 0.5rem; }
.mt-3            { margin-top: 0.75rem; }
.mt-4            { margin-top: 1rem; }
.mb-2            { margin-bottom: 0.5rem; }
.mb-4            { margin-bottom: 1rem; }
.p-4             { padding: 1rem; }
.rounded         { border-radius: var(--radius); }
.text-sm         { font-size: 0.875rem; }
.text-xs         { font-size: 0.75rem; }
.text-muted      { color: var(--text-muted); }
.font-bold       { font-weight: 700; }
.overflow-hidden { overflow: hidden; }

/* ── Spinner ── */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 26px; height: 26px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  display: inline-block;
}

/* ── Toast ── */
#toast-container {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%); z-index: 9999;
  display: flex; flex-direction: column; gap: 0.5rem;
  align-items: center; pointer-events: none;
  width: 90%; max-width: 440px;
}
.toast {
  background: rgba(20,0,35,0.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem; color: var(--text-soft);
  pointer-events: auto;
  animation: toast-in 0.25s ease; text-align: center;
}
.toast.error   { border-color: var(--accent); color: #ff6b9d; }
.toast.success { border-color: #00e676; color: #69f0ae; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
