/* HUSHTOON v2 — langues, compte, pièces, VIP, lecteur */
.page-sub { color: var(--muted); margin-top: 6px; }
.btn.wide { width: 100%; justify-content: center; }
.btn.sm { padding: 7px 14px; font-size: 13px; }
.btn.big { padding: 15px 26px; font-size: 16px; }
.btn small { font-weight: 500; opacity: .7; }
.btn-outline { border: 1.5px solid var(--accent); color: #ff8cc0; }
.btn-outline:hover { background: var(--accent-soft); }
.btn-outline svg, .series-cta .btn svg { width: 16px; height: 16px; }
.btn-ghost.on { color: #ff8cc0; }
.btn-ghost.danger { color: #ff7a8a; margin-top: 8px; }
.link { color: var(--muted); font-size: 12.5px; text-decoration: underline; margin: 10px auto 0; display: block; }

/* header */
.lang-mini { position: relative; display: flex; align-items: center; gap: 4px; height: 34px; padding: 0 9px; border-radius: 17px; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.lang-mini:hover { background: var(--bg-3); color: var(--text); }
.lang-mini svg { width: 16px; height: 16px; }
.lang-mini select { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.coin-chip { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 17px; background: rgba(240,180,92,.12); color: var(--accent-2); font-weight: 700; }
.coin-chip:hover { background: rgba(240,180,92,.2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #6b2bd1); color: #fff; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.avatar.vip { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-2); }
.avatar.big { width: 46px; height: 46px; font-size: 18px; }

/* tiroir */
.drawer-x { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.drawer-x:hover { background: var(--bg-3); color: var(--text); }
.me { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding-right: 30px; }
.me b { display: block; word-break: break-all; font-size: 14px; }
.vip-line { color: var(--accent-2); font-size: 12px; font-weight: 600; }
.drawer a.drawer-cta { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 16px; border-radius: 30px; background: linear-gradient(100deg, var(--accent), #e0558f); color: #fff; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; justify-content: center; }
.drawer a.drawer-cta:hover { color: #fff; filter: brightness(1.08); }
.drawer-cta .pct { background: var(--accent-2); color: #1a1205; border-radius: 20px; padding: 2px 8px; font-size: 13px; }
.coins-box { gap: 10px; }
.coins-box span { display: flex; align-items: center; gap: 6px; }
.coins-box b { margin-left: 4px; }
.drawer-menu { margin-top: 16px; border-top: 1px solid var(--line); }
.drawer .drawer-menu a { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.lang-list { display: flex; flex-wrap: wrap; gap: 6px; }
.lang-list button { padding: 6px 11px; border-radius: 16px; background: var(--bg-3); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.lang-list button.on { background: var(--accent); color: #fff; }
.logout { margin-top: 24px; color: var(--muted); font-weight: 600; }
.logout:hover { color: var(--text); }

/* cartes */
.badge-coin { position: absolute; top: 8px; right: 8px; z-index: 2; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-2); color: #1a1205; display: grid; place-items: center; }
.badge-coin svg { width: 14px; height: 14px; }
.coin-tag { background: rgba(240,180,92,.18); color: var(--accent-2); display: inline-flex; align-items: center; gap: 4px; }
.coin-tag svg { width: 12px; height: 12px; }

/* épisodes */
.ep.is-locked h5 { color: #cfc8da; }
.thumb-lock { position: absolute; top: 5px; left: 5px; width: 20px; height: 20px; border-radius: 5px; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 1; }
.ep .state.open { background: rgba(80,200,140,.14); color: #6fdca5; }
.ep .state.vip { background: rgba(240,180,92,.14); color: var(--accent-2); }
.price-col { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; }
.price-col s { color: var(--muted); }
.price-col b { color: var(--accent-2); font-size: 13.5px; display: flex; align-items: center; gap: 4px; }
.price-col em { font-style: normal; font-size: 10.5px; font-weight: 700; background: var(--accent-2); color: #1a1205; padding: 1px 6px; border-radius: 4px; }

/* ---------- page VIP ---------- */
.vip { position: relative; overflow: hidden; padding: 56px 0 30px; }
.vip-bg { position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 0%, rgba(194,54,122,.45), transparent 70%), radial-gradient(40% 40% at 85% 60%, rgba(107,43,209,.18), transparent 70%); pointer-events: none; }
.vip-bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1.2px); background-size: 120px 90px; opacity: .25; -webkit-mask-image: linear-gradient(#000, transparent 70%); mask-image: linear-gradient(#000, transparent 70%); }
.vip .wrap { position: relative; }
.vip-head { text-align: center; }
.vip-head h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 6vw, 58px); letter-spacing: .01em; text-transform: uppercase; line-height: 1; text-shadow: 0 6px 40px rgba(194,54,122,.5); }
.vip-head p { margin-top: 12px; letter-spacing: .14em; text-transform: uppercase; color: #e5d9ee; font-size: 14px; }
.vip-head .vip-state { color: var(--accent-2); letter-spacing: 0; text-transform: none; font-weight: 600; }
.vip-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 44px auto 0; }
.vplan { background: rgba(20,15,28,.82); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px 26px; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s, transform .2s; backdrop-filter: blur(6px); }
.vplan:hover { transform: translateY(-3px); }
.vplan.best { border-color: rgba(194,54,122,.5); }
.vplan.selected { background: #0b0910; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 40px rgba(194,54,122,.35); transform: none; }
.save-pill { align-self: flex-start; background: var(--accent); color: #fff; font-weight: 800; font-size: 12.5px; padding: 4px 12px; border-radius: 20px; letter-spacing: .02em; }
.save-pill.ghost { background: none; }
.vplan h3 { font-family: var(--font-display); font-size: 30px; font-weight: 800; margin-top: 16px; line-height: 1; }
.vplan .bonus { font-weight: 800; color: var(--accent-2); text-transform: uppercase; font-size: 13.5px; margin-top: 6px; min-height: 18px; }
.vplan .old { margin-top: 22px; color: var(--muted); text-decoration: line-through; font-size: 14px; }
.vplan .price { font-family: var(--font-display); font-size: 46px; font-weight: 800; line-height: 1; }
.vplan .price small { font-family: var(--font); font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.vplan .billed { color: var(--muted); font-size: 12px; margin-top: 6px; }
.vplan ul { margin: 22px 0 24px; padding-left: 16px; display: grid; gap: 6px; flex: 1; color: #bdb4ca; font-size: 13px; }
.vplan li::marker { color: var(--accent); }
.sub-btn { width: 100%; justify-content: center; background: var(--accent); color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.sub-btn:hover { filter: brightness(1.1); }
.sub-btn.muted { background: #4a4357; }
.sub-btn[hidden] { display: none; }
.vplan-actions { min-height: 104px; display: flex; flex-direction: column; justify-content: flex-end; }
.pay-slots { display: grid; gap: 10px; transition: opacity .2s; }
.pay-slots[hidden], .pay-slots > [hidden] { display: none; }
.pay-slots.loading { opacity: .5; pointer-events: none; }
.pay-btn { width: 100%; height: 46px; border-radius: 23px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 15px; transition: filter .15s, transform .1s; }
.pay-btn:active { transform: scale(.98); }
.pay-card { background: #fff; color: #111; }
.pay-pp { background: #ffc439; color: #111; }
.pay-btn:hover { filter: brightness(.95); }
.pp-word { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 19px; color: #179bd7; letter-spacing: -.01em; }
.pp-word i { color: #253b80; }
.secure { display: flex; gap: 6px; align-items: flex-start; color: #7fd8a8; font-size: 12px; margin-top: 12px; line-height: 1.4; }
.secure svg { flex-shrink: 0; margin-top: 1px; }
.secure.center { justify-content: center; text-align: center; margin-top: 26px; }
.more-pay { display: block; margin: 18px auto 0; font-weight: 700; color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.more-options { padding-top: 20px; }

/* ---------- connexion ---------- */
.auth .modal { padding: 0; max-width: 420px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; }
.auth-tabs button { padding: 17px; font-weight: 700; font-size: 16px; background: var(--bg-3); color: var(--muted); }
.auth-tabs button.on { background: var(--bg-2); color: var(--text); }
.auth-body { padding: 24px 28px 26px; text-align: center; }
.auth-body h3 { font-size: 17px; margin-bottom: 18px; }
.social-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pv { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; transition: transform .15s, filter .15s; }
.pv:hover { transform: translateY(-2px); filter: brightness(1.08); }
.pv svg { width: 24px; height: 24px; }
.pv-google { background: #fff; } .pv-facebook { background: #1877f2; } .pv-x { background: #000; border: 1px solid #333; color: #fff; }
.pv-apple { background: #000; border: 1px solid #333; } .pv-yahoo { background: #6001d2; }
.pv-text { color: #fff; font-weight: 900; font-size: 20px; font-style: italic; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 20px 0; font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#authForm { text-align: left; }
#authForm[hidden], #emailToggle[hidden], #forgotBtn[hidden] { display: none; }
.auth-err { color: #ff7a8a; font-size: 13px; min-height: 18px; margin-bottom: 6px; }
.terms { color: var(--muted); font-size: 12px; margin-top: 16px; }
.demo-note { margin-top: 10px; font-size: 11.5px; color: var(--accent-2); background: rgba(240,180,92,.08); border-radius: 8px; padding: 7px 10px; }

/* ---------- « Únete » ---------- */
.join .modal { padding: 28px 24px 18px; text-align: center; max-width: 400px; }
.join h2 { font-family: var(--font-display); font-size: 24px; }
.join-sub { color: var(--accent-2); font-weight: 600; margin: 4px 0 18px; }
.join-covers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; text-align: left; }
.join-covers .cover { border-radius: 8px; }
.jc-title { display: block; font-size: 12px; font-weight: 600; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jc-free { display: block; font-size: 11.5px; color: #ff8cc0; font-weight: 700; }
.join .social-grid { margin-bottom: 16px; }
.join .later { display: block; margin: 12px auto 0; color: var(--muted); font-weight: 600; }

/* ---------- boutique ---------- */
.shop .modal { max-width: 400px; max-height: calc(100vh - 32px); overflow-y: auto; }
.shop-vip { display: block; text-align: center; padding: 18px 50px 16px; background: linear-gradient(110deg, #5a1238, var(--accent)); }
.shop-vip b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 800; text-transform: uppercase; color: #fff; line-height: 1; }
.shop-vip span { font-size: 12.5px; font-weight: 700; color: #ffe2b0; }
.shop-vip s { opacity: .75; }
.shop-body { padding: 16px; }
.shop-note { background: rgba(255,122,138,.1); color: #ff9aa6; border-radius: 10px; padding: 9px 12px; font-size: 13px; margin-bottom: 12px; }
.shop-note[hidden] { display: none; }
.shop-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; }
.cur-toggle { display: inline-flex; background: var(--bg-3); border-radius: 20px; padding: 3px; }
.cur-toggle button { padding: 6px 14px; border-radius: 17px; font-weight: 700; font-size: 13px; color: var(--muted); }
.cur-toggle button.on { background: var(--text); color: var(--bg); }
.shop-bal { display: flex; align-items: center; gap: 5px; color: var(--accent-2); font-size: 12.5px; font-weight: 600; }
.packs { display: grid; gap: 8px; }
.pack { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); text-align: left; transition: border-color .15s, background .15s; }
.pack:hover { border-color: #4a425a; }
.pack.on { border-color: var(--accent); background: var(--accent-soft); }
.pk-ico { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-3); color: var(--accent-2); display: grid; place-items: center; }
.pk-ico b { font-size: 11px; color: #fff; }
.pk-ico:has(b) { background: var(--accent); }
.pk-txt b { font-size: 14.5px; }
.pk-txt small { display: block; color: var(--muted); font-size: 11.5px; }
.pk-txt .hot { font-style: normal; font-size: 9.5px; font-weight: 800; background: var(--accent); color: #fff; border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: 2px; }
.pk-price { font-weight: 800; color: #ff8cc0; font-size: 14px; }
.pm-title { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 16px 0 8px; }
.pm-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pm-tiles button { height: 58px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 700; font-size: 13px; transition: border-color .15s; }
.pm-tiles button.on { border-color: var(--accent); background: #fff; color: #111; }
.pm-tiles .pp-word { font-size: 20px; }
.pm-tiles button:not(.on) .pp-word { opacity: .7; }
#shopSlot { margin-top: 12px; }

/* confirmation / réglages / paiement */
.confirm .modal, .settings .modal, .checkout .modal { padding: 26px 24px; max-width: 380px; }
.confirm h2, .settings h2, .checkout h2 { font-family: var(--font-display); font-size: 21px; margin-bottom: 10px; }
.confirm p { color: #d6d0e0; }
.cf-bal { display: flex; align-items: center; gap: 6px; color: var(--accent-2) !important; font-size: 13px; margin-top: 10px; }
.cf-extra .vip-link { display: flex; align-items: center; gap: 4px; margin-top: 12px; color: var(--accent-2); font-size: 13px; font-weight: 600; }
.cf-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.cf-actions .btn { justify-content: center; }
.set-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.set-row span { color: var(--muted); } .set-row b { word-break: break-all; text-align: right; }
.settings .btn { margin-top: 14px; }
#setReset[hidden] { display: none; }
.co-line { display: flex; justify-content: space-between; padding: 12px 0 16px; }
.co-line em { color: #ff8cc0; font-style: normal; font-size: 12px; }
.gate-lang { margin-top: 16px; }

/* bibliothèque */
.chips a { padding: 8px 16px; border-radius: 20px; background: var(--bg-3); font-weight: 600; color: var(--muted); }
.chips a.on { background: var(--accent); color: #fff; }
.lib-login { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }

/* ---------- lecteur ---------- */
.rd-bar { background: rgba(11,9,16,.9); border-bottom: 1px solid var(--line); }
.rd-bar .wrap { display: flex; align-items: center; gap: 12px; height: 48px; }
.rd-bar a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; }
.rd-bar a:hover { background: var(--bg-3); }
.rd-bar a svg { width: 18px; height: 18px; }
.rd-bar span { color: var(--muted); }
.reader { max-width: 720px; margin: 0 auto; background: #000; }
.reader img { width: 100%; display: block; }
.rd-ph { position: relative; aspect-ratio: 720 / 1100; }
.rd-note { color: var(--muted); text-align: center; padding: 18px; font-size: 13px; background: var(--bg-2); }
.rd-end { max-width: 720px; text-align: center; padding: 34px 16px 60px; }
.rd-end h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 18px; }
.rd-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; }
.rd-nav .btn { justify-content: center; }
.rd-nav .btn svg { width: 16px; height: 16px; }

@media (max-width: 860px) {
  .vip-plans { grid-template-columns: 1fr; max-width: 440px; }
  .vplan-actions { min-height: 0; }
}
@media (max-width: 680px) {
  .lang-mini span { display: none; }
  .rd-nav { grid-template-columns: 1fr 1fr; } .rd-nav > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .pv { width: 50px; height: 50px; }
}
