/* ============================================================
   MUNKY — BASE OBSIDIENNE POUR TOUTES LES PAGES DE L'APP
   Chargée en DERNIER : noir profond, menu en pilule, boutons argent, cartes, champs, fenêtres.
   Ne change aucune logique : seulement l'apparence des composants existants.
   ============================================================ */
:root {
  --bg: #000000; --bg-2: #050506;
  --surface: rgba(255,255,255,.025); --surface-solid: #0B0B0D; --surface-2: #0F1013; --surface-3: #16171B; --elevated: #0D0E10;
  --line: #1B1C21; --line-2: #26272D; --line-3: #34363D;
  --text: #F8F9FB; --text-dim: #A4A7B0; --text-dimmer: #80838D; --text-faint: #62656E; --white: #FFFFFF; --ink: #050506;
  --accent: #E9EBF0; --accent-hover: #FFFFFF; --accent-2: #D6D9E0; --accent-deep: #8A8F99; --accent-ink: #050506;
  --accent-soft: rgba(255,255,255,.06); --accent-line: rgba(255,255,255,.22);
  --accent-grad: linear-gradient(180deg,#FFFFFF 0%,#ECEEF2 48%,#D3D6DD 100%);
  --gold: #FFFFFF; --gold-2: #FFFFFF; --gold-deep: #8A8F99; --gold-soft: rgba(255,255,255,.05); --gold-line: rgba(255,255,255,.2);
  --gold-grad: linear-gradient(180deg,#FFFFFF 0%,#ECEEF2 48%,#D3D6DD 100%);
  --green: #8EF5CF; --green-soft: rgba(142,245,207,.1);
  --blue: #E9EBF0; --blue-hover: #FFFFFF; --purple: #D6D9E0;
  --r-sm: 12px; --r: 14px; --r-md: 20px; --r-lg: 28px;
  --focus: 0 0 0 3px rgba(255,255,255,.25);
  --n-serif: 'Instrument Serif', 'Times New Roman', serif;
  --n-mono: 'Geist Mono', ui-monospace, monospace;
  --n-silver: linear-gradient(180deg,#FFFFFF 0%,#ECEEF2 48%,#D3D6DD 100%);
  --n-jade: #8EF5CF;
}
html, body { background: #000 !important; }
::selection { background: #fff; color: #050506; }

/* ---------- Fond : anneaux orbitaux fixes (très discrets) + grain ---------- */
body::before { content: '' !important; position: fixed !important; inset: -10% -20% !important; z-index: -1 !important; pointer-events: none !important; opacity: 1 !important; filter: none !important; animation: none !important;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1000' preserveAspectRatio='xMidYMid slice'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.0'/%3E%3Cstop offset='.35' stop-color='%23fff' stop-opacity='.16'/%3E%3Cstop offset='.6' stop-color='%23fff' stop-opacity='.02'/%3E%3Cstop offset='.9' stop-color='%23fff' stop-opacity='.12'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)' transform='rotate(-12 800 500)'%3E%3Cellipse cx='800' cy='520' rx='760' ry='420' stroke-width='1.4'/%3E%3Cellipse cx='800' cy='520' rx='690' ry='370' stroke-width='9' stroke-opacity='.25'/%3E%3Cellipse cx='800' cy='520' rx='560' ry='290' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E") center/cover no-repeat,
    radial-gradient(1200px 700px at 15% -10%, rgba(255,255,255,.045), transparent 60%),
    #000 !important; }

/* ---------- Typo ---------- */
.page-title, .mk-title, .ios-title { letter-spacing: -.05em !important; font-weight: 650 !important; }
.page-title em, .mk-title em, .ios-title em { font-family: var(--n-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: #D5D8DF; }
.eyebrow, .mk-kick { color: var(--text-dim) !important; letter-spacing: .02em !important; text-transform: none !important; font-size: 14px !important; font-weight: 500 !important; }
.eyebrow::before, .mk-kick::before { background: #fff !important; }
.text-accent, .text-gold, .text-dim-grad { background: linear-gradient(180deg,#fff 30%,#AEB2BC) !important; -webkit-background-clip: text !important; background-clip: text !important; -webkit-text-fill-color: transparent !important; }

/* ---------- Menu : pilule flottante ---------- */
html body #monkyNav { border-radius: 999px !important; height: 62px !important; padding: 0 8px 0 18px !important; top: 14px !important;
  background: linear-gradient(180deg, rgba(22,23,27,.78), rgba(10,10,12,.82)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.065), 0 24px 60px -30px #000 !important; }
html body #monkyNav::after { left: 30% !important; right: 30% !important; background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent) !important; }
html body .mn-brand img { filter: grayscale(1) contrast(1.1) brightness(1.2) drop-shadow(0 0 10px rgba(255,255,255,.15)) !important; }
html body .mn-links { border-radius: 999px !important; }
html body .mn-hl { border-radius: 999px !important; background: rgba(255,255,255,.07) !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08) !important; }
html body .mn-link { border-radius: 999px !important; height: 40px !important; padding: 0 15px !important; font-size: 14.5px !important; color: #9DA0A9 !important; }
html body .mn-link:hover, html body .mn-link.active { color: #fff !important; }
html body .mn-link.active::after { background: #fff !important; width: 4px !important; height: 4px !important; margin-left: -2px !important; border-radius: 50% !important; bottom: 3px !important; }
html body .mn-link.is-premium, html body .mn-link.is-premium svg, html body .mn-link.is-gold, html body .mn-link.is-gold svg { color: #fff !important; filter: none !important; }
html body .mn-more-menu { border-radius: 20px !important; background: rgba(10,10,12,.97) !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -20px #000 !important; }
html body .mn-more-menu a { border-radius: 12px !important; color: #D8DAE0 !important; }
html body .mn-upgrade, html body .mn-signin { height: 42px !important; padding: 0 18px !important; border-radius: 999px !important; color: #050506 !important; border: 1.5px solid transparent !important;
  background: var(--n-silver) padding-box, conic-gradient(from 225deg, #fff, #7C818B 22%, #F6F7FA 48%, #5E626B 74%, #fff) border-box !important;
  box-shadow: inset 0 1px 0 #fff, 0 12px 30px -14px rgba(255,255,255,.4) !important; }
html body .mn-upgrade svg { color: #050506 !important; }
html body .mn-upgrade em { background: #0A0A0C !important; color: #fff !important; }
html body .mn-crown { border-radius: 999px !important; background: rgba(255,255,255,.04) !important; border-color: rgba(255,255,255,.1) !important; }
html body .mn-crown svg { color: #fff !important; }
html body .mn-avatar { background: #121316 !important; box-shadow: 0 0 0 1px rgba(255,255,255,.16) !important; }
html body .mn-avatar.gold { box-shadow: 0 0 0 1.5px #fff, 0 0 18px -4px rgba(255,255,255,.5) !important; }
html body .mg-fab { background: linear-gradient(180deg, rgba(22,23,27,.95), rgba(10,10,12,.95)) !important; border-color: rgba(255,255,255,.1) !important; }
html body .mg-ic { color: #fff !important; }
@media (max-width: 900px) {
  html body #monkyNav { height: 56px !important; border-radius: 999px !important; }
  html body #mobileBubble { border-radius: 999px !important; padding: 6px !important; border: none !important;
    background: linear-gradient(180deg, rgba(20,21,25,.96), rgba(6,6,8,.97)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.07), 0 20px 50px -10px #000 !important; }
  html body #mobileBubbleWrapper::before { display: none !important; }
  html body .mn-tab { border-radius: 999px !important; color: #7D808A !important; }
  html body .mn-tab.active { color: #050506 !important; background: var(--n-silver) !important; box-shadow: inset 0 1px 0 #fff !important; }
  html body .mn-tab.active::before { display: none !important; }
  html body .mn-tab.is-premium:not(.active), html body .mn-tab.is-premium:not(.active) svg, html body .mn-tab.is-gold:not(.active), html body .mn-tab.is-gold:not(.active) svg { color: #fff !important; filter: none !important; }
  html body .mn-tab.active svg { color: #050506 !important; }
  html body .mn-tab.active.is-premium, html body .mn-tab.active.is-premium svg { color: #050506 !important; }
}

/* ---------- Boutons : pilules sculptées ---------- */
.btn { border-radius: 999px !important; letter-spacing: -.01em !important; }
.btn-primary, .btn-gold, .btn-accent { color: #050506 !important; border: 1.5px solid transparent !important;
  background: var(--n-silver) padding-box, conic-gradient(from 225deg, #fff, #7C818B 22%, #F6F7FA 48%, #5E626B 74%, #fff) border-box !important;
  box-shadow: inset 0 1px 0 #fff, inset 0 -3px 6px rgba(20,22,28,.12), 0 1px 2px rgba(0,0,0,.6), 0 14px 34px -14px rgba(255,255,255,.35) !important; }
.btn-primary:hover:not(:disabled), .btn-gold:hover:not(:disabled), .btn-accent:hover:not(:disabled) { box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,.6), 0 22px 50px -14px rgba(255,255,255,.5), 0 0 60px -12px rgba(220,228,255,.3) !important; }
.btn-primary .arr, .btn-gold .arr { background: #0A0A0C !important; color: #fff !important; border-radius: 50% !important; }
.btn-ghost { color: #fff !important; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)) !important; border: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), inset 0 0 0 1px rgba(255,255,255,.1) !important; }
.btn-ghost:hover:not(:disabled) { box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.22) !important; }
.btn-danger { border-radius: 999px !important; }

/* ---------- Cartes et surfaces ---------- */
.glass-card, .panel, .mk-card, .surface-elevated, .upsell {
  background: radial-gradient(500px 220px at 50% 0%, rgba(255,255,255,.035), transparent 70%), linear-gradient(180deg, #0D0E10, #070708) !important;
  border: none !important; border-radius: var(--r-lg) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 0 0 1px rgba(255,255,255,.055), 0 30px 60px -40px #000 !important; }
.glass-card:hover, a.panel:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.1), 0 30px 60px -40px #000 !important; }
.mk-halo, .glow-ring::before, .aurora { display: none !important; }

/* ---------- Champs ---------- */
.input, input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"], input[type="url"], textarea, select {
  background: #060607 !important; border-color: var(--line-2) !important; border-radius: 14px !important; color: #fff !important; }
.input:focus, input:focus, textarea:focus, select:focus { border-color: rgba(255,255,255,.55) !important; box-shadow: 0 0 0 4px rgba(255,255,255,.05) !important; }
input[type="range"] { accent-color: #fff; }
input[type="checkbox"], input[type="radio"] { accent-color: #fff; }

/* ---------- Pastilles, statuts ---------- */
.badge { border-radius: 999px !important; }
.badge-blue, .badge-gold { color: #050506 !important; background: var(--n-silver) !important; border: none !important; }
.badge-green, .mk-status.ok { color: var(--n-jade) !important; }

/* ---------- Fenêtres (popup.js) et infobulles ---------- */
[data-tip]::after { background: #0B0B0D !important; border: 1px solid var(--line-2) !important; border-radius: 10px !important; }
.mp-overlay, .popup-overlay { background: rgba(0,0,0,.72) !important; }
.mp-box, .popup-box, .mp-modal { background: linear-gradient(180deg, #0F1013, #070708) !important; border: none !important; border-radius: 28px !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.07), inset 0 0 0 1px rgba(255,255,255,.07), 0 50px 120px -30px #000 !important; }
#mkSiteBanner { background: linear-gradient(180deg, #121316, #08090A) !important; border: none !important; box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px -30px #000 !important; border-radius: 999px !important; }
#mkSiteBanner::after { opacity: .3; }
#mkSiteBanner .sb-ic { background: rgba(255,255,255,.06) !important; border-radius: 50% !important; }
#mkSiteBanner .sb-go { border-radius: 999px !important; color: #050506 !important; background: var(--n-silver) !important; }
#mkSiteBanner .sb-x { border-radius: 50% !important; background: transparent !important; color: var(--text-dim) !important; }

/* ---------- Transitions entre pages ---------- */
@view-transition { navigation: auto; }

/* ---------- Bannière d'annonce Discord : retirée partout ---------- */
html body #mkSiteBanner { display: none !important; }

/* ---------- Icônes 3D colorées → argent, pour rester monochrome ---------- */
.mk-hic, .mk-plan, .mk-step, .mk-cti, .mk-empty img, .mk-i3 > img.mk-x { filter: drop-shadow(0 10px 18px rgba(0,0,0,.6)) !important; }

/* ---------- Compteurs (Results, profil…) en titane noir ---------- */
.stat-card { border: none !important; border-radius: 26px !important; background: radial-gradient(300px 140px at 0% 0%, rgba(255,255,255,.04), transparent 70%), linear-gradient(180deg, #0F1013, #070708) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.07), inset 0 0 0 1px rgba(255,255,255,.06) !important; }
.stat-card.glow { box-shadow: inset 0 1px 0 rgba(255,255,255,.07), inset 0 0 0 1px rgba(142,245,207,.25) !important; background: radial-gradient(300px 140px at 0% 0%, rgba(142,245,207,.08), transparent 70%), linear-gradient(180deg, #0F1013, #070708) !important; }
.stat-card::before { display: none !important; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; } }
h1 em.n-acc { font-family: var(--n-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: #D5D8DF; -webkit-text-fill-color: #D5D8DF; padding-right: .04em; }

/* ---------- Fenetres (popup.js / popup-checker.js) et notifications : Obsidian ---------- */
html body .mp-overlay { background: rgba(0,0,0,.72) !important; backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important; }
html body .mp-popup { border: none !important; border-radius: 34px !important; color: #F8F9FB !important;
  background: radial-gradient(420px 220px at 50% 0%, rgba(255,255,255,.06), transparent 70%), linear-gradient(180deg, #121316, #070708) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 1px rgba(255,255,255,.08), 0 60px 140px -30px #000 !important; }
html body .mp-popup::before, html body .mp-popup::after { opacity: .25 !important; }
html body .mp-icon img, html body .mp-icon .mp-i, html body .mp-toast-icon img { filter: drop-shadow(0 10px 18px rgba(0,0,0,.6)) !important; }
html body .mp-icon { background: transparent !important; box-shadow: none !important; }
html body .mp-title { letter-spacing: -.035em !important; font-weight: 650 !important; }
html body .mp-message { color: #A4A7B0 !important; }
html body .mp-btn { border-radius: 999px !important; font-weight: 600 !important; }
html body .mp-btn-primary, html body .mp-btn-premium, html body .mp-btn-success, html body .mp-popup.warning .mp-btn-primary { color: #050506 !important; border: none !important;
  background: linear-gradient(180deg, #FFFFFF 0%, #ECEEF2 48%, #D3D6DD 100%) !important; box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(255,255,255,.4), 0 16px 36px -14px rgba(255,255,255,.4) !important; }
html body .mp-btn-secondary { color: #fff !important; border: none !important; background: rgba(255,255,255,.04) !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12) !important; }
html body .mp-btn-danger { border-radius: 999px !important; }
html body .mp-perks { border: none !important; border-radius: 22px !important; background: rgba(255,255,255,.03) !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07) !important; }
html body .mp-input { border-radius: 16px !important; background: #060607 !important; border-color: #26272D !important; }
html body .mp-x { border-radius: 50% !important; }
html body .mp-toast { border: none !important; border-radius: 999px !important; color: #F8F9FB !important;
  background: linear-gradient(180deg, #15161A, #08090A) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.1), 0 24px 50px -20px #000 !important; }
html body .mp-toast-bar { background: rgba(255,255,255,.7) !important; }
html body .mp-toast.success .mp-toast-bar { background: #8EF5CF !important; }
html body .mp-toast.error .mp-toast-bar { background: #FF6B5E !important; }
