/* Avenor Chat — thème sombre premium */
:root {
  --bg: #07070b; --bg2: #0c0c13;
  --panel: rgba(22, 22, 32, .72); --panel-solid: #12121b; --panel2: rgba(255, 255, 255, .035); --panel3: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .065); --line2: rgba(255, 255, 255, .11);
  --text: #f3f2f8; --muted: #9a98ae; --dim: #63617a;
  --accent: #8b5cf6; --accent2: #c4b5fd; --pink: #ec4899; --accent-bg: rgba(139, 92, 246, .14);
  --grad: linear-gradient(135deg, #8b5cf6 0%, #d946ef 55%, #f472b6 100%);
  --grad-soft: linear-gradient(135deg, rgba(139, 92, 246, .22), rgba(236, 72, 153, .14));
  --green: #34d399; --red: #f87171; --orange: #fbbf24; --blue: #60a5fa;
  --k-sub: #60a5fa; --k-ppv: #a78bfa; --k-push: #f472b6; --k-tip: #fbbf24; --k-other: #94a3b8;
  --radius: 18px; --r-sm: 12px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 50px -20px rgba(0, 0, 0, .7);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; letter-spacing: -.005em; }
body {
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(139, 92, 246, .16), transparent 60%),
    radial-gradient(700px 500px at 100% 0%, rgba(236, 72, 153, .08), transparent 60%),
    radial-gradient(900px 600px at 60% 120%, rgba(96, 165, 250, .06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
a { color: var(--accent2); text-decoration: none; }
::selection { background: rgba(139, 92, 246, .45); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .08); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .16); }
::-webkit-scrollbar-track { background: transparent; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 12.5px; } .tiny { font-size: 11px; }
.green { color: var(--green); } .red { color: var(--red); } .orange { color: var(--orange); }
.row { display: flex; align-items: center; gap: 8px; } .grow { flex: 1; min-width: 0; } .wrap { flex-wrap: wrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.gradtext { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Boutons / champs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line2); background: var(--panel3); padding: 9px 15px; border-radius: 11px; cursor: pointer; font-weight: 550; font-size: 13.5px; transition: background .18s, border-color .18s, transform .12s, box-shadow .18s; white-space: nowrap; }
.btn:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .18); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 24px -8px rgba(168, 85, 247, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.primary:hover { filter: brightness(1.08); box-shadow: 0 10px 30px -8px rgba(168, 85, 247, .85), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.danger { color: var(--red); } .btn.danger:hover { border-color: rgba(248, 113, 113, .5); background: rgba(248, 113, 113, .08); }
.btn.ghost { background: transparent; border-color: transparent; } .btn.ghost:hover { background: var(--panel3); }
.btn.sm { padding: 6px 11px; font-size: 12.5px; border-radius: 9px; }
.btn:disabled { opacity: .45; cursor: default; }
.input, select.input, textarea.input { width: 100%; background: rgba(0, 0, 0, .28); border: 1px solid var(--line2); border-radius: 11px; padding: 10px 13px; outline: none; transition: border-color .18s, box-shadow .18s, background .18s; }
.input::placeholder, textarea::placeholder { color: var(--dim); }
.input:focus { border-color: rgba(167, 139, 250, .7); box-shadow: 0 0 0 4px rgba(139, 92, 246, .15); background: rgba(0, 0, 0, .38); }
select.input { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a98ae' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
select.input option { background: #15151f; }
input[type=date].input { color-scheme: dark; }
textarea.input { resize: vertical; }
label.field { display: block; margin-bottom: 14px; } label.field > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel2); cursor: pointer; font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: .18s; }
.chip:hover { color: var(--text); border-color: var(--line2); }
.chip.on { background: var(--grad-soft); border-color: rgba(167, 139, 250, .45); color: #fff; }
.seg { display: inline-flex; padding: 4px; gap: 2px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 13px; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; cursor: pointer; color: var(--muted); font-size: 12.5px; font-weight: 550; transition: .18s; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { background: rgba(255, 255, 255, .09); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 4px 12px rgba(0, 0, 0, .35); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 7px; background: var(--accent-bg); color: var(--accent2); font-size: 11.5px; font-weight: 500; }
.tag button { background: none; border: 0; cursor: pointer; color: inherit; padding: 0; opacity: .7; } .tag button:hover { opacity: 1; }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--grad); color: #fff; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(217, 70, 239, .45); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--dim); flex: none; }
.dot.on { background: var(--green); box-shadow: 0 0 0 3px rgba(52, 211, 153, .18), 0 0 10px rgba(52, 211, 153, .6); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #2a2540, #1c1a2b) center/cover; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 650; color: #cfc8ef; position: relative; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.avatar .dot { position: absolute; right: -1px; bottom: -1px; border: 2.5px solid var(--panel-solid); width: 12px; height: 12px; box-shadow: none; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-title b { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.card-title .muted { font-size: 12.5px; }

/* ---------- Écrans d'accès */
.auth { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px; position: relative; overflow: hidden; }
.auth::before { content: ''; position: absolute; width: 620px; height: 620px; border-radius: 50%; background: var(--grad); filter: blur(140px); opacity: .22; top: -220px; left: 50%; transform: translateX(-50%); pointer-events: none; }
.auth .card { width: 410px; max-width: 100%; padding: 34px; position: relative; background: rgba(18, 18, 27, .78); }
.auth h1 { font-size: 24px; margin: 6px 0 4px; letter-spacing: -.02em; }
.auth .lead { color: var(--muted); margin: 0 0 24px; }
.auth .btn.primary { width: 100%; padding: 12px; font-size: 14.5px; margin-top: 4px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.logo i { width: 36px; height: 36px; border-radius: 11px; background: var(--grad); display: inline-flex; align-items: center; justify-content: center; font-style: normal; box-shadow: 0 8px 24px -6px rgba(217, 70, 239, .6), inset 0 1px 0 rgba(255, 255, 255, .3); flex: none; }
.logo i svg { width: 19px; height: 19px; }
.logo small { display: block; font-size: 11px; color: var(--dim); font-weight: 500; letter-spacing: .02em; }
.error { color: var(--red); font-size: 13px; min-height: 18px; margin: 4px 0 8px; }

/* ---------- Structure */
.shell { display: flex; height: 100vh; }
.rail { width: 236px; background: rgba(10, 10, 16, .7); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 14px; gap: 2px; flex: none; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.rail > .logo { padding: 4px 8px 20px; }
.rail .section { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--dim); font-weight: 650; padding: 14px 12px 6px; }
.rail a.nav { height: 40px; border-radius: 11px; display: flex; align-items: center; gap: 12px; padding: 0 12px; color: var(--muted); position: relative; transition: background .18s, color .18s; font-weight: 550; font-size: 13.5px; }
.rail a.nav:hover { background: rgba(255, 255, 255, .045); color: var(--text); }
.rail a.nav.on { background: linear-gradient(90deg, rgba(139, 92, 246, .2), rgba(139, 92, 246, .05)); color: #fff; }
.rail a.nav.on::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.rail a.nav.on svg { color: var(--accent2); }
.rail a.nav svg { width: 19px; height: 19px; flex: none; }
.rail a.nav .badge { margin-left: auto; }
.rail .spacer { flex: 1; }
.rail .mini-models { display: flex; flex-direction: column; gap: 2px; }
.rail .mini-models a { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 10px; color: var(--muted); font-size: 13px; }
.rail .mini-models a:hover { background: rgba(255, 255, 255, .045); color: var(--text); }
.rail .mini-models .mav { width: 22px; height: 22px; font-size: 10px; }
.rail .mini-models .rev { margin-left: auto; font-size: 11.5px; color: var(--green); font-weight: 600; }
.shift-card { border: 1px solid var(--line); background: var(--panel2); border-radius: 14px; padding: 11px 12px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: .18s; margin-bottom: 8px; width: 100%; text-align: left; }
.shift-card:hover { border-color: var(--line2); background: var(--panel3); }
.shift-card .sw { width: 34px; height: 20px; border-radius: 20px; background: rgba(255, 255, 255, .12); position: relative; flex: none; transition: .2s; }
.shift-card .sw::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 2px; left: 2px; transition: .2s; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.shift-card.on { border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .07); }
.shift-card.on .sw { background: var(--green); } .shift-card.on .sw::after { left: 16px; }
.shift-card b { display: block; font-size: 12.5px; } .shift-card span { font-size: 11px; color: var(--muted); }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; cursor: pointer; transition: .18s; }
.me:hover { background: rgba(255, 255, 255, .045); }
.me .av { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; flex: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.me b { display: block; font-size: 13px; } .me span { font-size: 11.5px; color: var(--muted); }
main { flex: 1; min-width: 0; display: flex; overflow: hidden; }
.page { flex: 1; overflow: auto; padding: 34px 40px 60px; }
.page-in { max-width: 1320px; margin: 0 auto; }
.page h1 { font-size: 28px; margin: 0 0 6px; letter-spacing: -.025em; font-weight: 700; }
.page .sub { color: var(--muted); margin-bottom: 26px; max-width: 640px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.head .sub { margin-bottom: 0; }
.fade-in { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Chat */
.chat { display: grid; grid-template-columns: 340px 1fr 310px; flex: 1; min-width: 0; }
.col { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; min-width: 0; background: rgba(12, 12, 19, .55); }
.col.thread { background: transparent; }
.col.list { background: rgba(12, 12, 19, .6); }
.models-bar { display: flex; gap: 6px; padding: 16px 14px 12px; overflow-x: auto; flex: none; }
.mtab { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; white-space: nowrap; font-size: 13px; font-weight: 550; background: var(--panel2); transition: .18s; }
.mtab:hover { border-color: var(--line2); }
.mtab.on { border-color: rgba(167, 139, 250, .5); background: var(--grad-soft); }
.mav { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; background-size: cover; background-position: center; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.mtab .warn { color: var(--orange); }
.filters { display: flex; gap: 6px; padding: 2px 14px 12px; overflow-x: auto; flex: none; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.search { padding: 0 14px 12px; flex: none; position: relative; }
.search .input { padding-left: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%2363617a' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 13px center; }
.fans { flex: 1; overflow-y: auto; padding: 0 8px 10px; }
.fan { display: flex; gap: 12px; padding: 11px 10px; cursor: pointer; border-radius: 14px; position: relative; transition: background .15s; margin-bottom: 1px; }
.fan:hover { background: rgba(255, 255, 255, .035); }
.fan.on { background: linear-gradient(90deg, rgba(139, 92, 246, .18), rgba(139, 92, 246, .06)); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .22); }
.fan .top { display: flex; align-items: center; gap: 6px; }
.fan .name { font-weight: 620; font-size: 13.5px; } .fan .time { margin-left: auto; font-size: 11px; color: var(--dim); flex: none; }
.fan .last { color: var(--muted); font-size: 12.5px; }
.fan.waiting .last { color: #dcd9ea; }
.fan.waiting .time { color: var(--orange); }
.fan .spent { font-size: 10.5px; color: var(--green); font-weight: 650; background: rgba(52, 211, 153, .1); padding: 1px 6px; border-radius: 6px; flex: none; }
.fan .lock { font-size: 11px; color: var(--orange); }
.unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px rgba(217, 70, 239, .7); flex: none; }
.thread-head { display: flex; align-items: center; gap: 13px; padding: 14px 22px; border-bottom: 1px solid var(--line); background: rgba(12, 12, 19, .55); backdrop-filter: blur(18px); flex: none; min-height: 70px; }
.thread-head .spent-big { text-align: right; }
.thread-head .spent-big b { font-size: 17px; }
.msgs { flex: 1; overflow-y: auto; padding: 22px 28px; display: flex; flex-direction: column; gap: 5px; }
.day { text-align: center; color: var(--dim); font-size: 11px; margin: 16px 0 8px; text-transform: capitalize; font-weight: 550; letter-spacing: .02em; }
.day span { background: rgba(255, 255, 255, .04); padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); }
.msg { max-width: 64%; padding: 10px 14px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .05); align-self: flex-start; white-space: pre-wrap; word-wrap: break-word; position: relative; font-size: 14px; line-height: 1.45; }
.msg.out { align-self: flex-end; background: linear-gradient(135deg, #7c3aed, #a855f7 60%, #c026d3); border-color: transparent; color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 8px 24px -12px rgba(168, 85, 247, .8); }
.msg.in { border-bottom-left-radius: 6px; }
.msg.deleted { opacity: .4; text-decoration: line-through; }
.msg .meta { font-size: 10.5px; opacity: .65; margin-top: 4px; display: flex; gap: 6px; justify-content: flex-end; }
.msg.msg-tip { background: linear-gradient(135deg, #f59e0b, #ec4899); color: #fff; font-weight: 650; border: 0; box-shadow: 0 10px 28px -12px rgba(236, 72, 153, .8); }
.msg .medias { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.msg .medias .m { width: 96px; height: 96px; border-radius: 12px; background: #000 center/cover; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.msg .ppv { display: inline-flex; gap: 5px; align-items: center; font-weight: 650; font-size: 12px; padding: 3px 9px; border-radius: 7px; background: rgba(0, 0, 0, .28); margin-bottom: 5px; }
.msg .ppv.paid { background: rgba(16, 185, 129, .9); }
.msg .del { position: absolute; top: -8px; left: -8px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line2); background: var(--panel-solid); color: var(--muted); display: none; cursor: pointer; font-size: 10px; }
.msg.out:hover .del { display: block; }
.composer { padding: 14px 22px 18px; flex: none; }
.composer-box { background: rgba(18, 18, 27, .85); border: 1px solid var(--line2); border-radius: 18px; padding: 6px 6px 6px 6px; transition: border-color .18s, box-shadow .18s; box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .9); }
.composer-box:focus-within { border-color: rgba(167, 139, 250, .55); box-shadow: 0 0 0 4px rgba(139, 92, 246, .12), 0 16px 40px -20px rgba(0, 0, 0, .9); }
.composer textarea { width: 100%; resize: none; background: transparent; border: 0; padding: 10px 12px 6px; outline: none; max-height: 180px; min-height: 42px; display: block; }
.composer .tools { display: flex; gap: 6px; align-items: center; padding: 4px 4px 2px; }
.attach { display: flex; gap: 8px; flex-wrap: wrap; padding: 6px 8px 4px; align-items: center; }
.attach .m { width: 56px; height: 56px; border-radius: 10px; background: #000 center/cover; position: relative; display: flex; align-items: center; justify-content: center; }
.attach .m button { position: absolute; top: -6px; right: -6px; width: 19px; height: 19px; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-size: 10px; cursor: pointer; }
.price { width: 110px; padding: 7px 11px !important; }
.scripts-pop { position: absolute; bottom: calc(100% - 6px); left: 22px; right: 22px; max-height: 280px; overflow: auto; background: rgba(20, 20, 30, .97); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); padding: 6px; z-index: 20; backdrop-filter: blur(20px); }
.scripts-pop div { padding: 9px 12px; border-radius: 10px; cursor: pointer; } .scripts-pop div:hover, .scripts-pop div.on { background: var(--accent-bg); }
.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; padding: 30px; gap: 10px; }
.empty .big { font-size: 34px; width: 74px; height: 74px; border-radius: 22px; background: var(--grad-soft); border: 1px solid rgba(167, 139, 250, .25); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.side { overflow-y: auto; padding: 26px 20px; border-right: 0; }
.side .avatar { width: 84px; height: 84px; font-size: 28px; margin: 0 auto 12px; box-shadow: 0 0 0 3px rgba(12, 12, 19, 1), 0 0 0 5px rgba(167, 139, 250, .4); }
.side h3 { margin: 0; text-align: center; font-size: 17px; letter-spacing: -.01em; } .side .handle { text-align: center; color: var(--muted); margin-bottom: 14px; font-size: 12.5px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.kv div { background: var(--panel2); border: 1px solid var(--line); border-radius: 13px; padding: 11px 12px; } .kv b { display: block; font-size: 16px; letter-spacing: -.01em; } .kv span { font-size: 11px; color: var(--muted); }
.kv .hl { grid-column: 1 / -1; background: var(--grad-soft); border-color: rgba(167, 139, 250, .28); } .kv .hl b { font-size: 22px; }
.side h4 { font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .09em; margin: 22px 0 8px; font-weight: 650; }

/* ---------- Tableaux / pages */
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; font-weight: 650; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tbody tr { transition: background .15s; } table.t tbody tr:hover { background: rgba(255, 255, 255, .02); }
table.t tr:last-child td { border-bottom: 0; }
table.t td.r, table.t th.r { text-align: right; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } @media (max-width: 1100px) { .grid2 { grid-template-columns: 1fr; } }
.grid-main { display: grid; grid-template-columns: 1.65fr 1fr; gap: 18px; margin-bottom: 18px; } @media (max-width: 1200px) { .grid-main { grid-template-columns: 1fr; } }
.mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; }
.mcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: border-color .2s, transform .2s; }
.mcard:hover { border-color: var(--line2); }
.mcard .glow { position: absolute; width: 220px; height: 220px; border-radius: 50%; filter: blur(70px); opacity: .18; top: -110px; right: -70px; pointer-events: none; }
.mcard .big-av { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 21px; font-weight: 700; color: #fff; background-size: cover; background-position: center; flex: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .06); }
.mcard .money { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mcard .money div { background: rgba(0, 0, 0, .22); border: 1px solid var(--line); border-radius: 12px; padding: 10px 11px; }
.mcard .money b { display: block; font-size: 15px; letter-spacing: -.01em; } .mcard .money span { font-size: 10.5px; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.status.connected { background: rgba(52, 211, 153, .12); color: var(--green); } .status.expired, .status.error { background: rgba(248, 113, 113, .12); color: var(--red); } .status.new { background: var(--panel3); color: var(--muted); }

/* ---------- Statistiques */
.range { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.dates { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 13px; }
.dates input { background: transparent; border: 0; outline: none; color-scheme: dark; padding: 5px 4px; font-size: 12.5px; width: 128px; color: var(--text); }
.dates span { color: var(--dim); font-size: 12px; }
.dates.on { border-color: rgba(167, 139, 250, .45); background: rgba(139, 92, 246, .1); }
.hero { position: relative; overflow: hidden; padding: 26px 28px; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 240px at 0% 0%, rgba(139, 92, 246, .22), transparent 70%), radial-gradient(400px 200px at 100% 0%, rgba(236, 72, 153, .1), transparent 70%); pointer-events: none; }
.hero > * { position: relative; }
.hero .label { color: var(--muted); font-size: 13px; font-weight: 550; display: flex; align-items: center; gap: 8px; }
.hero .big { font-size: 52px; font-weight: 750; letter-spacing: -.04em; line-height: 1.05; margin: 8px 0 6px; }
.hero .big small { font-size: 26px; font-weight: 650; opacity: .7; margin-left: 4px; }
.delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 999px; }
.delta.up { background: rgba(52, 211, 153, .13); color: var(--green); } .delta.down { background: rgba(248, 113, 113, .13); color: var(--red); } .delta.flat { background: var(--panel3); color: var(--muted); }
.split { display: flex; height: 10px; border-radius: 10px; overflow: hidden; margin: 22px 0 14px; background: rgba(255, 255, 255, .05); gap: 2px; }
.split div { height: 100%; min-width: 3px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.legend div { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.legend b { color: var(--text); font-weight: 650; }
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 15px 17px; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between; min-height: 96px; }
.mini span { color: var(--muted); font-size: 12px; font-weight: 550; display: flex; align-items: center; gap: 7px; }
.mini span i { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 13px; background: var(--panel3); }
.mini b { font-size: 23px; letter-spacing: -.03em; font-weight: 720; display: block; margin-top: 10px; }
.mini em { font-style: normal; font-size: 11.5px; color: var(--dim); }
.mini.bal { background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01)); border-style: dashed; }
.mini.bal em::before { content: 'Global · '; color: var(--muted); font-weight: 600; }
.chart { position: relative; height: 240px; margin-top: 6px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .grid line { stroke: rgba(255, 255, 255, .05); }
.chart .grid text { fill: var(--dim); font-size: 10.5px; }
.chart .xl { fill: var(--dim); font-size: 10.5px; }
.chart rect.hit { fill: transparent; cursor: crosshair; }
.chart rect.hit:hover { fill: rgba(255, 255, 255, .035); }
.tip { position: absolute; pointer-events: none; background: rgba(14, 14, 22, .96); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; font-size: 12px; min-width: 170px; box-shadow: 0 14px 40px rgba(0, 0, 0, .6); z-index: 5; transform: translate(-50%, calc(-100% - 10px)); backdrop-filter: blur(10px); }
.tip .t { font-weight: 650; margin-bottom: 6px; text-transform: capitalize; }
.tip .l { display: flex; align-items: center; gap: 7px; color: var(--muted); margin-top: 3px; } .tip .l b { margin-left: auto; color: var(--text); }
.tip .l i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; align-items: end; }
@media (max-width: 900px) { .podium { grid-template-columns: 1fr; } }
.pod { border-radius: 18px; padding: 20px; border: 1px solid var(--line); background: var(--panel2); position: relative; overflow: hidden; text-align: center; }
.pod .medal { font-size: 26px; }
.pod .av { width: 58px; height: 58px; border-radius: 50%; margin: 6px auto 10px; display: flex; align-items: center; justify-content: center; font-weight: 750; font-size: 22px; color: #fff; background: linear-gradient(135deg, #3a3357, #241f38); box-shadow: 0 0 0 3px rgba(255, 255, 255, .06); }
.pod .nm { font-weight: 650; font-size: 15px; }
.pod .amt { font-size: 28px; font-weight: 750; letter-spacing: -.03em; margin: 6px 0 2px; }
.pod .meta { font-size: 11.5px; color: var(--muted); }
.pod.p1 { padding-top: 28px; padding-bottom: 26px; background: linear-gradient(180deg, rgba(251, 191, 36, .13), rgba(251, 191, 36, .02)); border-color: rgba(251, 191, 36, .3); box-shadow: 0 20px 50px -24px rgba(251, 191, 36, .45); }
.pod.p1 .av { background: linear-gradient(135deg, #fbbf24, #f97316); box-shadow: 0 0 0 3px rgba(251, 191, 36, .25), 0 10px 30px -8px rgba(251, 191, 36, .6); }
.pod.p2 { background: linear-gradient(180deg, rgba(203, 213, 225, .09), rgba(203, 213, 225, .01)); border-color: rgba(203, 213, 225, .2); }
.pod.p2 .av { background: linear-gradient(135deg, #cbd5e1, #64748b); }
.pod.p3 { background: linear-gradient(180deg, rgba(217, 119, 6, .1), rgba(217, 119, 6, .01)); border-color: rgba(217, 119, 6, .22); }
.pod.p3 .av { background: linear-gradient(135deg, #d97706, #92400e); }
.pod.none { opacity: .45; }
.rank { width: 28px; height: 28px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; background: var(--panel3); color: var(--muted); }
.who { display: flex; align-items: center; gap: 11px; }
.who .av { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #fff; background: linear-gradient(135deg, #3a3357, #241f38); flex: none; }
.share { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .06); margin-top: 6px; overflow: hidden; width: 120px; }
.share div { height: 100%; background: var(--grad); border-radius: 5px; }
.lrow { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.lrow:last-child { border-bottom: 0; }
.kind-dot { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex: none; }
.note { font-size: 12px; color: var(--muted); background: var(--panel2); border: 1px dashed var(--line2); border-radius: 12px; padding: 10px 13px; margin-top: 12px; }
.progress-line { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .06); overflow: hidden; margin-top: 8px; }
.progress-line div { height: 100%; width: 40%; background: var(--grad); animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- Fenêtres */
.overlay { position: fixed; inset: 0; background: rgba(3, 3, 8, .66); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .2s ease both; }
.modal { background: rgba(20, 20, 30, .96); border: 1px solid var(--line2); border-radius: 22px; width: 480px; max-width: 100%; max-height: 92vh; overflow: auto; padding: 26px; box-shadow: 0 40px 100px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .05); }
.modal.wide { width: 1240px; } .modal.mid { width: 820px; }
.modal h2 { margin: 0 0 16px; font-size: 19px; letter-spacing: -.015em; display: flex; align-items: center; justify-content: space-between; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.x { background: var(--panel3); border: 0; color: var(--muted); width: 32px; height: 32px; border-radius: 10px; font-size: 18px; cursor: pointer; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.x:hover { color: var(--text); background: rgba(255, 255, 255, .1); }
.screen-wrap { position: relative; background: #000; border-radius: 14px; overflow: hidden; outline: none; border: 1px solid var(--line2); }
.screen-wrap:focus { border-color: rgba(167, 139, 250, .6); }
.screen-wrap img { display: block; width: 100%; height: auto; cursor: pointer; user-select: none; -webkit-user-drag: none; }
.screen-wrap .loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.urlbar { background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; font-size: 12px; color: var(--muted); flex: 1; font-family: var(--mono); }
.vault-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 10px; }
.vault-grid .v { aspect-ratio: 1; border-radius: 13px; background: #000 center/cover; cursor: pointer; position: relative; border: 2px solid transparent; display: flex; align-items: center; justify-content: center; font-size: 24px; transition: .15s; }
.vault-grid .v:hover { transform: scale(1.02); }
.vault-grid .v.on { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(139, 92, 246, .25); }
.vault-grid .v.on::after { content: '✓'; position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.vault-grid .v .ty { position: absolute; bottom: 5px; left: 6px; font-size: 11px; background: rgba(0, 0, 0, .6); padding: 1px 6px; border-radius: 5px; }
#toasts { position: fixed; bottom: 22px; right: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 200; }
.toast { background: rgba(22, 22, 32, .96); border: 1px solid var(--line2); padding: 12px 16px 12px 14px; border-radius: 14px; max-width: 380px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); animation: in .25s ease both; display: flex; gap: 10px; align-items: center; backdrop-filter: blur(14px); font-weight: 500; }
.toast::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 10px currentColor; }
.toast.err::before { background: var(--red); } .toast.ok::before { background: var(--green); } .toast.money::before { background: var(--orange); }
.toast.money { border-color: rgba(251, 191, 36, .35); background: linear-gradient(135deg, rgba(251, 191, 36, .12), rgba(22, 22, 32, .96) 60%); }
@keyframes in { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .1); border-top-color: var(--accent2); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)); background-size: 200% 100%; animation: sk 1.3s linear infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
code { font-family: var(--mono); font-size: 12px; background: var(--panel3); padding: 1px 6px; border-radius: 6px; }

@media (max-width: 1280px) { .chat { grid-template-columns: 310px 1fr; } .chat .side { display: none; } }
@media (max-width: 980px) { .rail { width: 72px; padding: 16px 10px; } .rail .lbl, .rail .section, .rail .mini-models, .rail > .logo span, .me div, .shift-card div { display: none; } .rail a.nav { justify-content: center; padding: 0; } .rail a.nav .badge { position: absolute; top: 2px; right: 2px; } .shift-card { justify-content: center; } .me { justify-content: center; } }
@media (max-width: 760px) { .chat { grid-template-columns: 1fr; } .chat.open .list { display: none; } .chat:not(.open) .thread { display: none; } .page { padding: 20px; } .hero .big { font-size: 40px; } .minis { grid-template-columns: 1fr 1fr; } }

/* ---------- Fiche fan : infos, groupes, fiche pré-remplie */
.info-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.info-grid label { display: block; } .info-grid label.full { grid-column: 1 / -1; }
.info-grid span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; font-weight: 500; }
.info-grid .input { padding: 8px 11px; font-size: 13px; }
.notes-sheet { font-size: 13px; line-height: 1.75; background: rgba(0, 0, 0, .3) !important; background-image: repeating-linear-gradient(transparent 0 calc(1.75em - 1px), rgba(255, 255, 255, .045) calc(1.75em - 1px) 1.75em) !important; background-attachment: local !important; background-position: 0 10px !important; }
.gchip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); white-space: nowrap; }
.gchip.sm { padding: 2px 8px; font-size: 11px; }
.gchip button { background: none; border: 0; color: inherit; cursor: pointer; padding: 0; opacity: .7; font-size: 13px; line-height: 1; } .gchip button:hover { opacity: 1; }

/* ---------- Fans & groupes */
.fans-layout { display: grid; grid-template-columns: 290px 1fr; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .fans-layout { grid-template-columns: 1fr; } }
.groups-panel { padding: 10px; position: sticky; top: 0; }
.gsec { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--dim); font-weight: 650; padding: 14px 10px 6px; }
.gitem { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; cursor: pointer; position: relative; transition: background .15s; }
.gitem:hover { background: rgba(255, 255, 255, .04); }
.gitem.on { background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .3); }
.gitem b { font-size: 13px; display: block; }
.gdot { width: 10px; height: 10px; border-radius: 4px; flex: none; }
.gedit { position: absolute; right: -4px; top: -4px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line2); background: var(--panel-solid); color: var(--muted); cursor: pointer; font-size: 11px; display: none; }
.gitem:hover .gedit { display: block; }
.fans-card { padding: 14px; }
.fans-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.fans-t td { padding: 10px 12px; }
.fans-t input[type=checkbox], #fall { width: 16px; height: 16px; accent-color: #a855f7; cursor: pointer; }
.bulk { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 12px; border-radius: 14px; background: var(--grad-soft); border: 1px solid rgba(167, 139, 250, .35); animation: fade .2s ease both; }
.swatch i { display: inline-block; width: 26px; height: 26px; border-radius: 9px; cursor: pointer; border: 2px solid transparent; transition: .15s; }
.swatch input:checked + i { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .15); }

/* ---------- Ventes : attribution */
select.assign { width: 150px; flex: none; padding: 6px 30px 6px 10px; font-size: 12.5px; border-radius: 9px; background-position: right 10px center; }

/* ---------- Messages de masse */
.camp { margin-bottom: 12px; padding: 18px 20px; }
.camp-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--grad-soft); border: 1px solid rgba(167, 139, 250, .25); display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.camp-text { margin-top: 10px; padding: 10px 13px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); white-space: pre-wrap; font-size: 13px; color: #dcd9ea; max-height: 120px; overflow: auto; }
.prog { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; margin: 12px 0 6px; }
.prog div { height: 100%; background: var(--grad); border-radius: 6px; transition: width .5s; }
.mthumb { width: 52px; height: 52px; border-radius: 10px; background: #000 center/cover; display: inline-flex; align-items: center; justify-content: center; position: relative; flex: none; }
.mthumb button { position: absolute; top: -6px; right: -6px; width: 19px; height: 19px; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-size: 11px; cursor: pointer; }
.preview-line { padding: 11px 14px; border-radius: 12px; background: var(--grad-soft); border: 1px solid rgba(167, 139, 250, .3); font-size: 13px; }

/* ---------- Calendrier */
.planner-layout { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
@media (max-width: 1200px) { .planner-layout { grid-template-columns: 1fr; } }
.cal-card { padding: 16px; }
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.cal-head > b { font-size: 17px; text-transform: capitalize; min-width: 150px; text-align: center; letter-spacing: -.01em; }
.cal-head .legend div { font-size: 11.5px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); font-weight: 650; padding: 0 6px 4px; }
.cal-day { min-height: 112px; border-radius: 12px; background: rgba(255, 255, 255, .02); border: 1px solid var(--line); padding: 6px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; transition: border-color .15s, background .15s; min-width: 0; }
.cal-day:hover { border-color: var(--line2); background: rgba(255, 255, 255, .035); }
.cal-day.out { opacity: .38; }
.cal-day.today { border-color: rgba(167, 139, 250, .6); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .25); }
.cal-num { font-size: 12px; font-weight: 650; color: var(--muted); padding: 1px 3px 3px; }
.cal-day.today .cal-num { color: #fff; } .cal-day.today .cal-num::after { content: ' · aujourd’hui'; font-weight: 500; color: var(--accent2); font-size: 10.5px; }
.pchip { display: flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 3px 7px; border-radius: 7px; background: color-mix(in srgb, var(--c) 16%, transparent); border-left: 3px solid var(--c); color: #ebe8f7; min-width: 0; cursor: pointer; }
.pchip:hover { filter: brightness(1.2); }
.pchip.done { opacity: .5; text-decoration: line-through; } .pchip.cancelled { opacity: .35; text-decoration: line-through; }
.camp-chip { --c: #34d399; }
.fans-layout > section { min-width: 0; }
.fans-card { overflow: hidden; }
div.field { margin-bottom: 16px; }
.side > * { flex-shrink: 0; }
.fan-open { cursor: pointer; } .fan-open:hover b { color: var(--accent2); }

/* ---------- Droits */
.role-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.role-card { text-align: left; border: 1px solid var(--line2); background: var(--panel2); border-radius: 14px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; transition: .18s; color: var(--text); }
.role-card .ic { font-size: 20px; margin-bottom: 4px; }
.role-card span:last-child { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.role-card:hover:not(:disabled) { border-color: rgba(255, 255, 255, .2); }
.role-card.on { background: var(--grad-soft); border-color: rgba(167, 139, 250, .55); box-shadow: 0 0 0 3px rgba(139, 92, 246, .12); }
.role-card:disabled { opacity: .4; cursor: not-allowed; }
.perm-details summary { cursor: pointer; padding: 10px 2px; font-weight: 600; font-size: 13px; color: var(--accent2); }
.perm-head { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 8px; }
.perm-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-height: 46vh; overflow: auto; padding-right: 4px; }
@media (max-width: 760px) { .perm-list, .role-cards { grid-template-columns: 1fr; } }
.pgroup { background: rgba(0, 0, 0, .2); border: 1px solid var(--line); border-radius: 13px; padding: 10px 12px; }
.pg-title { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--dim); font-weight: 650; margin-bottom: 6px; }
.pcheck { display: flex; align-items: center; gap: 10px; padding: 6px 2px; cursor: pointer; font-size: 12.8px; }
.pcheck input { display: none; }
.pcheck .tog { width: 30px; height: 18px; border-radius: 18px; background: rgba(255, 255, 255, .12); position: relative; flex: none; transition: .2s; }
.pcheck .tog::after { content: ''; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; top: 2px; left: 2px; transition: .2s; }
.pcheck input:checked + .tog { background: var(--accent); } .pcheck input:checked + .tog::after { left: 14px; }
.pcheck.locked { opacity: .45; cursor: not-allowed; }
.role-pill { display: inline-flex; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650; background: var(--panel3); }
.role-pill.owner { background: rgba(250, 204, 21, .14); color: #facc15; } .role-pill.admin { background: rgba(139, 92, 246, .16); color: var(--accent2); } .role-pill.chatter { background: rgba(96, 165, 250, .14); color: var(--blue); }

/* ---------- Destinataires des messages de masse */
.camp-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px; }
@media (max-width: 980px) { .camp-grid { grid-template-columns: 1fr; } }
.recip { background: rgba(0, 0, 0, .2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; min-width: 0; }
.rsec { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--dim); font-weight: 650; margin: 4px 0 8px; }
.rsec + .row { gap: 6px; margin-bottom: 10px; }
.chip.ex.on { background: rgba(248, 113, 113, .14); border-color: rgba(248, 113, 113, .5); color: #fecaca; }
.rlist-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 8px; }
.rlist { flex: 1; min-height: 220px; max-height: 340px; overflow: auto; border-top: 1px solid var(--line); }
.rrow { display: flex; align-items: center; gap: 9px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.rrow b { font-size: 12.8px; }
.rrow.out { opacity: .55; } .rrow.out b { text-decoration: line-through; }
.rrow .btn { padding: 4px 9px; font-size: 11.5px; }

/* ---------- Chaleur du fan */
.heat { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px 1px 5px; border-radius: 999px; font-size: 11px; line-height: 17px; flex: none;
  background: color-mix(in srgb, var(--hc) 16%, transparent); border: 1px solid color-mix(in srgb, var(--hc) 40%, transparent); color: var(--hc); vertical-align: 1px; }
.heat b { font-weight: 750; font-variant-numeric: tabular-nums; }
.heat-gauge { background: rgba(0, 0, 0, .22); border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; margin-top: 14px; }
.hg-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.hg-bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin-bottom: 6px; }
.hg-bar i { height: 8px; border-radius: 3px; background: rgba(255, 255, 255, .07); }
.hg-bar i.on { background: var(--hc); box-shadow: 0 0 8px color-mix(in srgb, var(--hc) 60%, transparent); }

/* ---------- Notifications bas à droite */
#notifs { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 210; width: 380px; max-width: calc(100vw - 30px); }
#toasts { bottom: auto; top: 22px; }
.ntf { display: flex; align-items: center; gap: 11px; padding: 13px 14px; border-radius: 18px; background: rgba(20, 20, 30, .97); border: 1px solid var(--line2); cursor: pointer;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .6); backdrop-filter: blur(16px); animation: ntfIn .45s cubic-bezier(.2, 1.3, .4, 1) both; position: relative; overflow: hidden; }
.ntf::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; background: currentColor; animation: ntfBar 9s linear forwards; opacity: .6; }
.ntf.n-unpaid { border-color: rgba(251, 191, 36, .4); background: linear-gradient(135deg, rgba(251, 191, 36, .13), rgba(20, 20, 30, .97) 55%); color: var(--orange); }
.ntf.n-unpaid::after { animation-duration: 12s; }
.ntf b { color: var(--text); font-size: 14px; }
.ntf-ic { font-size: 22px; animation: pop 0.6s ease .1s both; }
.ntf-amt { font-size: 18px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ntf-x { position: absolute; top: 4px; right: 6px; background: none; border: 0; color: var(--dim); cursor: pointer; font-size: 15px; display: none; }
.ntf:hover .ntf-x { display: block; }
.ntf.bye { animation: ntfOut .25s ease forwards; }
@keyframes ntfIn { from { transform: translateX(40px) scale(.95); opacity: 0; } }
@keyframes ntfOut { to { transform: translateX(40px); opacity: 0; } }
@keyframes ntfBar { from { width: 100%; } to { width: 0; } }
@keyframes pop { 0% { transform: scale(.3) rotate(-20deg); } 60% { transform: scale(1.3) rotate(8deg); } 100% { transform: none; } }
.me-row { display: flex; align-items: center; gap: 4px; } .me-row .me { flex: 1; min-width: 0; }
.sound-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); cursor: pointer; font-size: 15px; flex: none; }
.sound-btn:hover { background: var(--panel3); }
.fans-t th, .fans-t td { padding-left: 9px; padding-right: 9px; }
.fans-t td.r .tiny { white-space: nowrap; }

/* ---------- Choix push / message de masse */
.type-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { .type-cards { grid-template-columns: 1fr; } }
.type-card { text-align: left; border: 1px solid var(--line2); background: var(--panel2); border-radius: 18px; padding: 20px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; color: var(--text); transition: .18s; }
.type-card:hover { border-color: rgba(167, 139, 250, .55); background: var(--grad-soft); transform: translateY(-2px); }
.type-card .ic { font-size: 30px; } .type-card b { font-size: 16px; } .type-card span:last-child { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.role-pill.manager { background: rgba(52, 211, 153, .14); color: var(--green); }
@media (max-width: 1100px) { .role-cards { grid-template-columns: 1fr 1fr; } }

/* ---------- Paies */
.pay-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-bottom: 18px; }
.mini.due { border-color: rgba(251, 191, 36, .45); background: linear-gradient(135deg, rgba(251, 191, 36, .12), var(--panel) 60%); }
.pay-day { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.pay-day:last-child { border-bottom: 0; }
.pd-date { width: 46px; flex: none; text-align: center; background: var(--grad-soft); border: 1px solid rgba(167, 139, 250, .25); border-radius: 11px; padding: 4px 0; }
.pd-date b { display: block; font-size: 17px; line-height: 1.1; } .pd-date span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; }

.msg .seen { font-weight: 700; opacity: .75; }
.msg .seen.on { color: #a5f3fc; opacity: 1; text-shadow: 0 0 8px rgba(165, 243, 252, .5); }

/* ---------- Fiche fan : une case par rubrique */
.sheet { display: flex; flex-direction: column; gap: 7px; }
.sh-row { display: block; }
.sh-row span { display: block; font-size: 11px; color: var(--muted); font-weight: 600; margin: 0 0 3px 2px; }
.sh-row .input { padding: 7px 10px; font-size: 13px; resize: none; overflow: hidden; min-height: 34px; line-height: 1.4; }
.sh-row.big span { color: var(--accent2); }
.sh-row.big .input { resize: vertical; overflow: auto; min-height: 110px; }

/* ---------- Scripts en étapes */
.steps-prev { display: flex; flex-direction: column; gap: 6px; }
.sp { display: flex; gap: 9px; align-items: flex-start; padding: 7px 9px; border-radius: 10px; background: rgba(0, 0, 0, .2); border: 1px solid var(--line); }
.sp-n { width: 22px; height: 22px; border-radius: 7px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 750; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tag.fu { background: rgba(52, 211, 153, .13); color: var(--green); }
.mthumb.sm { width: 26px; height: 26px; border-radius: 6px; }
.step-card { border: 1px solid var(--line2); background: rgba(0, 0, 0, .2); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.step-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.fu-list { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.fu-row { border-left: 3px solid var(--green); background: rgba(52, 211, 153, .05); border-radius: 0 12px 12px 0; padding: 10px 12px; position: relative; }
.fu-row .fu-ic { position: absolute; left: -12px; top: 9px; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #052e1a; font-size: 11px; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.fu-row textarea { margin-top: 6px; }
.input.sm { padding: 5px 9px; font-size: 12.5px; width: auto; }
select.input.sm { padding-right: 28px; background-position: right 9px center; }
.script-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; margin-bottom: 8px; border-radius: 13px; background: var(--grad-soft); border: 1px solid rgba(167, 139, 250, .4); font-size: 13px; animation: fade .2s ease both; }
.sb-ic { font-size: 16px; }
.fu-item { display: flex; gap: 8px; align-items: center; padding: 7px 9px; border-radius: 10px; background: rgba(52, 211, 153, .06); border: 1px solid rgba(52, 211, 153, .2); margin-bottom: 6px; }
.fu-item.done { opacity: .55; background: var(--panel2); border-color: var(--line); }
.fu-item .fu-ic { font-weight: 800; color: var(--green); }
.wl-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.wl-row .mav { width: 26px; height: 26px; font-size: 11px; }
.switch { position: relative; display: inline-block; width: 38px; height: 22px; flex: none; cursor: pointer; }
.switch input { display: none; }
.switch span { position: absolute; inset: 0; border-radius: 22px; background: rgba(255, 255, 255, .14); transition: .2s; }
.switch span::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 2px; left: 2px; transition: .2s; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.switch input:checked + span { background: var(--green); } .switch input:checked + span::after { left: 18px; }
.am-item { padding: 10px 0; border-bottom: 1px solid var(--line); } .am-item:last-of-type { border-bottom: 0; }
.am-item textarea { margin-top: 5px; font-size: 13px; }
/* ---------- Shifts */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
@media (max-width: 1100px) { .week { grid-template-columns: repeat(2, 1fr); } }
.wday { background: rgba(0, 0, 0, .2); border: 1px solid var(--line); border-radius: 13px; padding: 9px; min-height: 120px; }
.wd-name { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); font-weight: 650; margin-bottom: 7px; }
.slot { position: relative; background: var(--grad-soft); border: 1px solid rgba(167, 139, 250, .3); border-radius: 9px; padding: 6px 8px; margin-bottom: 6px; }
.slot b { display: block; font-size: 12px; } .slot span { font-size: 11px; color: var(--muted); }
.slot button { position: absolute; top: 2px; right: 4px; background: none; border: 0; color: var(--dim); cursor: pointer; display: none; }
.slot:hover button { display: block; }
.ho { padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .2); border: 1px solid var(--line); margin-bottom: 8px; }

/* ---------- Scripts & automatisations (refonte) */
.sc-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.sc-hero .sub { margin-bottom: 0; }
.sc-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin-bottom: 22px; }
.sc-tab { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; transition: .2s; box-shadow: var(--shadow); }
.sc-tab:hover { border-color: var(--line2); transform: translateY(-1px); }
.sc-tab .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--panel3); display: flex; align-items: center; justify-content: center; font-size: 19px; flex: none; }
.sc-tab b { display: block; font-size: 14px; } .sc-tab small { color: var(--muted); font-size: 11.5px; }
.sc-tab.on { background: linear-gradient(135deg, rgba(139, 92, 246, .22), rgba(236, 72, 153, .1)); border-color: rgba(167, 139, 250, .5); box-shadow: 0 14px 40px -18px rgba(168, 85, 247, .6); }
.sc-tab.on .ic { background: var(--grad); box-shadow: 0 8px 20px -6px rgba(217, 70, 239, .6); }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.sc-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); overflow: hidden; transition: border-color .2s, transform .2s; display: flex; flex-direction: column; gap: 12px; }
.sc-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); opacity: .8; }
.sc-card:hover { border-color: rgba(167, 139, 250, .35); transform: translateY(-2px); }
.sc-top { display: flex; align-items: center; gap: 12px; }
.sc-ic { width: 42px; height: 42px; border-radius: 13px; background: var(--grad-soft); border: 1px solid rgba(167, 139, 250, .3); display: flex; align-items: center; justify-content: center; font-size: 19px; flex: none; }
.sc-top b { font-size: 15.5px; letter-spacing: -.01em; display: block; }
.sc-actions { display: flex; gap: 6px; opacity: .0; transition: .2s; }
.sc-card:hover .sc-actions { opacity: 1; }
.sc-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--panel3); color: var(--muted); white-space: nowrap; }
.pill.sm { padding: 1px 7px; font-size: 10.5px; }
.pill.ppv { background: rgba(251, 191, 36, .13); color: #fcd34d; } .pill.fu { background: rgba(52, 211, 153, .12); color: var(--green); }
.tl { position: relative; display: flex; flex-direction: column; gap: 10px; }
.tl::before { content: ''; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(180deg, rgba(167, 139, 250, .5), rgba(167, 139, 250, .05)); }
.tl-item { display: flex; gap: 12px; position: relative; }
.tl-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 11px; font-weight: 750; display: inline-flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 0 0 4px var(--panel-solid), 0 6px 14px -4px rgba(217, 70, 239, .6); position: relative; z-index: 1; }
.tl-body { flex: 1; min-width: 0; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); border-radius: 12px; padding: 8px 11px; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 60px 20px; border: 1px dashed var(--line2); border-radius: 20px; color: var(--muted); }
.sc-empty .big { font-size: 34px; width: 74px; height: 74px; border-radius: 22px; background: var(--grad-soft); border: 1px solid rgba(167, 139, 250, .25); display: flex; align-items: center; justify-content: center; }
.sc-empty b { color: var(--text); font-size: 16px; } .sc-empty span { max-width: 460px; }
/* Éditeur */
.modal.ed { width: 1320px; padding: 24px 26px; }
.ed-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ed-grid { display: grid; grid-template-columns: 1fr 340px; gap: 22px; }
@media (max-width: 1100px) { .ed-grid { grid-template-columns: 1fr; } .ed-side { display: none; } }
.ed-side { position: sticky; top: 0; align-self: start; }
.hint { font-size: 12px; color: var(--muted); background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; margin-bottom: 16px; }
.ed-steps { display: flex; flex-direction: column; }
.ed-step { display: flex; gap: 14px; }
.ed-rail { display: flex; flex-direction: column; align-items: center; width: 24px; flex: none; padding-top: 14px; }
.ed-line { flex: 1; width: 2px; margin: 6px 0; background: linear-gradient(180deg, rgba(167, 139, 250, .55), rgba(167, 139, 250, .12)); border-radius: 2px; }
.ed-card { flex: 1; min-width: 0; background: rgba(0, 0, 0, .22); border: 1px solid var(--line2); border-radius: 16px; padding: 14px; margin-bottom: 14px; transition: border-color .2s; }
.ed-card:focus-within { border-color: rgba(167, 139, 250, .5); box-shadow: 0 0 0 4px rgba(139, 92, 246, .08); }
.ed-media { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.price-in { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 11px; border-radius: 999px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .3); color: #fcd34d; font-size: 12.5px; font-weight: 600; }
.price-in input { width: 64px; background: rgba(0, 0, 0, .35); border: 0; border-radius: 999px; padding: 4px 9px; color: var(--text); outline: none; }
.icon-btn { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel2); color: var(--muted); cursor: pointer; font-size: 13px; }
.icon-btn:hover:not(:disabled) { color: var(--text); border-color: var(--line2); } .icon-btn.danger:hover:not(:disabled) { color: var(--red); border-color: rgba(248, 113, 113, .4); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.add-step { width: calc(100% - 38px); margin-left: 38px; padding: 13px; border-radius: 14px; border: 1.5px dashed rgba(167, 139, 250, .4); background: rgba(139, 92, 246, .05); color: var(--accent2); font-weight: 650; cursor: pointer; transition: .2s; }
.add-step:hover { background: rgba(139, 92, 246, .12); border-color: rgba(167, 139, 250, .7); }
.add-fu { margin-top: 10px; background: none; border: 0; color: var(--green); font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 4px 0; }
.add-fu:hover { text-decoration: underline; }
.fu-row { margin-top: 10px; border: 1px solid rgba(52, 211, 153, .25); background: rgba(52, 211, 153, .05); border-radius: 12px; padding: 10px 12px; }
.fu-row::before, .fu-row .fu-ic { display: none; }
.fu-badge { font-size: 11px; font-weight: 700; color: var(--green); background: rgba(52, 211, 153, .14); padding: 3px 9px; border-radius: 999px; }
/* Aperçu téléphone */
.phone { border-radius: 30px; border: 1px solid var(--line2); background: #0a0a10; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9), inset 0 0 0 6px rgba(255, 255, 255, .02); }
.phone-head { display: flex; align-items: center; gap: 9px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.phone-head .tiny { margin-left: auto; }
.phone-body { padding: 14px 12px 20px; max-height: 62vh; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.ph-sep { align-self: center; font-size: 10.5px; color: var(--dim); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; margin: 8px 0 2px; text-align: center; }
.ph-bubble { align-self: flex-end; max-width: 86%; background: linear-gradient(135deg, #7c3aed, #a855f7 60%, #c026d3); color: #fff; padding: 8px 12px; border-radius: 16px 16px 5px 16px; font-size: 12.5px; line-height: 1.4; }
.ph-bubble.media { padding: 5px; background: rgba(255, 255, 255, .06); }
.ph-medias { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.ph-medias span { width: 92px; height: 92px; border-radius: 11px; background: #111 center/cover; display: flex; align-items: center; justify-content: center; }
.ph-bubble.locked .ph-medias span { filter: blur(6px) brightness(.7); }
.ph-lock { text-align: center; font-size: 12px; font-weight: 700; color: #fcd34d; padding: 6px 4px 3px; }
/* Automatisations */
.au-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.au-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; transition: .2s; position: relative; overflow: hidden; }
.au-card.on { border-color: rgba(52, 211, 153, .35); }
.au-card.on::after { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: var(--green); filter: blur(80px); opacity: .08; top: -90px; right: -60px; pointer-events: none; }
.au-top { display: flex; align-items: center; gap: 12px; }
.au-top b { font-size: 15px; }
.au-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--grad-soft); border: 1px solid rgba(167, 139, 250, .3); display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.au-seq { display: flex; flex-direction: column; gap: 6px; min-height: 40px; }
.au-msg { display: flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); border-radius: 11px; padding: 7px 10px; }
.au-when { font-size: 10.5px; font-weight: 700; color: var(--accent2); background: var(--accent-bg); padding: 2px 8px; border-radius: 999px; white-space: nowrap; flex: none; }
.au-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.switch.big { width: 46px; height: 26px; } .switch.big span::after { width: 22px; height: 22px; } .switch.big input:checked + span::after { left: 22px; }

/* ---------- Déjà envoyé / vu / acheté */
.hist { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.hist.sent { background: rgba(96, 165, 250, .16); color: #93c5fd; } .hist.seen { background: rgba(251, 191, 36, .16); color: #fcd34d; } .hist.bought { background: rgba(52, 211, 153, .18); color: var(--green); }
.vault-grid .v .hist { position: absolute; top: 6px; left: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); backdrop-filter: blur(6px); }
.vault-grid .v.was-bought, .vault-grid .v.was-seen, .vault-grid .v.was-sent { opacity: .62; } .vault-grid .v.was-bought:hover, .vault-grid .v.was-seen:hover, .vault-grid .v.was-sent:hover, .vault-grid .v.on { opacity: 1; }
/* ---------- Onglet Médias */
.md-layout { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; }
@media (max-width: 1000px) { .md-layout { grid-template-columns: 1fr; } }
.md-side { padding: 10px; position: sticky; top: 0; }
.md-cov { width: 26px; height: 26px; border-radius: 7px; background: var(--panel3) center/cover; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.md-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.md-item { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; background: #0c0c12 center/cover; cursor: pointer; border: 2px solid transparent; overflow: hidden; transition: transform .15s, border-color .15s; }
.md-item:hover { transform: translateY(-2px); }
.md-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .7)); }
.md-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.md-type { position: absolute; top: 7px; left: 7px; z-index: 1; font-size: 12px; background: rgba(0, 0, 0, .55); padding: 2px 6px; border-radius: 6px; }
.md-use { position: absolute; bottom: 7px; left: 7px; z-index: 1; font-size: 10.5px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .55); padding: 2px 7px; border-radius: 999px; }
.md-check { position: absolute; top: 7px; right: 7px; z-index: 1; width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); background: rgba(0, 0, 0, .3); color: transparent; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.md-item.on { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(139, 92, 246, .25); }
.md-item.on .md-check { background: var(--grad); border-color: transparent; color: #fff; }
.up-card { margin-bottom: 16px; padding: 12px 16px; }
.up-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.up-ic { width: 22px; text-align: center; }
#mdPage.drop .page-in { outline: 2px dashed rgba(167, 139, 250, .7); outline-offset: 10px; border-radius: 20px; }

/* ---------- Envoyé (jaune) / Acheté (vert) */
.hist.sent { background: rgba(251, 191, 36, .18) !important; color: #fcd34d !important; }
.hist.bought { background: rgba(52, 211, 153, .2) !important; color: #34d399 !important; }
.vault-grid .v.was-sent { box-shadow: inset 0 0 0 2px rgba(251, 191, 36, .55); } .vault-grid .v.was-bought { box-shadow: inset 0 0 0 2px rgba(52, 211, 153, .65); }
/* ---------- Timeline PPV */
.ppv-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.ppv-sum div { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 8px; text-align: center; } .ppv-sum b { display: block; font-size: 14px; } .ppv-sum span { font-size: 10px; color: var(--muted); }
.ppv-tl { position: relative; display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow: auto; padding-left: 14px; }
.ppv-tl::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: var(--line2); border-radius: 2px; }
.ppv-it { display: flex; gap: 8px; align-items: flex-start; position: relative; padding: 7px 8px; border-radius: 11px; background: rgba(0, 0, 0, .2); border: 1px solid var(--line); }
.ppv-it.bought { border-color: rgba(52, 211, 153, .35); } .ppv-it.sent { border-color: rgba(251, 191, 36, .25); }
.ppv-dot { position: absolute; left: -14px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 0 3px var(--panel-solid); }
.ppv-it.bought .ppv-dot { background: #34d399; }
.ppv-thumbs { display: flex; gap: 3px; flex: none; } .ppv-thumbs span { width: 32px; height: 32px; border-radius: 7px; background: #111 center/cover; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
/* ---------- Horaires de shift */
.defs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.def { border: 1px solid var(--line2); border-left: 4px solid var(--c); background: rgba(0, 0, 0, .2); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.def.add { border: 1.5px dashed rgba(167, 139, 250, .45); background: rgba(139, 92, 246, .05); color: var(--accent2); font-weight: 650; align-items: center; justify-content: center; cursor: pointer; min-height: 130px; font-size: 14px; }
.def.add span { font-size: 24px; } .def.add:hover { background: rgba(139, 92, 246, .12); }
.def-time { font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.day-pill { width: 26px; height: 22px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; background: var(--panel2); color: var(--dim); text-transform: capitalize; }
.day-pill.on { background: color-mix(in srgb, var(--c) 30%, transparent); color: #fff; }
.mem { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 2px 8px 2px 2px; border-radius: 999px; background: var(--panel3); }
.mem .av, .av-xs { width: 20px; height: 20px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 9.5px; font-weight: 750; display: inline-flex; align-items: center; justify-content: center; }
.chip .av-xs { margin-left: -4px; }
.slot span { display: block; }
/* ---------- Plateforme */
.plat { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; padding: 2px 8px; border-radius: 6px; vertical-align: 2px; }
.plat.mym { background: #1d4ed8; color: #fff; } .plat.onlyfans { background: #00aff0; color: #fff; }
.plat.xs { font-size: 9px; padding: 1px 5px; margin-left: 2px; }
.plat-pick { display: flex; gap: 8px; } .plat-opt { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 11px; border: 1px solid var(--line2); font-size: 12.5px; }
.plat-opt.on { border-color: rgba(167, 139, 250, .55); background: var(--grad-soft); } .plat-opt.off { opacity: .45; }
/* ---------- Groupe ouvert */
.grp-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 12px; border-radius: 13px; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 9%, transparent); }
.ag-list { max-height: 420px; overflow: auto; margin-top: 10px; }
.ag-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
/* ---------- Vocaux */
.md-grid.audio-list { grid-template-columns: 1fr; gap: 8px; }
.aud { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 13px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); }
.aud-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--grad-soft); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.aud audio { height: 32px; max-width: 260px; }

/* ---------- Onglets du panneau fan + timeline PPV (refonte) */
.side-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 13px; margin: 4px 0 14px; }
.side-tabs button { border: 0; background: transparent; color: var(--muted); font-weight: 650; font-size: 13px; padding: 8px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: .18s; }
.side-tabs button.on { background: rgba(255, 255, 255, .09); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 4px 12px rgba(0, 0, 0, .35); }
.st-count:empty { display: none; } .st-count { font-size: 10.5px; padding: 1px 7px; border-radius: 999px; background: var(--grad); color: #fff; }
.ppv-hero { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(52, 211, 153, .12), rgba(139, 92, 246, .1)); border: 1px solid rgba(52, 211, 153, .25); margin-bottom: 14px; }
.ppv-ring { --p: 0; width: 78px; height: 78px; border-radius: 50%; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative;
  background: conic-gradient(#34d399 calc(var(--p) * 1%), rgba(251, 191, 36, .35) 0); }
.ppv-ring::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--panel-solid); }
.ppv-ring b, .ppv-ring span { position: relative; } .ppv-ring b { font-size: 18px; letter-spacing: -.02em; } .ppv-ring span { font-size: 9.5px; color: var(--muted); }
.ppv-stats { display: flex; flex-direction: column; gap: 8px; } .ppv-stats b { display: block; font-size: 17px; letter-spacing: -.02em; } .ppv-stats span { font-size: 10.5px; color: var(--muted); }
.amber { color: #fbbf24; }
.ppv-month { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--dim); font-weight: 650; margin: 14px 2px 8px; }
.ppv-card { display: flex; gap: 10px; padding: 9px; border-radius: 15px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); margin-bottom: 8px; position: relative; overflow: hidden; transition: .2s; }
.ppv-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.ppv-card.bought::before { background: #34d399; } .ppv-card.sent::before { background: #fbbf24; }
.ppv-card:hover { border-color: var(--line2); transform: translateX(2px); }
.ppv-media { display: grid; grid-template-columns: repeat(2, 30px); grid-auto-rows: 30px; gap: 3px; flex: none; position: relative; }
.ppv-media span { border-radius: 8px; background: #111 center/cover; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.ppv-media span:only-child { grid-column: span 2; grid-row: span 2; width: 63px; height: 63px; }
.ppv-card.sent .ppv-media span { filter: saturate(.6) brightness(.8); }
.ppv-media i { font-style: normal; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--panel3); }
.ppv-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ppv-price { font-size: 16px; letter-spacing: -.02em; }
.ppv-status { font-size: 10.5px; font-weight: 750; padding: 2px 8px; border-radius: 999px; }
.ppv-card.bought .ppv-status { background: rgba(52, 211, 153, .18); color: #34d399; } .ppv-card.sent .ppv-status { background: rgba(251, 191, 36, .16); color: #fcd34d; }
.ppv-text { font-size: 11.5px; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ppv-empty { text-align: center; padding: 30px 10px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; }
.ppv-empty .big { font-size: 26px; width: 56px; height: 56px; border-radius: 18px; background: var(--grad-soft); display: flex; align-items: center; justify-content: center; } .ppv-empty b { color: var(--text); }

/* ---------- Lecteur de vocaux */
.aplayer { display: flex; align-items: center; gap: 10px; width: 300px; max-width: 45%; padding: 5px 12px 5px 5px; border-radius: 999px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); flex: none; }
.ap-btn { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; cursor: pointer; font-size: 12px; flex: none; box-shadow: 0 6px 16px -6px rgba(217, 70, 239, .7); }
.ap-bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); cursor: pointer; overflow: hidden; }
.ap-bar div { height: 100%; width: 0; background: var(--grad); border-radius: 6px; transition: width .2s linear; }
.ap-time { white-space: nowrap; min-width: 36px; text-align: right; }
.aplayer.playing { border-color: rgba(167, 139, 250, .55); }

/* ======================================================= Avenor CRM — logo, compte, paramètres, ajout de modèle */
.logo i.logo-img { background: none; box-shadow: 0 10px 26px -8px rgba(192, 38, 211, .65); padding: 0; overflow: hidden; }
.logo i.logo-img img { width: 100%; height: 100%; display: block; }
.logo em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth .logo i.logo-img { width: 44px; height: 44px; border-radius: 13px; }
.twofa-ic { width: 60px; height: 60px; border-radius: 18px; background: var(--grad-soft); border: 1px solid rgba(167, 139, 250, .35); display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 6px; }
.code-in { font-size: 24px !important; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; padding: 14px !important; margin-bottom: 6px; }
/* Pages réglages */
.set-wrap { max-width: 1100px; }
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 16px; }
@media (max-width: 980px) { .set-grid { grid-template-columns: 1fr; } }
.set-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.set-card.wide { grid-column: 1 / -1; }
.set-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.set-head b { display: block; font-size: 15px; } .set-head small { color: var(--muted); font-size: 12px; }
.set-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--grad-soft); border: 1px solid rgba(167, 139, 250, .25); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); }
.set-row b { display: block; font-size: 13.5px; } .set-row small { color: var(--muted); font-size: 11.5px; }
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line2); }
.stepper button { width: 30px; height: 30px; border-radius: 9px; border: 0; background: var(--panel3); color: var(--text); cursor: pointer; font-size: 16px; }
.stepper input { width: 48px; text-align: center; background: transparent; border: 0; color: var(--text); font-weight: 700; font-size: 15px; outline: none; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper span { font-size: 11px; color: var(--muted); padding-right: 6px; }
.about { display: flex; align-items: center; gap: 12px; } .about img { width: 46px; height: 46px; border-radius: 13px; }
/* Mon compte */
.acc-hero { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: 22px; margin-bottom: 18px; background: radial-gradient(500px 200px at 0% 0%, rgba(139, 92, 246, .25), transparent 70%), var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); flex-wrap: wrap; }
.acc-hero h1 { margin: 0; font-size: 24px; }
.acc-av { width: 72px; height: 72px; border-radius: 22px; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; color: #fff; box-shadow: 0 14px 34px -10px rgba(217, 70, 239, .7); flex: none; }
.sec-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(251, 191, 36, .14); color: #fcd34d; }
.sec-pill.on { background: rgba(52, 211, 153, .15); color: var(--green); }
.tfa-setup { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.qr { width: 190px; height: 190px; padding: 10px; border-radius: 18px; background: #fff; flex: none; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .8); }
.qr svg { width: 100%; height: 100%; display: block; }
.steps-ol { margin: 0 0 12px; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.secret { margin-top: 6px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; padding: 8px 12px; border-radius: 10px; background: rgba(0, 0, 0, .35); border: 1px dashed var(--line2); user-select: all; word-break: break-all; }
.recov { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } @media (max-width: 700px) { .recov { grid-template-columns: repeat(2, 1fr); } }
.recov code { text-align: center; padding: 10px; font-size: 13px; letter-spacing: .06em; background: rgba(0, 0, 0, .35); border: 1px solid var(--line2); border-radius: 10px; }
/* Ajout de modèle */
.wiz-step { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; font-size: 14px; }
.wiz-n { width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.plat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.plat-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: 16px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); text-align: left; cursor: pointer; transition: .18s; }
.plat-card small { color: var(--muted); font-size: 11.5px; }
.plat-card.on { border-color: rgba(167, 139, 250, .6); background: var(--grad-soft); box-shadow: 0 0 0 3px rgba(139, 92, 246, .12); }
.plat-card.soon { opacity: .45; cursor: not-allowed; }
.pc-check { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.plat.big { font-size: 13px; padding: 4px 10px; border-radius: 8px; }
.model-id { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 16px; }
.mid-av { width: 56px; height: 56px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: #fff; flex: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .15); transition: background .2s; }
.adv { border: 1px solid var(--line); border-radius: 13px; padding: 10px 14px; margin-bottom: 8px; } .adv summary { cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 600; }
/* Connexion MYM */
.login-steps { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.ls { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 650; color: var(--dim); }
.ls i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line2); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.ls.on { color: var(--text); } .ls.on i { border-color: var(--accent); color: var(--accent2); }
.ls.done i { background: var(--green); border-color: var(--green); color: #05301f; } .ls.done i::before { content: '✓'; } .ls.done i { font-size: 0; } .ls.done i::before { font-size: 12px; }
.ls-line { flex: 1; height: 2px; background: var(--line2); border-radius: 2px; max-width: 120px; }
.browser { border-radius: 16px; overflow: hidden; border: 1px solid var(--line2); background: #0a0a10; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9); }
.br-bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: rgba(255, 255, 255, .03); border-bottom: 1px solid var(--line); }
.br-dots { display: inline-flex; gap: 6px; margin-right: 4px; } .br-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .br-dots i:nth-child(2) { background: #febc2e; } .br-dots i:nth-child(3) { background: #28c840; }
.br-btn { width: 28px; height: 28px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; } .br-btn:hover { background: var(--panel3); color: var(--text); }
.browser .screen-wrap { border: 0; border-radius: 0; }

/* Sons & notifications */
.snd-panel { display: flex; flex-direction: column; gap: 12px; }
.snd-panel.muted-all .snd-list, .snd-panel.muted-all .snd-vol { opacity: .45; }
.snd-vol { display: flex; align-items: center; gap: 10px; padding: 4px 2px; }
.snd-vol input[type=range] { flex: 1; accent-color: #c026d3; }
.snd-vn { min-width: 46px; text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }
.snd-list { display: grid; grid-template-columns: 1fr; gap: 8px; }
.snd-row { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .025); }
.snd-row b { display: block; font-size: 13.5px; }
.snd-row small { display: block; color: var(--dim); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snd-ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; font-size: 18px; background: rgba(52, 211, 153, .14); }
.snd-row.k-tip .snd-ic { background: rgba(244, 114, 182, .16); }
.snd-row.k-sub .snd-ic { background: rgba(167, 139, 250, .18); }
.snd-row.k-unpaid .snd-ic { background: rgba(251, 191, 36, .15); }
.snd-row select.snd-sel { width: 190px; flex: none; padding: 7px 9px; font-size: 12.5px; }
.snd-row .btn.sm { flex: none; }
.snd-all { align-self: flex-start; }
.ntf.n-tip { border-color: rgba(244, 114, 182, .45); background: linear-gradient(135deg, rgba(244, 114, 182, .16), rgba(20, 20, 30, .97) 55%); color: #f472b6; }
.ntf.n-sub { border-color: rgba(167, 139, 250, .5); background: linear-gradient(135deg, rgba(167, 139, 250, .18), rgba(20, 20, 30, .97) 55%); color: #a78bfa; }
.ntf.n-ppv { border-color: rgba(52, 211, 153, .45); background: linear-gradient(135deg, rgba(52, 211, 153, .16), rgba(20, 20, 30, .97) 55%); color: var(--green); }

/* Scripts : par étapes / banque de messages */
.kind-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.kind-card { text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .02); color: var(--text); cursor: pointer; transition: .15s; position: relative; }
.kind-card:hover { border-color: rgba(167, 139, 250, .45); }
.kind-card.on { border-color: rgba(192, 38, 211, .7); background: linear-gradient(135deg, rgba(139, 92, 246, .2), rgba(236, 72, 153, .08)); box-shadow: 0 0 0 3px rgba(192, 38, 211, .14); }
.kind-card.on::after { content: '✓'; position: absolute; top: 10px; right: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.kind-card .kc-ic { font-size: 20px; }
.kind-card b { font-size: 14px; }
.kind-card span:last-child { color: var(--muted); font-size: 12px; line-height: 1.4; }
.ed-steps.bank .ed-rail .tl-dot { font-size: 12px; background: rgba(167, 139, 250, .18); }
.step-head .bk-title { flex: 1; max-width: 420px; font-weight: 600; }
.sc-ic.bank { background: linear-gradient(135deg, rgba(56, 189, 248, .25), rgba(167, 139, 250, .25)); }
.sc-card.bank::before { background: linear-gradient(90deg, #38bdf8, #a78bfa) !important; }
.pill.bank { background: rgba(56, 189, 248, .14); color: #7dd3fc; border-color: rgba(56, 189, 248, .3); }
.pill.stp { background: rgba(192, 38, 211, .14); color: #f0abfc; border-color: rgba(192, 38, 211, .3); }
.seg .cnt { opacity: .55; font-size: 11px; margin-left: 3px; }
.bk-groups { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0 10px; }
.bk-g { font-size: 11px; padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); color: var(--muted); }
.bk-g.more { color: var(--dim); }
.bk-list { display: flex; flex-direction: column; gap: 7px; }
.bk-msg { padding: 9px 12px; border-radius: 13px 13px 13px 4px; background: rgba(56, 189, 248, .06); border: 1px solid rgba(56, 189, 248, .16); }
.bk-t { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: #7dd3fc; margin-bottom: 3px; font-weight: 650; }
/* Panneau « banque » au-dessus du message */
.script-bar.bank { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px; background: linear-gradient(135deg, rgba(56, 189, 248, .1), rgba(139, 92, 246, .1)); border-color: rgba(56, 189, 248, .35); }
.bk-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bk-tabs { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.bk-tabs button { flex: none; font-size: 12px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .2); color: var(--muted); cursor: pointer; }
.bk-tabs button.on { background: var(--grad); color: #fff; border-color: transparent; }
.bk-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; max-height: 168px; overflow-y: auto; padding-right: 2px; }
.bk-chip { text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 11px; border: 1px solid var(--line2); background: rgba(10, 10, 18, .55); color: var(--text); font-size: 12.5px; line-height: 1.35; cursor: pointer; transition: .12s; }
.bk-chip:hover { border-color: rgba(56, 189, 248, .55); background: rgba(56, 189, 248, .08); }
.bk-chip.on { border-color: rgba(192, 38, 211, .8); box-shadow: 0 0 0 2px rgba(192, 38, 211, .2); }
.bk-chip .hist { align-self: flex-start; }
.bk-m { font-size: 11px; color: #fcd34d; }

/* ===== Éditeur de script v4 ===== */
.modal.sed-modal { width: min(1440px, 96vw); height: min(900px, 94vh); max-height: 94vh; padding: 0; overflow: hidden; display: flex; background: linear-gradient(180deg, rgba(24, 22, 36, .98), rgba(14, 14, 22, .98)); }
.sed { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.sed-top { display: flex; align-items: center; gap: 16px; padding: 20px 24px 14px; border-bottom: 1px solid var(--line); background: radial-gradient(600px 160px at 0% 0%, rgba(139, 92, 246, .18), transparent 70%); }
.sed-top .x { position: static; }
.sed-ic { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: var(--grad); box-shadow: 0 12px 30px -10px rgba(217, 70, 239, .7); }
.sed-ic.bank { background: linear-gradient(135deg, #38bdf8, #8b5cf6); box-shadow: 0 12px 30px -10px rgba(56, 189, 248, .6); }
.sed-name { width: 100%; background: transparent; border: 0; outline: none; font-size: 24px; font-weight: 750; letter-spacing: -.025em; padding: 2px 0; color: var(--text); border-bottom: 1px dashed transparent; }
.sed-name:hover { border-bottom-color: var(--line2); } .sed-name:focus { border-bottom-color: rgba(192, 38, 211, .6); }
.sed-name::placeholder { color: var(--dim); }
.sed-meta { display: flex; align-items: center; gap: 10px; margin-top: 3px; }
.sed-slug { font-family: var(--mono); font-size: 12px; color: var(--accent2); background: var(--accent-bg); padding: 2px 8px; border-radius: 7px; }
.dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--dim); }
.sed-pill-sel { background: transparent; border: 1px solid var(--line2); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; color: var(--muted); cursor: pointer; outline: none; }
.sed-pill-sel option { background: #15141f; }
.sed-kind { display: flex; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); flex: none; }
.sed-kind button { border: 0; background: transparent; color: var(--muted); padding: 8px 14px; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600; transition: .15s; }
.sed-kind button.on { background: var(--grad); color: #fff; box-shadow: 0 6px 18px -8px rgba(217, 70, 239, .8); }
.sed-kind button[data-kind=bank].on { background: linear-gradient(135deg, #38bdf8, #8b5cf6); }
.sed-stats { display: flex; gap: 8px; padding: 12px 24px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.sed-stats .ss { display: flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 11px; background: var(--panel2); border: 1px solid var(--line); white-space: nowrap; }
.sed-stats .ss span { font-size: 13px; } .sed-stats .ss b { font-size: 15px; font-variant-numeric: tabular-nums; } .sed-stats .ss small { color: var(--muted); font-size: 11.5px; }
.sed-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 290px minmax(0, 1fr) 340px; }
.sed-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: rgba(0, 0, 0, .18); }
.sed-list-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.sed-list-h b { font-weight: 700; }
.sed-items { flex: 1; overflow-y: auto; padding: 2px 10px 10px; display: flex; flex-direction: column; gap: 3px; }
.sed-g { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: #7dd3fc; padding: 10px 8px 3px; font-weight: 700; }
.sed-item { position: relative; display: flex; align-items: center; gap: 10px; text-align: left; padding: 9px 10px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--text); cursor: pointer; transition: .12s; }
.sed-item:hover { background: var(--panel2); }
.sed-item.on { background: linear-gradient(135deg, rgba(139, 92, 246, .2), rgba(236, 72, 153, .1)); border-color: rgba(192, 38, 211, .45); }
.sed-item.bank.on { background: linear-gradient(135deg, rgba(56, 189, 248, .16), rgba(139, 92, 246, .12)); border-color: rgba(56, 189, 248, .45); }
.sed-items:not(.x) .sed-item:not(.bank) + .sed-item:not(.bank)::before { content: ''; position: absolute; left: 23px; top: -5px; height: 8px; width: 2px; background: var(--line2); }
.sed-num { width: 28px; height: 28px; flex: none; border-radius: 9px; display: grid; place-items: center; font-size: 12px; font-weight: 750; background: var(--panel3); color: var(--muted); }
.sed-item.on .sed-num { background: var(--grad); color: #fff; }
.sed-item.bank .sed-num { font-size: 13px; background: rgba(56, 189, 248, .12); }
.sed-it { display: block; font-size: 13px; font-weight: 550; }
.sed-badges { display: flex; gap: 4px; margin-top: 3px; flex-wrap: wrap; }
.sed-badges i { font-style: normal; font-size: 10.5px; padding: 1px 6px; border-radius: 6px; background: var(--panel3); color: var(--muted); }
.sed-badges i.p { background: rgba(251, 191, 36, .14); color: #fcd34d; } .sed-badges i.f { background: rgba(96, 165, 250, .14); color: #93c5fd; } .sed-badges i.w { background: rgba(248, 113, 113, .12); color: #fca5a5; }
.sed-add { margin: 8px 12px 14px; padding: 11px; border-radius: 12px; border: 1px dashed rgba(167, 139, 250, .4); background: rgba(139, 92, 246, .06); color: var(--accent2); font-weight: 600; cursor: pointer; transition: .15s; }
.sed-add:hover { background: rgba(139, 92, 246, .14); border-style: solid; }
.sed-main { overflow-y: auto; padding: 22px 26px 30px; }
.sed-card { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; }
.sed-card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sed-step-badge { font-size: 20px; font-weight: 750; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sed-step-badge small { font-size: 14px; color: var(--dim); -webkit-text-fill-color: var(--dim); margin-left: 2px; }
.sed-step-badge.bank { background: linear-gradient(135deg, #7dd3fc, #c4b5fd); -webkit-background-clip: text; background-clip: text; }
.sed-tools { display: flex; gap: 5px; }
.sed-lbl { font-size: 12px; font-weight: 650; color: var(--muted); margin: 16px 0 7px; text-transform: uppercase; letter-spacing: .05em; }
.sed-lbl .dim { text-transform: none; letter-spacing: 0; font-weight: 400; }
.sed-title { font-size: 14px; }
.sed-msg { border-radius: 16px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .3); overflow: hidden; transition: .15s; }
.sed-msg:focus-within { border-color: rgba(192, 38, 211, .55); box-shadow: 0 0 0 4px rgba(192, 38, 211, .12); }
.sed-ta { display: block; width: 100%; min-height: 130px; resize: vertical; border: 0; outline: none; background: transparent; padding: 14px 16px; font-size: 15px; line-height: 1.55; color: var(--text); }
.sed-msg-bar { display: flex; align-items: center; gap: 4px; padding: 7px 10px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .02); flex-wrap: wrap; }
.sed-msg-bar .emo { border: 0; background: transparent; font-size: 16px; padding: 2px 5px; border-radius: 7px; cursor: pointer; }
.sed-msg-bar .emo:hover { background: var(--panel3); }
.chip.sm { padding: 4px 10px; font-size: 12px; }
.sed-media { display: flex; flex-wrap: wrap; gap: 10px; }
.sed-th { position: relative; width: 96px; height: 120px; border-radius: 14px; background: #15141f center/cover no-repeat; border: 1px solid var(--line2); display: grid; place-items: center; font-size: 26px; overflow: hidden; }
.sed-th button { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; opacity: 0; transition: .15s; }
.sed-th:hover button { opacity: 1; }
.sed-th em { position: absolute; left: 6px; bottom: 6px; font-style: normal; font-size: 10px; background: rgba(0, 0, 0, .6); padding: 1px 6px; border-radius: 6px; }
.sed-th.add { cursor: pointer; border: 1px dashed rgba(167, 139, 250, .45); background: rgba(139, 92, 246, .06); color: var(--accent2); display: flex; flex-direction: column; gap: 4px; justify-content: center; align-items: center; }
.sed-th.add span { font-size: 26px; line-height: 1; } .sed-th.add small { font-size: 11px; font-weight: 600; }
.sed-th.add:hover { background: rgba(139, 92, 246, .14); }
.sed-price, .sed-fu { margin-top: 18px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel2); }
.sed-price { border-color: rgba(251, 191, 36, .25); background: linear-gradient(135deg, rgba(251, 191, 36, .07), transparent 60%); }
.sp-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sp-h b { font-size: 13.5px; }
.sp-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sp-in { display: flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(251, 191, 36, .35); }
.sp-in input { width: 70px; border: 0; outline: none; background: transparent; font-size: 22px; font-weight: 750; color: #fcd34d; text-align: right; font-variant-numeric: tabular-nums; }
.sp-in span { font-size: 18px; color: #fcd34d; font-weight: 700; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.sp-chips button { border: 1px solid var(--line2); background: rgba(0, 0, 0, .2); color: var(--muted); border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; font-variant-numeric: tabular-nums; }
.sp-chips button:hover { color: var(--text); }
.sp-chips button.on { background: rgba(251, 191, 36, .18); border-color: rgba(251, 191, 36, .6); color: #fde68a; }
.fu-card { padding: 10px 12px; border-radius: 13px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(96, 165, 250, .2); margin-bottom: 8px; }
.fu-line { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 7px; }
.fu-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(96, 165, 250, .16); color: #93c5fd; font-weight: 700; }
.sed-add-fu { width: 100%; padding: 9px; border-radius: 11px; border: 1px dashed rgba(96, 165, 250, .35); background: transparent; color: #93c5fd; cursor: pointer; font-weight: 600; font-size: 13px; }
.sed-add-fu:hover { background: rgba(96, 165, 250, .08); }
.sed-prev { border-left: 1px solid var(--line); padding: 18px; overflow: hidden; display: flex; flex-direction: column; background: rgba(0, 0, 0, .15); }
.sed-prev .phone { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.sed-prev .phone-body { max-height: none; flex: 1; }
.sed-foot { display: flex; align-items: center; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
@media (max-width: 1150px) { .sed-body { grid-template-columns: 240px minmax(0, 1fr); } .sed-prev { display: none; } }

/* ===== Statistiques : onglets, abonnés & liens, scripts ===== */
.stabs { display: flex; gap: 6px; margin: 0 0 18px; padding: 5px; border-radius: 16px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); width: fit-content; }
.stabs button { display: flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--muted); padding: 9px 16px; border-radius: 12px; cursor: pointer; font-weight: 650; font-size: 13.5px; transition: .15s; }
.stabs button:hover { color: var(--text); }
.stabs button.on { background: var(--grad); color: #fff; box-shadow: 0 8px 22px -10px rgba(217, 70, 239, .8); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { padding: 16px 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.kpi.hl { background: linear-gradient(135deg, rgba(139, 92, 246, .22), rgba(236, 72, 153, .1)); border-color: rgba(192, 38, 211, .35); }
.kpi-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--panel3); font-size: 14px; }
.kpi-v { font-size: 28px; font-weight: 780; letter-spacing: -.03em; margin-top: 8px; display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.kpi-v .delta { font-size: 11.5px; letter-spacing: 0; }
.kpi-s { font-size: 12px; color: var(--muted); margin-top: 2px; }
#sb > .card { margin-top: 16px; }
.card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-h b { font-size: 15px; }
.lg { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin: 0 3px 0 8px; vertical-align: -1px; }
.lg.n { background: linear-gradient(180deg, #d946ef, #8b5cf6); } .lg.r { background: rgba(96, 165, 250, .55); }
.sbars { display: flex; align-items: stretch; gap: 3px; height: 210px; padding-top: 14px; }
.sbar { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.sbar-col { flex: 1; display: flex; flex-direction: column-reverse; border-radius: 6px 6px 2px 2px; overflow: hidden; background: rgba(255, 255, 255, .025); }
.sbar-col i { display: block; width: 100%; transition: height .4s; }
.sbar-col i.n { background: linear-gradient(180deg, #d946ef, #8b5cf6); }
.sbar-col i.r { background: rgba(96, 165, 250, .55); }
.sbar:hover .sbar-col { background: rgba(255, 255, 255, .06); }
.sbar-l { font-size: 10px; color: var(--dim); text-align: center; height: 16px; margin-top: 4px; white-space: nowrap; overflow: visible; }
.sbar-v { position: absolute; top: -2px; left: 50%; transform: translateX(-50%); font-size: 9.5px; color: var(--muted); opacity: 0; }
.sbar:hover .sbar-v { opacity: 1; }
.empty-mini { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; padding: 26px 12px; color: var(--muted); font-size: 13px; }
.empty-mini .big { font-size: 30px; } .empty-mini b { color: var(--text); font-size: 14.5px; } .empty-mini span { max-width: 520px; }
.tl-table { display: flex; flex-direction: column; overflow-x: auto; }
.tl-row { display: grid; grid-template-columns: minmax(190px, 1.6fr) minmax(150px, 1.2fr) 90px 150px 70px 130px 90px 100px 40px; gap: 12px; align-items: center; padding: 12px 10px; border-bottom: 1px solid var(--line); min-width: 1080px; }
.tl-row:hover:not(.th) { background: rgba(255, 255, 255, .02); }
.tl-row.th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); font-weight: 700; padding-top: 0; }
.tl-row .r { text-align: right; justify-self: end; } .tl-row small { display: block; font-size: 11px; color: var(--muted); } .tl-row small.up { color: var(--green); }
.tl-name { display: flex; flex-direction: column; min-width: 0; }
.tl-copy { border: 0; background: transparent; padding: 0; text-align: left; color: var(--accent2); font-family: var(--mono); font-size: 11px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-copy:hover { color: #fff; }
.tl-subs { display: block; width: 100%; height: 4px; border-radius: 3px; background: var(--panel3); margin-bottom: 4px; overflow: hidden; }
.tl-subs i { display: block; height: 100%; background: var(--grad); border-radius: 3px; }
.lk-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 9px 3px 3px; border-radius: 999px; background: rgba(56, 189, 248, .1); border: 1px solid rgba(56, 189, 248, .25); color: #bae6fd; margin: 2px 4px 2px 0; white-space: nowrap; }
.lk-chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.lk-chip.mym { padding: 3px 9px; background: rgba(192, 38, 211, .1); border-color: rgba(192, 38, 211, .3); color: #f5d0fe; }
.spark { display: block; }
.lk-connect { display: flex; gap: 16px; align-items: flex-start; padding: 6px 4px; }
.lk-logo { width: 54px; height: 54px; flex: none; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: linear-gradient(135deg, rgba(56, 189, 248, .25), rgba(139, 92, 246, .25)); }
.lk-connect ol { margin: 8px 0 0; padding-left: 18px; }
.lk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.lk-page { padding: 14px; border-radius: 16px; background: var(--panel2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.lk-page.off { opacity: .55; }
.lk-top { display: flex; align-items: center; gap: 10px; }
.lk-av { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; display: grid; place-items: center; background: var(--panel3); flex: none; }
.lk-funnel { display: flex; align-items: center; gap: 6px; padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.lk-funnel > div { flex: 1; text-align: center; } .lk-funnel b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; } .lk-funnel small { font-size: 10.5px; color: var(--muted); }
.lk-funnel > div.ok b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lk-funnel i { font-style: normal; color: var(--dim); }
.ss-list { display: flex; flex-direction: column; gap: 8px; }
.ss-item { border-radius: 16px; border: 1px solid var(--line); background: var(--panel2); overflow: hidden; transition: .15s; }
.ss-item.open { border-color: rgba(192, 38, 211, .4); background: linear-gradient(180deg, rgba(139, 92, 246, .08), rgba(255, 255, 255, .02)); }
.ss-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; cursor: pointer; }
.ss-row:hover { background: rgba(255, 255, 255, .02); }
.ss-rank { width: 28px; text-align: center; font-size: 17px; font-weight: 750; color: var(--muted); flex: none; }
.ss-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); flex: none; }
.ss-ic.bank { background: linear-gradient(135deg, rgba(56, 189, 248, .25), rgba(139, 92, 246, .25)); }
.ss-t { flex: 1; min-width: 160px; }
.ss-t b { display: block; font-size: 14px; }
.ss-bar { height: 5px; border-radius: 4px; background: var(--panel3); margin-top: 6px; overflow: hidden; } .ss-bar i { display: block; height: 100%; background: var(--grad); border-radius: 4px; }
.ss-m { width: 86px; text-align: right; flex: none; } .ss-m b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; } .ss-m b.up { color: var(--green); } .ss-m small { font-size: 10.5px; color: var(--muted); }
.ss-m.big { width: 110px; } .ss-m.big b { font-size: 18px; }
.ss-chev { color: var(--dim); font-size: 20px; transition: .2s; } .ss-item.open .ss-chev { transform: rotate(90deg); color: var(--accent2); }
.ss-detail:empty { display: none; }
.sd { padding: 4px 16px 16px; }
.sd-h, .sd-r { display: grid; grid-template-columns: minmax(220px, 2.2fr) 80px 80px minmax(140px, 1.2fr) 80px 80px 150px; gap: 12px; align-items: center; }
.sd-h { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); font-weight: 700; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sd-r { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.sd-r.none { opacity: .45; }
.sd-h .r, .sd-r .r { text-align: right; justify-self: end; }
.sd-n { display: flex; align-items: center; gap: 9px; min-width: 0; }
.sd-n i { font-style: normal; width: 24px; height: 24px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--panel3); font-size: 11px; font-weight: 750; color: var(--muted); }
.sd-n em { font-style: normal; font-size: 11px; color: var(--muted); }
.sd-funnel { display: block; height: 6px; border-radius: 4px; background: var(--panel3); overflow: hidden; margin-bottom: 3px; } .sd-funnel i { display: block; height: 100%; background: linear-gradient(90deg, #8b5cf6, #38bdf8); border-radius: 4px; }
.sd-r small { font-size: 11px; color: var(--muted); }
.sd-r .pp { color: #fcd34d; } .sd-r b.up { color: var(--green); }
.sd-rev { position: relative; display: inline-flex; align-items: center; justify-content: flex-end; min-width: 130px; height: 24px; border-radius: 7px; overflow: hidden; background: rgba(255, 255, 255, .03); }
.sd-rev i { position: absolute; right: 0; top: 0; bottom: 0; background: rgba(52, 211, 153, .18); }
.sd-rev b { position: relative; padding: 0 8px; color: var(--green); }
.sd-ch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
@media (max-width: 1200px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ss-m:not(.big) { display: none; } }

.plat-card:not(.on) .pc-check { display: none; }
