/* S Jailbreaks — the members pages: the leaderboard (leaderboard/), help tickets (support/) and the forum (forum/).
   Builds on styles.css: colours, header, buttons, the lock panel (.pp-gate) and the footer all come from there. */

.mb { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; padding: calc(var(--header-h) + 56px) var(--gutter) 0; }
.mb-page::before { /* one soft glow, like the home screen */
  content: ''; position: fixed; z-index: 0; top: -20vh; left: 50%; width: min(1100px, 120vw); aspect-ratio: 1; translate: -50% 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.056), transparent 70%);
}

/* Entrance: everything rises in, one after another */
.mb-in { animation: mb-up .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
@keyframes mb-up { from { opacity: 0; transform: translateY(22px); } }

.mb-hero { margin-bottom: 34px; }
.mb-title { margin: 22px 0 16px; font-size: clamp(60px, 8vw, 112px); }
/* (The gradient only paints inside the word's own box, and some letters reach past it — the P in "help" lost its
   edge — so the box is a little wider and taller on every side, with the margin taking it back: nothing moves.) */
.mb-accent { background: linear-gradient(180deg, #3b82f6, var(--blue) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; padding: .05em .1em; margin: 0 -.1em; }
.mb-lede { max-width: 58ch; font-size: 16.5px; line-height: 1.7; color: var(--muted); }

/* Who's logged in */
.mb-who { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; font-size: 14px; color: var(--text-2); }
.mb-who img { width: 30px; height: 30px; border-radius: 50%; background: var(--discord); }
.mb-who b { color: #fff; font-weight: 600; }
.mb-who .pp-mbtn { height: 34px; }

/* The leaderboard */
.mb-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.mb-tabs { display: inline-flex; padding: 5px; border-radius: 15px; border: 1px solid var(--line); background: rgba(16, 16, 16, .6); }
.mb-tabs button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px; font: 600 13.5px var(--font); color: var(--muted); transition: color .25s, background .25s, box-shadow .25s; }
.mb-tabs button .ico { font-size: 16px; }
.mb-tabs button:hover { color: var(--text); }
.mb-tabs button[aria-pressed="true"] { color: #0f0f0f; background: linear-gradient(180deg, #f9f9f9, #e2e2e2); box-shadow: 0 8px 22px -8px rgba(255, 255, 255, 0.28), inset 0 1px 0 #fff; }

.mb-you {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 14px 18px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.158); background: linear-gradient(100deg, rgba(255, 255, 255, 0.056), rgba(255, 255, 255, 0.014) 70%);
}
.mb-you-rank { font: 900 30px/1 var(--display); color: #fff; min-width: 2.2ch; }
.mb-you p { font-size: 14.5px; color: var(--text-2); }
.mb-you p b { color: #fff; font-weight: 600; }
.mb-you p small { margin-left: 4px; color: var(--muted); }

.mb-board { display: grid; gap: 6px; }
.mb-row {
  display: grid; grid-template-columns: 42px 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(16, 16, 16, .55); animation: mb-row .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 22ms);
}
@keyframes mb-row { from { opacity: 0; transform: translateY(8px); } }
.mb-rank { font: 800 20px/1 var(--display); color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.mb-row.top .mb-rank { font-size: 24px; }
.mb-row.r1 { border-color: rgba(245, 197, 74, .5); background: linear-gradient(100deg, rgba(245, 197, 74, .12), rgba(16, 16, 16, .55) 60%); }
.mb-row.r2 { border-color: rgba(250, 250, 250, .4); background: linear-gradient(100deg, rgba(250, 250, 250, .09), rgba(16, 16, 16, .55) 60%); }
.mb-row.r3 { border-color: rgba(214, 140, 84, .45); background: linear-gradient(100deg, rgba(214, 140, 84, .1), rgba(16, 16, 16, .55) 60%); }
.mb-row.is-you { border-color: rgba(255, 255, 255, 0.227); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.122); }
.mb-av { width: 40px; height: 40px; border-radius: 50%; background: var(--panel); object-fit: cover; }
.mb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--text); }
.mb-val { font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mb-val small { margin-left: 5px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.mb-row.is-loading { height: 62px; animation: mb-pulse 1.4s ease-in-out infinite alternate; }
@keyframes mb-pulse { from { opacity: .35; } to { opacity: .8; } }
.mb-empty { padding: 34px 20px; border-radius: 16px; border: 1px dashed var(--line-2); text-align: center; color: var(--muted); }
.mb-fine { display: grid; gap: 4px; margin-top: 16px; font-size: 13px; color: var(--dim); }
.mb-tabs[hidden] { display: none; }

/* 🏆 Levels: each level in its rank's colours (the Discord's level ranks), the XP after it, and how far into your
   own level you are */
.mb-board.is-xp .mb-val { display: inline-flex; align-items: center; gap: 12px; }
.mb-lvl {
  --a: #3b82f6; --b: #3b82f6; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 999px;
  font: 800 16px/1 var(--display); color: #fff; letter-spacing: .02em; border: 1.5px solid transparent;
  background: linear-gradient(rgba(13, 13, 13, .94), rgba(13, 13, 13, .94)) padding-box, linear-gradient(135deg, var(--a), var(--b)) border-box;
  box-shadow: 0 0 18px -8px var(--b);
}
.mb-val .mb-lvl small, .mb-you .mb-lvl small { margin: 0; font: 700 9.5px var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--a); }
.mb-xpn { min-width: 7ch; text-align: right; color: var(--text-2); }
.mb-row.top .mb-xpn { color: #fff; }
.mb-you-main { display: grid; gap: 8px; flex: 1; min-width: 0; }
.mb-you-main p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.mb-you-main .mb-xpn { min-width: 0; text-align: left; font-weight: 600; }
.mb-you-tag { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-3); font-size: 12px; color: var(--text-2); }
.mb-prog { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.mb-prog i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3b82f6, #3b82f6); box-shadow: 0 0 12px rgba(255, 255, 255, 0.21); transition: width .8s var(--ease); }
.mb-you-next { font-size: 12.5px; color: var(--muted); }

/* The privacy policy (privacy/): easy-to-read text, a list of its sections, and what's kept as a simple table */
.mb-legal .mb-hero { margin-bottom: 26px; }
.lg-date { margin-top: 14px; font-size: 13px; color: var(--dim); }
.lg { display: grid; gap: 34px; padding-bottom: 80px; font-size: 15.5px; line-height: 1.75; color: var(--text-2); }
.lg-toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(16, 16, 16, .55); }
.lg-toc a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--text-2); transition: color .2s, border-color .2s, background .2s; }
.lg-toc a:hover { color: #fff; border-color: var(--line-3); background: rgba(255, 255, 255, 0.042); }
.lg section { display: grid; gap: 12px; scroll-margin-top: calc(var(--header-h) + 30px); }
.lg h2 { font: 800 clamp(26px, 3.4vw, 34px)/1.1 var(--display); letter-spacing: .01em; text-transform: uppercase; color: #fff; }
.lg h3 { margin-top: 8px; font-size: 16px; font-weight: 700; color: var(--text); }
.lg p, .lg li { max-width: 72ch; }
.lg b { color: var(--text); font-weight: 600; }
.lg ul { display: grid; gap: 8px; padding-left: 0; list-style: none; }
.lg li { position: relative; padding-left: 22px; }
.lg li::before { content: ''; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 10px rgba(255, 255, 255, 0.245); }
.lg code { padding: 1px 7px; border-radius: 6px; background: rgba(255, 255, 255, .07); font: 500 .88em var(--mono, 'Geist Mono', monospace); color: var(--ice); }
.lg a:not(.lg-toc a) { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(200, 200, 200, .4); }
.lg a:not(.lg-toc a):hover { color: #fff; text-decoration-color: currentColor; }
.lg-table { display: grid; border-radius: 16px; border: 1px solid var(--line); background: rgba(16, 16, 16, .55); overflow: hidden; }
.lg-table > div { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); gap: 6px 22px; padding: 14px 18px; }
.lg-table > div + div { border-top: 1px solid var(--line); }
.lg-table b { color: #fff; }
.lg-table p { font-size: 14.5px; line-height: 1.65; }

/* The help ticket form */
.mb-panel { padding: 24px; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(160deg, rgba(26, 26, 26, .72), rgba(11, 11, 11, .82)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.mb-form { display: grid; gap: 20px; }
.mb-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; } /* (minmax: nothing inside can widen a phone's page) */
.mb-field > span { font: 600 14.5px var(--font); color: #fff; }
.mb-field > small { margin-top: -4px; font-size: 13px; color: var(--muted); }
.mb-field select, .mb-field textarea {
  width: 100%; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(10, 10, 10, .8); color: var(--text); font: 400 15px/1.55 var(--font);
  transition: border-color .25s, box-shadow .25s;
}
.mb-field select { height: 50px; padding: 0 44px 0 16px; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9cbff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; }
.mb-field select option { background: #101010; color: var(--text); }
.mb-field textarea { min-height: 150px; padding: 14px 16px; resize: vertical; }
.mb-field select:focus, .mb-field textarea:focus { outline: 0; border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.052); }
.mb-count { justify-self: end; font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.mb-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.mb-submit p { flex: 1 1 260px; font-size: 13.5px; color: var(--muted); }
.mb-form .btn[disabled] { opacity: .6; pointer-events: none; }
.mb-done { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pp-gate.is-ok .pp-lock-ico { border-color: rgba(71, 230, 161, .45); background: rgba(71, 230, 161, .12); color: var(--green); box-shadow: 0 0 28px -8px rgba(71, 230, 161, .6); }
.mb .pp-gate { margin-bottom: 18px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Help tickets: what it's about, then its questions */
.tk-types { border: 0; margin: 0; padding: 0; min-width: 0; }
.tk-step { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 0; font: 700 16px var(--font); color: #fff; }
.tk-step b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.175); font: 700 12.5px var(--mono); color: #c8c8c8; }
.tk-type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.tk-type {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 12px; padding: 14px; border-radius: 16px; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(10, 10, 10, .6); transition: border-color .25s, background .25s, box-shadow .25s, transform .25s var(--ease);
}
.tk-type input { position: absolute; opacity: 0; pointer-events: none; }
.tk-type:hover { border-color: var(--line-3); background: rgba(255, 255, 255, 0.021); transform: translateY(-1px); }
.tk-type:has(input:focus-visible) { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.tk-type:has(input:checked) { border-color: rgba(255, 255, 255, 0.262); background: linear-gradient(140deg, rgba(255, 255, 255, 0.077), rgba(255, 255, 255, 0.017)); box-shadow: 0 14px 34px -18px rgba(255, 255, 255, 0.315); }
.tk-type-emoji { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: rgba(255, 255, 255, .05); font-size: 22px; }
.tk-type-text { display: grid; gap: 3px; }
.tk-type-text b { font: 600 15px var(--font); color: #fff; }
.tk-type-text small { font-size: 12.8px; line-height: 1.4; color: var(--muted); }
.tk-fields { display: grid; gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); }
.tk-fields .tk-step { margin-bottom: -4px; }
.tk-questions { display: grid; gap: 20px; }
.tk-optional { font-weight: 500; font-size: 12.5px; color: var(--dim); }
.mb-field input[type="text"] {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(10, 10, 10, .8); color: var(--text);
  font: 400 15px var(--font); transition: border-color .25s, box-shadow .25s;
}
.mb-field input[type="text"]::placeholder, .mb-field textarea::placeholder { color: var(--dim); }
.mb-field input[type="text"]:focus { outline: 0; border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.052); }
.tk-pills { display: flex; flex-wrap: wrap; gap: 8px; }
/* v40: "Not yet" to the How to use video — the video first */
.tk-watch { display: flex; gap: 10px; margin: 4px 0 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(245, 177, 74, .4); background: rgba(245, 177, 74, .1); font-size: 13.5px; line-height: 1.5; color: #ffe2b0; }
.tk-watch .ico { flex: none; margin-top: 2px; font-size: 16px; color: #ffd08a; }
.tk-watch b { color: #fff; }
.tk-watch a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.mb-count.is-short { color: #ffd08a; }
.tk-pill { position: relative; cursor: pointer; }
.tk-pill input { position: absolute; opacity: 0; pointer-events: none; }
.tk-pill span { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(10, 10, 10, .7); font: 500 14px var(--font); color: var(--text-2); transition: border-color .25s, background .25s, color .25s; }
.tk-pill:hover span { border-color: var(--line-3); color: #fff; }
.tk-pill input:focus-visible + span { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.tk-pill input:checked + span { border-color: rgba(255, 255, 255, 0.262); background: rgba(255, 255, 255, 0.063); color: #fff; }
.tk-copy { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; line-height: 1.5; color: var(--text-2); cursor: pointer; }
.tk-copy input { flex-shrink: 0; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); cursor: pointer; }
.tk-closed { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 18px; border-color: rgba(71, 230, 161, .35); background: rgba(71, 230, 161, .06); }
.tk-closed .ico { font-size: 17px; color: var(--green); margin-right: 4px; }

/* Ban appeals: what they were banned for, above the form */
.ap-reason { margin: 0; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255, 92, 92, .35); background: rgba(255, 92, 92, .07); font-size: 14px; line-height: 1.55; color: var(--text-2); overflow-wrap: anywhere; }
.ap-reason b { color: #ffb3b3; font-weight: 600; }

/* Help tickets: their open ticket, live */
.tk-chat { display: grid; gap: 0; }
.tk-chat-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 18px; margin-bottom: 14px; padding: 18px 22px; }
.tk-chat-who { display: grid; gap: 4px; min-width: 0; }
.tk-kicker { display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tk-live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(71, 230, 161, .6); animation: tk-live 2s ease-out infinite; }
@keyframes tk-live { 70% { box-shadow: 0 0 0 8px rgba(71, 230, 161, 0); } 100% { box-shadow: 0 0 0 0 rgba(71, 230, 161, 0); } }
.tk-chat-title { font: 800 clamp(22px, 3.2vw, 30px)/1.2 var(--font); letter-spacing: -.02em; color: #fff; }
.tk-meta { font-size: 13.5px; color: var(--muted); }
.tk-chat-head .pp-mbtn { height: 40px; }
.tk-msgs { max-height: min(64vh, 680px); overflow-y: auto; overscroll-behavior: contain; padding: 2px 4px 2px 0; scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
.tk-chat .fm-reply { margin-top: 14px; }
.tk-chat .tk-copy { margin-top: 14px; }
.lc-chat .tk-chat-title { text-transform: none; } /* (a channel's name, as it is in Discord) */
.fm-msg.is-mine { border-color: rgba(255, 255, 255, 0.122); background: linear-gradient(140deg, rgba(255, 255, 255, 0.035), rgba(16, 16, 16, .55) 70%); }

.mb-footer { margin-top: 110px; }
.mb-footer .footer-bottom a { color: var(--text-2); transition: color .2s; }
.mb-footer .footer-bottom a:hover { color: #fff; }

@media (max-width: 680px) {
  .lg-table > div { grid-template-columns: minmax(0, 1fr); padding: 13px 15px; }
  .lg { font-size: 15px; gap: 28px; }
  .mb { padding-top: calc(var(--header-h) + 28px); }
  .mb-controls { flex-direction: column; align-items: stretch; }
  .mb-tabs { display: flex; }
  .mb-tabs button { flex: 1; justify-content: center; padding: 0 10px; }
  .mb-row { grid-template-columns: 30px 34px minmax(0, 1fr) auto; gap: 10px; padding: 9px 12px; }
  .mb-av { width: 34px; height: 34px; }
  .mb-board.is-xp .mb-val { flex-direction: column; align-items: flex-end; gap: 3px; }
  .mb-board.is-xp .mb-xpn { min-width: 0; font-size: 12px; }
  .mb-lvl { height: 24px; padding: 0 9px; font-size: 14px; }
  .mb-panel { padding: 18px; }
  .mb-submit .btn { width: 100%; justify-content: space-between; }
  .tk-type-grid { grid-template-columns: 1fr; }
  .tk-chat-head { padding: 16px; }
  .tk-chat-head .pp-mbtn { width: 100%; justify-content: center; }
  .tk-msgs { max-height: 70vh; }
  .mb-footer .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
}

/* ✉️ (v61) Continue with email: a small box over the page (members.js emailLogin) */
.em-dlg { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: auto; border: 1px solid var(--line-2); border-radius: 18px; background: #0d0d0d; color: var(--text); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); }
.em-dlg::backdrop { background: rgba(0, 0, 0, .66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.em-step { display: grid; gap: 16px; padding: 24px; }
.em-step h2 { margin: 0; font: 600 21px/1.3 var(--font); letter-spacing: -.02em; color: #fff; }
.em-sub { margin: -6px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--text-2); overflow-wrap: anywhere; }
.em-dlg .mb-field input { width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(10, 10, 10, .8); color: var(--text); font: 400 16px var(--font); transition: border-color .25s, box-shadow .25s; }
.em-dlg .mb-field input:focus { outline: 0; border-color: var(--blue-2, #fff); box-shadow: 0 0 0 4px rgba(255, 255, 255, .052); }
.em-dlg input[name="code"] { font: 600 22px var(--mono, monospace); letter-spacing: .3em; text-align: center; }
.em-row { display: flex; flex-wrap: wrap; gap: 8px; }
.em-row .pp-mbtn { height: 44px; }
.em-msg { margin: 0; padding: 10px 12px; border: 1px solid rgba(248, 113, 113, .4); border-radius: 10px; background: rgba(248, 113, 113, .08); font-size: 14px; line-height: 1.5; color: #fecaca; }
.em-msg.is-ok { border-color: rgba(71, 230, 161, .45); background: rgba(71, 230, 161, .08); color: #ececec; }
.mb-who small { color: var(--muted); }
@media (max-width: 480px) { .em-step { padding: 20px 18px; } .em-row .pp-mbtn { flex: 1 1 auto; justify-content: center; } }
