/* ==========================================================================
   SolTerm « Eclipse » — voir DESIGN.md. Un soleil noir et sa couronne : fond cosmique
   presque noir, panneaux de verre fumé, et une aura rose → violet → cyan qui signe la
   marque (logo, actions, onglet actif, focus). Chargé en dernier : prime sur tout le reste.
   ========================================================================== */
:root {
  --ground: #050409;
  --surface: rgba(13, 11, 22, 0.72);
  --surface-solid: #0d0b16;
  --raised: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.075);
  --rule: rgba(255, 255, 255, 0.045);
  --control: rgba(255, 255, 255, 0.14);
  --text: #f3f0ff;
  --muted: #9a94b4;
  --faint: #635d7c;

  --aura-1: #ff6ad5;
  --aura-2: #a46bff;
  --aura-3: #3ee6ff;
  --aura: linear-gradient(120deg, var(--aura-1), var(--aura-2) 50%, var(--aura-3));
  --primary: #a46bff;
  --primary-ink: #0c0618;
  --primary-tint: rgba(164, 107, 255, 0.14);
  --accent: var(--primary);
  --grad: var(--aura);

  --positive: #2ef2a6;
  --negative: #ff4d7d;
  --warning: #ffc857;
  --paper: #ffb547;
  --paper-tint: rgba(255, 181, 71, 0.13);
  --pos-tint: rgba(46, 242, 166, 0.11);
  --neg-tint: rgba(255, 77, 125, 0.12);
  --warn-tint: rgba(255, 200, 87, 0.12);
  --blue: var(--aura-3);
  --yellow: #ffb547;
  --green: var(--positive);

  --float: 0 24px 60px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --display: "Unbounded", "Sora", "Inter", system-ui, sans-serif;
  --glow: 0 0 24px -4px rgba(164, 107, 255, 0.65);
}

/* ---------- fond : vide cosmique + grain (le canvas aurore et étoiles est dans bg.js) ---------- */
body { background: radial-gradient(1200px 700px at 50% -20%, #120a24, transparent 70%), var(--ground); background-attachment: fixed; }
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#bg { opacity: 1; }
body.calm #bg { display: block; opacity: 0.35; } /* « calme » : l'aurore reste, figée et tamisée */
::selection { background: rgba(164, 107, 255, 0.4); color: #fff; }
:focus-visible { outline: 2px solid var(--aura-2); outline-offset: 2px; box-shadow: var(--glow); }

/* l'éclipse en fond, en haut à droite : disque noir + couronne qui tourne */
.bg-glow {
  display: block; position: fixed; z-index: -1; pointer-events: none;
  inset: -200px -160px auto auto; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, #050409 37%, transparent 38%);
  filter: drop-shadow(0 0 60px rgba(164, 107, 255, 0.35));
}
.bg-glow::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 0deg, var(--aura-1), var(--aura-2), var(--aura-3), var(--aura-2), var(--aura-1));
  -webkit-mask: radial-gradient(circle, transparent 36%, #000 38.5%, rgba(0, 0, 0, 0.35) 46%, transparent 68%);
  mask: radial-gradient(circle, transparent 36%, #000 38.5%, rgba(0, 0, 0, 0.35) 46%, transparent 68%);
  filter: blur(6px); opacity: 0.55; animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- panneaux : verre fumé + liseré qui s'allume sous la souris ---------- */
.pcol, .dtable, .tk-left, .tk-right, .card, .htable, .kpis, .tr-wallets, .tr-feed, .rw-banner, .wv-card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 50px -30px rgba(0, 0, 0, 0.9);
}
.pcol::after, .dtable::after, .tk-left::after, .tk-right::after, .card::after, .htable::after, .kpis::after, .tr-wallets::after, .tr-feed::after, .rw-banner::after, .wv-card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 3;
  background: radial-gradient(380px circle at var(--mx, -999px) var(--my, -999px), rgba(255, 106, 213, 0.9), rgba(164, 107, 255, 0.6) 30%, rgba(62, 230, 255, 0.25) 55%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity 0.3s;
}
.pcol:hover::after, .dtable:hover::after, .tk-left:hover::after, .tk-right:hover::after, .card:hover::after, .htable:hover::after, .kpis:hover::after, .tr-wallets:hover::after, .tr-feed:hover::after, .rw-banner:hover::after, .wv-card:hover::after { opacity: 1; }
.modal, .menu, .toast, .disp-pop, .instant, .bub-tip {
  background: rgba(16, 13, 28, 0.86); border: 1px solid rgba(255, 255, 255, 0.09); box-shadow: var(--float);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
}
.modal { border-radius: 18px; animation: pop 0.35s cubic-bezier(0.2, 1.3, 0.4, 1); }
.modal::before { display: block; content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px; background: var(--aura); opacity: 0.9; box-shadow: 0 0 18px var(--aura-2); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.97); } }
.overlay { background: rgba(3, 2, 8, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.drow.head, .trow.head, .sg-row.head, .wrow.head { background: rgba(13, 11, 22, 0.92); }

/* ---------- typographie : Unbounded pour la marque et les titres ---------- */
.page-head h1, .tabs button, .pcol-head h3, .card h4, .modal h2, .tk-name .sym, .wv-name, .sn-state, .section-title, .cal-head b, .flt-head h2 { font-family: var(--display); letter-spacing: -0.01em; }
.page-head h1 { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; }
.page-head h1 > span, .tk-name .sym {
  background: linear-gradient(100deg, #fff 0%, #fff 35%, #e7d5ff 45%, var(--aura-1) 50%, var(--aura-3) 55%, #fff 65%) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 7s ease-in-out infinite;
}
@keyframes sheen { 0%, 55% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.em { font-style: normal; display: inline-grid; place-items: center; line-height: 1; filter: drop-shadow(0 0 10px rgba(164, 107, 255, 0.55)); }
.page-head h1 .em { width: 34px; height: 34px; font-size: 18px; border-radius: 10px; background: var(--raised); border: 1px solid var(--border); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-2px) rotate(-4deg); } }
.pcol-head h3 { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.pcol-head h3 .em { font-size: 14px; }

/* étiquettes façon terminal */
.drow.head, .trow.head > span, .wrow.head, .hrow.head > div, .sg-row.head > span, .kpi .l, .tk-stat .l, .ps-cell .l, .it-stats span, .pc-r .lbl, .label, .wv-card .l, .disp-col h6, .sc-sec h5 { color: var(--faint); letter-spacing: 0.1em; }

/* ---------- marque : logo éclipse + nom ---------- */
.side { background: rgba(5, 4, 9, 0.6); border-right: 1px solid var(--border); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.brand { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; }
.brand svg { width: 34px; height: 34px; overflow: visible; filter: drop-shadow(0 0 8px rgba(164, 107, 255, 0.7)); transition: transform 0.6s cubic-bezier(0.2, 1.3, 0.4, 1); }
.brand:hover svg { transform: rotate(-20deg) scale(1.08); }
.brand .corona { transform-origin: 16px 16px; animation: spin 9s linear infinite; }
.brand .flare { animation: flare 4.5s ease-in-out infinite; transform-origin: 23.5px 9px; }
@keyframes flare { 0%, 70%, 100% { opacity: 0; transform: scale(0.4); } 80% { opacity: 1; transform: scale(1.3); } }
.product { font: 700 15px/1 var(--display); letter-spacing: 0.02em; text-transform: uppercase; color: var(--text); }
.product b { background: var(--aura); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }

/* ---------- rail, en-tête, barre d'état ---------- */
.nav a { border-radius: 12px; transition: color 0.2s, background 0.2s, transform 0.25s cubic-bezier(0.2, 1.3, 0.4, 1); }
.nav a:hover { background: var(--raised); color: var(--text); transform: translateY(-1px); }
.nav a.active { color: #fff; background: linear-gradient(140deg, rgba(255, 106, 213, 0.22), rgba(164, 107, 255, 0.2), rgba(62, 230, 255, 0.14)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 8px 26px -8px rgba(164, 107, 255, 0.8); }
.nav a.active::after { right: -10px; top: 9px; bottom: 9px; width: 2px; background: var(--aura); box-shadow: 0 0 12px var(--aura-2), 0 0 4px var(--aura-1); }
.nav a.active svg { filter: drop-shadow(0 0 6px rgba(255, 106, 213, 0.8)); }
.header { position: relative; background: rgba(5, 4, 9, 0.55); border-bottom: 1px solid var(--border); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--aura-1), var(--aura-2), var(--aura-3), transparent) 0 0 / 200% 100%; opacity: 0.55; animation: flow 8s linear infinite; }
@keyframes flow { to { background-position: -200% 0; } }
.status { background: rgba(5, 4, 9, 0.7); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.status .dot.on { box-shadow: 0 0 0 3px rgba(46, 242, 166, 0.15), 0 0 10px var(--positive); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 5px rgba(46, 242, 166, 0.05), 0 0 16px var(--positive); } }
.search-btn { background: rgba(255, 255, 255, 0.035); border: 1px solid var(--border); border-radius: 12px; transition: border-color 0.2s, box-shadow 0.2s; }
.search-btn:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(164, 107, 255, 0.5); box-shadow: 0 0 0 4px rgba(164, 107, 255, 0.1); }
.search-btn kbd { background: rgba(164, 107, 255, 0.14); color: #d9c6ff; border-color: rgba(164, 107, 255, 0.3); }

/* ---------- boutons ---------- */
.btn-primary, .btn.blue, .btn-blue-full {
  position: relative; overflow: hidden; border: 0; border-radius: 10px; color: #fff; font-weight: 600;
  background: linear-gradient(110deg, var(--aura-1), var(--aura-2) 45%, #6a7bff 70%, var(--aura-3)) 0 0 / 200% 100%;
  box-shadow: 0 6px 22px -6px rgba(164, 107, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 2px rgba(40, 0, 60, 0.4); transition: background-position 0.6s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover, .btn.blue:hover, .btn-blue-full:hover { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 10px 30px -6px rgba(255, 106, 213, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-primary::after, .btn.blue::after, .btn-blue-full::after, .big-btn::after {
  display: block; content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent); transform: skewX(-20deg);
  animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.big-btn { position: relative; overflow: hidden; border-radius: 12px; font-family: var(--display); font-weight: 600; letter-spacing: 0.02em; transition: transform 0.2s, box-shadow 0.2s, filter 0.2s; }
.big-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.big-btn:active, .btn-primary:active, .qbuy:active { transform: scale(0.97); }
.big-btn.buy { background: linear-gradient(120deg, #2ef2a6, #1fd6c9); color: #02140e; box-shadow: 0 8px 26px -8px rgba(46, 242, 166, 0.8); }
.big-btn.sell { background: linear-gradient(120deg, #ff4d7d, #ff6ad5); color: #fff; box-shadow: 0 8px 26px -8px rgba(255, 77, 125, 0.8); }
body.paper .big-btn.buy { background: linear-gradient(120deg, #ffc857, #ff8f4d); color: #1c0f00; box-shadow: 0 8px 26px -8px rgba(255, 181, 71, 0.8); }
.chip, .paper-toggle, .icon-btn, .btn, .qb-input, .hidden-toggle, .mcap-max, .flt-btn, .scan-btn, .disp-btn { border-radius: 10px; border-color: var(--border); background: rgba(255, 255, 255, 0.025); }
.chip:hover, .icon-btn:hover, .btn:hover, .hidden-toggle:hover, .flt-btn:hover, .scan-btn:hover, .disp-btn:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(164, 107, 255, 0.45); }
.flt-btn.on, .amts button.on { background: var(--primary-tint); border-color: rgba(164, 107, 255, 0.6); box-shadow: 0 0 16px -6px var(--aura-2); }
.it-presets button.on, .wv-ranges button.on, .mw-row.on, .flt-chip.on { background: var(--primary-tint); box-shadow: inset 0 0 0 1px rgba(164, 107, 255, 0.55); }
.qbuy { border-radius: 999px; border: 1px solid rgba(164, 107, 255, 0.35); background: rgba(164, 107, 255, 0.08); color: var(--text); transition: all 0.2s; }
.qbuy svg { color: var(--aura-1); }
.qbuy:hover { background: var(--aura); border-color: transparent; color: #fff; box-shadow: 0 0 18px -2px rgba(255, 106, 213, 0.7); }
.qbuy:hover svg { color: #fff; }
.field, .fee-edit label { background: rgba(255, 255, 255, 0.035); border-color: var(--border); border-radius: 10px; }
.field:focus-within, .fee-edit label:focus-within { border-color: var(--aura-2); box-shadow: 0 0 0 4px rgba(164, 107, 255, 0.12); }
.switch.on { background: var(--positive); box-shadow: 0 0 12px -2px var(--positive); }

/* onglets : soulignement aura lumineux */
.seg button.on::after, .tabs button.on::after, .tk-tabs > button.on::after, .bs button.on::after, .drow.head button.on::after, .col-filter.on::after, .status .pp button.on::after, .flt-tabs button.on::after { background: var(--aura); box-shadow: 0 0 10px var(--aura-2); }
.seg button.on, .tabs button.on { color: #fff; }

/* badges */
.bdg, .shield { border-radius: 7px; background: rgba(255, 255, 255, 0.05); }
.bdg.good, .shield.good { box-shadow: inset 0 0 0 1px rgba(46, 242, 166, 0.2); }
.bdg.bad, .shield.bad { box-shadow: inset 0 0 0 1px rgba(255, 77, 125, 0.22); }

/* ---------- Pulse ---------- */
.pcol { overflow: hidden; }
.pcol-head { border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent); }
.pcol-head .dot { width: 7px; height: 7px; background: var(--col); box-shadow: 0 0 10px var(--col); animation: breatheDot 2s ease-in-out infinite; }
@keyframes breatheDot { 50% { box-shadow: 0 0 2px var(--col); opacity: 0.6; } }
.pcol-head .count { background: rgba(255, 255, 255, 0.06); border-radius: 999px; }
.pcard { position: relative; border-bottom: 1px solid var(--rule); transition: background 0.2s; }
.pcard:hover { background: linear-gradient(90deg, rgba(164, 107, 255, 0.1), rgba(255, 255, 255, 0.02) 60%); }
.pcard:hover::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--aura); box-shadow: 0 0 10px var(--aura-2); }
.pcard.enter { animation: arrive 1.4s cubic-bezier(0.2, 1, 0.3, 1); }
@keyframes arrive {
  0% { opacity: 0; transform: translateY(-8px); background: linear-gradient(90deg, rgba(255, 106, 213, 0.3), rgba(62, 230, 255, 0.15)); }
  25% { opacity: 1; transform: none; }
  100% { background: transparent; }
}
.pcard .av img, .pcard .av .ph, .av::after { border-radius: 10px; }
.pcard:hover .av img { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 0 18px -4px rgba(164, 107, 255, 0.9); }
.pc-r .mc b.flash-up, .tk-stat .v.flash-up { text-shadow: 0 0 12px rgba(46, 242, 166, 0.8); }
.pc-r .mc b.flash-down, .tk-stat .v.flash-down { text-shadow: 0 0 12px rgba(255, 77, 125, 0.8); }

/* tableaux et page token */
.drow.item:hover, .frow:hover, .drow2:hover, .wrow.item:hover { background: linear-gradient(90deg, rgba(164, 107, 255, 0.09), rgba(255, 255, 255, 0.02) 70%); }
.prog i { background: var(--aura); box-shadow: 0 0 10px var(--aura-2); }
.live-pill i { animation: breatheDot 1.6s ease-in-out infinite; --col: var(--positive); box-shadow: 0 0 8px var(--positive); }
.pnl-hero.win .pnl-pct { text-shadow: 0 0 24px rgba(46, 242, 166, 0.6); }
.pnl-hero.loss .pnl-pct { text-shadow: 0 0 24px rgba(255, 77, 125, 0.6); }
.sn-hero.on .sn-orb i { animation: breatheDot 1.6s ease-in-out infinite; }

/* ---------- mode paper : ambre, pour ne jamais se confondre avec l'aura ---------- */
body.paper .header { border-bottom-color: rgba(255, 181, 71, 0.4); }
body.paper .header::after { background: linear-gradient(90deg, transparent, #ffb547, #ff8f4d, transparent) 0 0 / 200% 100%; }
body.paper .paper-toggle { color: var(--paper); border-color: rgba(255, 181, 71, 0.55); background: var(--paper-tint); box-shadow: 0 0 16px -6px var(--paper); }
body.paper .paper-toggle .sw { background: var(--paper); }
.ptag, .paper-flag { color: var(--paper); }
.ptag { background: var(--paper-tint); }

/* ---------- états vides et notifications : emojis ---------- */
.empty-state::before { content: "🌑"; width: auto; height: auto; background: none; font-size: 30px; line-height: 1; margin-bottom: 10px; filter: drop-shadow(0 0 14px rgba(164, 107, 255, 0.7)); animation: bob 4s ease-in-out infinite; }
.toast { border-radius: 14px; animation: toastIn 0.45s cubic-bezier(0.2, 1.3, 0.4, 1); }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px) scale(0.96); } }
.toast .ti { width: auto; height: auto; margin-top: 0; background: none !important; font-size: 15px; line-height: 1.3; animation: none !important; }
.toast .ti::before { content: "✨"; }
.toast.ok .ti::before { content: "✅"; }
.toast.err .ti::before { content: "⛔"; }
.toast.wait .ti::before { content: "⏳"; display: inline-block; animation: spin 2s linear infinite; }
.toast.ok { box-shadow: var(--float), inset 2px 0 0 var(--positive), -10px 0 30px -18px var(--positive); }
.toast.err { box-shadow: var(--float), inset 2px 0 0 var(--negative), -10px 0 30px -18px var(--negative); }

/* ---------- barres de défilement ---------- */
* { scrollbar-width: thin; scrollbar-color: rgba(164, 107, 255, 0.35) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--aura-1), var(--aura-2), var(--aura-3)); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; opacity: 0.5; }

/* ---------- entrée en scène : l'éclipse s'allume ---------- */
.page > * { animation: rise 0.5s cubic-bezier(0.2, 1, 0.3, 1) both; }
.page > :nth-child(2) { animation-delay: 0.06s; }
.pulse-grid > .pcol { animation: rise 0.6s cubic-bezier(0.2, 1, 0.3, 1) both; }
.pulse-grid > .pcol:nth-child(2) { animation-delay: 0.08s; }
.pulse-grid > .pcol:nth-child(3) { animation-delay: 0.16s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } }

#intro { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: var(--ground); pointer-events: none; animation: introOut 0.6s 1.25s ease-in forwards; }
#intro .eclipse { position: relative; width: 120px; height: 120px; border-radius: 50%; background: #050409; box-shadow: 0 0 0 0 transparent; animation: corona 1.3s cubic-bezier(0.3, 0, 0.2, 1) forwards; }
#intro .eclipse::before { content: ""; position: absolute; inset: -40px; border-radius: 50%; z-index: -1; background: conic-gradient(var(--aura-1), var(--aura-2), var(--aura-3), var(--aura-2), var(--aura-1)); -webkit-mask: radial-gradient(circle, transparent 49%, #000 51%, transparent 70%); mask: radial-gradient(circle, transparent 49%, #000 51%, transparent 70%); filter: blur(8px); animation: spin 2s linear infinite, fadeIn 0.8s 0.2s both; }
#intro .eclipse::after { content: ""; position: absolute; width: 14px; height: 14px; top: 6px; right: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 20px 8px #fff, 0 0 60px 20px var(--aura-1); opacity: 0; animation: diamond 0.5s 0.85s ease-out forwards; }
#intro b { position: absolute; top: calc(50% + 100px); font: 700 15px/1 var(--display); letter-spacing: 0.4em; text-transform: uppercase; color: #fff; opacity: 0; animation: fadeIn 0.6s 0.55s both; }
#intro b i { font-style: normal; background: var(--aura); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes corona { from { transform: scale(0.6); } to { transform: scale(1); box-shadow: 0 0 80px 10px rgba(164, 107, 255, 0.45); } }
@keyframes diamond { 50% { opacity: 1; transform: scale(1.4); } to { opacity: 0.85; transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes introOut { to { opacity: 0; visibility: hidden; transform: scale(1.04); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #intro { display: none; }
  #bg { display: none; }
}
@media (max-width: 820px) {
  .bg-glow { inset: -140px -120px auto auto; width: 320px; height: 320px; }
  .page-head h1 { font-size: 17px; }
  .page-head h1 .em { width: 28px; height: 28px; font-size: 15px; }
}

/* ---------- Launch 🚀 : création d'un coin pump.fun ---------- */
.ln-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--gap, 16px); align-items: start; }
.ln-form, .ln-preview, .ln-cost { padding: 18px 20px; }
.ln-form .label:first-child { margin-top: 0; }
.ln-top { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 18px; }
.ln-ids .label:first-child { margin-top: 0; }
.ln-drop { height: 148px; border-radius: 14px; border: 1px dashed var(--control); background: var(--raised); cursor: pointer; display: block; overflow: hidden; position: relative; transition: border-color .15s, box-shadow .15s; }
.ln-drop:hover, .ln-drop:focus-visible, .ln-drop.over { border-color: var(--primary); box-shadow: var(--glow); outline: 0; }
.ln-drop-in { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.4; }
.ln-drop-in b { color: var(--text); font-size: 13px; font-weight: 600; }
.ln-drop-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-tint); color: var(--primary); margin-bottom: 4px; }
.ln-drop-ic svg { width: 16px; height: 16px; }
.ln-drop-in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ln-drop-meta { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 7px; background: rgba(5, 4, 9, .75); color: var(--text); font: 500 10px var(--mono); }
.ln-area { width: 100%; resize: vertical; min-height: 76px; padding: 10px 14px; background: var(--ground); border: 1px solid var(--control); border-radius: var(--radius-card); color: var(--text); font: 500 14px/1.45 var(--font, Inter), sans-serif; outline: 0; }
.ln-area:focus { border-color: var(--accent); }
.ln-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ln-links .field svg { width: 14px; height: 14px; color: var(--muted); flex: none; }
.ln-links .field input { font-size: 13px; }
.ln-dev { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ln-dev .field { width: 180px; }
.ln-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ln-chips .btn { font-family: var(--mono); }
.ln-opts { display: grid; gap: 8px; }
.ln-opt { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 12px 14px; border-radius: var(--radius-card); border: 1px solid var(--border); background: var(--raised); transition: border-color .15s; }
.ln-opt:hover:not(:disabled) { border-color: var(--control); }
.ln-opt.on { border-color: var(--primary); background: var(--primary-tint); }
.ln-opt .switch { margin-top: 2px; }
.ln-opt.on .switch { background: var(--primary); border-color: var(--primary); }
.ln-opt b { display: block; font-size: 13px; font-weight: 600; }
.ln-opt small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; line-height: 1.4; }
.ln-opt small a { color: var(--aura-1); margin-left: 6px; }
.ln-adv { margin-top: 16px; color: var(--muted); font-size: 12px; }
.ln-adv summary { cursor: pointer; }
.ln-adv summary:hover { color: var(--text); }
.ln-side { display: flex; flex-direction: column; gap: var(--gap, 16px); position: sticky; top: 0; }
.ln-side .note.warn { margin-top: 0; }
.ln-ptitle { font-family: var(--display); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.ln-coin { display: flex; gap: 14px; }
.ln-coin .av img { border-radius: 12px; }
.ln-coin .av .ph { border-radius: 12px; font-size: 24px; }
.ln-coin-b { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ln-coin-n { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.ln-coin-n b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln-coin-d { color: var(--muted); font-size: 12px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ln-coin-f { display: flex; gap: 10px; align-items: center; font-size: 12px; flex-wrap: wrap; }
.ln-coin-f .soc span { color: var(--muted); display: inline-flex; }
.ln-bar { height: 4px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.ln-bar i { display: block; height: 100%; background: var(--aura); border-radius: inherit; transition: width .3s; }
.ln-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); padding: 4px 0; }
.ln-row span:last-child { font-family: var(--mono); color: var(--text); display: inline-flex; align-items: center; gap: 4px; }
.ln-row.b { font-size: 14px; color: var(--text); font-weight: 600; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--rule); }
.ln-go { width: 100%; height: 48px; font-size: 15px; margin-top: 0; }
.ln-go:disabled { opacity: .6; cursor: progress; }
.hrow.ln-lrow { grid-template-columns: minmax(200px, 1.6fr) 110px 110px 1fr 300px; }
.hrow.ln-lrow > div:nth-child(n+2) { text-align: left; }
.ln-lcoin { display: flex; gap: 10px; align-items: center; min-width: 0; }
.ln-lcoin > span { display: flex; flex-direction: column; min-width: 0; font-size: 12px; }
.ln-lcoin b { font-size: 13px; }
.ln-lact { display: flex; gap: 6px; justify-content: flex-end; }
.ln-foot { padding: 12px 20px; font-size: 12px; color: var(--muted); }
.ln-foot a { color: var(--aura-1); }
@media (max-width: 1000px) {
  .ln-grid { grid-template-columns: minmax(0, 1fr); }
  .ln-side { position: static; }
}
@media (max-width: 640px) {
  .ln-top { grid-template-columns: minmax(0, 1fr); }
  .ln-drop { height: 120px; }
  .ln-links { grid-template-columns: minmax(0, 1fr); }
  .hrow.ln-lrow { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px 16px; }
  .hrow.ln-lrow.head { display: none; }
  .ln-lact { justify-content: flex-start; flex-wrap: wrap; }
}

/* ---------- connexion : créer / importer / déverrouiller un wallet ---------- */
body.auth-mode .side, body.auth-mode .header, body.auth-mode .status, body.auth-mode #watchlist { display: none; }
body.auth-mode .main { grid-column: 1 / -1; }
.auth-wrap { min-height: 100%; display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 440px; padding: 28px 28px 24px; }
.auth-card h2 { font-family: var(--display); font-size: 20px; margin: 18px 0 8px; }
.auth-card p { font-size: 13px; line-height: 1.55; margin: 0 0 18px; }
.auth-card .field { margin-bottom: 8px; }
.auth-card .field select { flex: 1; background: transparent; border: 0; outline: 0; color: var(--text); font: 500 14px var(--font, Inter), sans-serif; }
.auth-card .field select option { background: var(--surface-solid); }
.auth-card .btn-blue-full { width: 100%; height: 46px; margin-top: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.auth-card .btn-blue-full svg, .auth-alt svg { width: 15px; height: 15px; }
.auth-alt { width: 100%; height: 44px; justify-content: center; margin-top: 10px; font-size: 13px; }
.auth-alt.red { color: var(--negative); border-color: var(--neg-tint); }
.auth-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.auth-brand i { font-style: normal; background: var(--aura); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-brand .eclipse.sm { width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--ground) 52%, transparent 54%), conic-gradient(var(--aura-1), var(--aura-2), var(--aura-3), var(--aura-1)); box-shadow: var(--glow); }
.auth-addr { margin: 4px 0 12px; padding: 10px 12px; border-radius: var(--radius-card); background: var(--raised); color: var(--muted); font-size: 12px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 12px; }
.auth-links a { color: var(--muted); }
.auth-links a:hover { color: var(--text); }
.auth-secret .mono { filter: blur(5px); transition: filter .2s; word-break: break-all; font-size: 12px; }
.auth-secret:hover .mono { filter: none; }
.lock-bar { gap: 12px; }
.lock-bar .btn { flex: none; }
@media (max-width: 640px) {
  .auth-card { padding: 22px 18px 18px; }
}
.auth-or { display: flex; align-items: center; gap: 10px; margin: 18px 0 2px; color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-card .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.auth-card .grid2 .auth-alt { margin-top: 8px; }
.bot-sign { padding: 16px 20px; margin: 0 24px 16px; }
.bot-sign h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.bot-sign h4 svg { width: 15px; height: 15px; color: var(--primary); }
.bot-sign-grid { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 10px; align-items: stretch; }
.bot-caps { display: flex; flex-direction: column; gap: 6px; justify-content: center; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--raised); }
.bot-caps label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.bot-caps label > span:first-child { flex: 1; }
.bot-caps select { background: transparent; border: 0; color: var(--text); font: 600 12px var(--mono); outline: 0; }
.bot-caps select option { background: var(--surface-solid); }
@media (max-width: 900px) { .bot-sign-grid { grid-template-columns: 1fr; } .bot-sign { margin: 0 16px 16px; } }
