/* ══════════════════════════════════════════════
   AnshAPI — Main Stylesheet
   Theme: Dark Luxury / Developer Aesthetic
   ══════════════════════════════════════════════ */

:root {
  --bg:       #06080f;
  --bg2:      #0a0e1a;
  --surface:  #0e1525;
  --surface2: #131c30;
  --border:   rgba(255,255,255,0.07);
  --border2:  rgba(255,255,255,0.12);

  --teal:     #00e5c8;
  --purple:   #8b5cf6;
  --gold:     #f59e0b;
  --pink:     #ec4899;
  --green:    #22c55e;
  --red:      #ef4444;

  --text:     #e2eaf8;
  --muted:    #64748b;
  --muted2:   #94a3b8;

  --font-head: 'Cabinet Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-code: 'Fira Code', monospace;

  --r:   10px;
  --r2:  16px;
  --r3:  20px;
}

/* ─── RESET & BASE ──────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); }
input, select, textarea {
  font-family: var(--font-body);
  color: var(--text);
}
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius:4px; }

/* ─── CANVAS BG ─────────────────────────────────── */
#bgCanvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: .5;
}

/* ─── TYPOGRAPHY ────────────────────────────────── */
.logo {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: -.02em;
  color: var(--text);
}
.logo span { color: var(--teal); }

/* ─── NAV ───────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  height: 68px;
  display: flex; align-items: center;
  padding: 0 5%;
  background: rgba(6,8,15,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  gap: 2rem;
}
.nav-center {
  display: flex; gap: 1.8rem; flex: 1; justify-content: center;
}
.nav-center a {
  color: var(--muted2); font-size: .9rem; font-weight: 500;
  transition: color .2s; letter-spacing: .01em;
}
.nav-center a:hover { color: var(--text); }
.nav-right { display: flex; gap: .8rem; align-items: center; }
.nav-ham {
  display: none; flex-direction: column; gap:5px;
  background: none; border: none; padding: .4rem;
}
.nav-ham span {
  width:22px; height:1.5px; background: var(--text); display:block; transition: .3s;
}
.nav-mobile {
  display: none; flex-direction: column; gap:.8rem;
  position: fixed; top: 68px; left:0; right:0; z-index:799;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 1.5rem 5%; animation: slideDown .25s ease;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { color: var(--muted2); font-size: .95rem; }
@keyframes slideDown { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }

@media(max-width:768px) {
  .nav-center, .nav-right { display: none; }
  .nav-ham { display: flex; margin-left: auto; }
}

/* ─── BUTTONS ───────────────────────────────────── */
.btn-glow {
  background: var(--teal);
  color: #000;
  font-weight: 700;
  font-size: .88rem;
  padding: .55rem 1.3rem;
  border: none; border-radius: var(--r);
  transition: all .2s;
  letter-spacing: .01em;
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(0,229,200,.35);
}
.btn-glow.big { padding: .75rem 1.8rem; font-size: .95rem; }

.btn-outline {
  background: transparent;
  color: var(--muted2);
  font-weight: 500;
  font-size: .88rem;
  padding: .55rem 1.2rem;
  border: 1px solid var(--border2);
  border-radius: var(--r);
  transition: all .2s;
}
.btn-outline:hover { color: var(--text); border-color: var(--border2); background: rgba(255,255,255,.04); }
.btn-outline.big { padding: .75rem 1.8rem; font-size: .95rem; }

.btn-ghost {
  background: transparent;
  color: var(--muted2);
  font-weight: 500;
  font-size: .95rem;
  padding: .75rem 1.8rem;
  border: 1px solid var(--border2);
  border-radius: var(--r);
  transition: all .2s;
  display: inline-flex; align-items: center;
}
.btn-ghost:hover { color:var(--text); background: rgba(255,255,255,.04); }

/* ─── SECTION SHARED ────────────────────────────── */
section { padding: 100px 5%; position: relative; z-index: 1; }
.section-tag {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--teal); font-family: var(--font-code); font-size: .75rem;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8rem;
}
.section-tag::before {
  content: ''; width:18px; height:1px; background: var(--teal);
}
.section-h2 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.15; letter-spacing: -.025em; margin-bottom: 1rem;
}
.section-sub {
  color: var(--muted2); max-width: 500px; font-size: 1rem; margin-bottom: 3rem;
}

/* ─── HERO ──────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 130px 5% 80px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(0,229,200,.07); border: 1px solid rgba(0,229,200,.18);
  color: var(--teal); padding: .4rem 1.1rem; border-radius: 100px;
  font-family: var(--font-code); font-size: .76rem; letter-spacing: .06em;
  margin-bottom: 2rem;
  animation: fadeDown .5s ease both;
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
  animation: pulseDot 1.8s ease infinite;
}
@keyframes pulseDot {
  0%,100%{box-shadow:0 0 0 0 rgba(0,229,200,.5);}
  50%{box-shadow:0 0 0 5px rgba(0,229,200,0);}
}
.hero-h1 {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.02; letter-spacing: -.035em;
  display: flex; flex-direction: column;
  margin-bottom: 1.5rem;
}
.grad-text {
  background: linear-gradient(120deg, var(--teal) 0%, var(--purple) 55%, var(--pink) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 200%;
  animation: gradShift 5s ease infinite;
}
@keyframes gradShift { 0%{background-position:0%} 50%{background-position:100%} 100%{background-position:0%} }
.hero-p {
  color: var(--muted2); font-size: 1.1rem; line-height: 1.75;
  max-width: 540px; margin: 0 auto 2.5rem;
}
.hero-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* code block */
.hero-code {
  width: 100%; max-width: 600px;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--r2); overflow: hidden;
  text-align: left; margin: 0 auto 3rem;
}
.code-topbar {
  display: flex; align-items: center; gap:.8rem;
  padding: .7rem 1.1rem;
  background: var(--surface2); border-bottom: 1px solid var(--border);
}
.code-dots { display: flex; gap: .4rem; }
.code-dots span { width:10px; height:10px; border-radius:50%; }
.code-dots span:nth-child(1){background:#ff5f57}
.code-dots span:nth-child(2){background:#febc2e}
.code-dots span:nth-child(3){background:#28c840}
.code-filename { color:var(--muted); font-family:var(--font-code); font-size:.75rem; flex:1; }
.code-copy {
  background: rgba(255,255,255,.07); border: 1px solid var(--border2);
  color: var(--muted2); padding: .25rem .7rem; border-radius: 5px;
  font-size: .72rem; font-family: var(--font-code); transition: all .2s;
}
.code-copy:hover { background: rgba(255,255,255,.12); color: var(--text); }
.code-body {
  padding: 1.3rem 1.4rem;
  font-family: var(--font-code); font-size: .8rem; line-height: 1.7;
  overflow-x: auto; white-space: pre;
}
/* syntax */
.c-comment { color: #4d5e7a; }
.c-const    { color: var(--purple); }
.c-var      { color: var(--teal); }
.c-str      { color: #86efac; }
.c-key      { color: #f472b6; }
.c-bool     { color: var(--gold); }

/* hero stats */
.hero-stats {
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; justify-content: center;
}
.hstat { text-align: center; }
.hstat-n {
  font-family: var(--font-head); font-weight: 800;
  font-size: 1.9rem; color: var(--teal);
}
.hstat-l { color: var(--muted); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
.hstat-sep { width:1px; height:36px; background: var(--border2); }

/* line reveal animation */
.line-reveal {
  opacity: 0; transform: translateY(18px);
  animation: lineIn .65s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes lineIn {
  to { opacity:1; transform:translateY(0); }
}
@keyframes fadeDown { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }

/* ─── APIS SECTION ──────────────────────────────── */
#apis { background: var(--bg2); }
.api-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.api-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 1.8rem;
  position: relative; overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.api-card:hover {
  border-color: var(--border2); transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.pro-card { border-color: rgba(245,158,11,.18); }
.pro-card:hover { border-color: rgba(245,158,11,.35); }
.api-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.api-icon {
  width: 46px; height: 46px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.api-icon.teal   { background: rgba(0,229,200,.1); color:var(--teal); border:1px solid rgba(0,229,200,.2); }
.api-icon.purple { background: rgba(139,92,246,.1); color:var(--purple); border:1px solid rgba(139,92,246,.2); }
.api-icon.gold   { background: rgba(245,158,11,.1); color:var(--gold); border:1px solid rgba(245,158,11,.2); }
.api-plan-tag {
  font-family: var(--font-code); font-size: .68rem;
  letter-spacing: .07em; padding: .25rem .7rem; border-radius: 100px;
}
.api-plan-tag.free { background: rgba(34,197,94,.08); color: var(--green); border:1px solid rgba(34,197,94,.2); }
.api-plan-tag.paid { background: rgba(245,158,11,.1); color: var(--gold); border:1px solid rgba(245,158,11,.25); }
.api-card h3 {
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; margin-bottom: .5rem;
}
.api-card p { color: var(--muted2); font-size: .88rem; line-height: 1.65; margin-bottom: 1.3rem; }
.api-meta { margin-bottom: 1.3rem; }
.api-endpoint-row {
  display: flex; align-items: center; gap: .6rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 7px; padding: .55rem .85rem; margin-bottom: .8rem;
  overflow-x: auto;
}
.api-endpoint-row code {
  font-family: var(--font-code); font-size: .75rem; color: var(--teal); white-space: nowrap;
}
.method {
  font-family: var(--font-code); font-size: .68rem; font-weight: 700;
  padding: .18rem .5rem; border-radius: 4px;
}
.method.get  { background: rgba(34,197,94,.12); color: var(--green); }
.method.post { background: rgba(245,158,11,.12); color: var(--gold); }
.api-resp-preview {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 7px; padding: .7rem .85rem;
  font-family: var(--font-code); font-size: .73rem; line-height: 1.7;
}
.resp-key  { color: var(--purple); }
.resp-str  { color: #86efac; }
.resp-bool { color: var(--gold); }
.try-btn {
  background: none; border: 1px solid var(--border2);
  color: var(--teal); padding: .5rem 1.1rem; border-radius: 7px;
  font-size: .85rem; font-weight: 600; transition: all .2s;
}
.try-btn:hover { background: rgba(0,229,200,.08); border-color: var(--teal); }
.gold-btn { color: var(--gold) !important; border-color: rgba(245,158,11,.3) !important; }
.gold-btn:hover { background: rgba(245,158,11,.08) !important; }

/* ─── PRICING ───────────────────────────────────── */
#pricing { background: var(--bg); }
.pricing-row {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  justify-content: center; margin-top: 2.5rem;
}
.plan-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r3); padding: 2.2rem; width: 320px;
  position: relative; transition: transform .25s;
}
.plan-card:hover { transform: translateY(-4px); }
.plan-card.popular {
  border-color: var(--teal);
  background: linear-gradient(160deg, rgba(0,229,200,.06) 0%, var(--surface) 60%);
}
.popular-badge {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #000;
  font-family: var(--font-code); font-size: .65rem; font-weight: 700;
  letter-spacing: .08em; padding: .3rem 1rem;
  border-radius: 0 0 8px 8px;
}
.plan-top { text-align: center; margin-bottom: 1.8rem; padding-top: .5rem; }
.plan-name {
  font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; margin-bottom: .5rem;
}
.plan-price {
  font-family: var(--font-head); font-weight: 900;
  font-size: 3rem; letter-spacing: -.03em; line-height: 1;
}
.plan-price span { font-size: 1rem; color: var(--muted2); font-weight: 400; }
.plan-tagline { color: var(--muted2); font-size: .85rem; margin-top: .6rem; }
.plan-list { list-style: none; margin-bottom: 2rem; }
.plan-list li {
  padding: .55rem 0; border-bottom: 1px solid var(--border);
  font-size: .9rem; display: flex; align-items: center; gap: .8rem;
}
.plan-list li:last-child { border: none; }
.plan-list li.yes i { width:18px; height:18px; border-radius:50%; background:rgba(34,197,94,.12); color:var(--green); display:flex; align-items:center; justify-content:center; flex-shrink:0; font-style:normal; }
.plan-list li.yes i::after { content:'✓'; font-size:.65rem; }
.plan-list li.no { color: var(--muted); }
.plan-list li.no i { width:18px; height:18px; border-radius:50%; background:rgba(100,116,139,.1); display:flex; align-items:center; justify-content:center; flex-shrink:0; font-style:normal; }
.plan-list li.no i::after { content:'×'; font-size:.65rem; color:var(--muted); }
.plan-btn {
  width: 100%; padding: .8rem; border-radius: var(--r); font-size: .9rem; font-weight: 700;
  border: none; transition: all .2s;
}
.plan-btn.primary { background: var(--teal); color: #000; }
.plan-btn.primary:hover { box-shadow: 0 0 24px rgba(0,229,200,.35); transform: translateY(-1px); }
.plan-btn.outline { background: transparent; border: 1px solid var(--border2); color: var(--muted2); }
.plan-btn.outline:hover { color:var(--text); border-color:var(--border2); background: rgba(255,255,255,.04); }

/* ─── DOCS / STEPS ──────────────────────────────── */
#docs { background: var(--bg2); }
.steps-track {
  display: flex; align-items: flex-start; gap: 0;
  flex-direction: column; max-width: 620px; margin-bottom: 3rem;
}
.step-item {
  display: flex; gap: 1.5rem; align-items: flex-start; padding-bottom: 2.2rem;
  position: relative; z-index: 1;
}
.step-connector {
  width: 2px; height: 36px; background: linear-gradient(var(--teal), transparent);
  margin-left: 19px; margin-bottom: -8px; position: relative; z-index: 0;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-code); font-size: .8rem; font-weight: 700; color: #000;
}
.step-body h4 { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; margin-bottom: .35rem; }
.step-body p { color: var(--muted2); font-size: .9rem; }
.inline-code {
  background: var(--surface2); border: 1px solid var(--border2);
  padding: .1em .4em; border-radius: 4px;
  font-family: var(--font-code); font-size: .83em; color: var(--teal);
}
/* code tabs */
.code-tabs { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r2); overflow: hidden; }
.tab-bar { display: flex; background: var(--surface2); border-bottom: 1px solid var(--border); }
.tab {
  padding: .65rem 1.2rem; font-size: .83rem; font-weight: 600;
  color: var(--muted2); background: none; border: none;
  border-bottom: 2px solid transparent; transition: all .2s;
}
.tab.active { color: var(--teal); border-bottom-color: var(--teal); }
.tab-panel { display: none; padding: 1.3rem 1.4rem; }
.tab-panel.active { display: block; }
.tab-panel pre {
  font-family: var(--font-code); font-size: .8rem; line-height: 1.7;
  overflow-x: auto; white-space: pre;
}

/* ─── FAQ ───────────────────────────────────────── */
#faq { background: var(--bg); }
.faq-list { max-width: 680px; margin-top: 2.5rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0; background: none; border: none; color: var(--text);
  font-size: .97rem; font-weight: 600; text-align: left; gap: 1rem;
  transition: color .2s;
}
.faq-q:hover { color: var(--teal); }
.faq-icon { transition: transform .3s; flex-shrink: 0; }
.faq-q.open .faq-icon { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .3s;
  color: var(--muted2); font-size: .9rem; line-height: 1.7;
}
.faq-a.open { max-height: 200px; padding-bottom: 1.1rem; }

/* ─── FOOTER ────────────────────────────────────── */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 3.5rem 5% 2rem; position: relative; z-index: 1;
}
.footer-inner { display: flex; gap: 3rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.footer-brand { flex: 1; min-width: 220px; }
.footer-brand p { color: var(--muted2); font-size: .88rem; line-height: 1.7; margin-top: .7rem; }
.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-links > div { display: flex; flex-direction: column; gap: .6rem; min-width: 130px; }
.footer-links strong { color: var(--text); font-size: .85rem; margin-bottom: .2rem; }
.footer-links a { color: var(--muted2); font-size: .85rem; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  color: var(--muted); font-size: .82rem;
}

/* ─── MODAL ─────────────────────────────────────── */
.modal-bg {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.75); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal-bg.open { opacity: 1; pointer-events: all; }
.modal-box {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-46%);
  z-index: 1001; width: 90%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--r2); padding: 2.2rem;
  opacity: 0; pointer-events: none;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
}
.modal-box.wide { max-width: 540px; }
.modal-box.open { opacity: 1; pointer-events: all; transform: translate(-50%,-50%); }
.modal-x {
  position: absolute; top: 1.1rem; right: 1.1rem;
  background: none; border: none; color: var(--muted); font-size: 1.1rem;
  transition: color .2s; line-height: 1;
}
.modal-x:hover { color: var(--text); }
.modal-logo {
  font-family: var(--font-head); font-weight: 900; font-size: 1.25rem;
  color: var(--teal); margin-bottom: 1.3rem; display: block;
}
.modal-h { font-family: var(--font-head); font-weight: 800; font-size: 1.55rem; margin-bottom: .35rem; }
.modal-sub { color: var(--muted2); font-size: .87rem; margin-bottom: 1.7rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .82rem; color: var(--muted2); margin-bottom: .45rem; font-weight: 500; }
.form-group input {
  width: 100%; background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--r); padding: .7rem .95rem; font-size: .93rem; outline: none;
  transition: border-color .2s;
}
.form-group input:focus { border-color: var(--teal); }
.form-group input::placeholder { color: var(--muted); }
.modal-switch {
  text-align: center; margin-top: 1.3rem; font-size: .85rem; color: var(--muted2);
}
.modal-switch a { color: var(--teal); cursor: pointer; }
.modal-switch a:hover { text-decoration: underline; }
.form-error {
  color: var(--red); font-size: .8rem; margin-top: .35rem; display: none;
}

/* try modal */
.try-form-row { margin-bottom: 1rem; }
.try-form-row label { display:block; font-size:.8rem; color:var(--muted2); margin-bottom:.4rem; font-weight:500; }
.try-form-row input, .try-form-row select {
  width:100%; background:var(--bg2); border:1px solid var(--border2);
  border-radius:var(--r); padding:.65rem .9rem; font-size:.88rem; outline:none; transition:border-color .2s;
}
.try-form-row input:focus, .try-form-row select:focus { border-color:var(--teal); }
.try-form-row select option { background:var(--surface2); }
.try-result {
  margin-top: 1.2rem; background: var(--bg); border: 1px solid var(--border2);
  border-radius: var(--r); overflow: hidden; display: none;
}
.try-result-bar {
  background: var(--surface2); padding: .5rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-code); font-size: .72rem;
}
.try-result pre {
  padding: 1rem; font-family: var(--font-code); font-size: .74rem;
  line-height: 1.6; overflow: auto; max-height: 260px;
  color: #86efac; white-space: pre-wrap;
}
.try-image-preview { padding: 1rem; }
.try-image-preview img { max-width: 100%; border-radius: 8px; }

/* ─── AOS (scroll reveal) ────────────────────────── */
[data-aos] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--delay, 0s);
}
[data-aos].aos-visible { opacity: 1; transform: translateY(0); }

/* ─── TOAST ─────────────────────────────────────── */
.toast {
  position: fixed; bottom: 1.8rem; right: 1.8rem; z-index: 9999;
  background: var(--surface2); border: 1px solid var(--border2);
  padding: .75rem 1.2rem; border-radius: var(--r);
  font-size: .85rem; display: flex; align-items: center; gap: .6rem;
  transform: translateX(130%); transition: transform .4s cubic-bezier(.34,1.56,.64,1);
  font-family: var(--font-code); max-width: 320px;
}
.toast.show { transform: translateX(0); }
.toast.success { border-color: rgba(34,197,94,.3); color: var(--green); }
.toast.error   { border-color: rgba(239,68,68,.3); color: var(--red); }
