/* The distributor window (js/distributor.js): the plans, the application, the identity document, the payment,
   then the distributor's own page (balance, top-up, packs sold as codes, codes, history). */
.ds { display: grid; gap: 14px; }
.ds-hero { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; padding: 20px; border-radius: 22px; color: #fff; overflow: hidden;
  background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .22), transparent 45%), linear-gradient(135deg, #ff3d8b, var(--brand) 55%, #2a5ff0);
  box-shadow: 0 16px 34px -16px rgba(123, 47, 247, .8); }
.ds-hero-ico { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: rgba(255, 255, 255, .2); font-size: 1.8rem; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.ds-hero b { display: block; font-size: 1.25rem; font-weight: 900; }
.ds-hero p { margin: 4px 0 0; font-size: .86rem; opacity: .93; line-height: 1.6; }
.ds-perks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.ds-perks li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: .78rem; font-weight: 800; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.ds-perks i { font-style: normal; }
.ds-h { margin: 6px 0 0; font-size: .95rem; font-weight: 800; color: var(--ink); }
.ds-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: #fff6e6; color: #8a5a00; font-size: .85rem; font-weight: 600; }

.ds-steps { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ds-steps li { flex: 1; display: grid; justify-items: center; gap: 4px; font-size: .68rem; font-weight: 700; color: var(--muted); text-align: center; }
.ds-steps b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--line); color: var(--muted); font-size: .75rem; }
.ds-steps li.done b { background: var(--good); color: #fff; }
.ds-steps li.now b { background: linear-gradient(135deg, var(--accent), var(--brand)); color: #fff; box-shadow: 0 0 0 4px rgba(123, 47, 247, .18); }
.ds-steps li.now { color: var(--brand); }
.ds-top { display: grid; gap: 12px; padding: 12px; border-radius: 16px; background: #f8f5ff; border: 1px solid var(--line); }
.ds-top > div:first-child b { display: block; font-size: 1rem; } .ds-top > div:first-child small { color: var(--muted); font-weight: 700; }

.ds-plans { display: grid; gap: 14px; }
.ds-plan { position: relative; display: grid; gap: 12px; width: 100%; padding: 18px 16px 16px; border-radius: 20px; border: 1.5px solid var(--line); background: #fff; text-align: start; cursor: pointer; font: inherit; color: var(--ink);
  box-shadow: 0 8px 22px -18px rgba(43, 33, 64, .55); transition: border-color .15s, box-shadow .15s, transform .15s; }
.ds-plan:hover { border-color: #cdbdf7; transform: translateY(-1px); }
.ds-plan.on { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--accent), var(--brand), #2a5ff0) border-box;
  box-shadow: 0 18px 36px -18px rgba(123, 47, 247, .6); }
.ds-ribbon { position: absolute; top: -11px; inset-inline-end: 16px; padding: 4px 12px; border-radius: 999px; background: linear-gradient(135deg, #ffb300, #ff6a00); color: #fff; font-size: .7rem; font-weight: 900; box-shadow: 0 6px 14px -6px rgba(255, 106, 0, .8); }
.ds-plan-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.ds-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cfc6e8; display: grid; place-items: center; }
.ds-plan.on .ds-radio { border-color: var(--brand); }
.ds-plan.on .ds-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--brand)); }
.ds-plan-main { display: grid; gap: 3px; min-width: 0; }
.ds-plan-name { font-size: 1.15rem; font-weight: 900; }
.ds-plan-tag { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.ds-plan-price { display: grid; justify-items: end; text-align: end; gap: 1px; white-space: nowrap; }
.ds-plan-price b { font-size: 1.25rem; font-weight: 900; color: var(--brand); direction: ltr; }
.ds-plan-price small { color: var(--muted); font-size: .68rem; font-weight: 700; }
.ds-plan-disc span { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 12px; background: linear-gradient(135deg, #fff0f6, #f4edff); color: var(--accent); font-size: .86rem; font-weight: 900; box-shadow: inset 0 0 0 1px #ffd3e6; }
.ds-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 7px 14px; margin: 0; padding: 12px 0 0; list-style: none; border-top: 1px dashed var(--line); }
.ds-feats li { display: flex; align-items: flex-start; gap: 8px; font-size: .8rem; font-weight: 700; line-height: 1.4; }
.ds-feats li i { flex: none; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-size: .7rem; font-weight: 900; }
.ds-feats li.on i { background: #e6f8ee; color: var(--good); }
.ds-feats li.off { color: #b3acc8; } .ds-feats li.off i { background: #f2f0f7; color: #c4bdd8; }
@media (max-width: 420px) { .ds-plan-head { grid-template-columns: auto 1fr; } .ds-plan-price { grid-column: 2; justify-items: start; text-align: start; } .ds-feats { grid-template-columns: 1fr; } }

.ds-form { display: grid; gap: 10px; }
.ds-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.ds-field { display: grid; gap: 4px; margin: 0; }
.ds-field > span { font-size: .76rem; font-weight: 800; color: var(--muted); }
.ds-field .input, .ds-form textarea { width: 100%; }
.ds-terms { padding: 12px; border-radius: 14px; background: #f8f5ff; border: 1px solid var(--line); }
.ds-terms b { font-size: .85rem; }
.ds-terms-text { max-height: 150px; overflow-y: auto; margin-top: 6px; font-size: .78rem; line-height: 1.6; color: var(--ink); }
.ds-terms-text p { margin: 0 0 6px; }
.ds-agree { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: .82rem; font-weight: 700; cursor: pointer; }
.ds-agree input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }

.ds-kyc, .ds-wait, .ds-pay { display: grid; justify-items: center; gap: 8px; padding: 22px 16px; border-radius: 18px; border: 1px dashed #d8ccf6; background: #fcfaff; text-align: center; }
.ds-kyc-ico, .ds-wait > span { font-size: 2.4rem; line-height: 1; }
.ds-kyc b, .ds-wait b { font-size: 1rem; }
.ds-kyc p, .ds-wait p, .ds-pay p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.55; max-width: 420px; }
.ds-file { position: relative; display: grid; justify-items: center; gap: 6px; width: min(100%, 320px); padding: 14px; border: 1.5px dashed #cdbdf7; border-radius: 14px; background: #fff; cursor: pointer; }
.ds-file:hover { border-color: var(--brand); }
.ds-file input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ds-file-btn { padding: 8px 16px; border-radius: 999px; background: #f1ebff; color: var(--brand); font-weight: 800; font-size: .85rem; }
.ds-file-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .76rem; font-weight: 700; direction: ltr; }
.ds-file-name.on { color: var(--good); }
.ds-amount { font-size: 2rem; font-weight: 800; color: var(--brand); }

.ds-dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ds-card { display: grid; gap: 3px; align-content: start; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px -14px rgba(43, 33, 64, .5); }
.ds-card small { font-size: .72rem; font-weight: 800; color: var(--muted); }
.ds-card b { font-size: 1.1rem; font-weight: 800; }
.ds-card > span { font-size: .74rem; font-weight: 700; color: var(--muted); }
.ds-bal { background: linear-gradient(135deg, var(--accent), var(--brand)); border: 0; color: #fff; }
.ds-bal small, .ds-bal > span { color: rgba(255, 255, 255, .85); }
.ds-bal b { font-size: 1.45rem; }
.ds-topup { grid-column: 1 / -1; gap: 12px; padding: 16px; }
.ds-topup-head { display: flex; align-items: center; gap: 10px; }
.ds-topup-head b { font-size: 1rem; font-weight: 900; }
.ds-topup-ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #fff3d6, #ffe2a8); font-size: 1.2rem; }
.ds-topup-field { display: flex; align-items: center; gap: 0; margin: 0; border: 1.5px solid var(--line); border-radius: 14px; background: #fbf9ff; overflow: hidden; }
.ds-topup-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(123, 47, 247, .14); }
.ds-cur { padding: 0 14px; align-self: stretch; display: grid; place-items: center; background: #f1ebff; color: var(--brand); font-weight: 900; font-size: .85rem; }
.ds-topup-field .input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; box-shadow: none; font-size: 1.25rem; font-weight: 800; text-align: center; }
.ds-topup-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ds-chip { height: 36px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; direction: ltr; }
.ds-chip:hover { border-color: var(--brand); color: var(--brand); }
.ds-topup-go { width: 100%; height: 48px; font-size: 1rem; }
.ds-topup-note { text-align: center; color: var(--muted); font-size: .72rem; font-weight: 700; }
@media (max-width: 420px) { .ds-topup-quick { grid-template-columns: repeat(2, 1fr); } }

.ds-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ds-pack { display: grid; gap: 4px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.ds-pack > b { font-size: .92rem; } .ds-pack > small { color: var(--muted); font-weight: 700; }
.ds-pack-price, .ds-pack-cost { display: flex; justify-content: space-between; gap: 6px; font-size: .78rem; }
.ds-pack-price span, .ds-pack-cost span { color: var(--muted); font-weight: 700; }
.ds-pack-cost b { color: var(--good); }
.ds-pack-buy { display: grid; grid-template-columns: 58px 1fr; gap: 6px; margin-top: 6px; }
.ds-pack-buy .ds-count { width: 100%; padding-inline: 6px; height: 38px; }
.ds-pack-buy .btn { height: 38px; padding-inline: 6px; font-size: .74rem; white-space: nowrap; border-radius: 12px; }

.ds-new:empty { display: none; }
.ds-new { display: grid; gap: 6px; padding: 12px; border-radius: 16px; background: #effcf4; border: 1px solid #c8efd8; }
.ds-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px dashed #b9a6ef; background: #fff; font: 800 1rem ui-monospace, Consolas, monospace; letter-spacing: .06em; color: var(--ink); cursor: pointer; direction: ltr; }
.ds-code small { font: 700 .7rem Cairo, sans-serif; letter-spacing: 0; color: var(--brand); }
.ds-code.sm { padding: 4px 8px; font-size: .72rem; width: auto; white-space: nowrap; letter-spacing: .02em; }

.ds-list { display: grid; gap: 6px; }
.ds-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.ds-table th { text-align: start; color: var(--muted); font-weight: 800; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.ds-table td { padding: 6px 4px; border-bottom: 1px solid #f3f0fa; vertical-align: middle; }
.ds-table tr.st-redeemed td { color: var(--muted); }
.ds-table tr.st-void td { color: var(--muted); text-decoration: line-through; }
.ds-table .pos { color: var(--good); font-weight: 800; } .ds-table .neg { color: var(--bad); font-weight: 800; }
.ds-when { color: var(--muted); white-space: nowrap; }

/* the top-up card never wider than the window it is in (the side panel on a computer, the phone's width): its rows
   shrink with it, the quick amounts wrap to as many per row as fit, the field and the button take the card's width */
.ds-card.ds-topup { grid-template-columns: minmax(0, 1fr); min-width: 0; max-width: 100%; box-sizing: border-box; overflow: hidden; }
.ds-topup > * { min-width: 0; max-width: 100%; box-sizing: border-box; }
.ds-topup-field { width: 100%; }
.ds-topup-quick { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.ds-chip { min-width: 0; padding: 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-topup-go { box-sizing: border-box; max-width: 100%; }
/* (the dashboard's grid tracks never grow past the window for a wide child) */
.ds-dash { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
.ds-dash > * { min-width: 0; }

/* the page never wider than its window, in any language (2026-10-30): every row may shrink, a word too long for its
   place is cut with dots (the steps break inside a word) instead of pushing the page out */
.ds > *, .ds-top, .ds-top > * { min-width: 0; }
.ds-steps li { min-width: 0; font-size: .62rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; }
.ds-topup-quick { grid-template-columns: repeat(auto-fit, minmax(min(84px, 100%), 1fr)); }
.ds-packs { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); }
.ds-pack { min-width: 0; }
.ds-pack > b, .ds-pack > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-pack-price span, .ds-pack-cost span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-pack-price b, .ds-pack-cost b { flex: none; }
.ds-pack-buy { grid-template-columns: 52px minmax(0, 1fr); }
.ds-pack-buy .btn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ds-card > span, .ds-card small { overflow-wrap: anywhere; }

/* ---- the distributors' badge (distbadge.js, 2026-11-02): --dc is the plan's colour (panel → Distributors) ---- */
.msg-name .dist-mark, .dist-mark { display: inline-block; width: 18px; height: 18px; object-fit: contain; vertical-align: -4px; margin-inline-start: 4px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.pf-diststrip { display: flex; align-items: center; gap: 10px; width: calc(100% - 30px); margin: 10px 15px 0; box-sizing: border-box; padding: 8px 12px; border: 0; border-radius: 16px; cursor: pointer; text-align: start; color: #fff;
  background: radial-gradient(120% 160% at 0% 50%, color-mix(in srgb, var(--dc) 55%, transparent), transparent 70%), linear-gradient(135deg, color-mix(in srgb, var(--dc) 70%, #1a0b33), #1a0b33);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--dc) 80%, #fff 20%), 0 4px 14px color-mix(in srgb, var(--dc) 35%, transparent); }
.pf-diststrip-badge { flex: none; width: 46px; height: 46px; object-fit: contain; font-size: 30px; display: grid; place-items: center; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .45)); }
.pf-diststrip-mid { display: flex; flex-direction: column; min-width: 0; }
.pf-diststrip-mid b { font-size: 15px; font-weight: 900; }
.pf-diststrip-mid small { font-size: 12px; font-weight: 700; color: color-mix(in srgb, var(--dc) 35%, #fff); }

.da-card { position: relative; align-self: stretch; flex: none; display: flex; align-items: center; gap: 10px; margin: 6px 0; padding: 10px 12px; border-radius: 16px;
  overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(120% 140% at 100% 50%, color-mix(in srgb, var(--dc) 45%, transparent), transparent 60%), linear-gradient(135deg, color-mix(in srgb, var(--dc) 35%, #1d0d3a), #110720 75%);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--dc) 85%, transparent), 0 6px 18px color-mix(in srgb, var(--dc) 30%, rgba(20, 8, 40, .4)); animation: daIn .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.da-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%);
  transform: translateX(-120%); animation: daShine 2.8s ease-in-out .4s 2; }
.da-ph { flex: none; padding: 0; background: none; border: 0; cursor: pointer; }
.da-ph img { display: block; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2.5px solid var(--dc); box-shadow: 0 0 12px color-mix(in srgb, var(--dc) 75%, transparent); }
.da-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.da-arrive { font-size: 10px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: color-mix(in srgb, var(--dc) 45%, #fff); }
.da-name { max-width: 100%; font-size: 15px; font-weight: 800; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.da-plan { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  background: linear-gradient(180deg, color-mix(in srgb, var(--dc) 75%, #fff), var(--dc)); box-shadow: 0 2px 6px color-mix(in srgb, var(--dc) 55%, transparent); }
.da-btn { margin-top: 4px; padding: 4px 10px; border: 0; border-radius: 999px; cursor: pointer; font-size: 11px; font-weight: 800; color: #fff;
  background: color-mix(in srgb, var(--dc) 22%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dc) 60%, transparent); }
.da-btn:hover { background: color-mix(in srgb, var(--dc) 40%, transparent); }
.da-badge { flex: none; width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); animation: daBadge 3s ease-in-out infinite; }
/* the dearer the plan, the richer the card: gold glows, platinum shimmers in moving colours */
.da-gold { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--dc) 90%, #fff 10%), 0 0 22px color-mix(in srgb, var(--dc) 45%, transparent); }
.da-platinum { background: radial-gradient(120% 140% at 100% 50%, color-mix(in srgb, var(--dc) 50%, transparent), transparent 60%),
  linear-gradient(120deg, #2b0f55, #160a33 40%, #3a1170 70%, #160a33); background-size: 100% 100%, 300% 300%; animation: daIn .5s cubic-bezier(.2, 1.4, .4, 1) both, daFlow 6s ease-in-out infinite; }
.da-platinum::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--da-a, 0deg), #c9a6ff, #7ee8ff, #ffb3f0, #fff, #c9a6ff); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; animation: daSpin 4s linear infinite; }
.da-platinum::after { animation: daShine 2.8s ease-in-out .4s infinite; }
.da-platinum .da-badge { width: 72px; height: 72px; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--dc) 80%, transparent)); }
@property --da-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes daIn { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@keyframes daShine { to { transform: translateX(120%); } }
@keyframes daBadge { 50% { transform: translateY(-2px) scale(1.04); } }
@keyframes daFlow { 50% { background-position: 0 0, 100% 50%; } }
@keyframes daSpin { to { --da-a: 360deg; } }
@media (prefers-reduced-motion: reduce) { .da-card, .da-card::after, .da-card::before, .da-badge { animation: none; } }
/* a player who is a distributor: their plan's badge in the seat's corner (in place of a Top 100 place or a title),
   the size of a Top 100 badge, lifted out of the corner — the phone size, then the desktop size */
.seat-photo .league-icon.dist { width: 38px; height: 38px; margin-top: -22px; margin-right: -15px; background-size: contain; background-repeat: no-repeat; background-position: center;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); }
@media (min-width: 950px) { .seat-photo .league-icon.dist { width: 54px; height: 54px; margin-top: -32px; margin-right: -21px; } }

/* the administrators' coupon (admincoupon.js, 2026-11-09): in place of "Become a distributor" for the game's admins */
.ac { display: grid; gap: 12px; }
.ac-tabs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 4px; border-radius: 14px; background: #f3effc; }
.ac-tab { border: 0; border-radius: 10px; padding: 9px; font: inherit; font-weight: 800; color: var(--muted); background: transparent; cursor: pointer; }
.ac-tab.on { background: #fff; color: var(--brand); box-shadow: 0 2px 8px -3px rgba(123, 47, 247, .45); }
.ac-form { display: grid; gap: 10px; }
.ac-hint { margin: 0; font-size: .82rem; color: var(--muted); }
.ac-f { display: grid; gap: 4px; font-size: .78rem; font-weight: 700; color: var(--ink); }
.ac-row, .ac-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.ac-found { display: grid; gap: 4px; }
.ac-pl { text-align: start; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; background: #fff; font: inherit; cursor: pointer; }
.ac-pl code, .ac-chosen code { color: var(--muted); font-size: .72rem; }
.ac-chosen { font-size: .85rem; color: var(--good); }
.ac-send { font-size: .8rem; display: flex; align-items: center; gap: 6px; }
.ac-code { letter-spacing: .3em; font-size: 1.15rem; text-align: center; max-width: 180px; }
.ac-made { display: grid; justify-items: center; gap: 8px; padding: 14px; border-radius: 16px; background: #f1fbf4; border: 1px solid #bfe8cc; text-align: center; }
.ac-big { font: 800 1.35rem/1.2 ui-monospace, monospace; letter-spacing: .06em; color: var(--ink); user-select: all; }
.ac-zero { color: var(--muted); font-size: .72rem; text-align: center; }
.ac-lock { display: grid; justify-items: center; gap: 8px; padding: 26px 16px; text-align: center; }
.ac-lock-ico { font-size: 44px; }
.ac-lock p { margin: 0; color: var(--muted); }
.ac-lock small { color: #b0466b; font-weight: 700; }

/* ---- the Leader (distbadge.js leaderMark / leaderStrip / leaderFrame / leaderArrival, 2026-11-09): a membership level
   with a badge (SVIP 3 = «القائد» / Leader). --lc is the level's colour (panel → Membership levels). The richest look in
   the game: gold, a moving shine, a turning gold border ---- */
.msg-name .leader-mark, .leader-mark { display: inline-block; width: 20px; height: 20px; object-fit: contain; vertical-align: -5px; margin-inline-start: 4px;
  filter: drop-shadow(0 0 3px color-mix(in srgb, var(--lc, #f5c542) 80%, transparent)) drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); animation: lmGlow 2.4s ease-in-out infinite; }
@keyframes lmGlow { 50% { filter: drop-shadow(0 0 6px var(--lc, #f5c542)) drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); } }

/* the seat's corner: the emblem a little larger than a distributor's, glowing */
.seat-photo .league-icon.dist.leader { width: 44px; height: 44px; margin-top: -26px; margin-right: -18px;
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--lc) 85%, transparent)) drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); animation: lmGlow 2.4s ease-in-out infinite; }
@media (min-width: 950px) { .seat-photo .league-icon.dist.leader { width: 62px; height: 62px; margin-top: -37px; margin-right: -25px; } }

/* the profile strip: a gold bar with the emblem, the title and the level, a shine passing over it */
.pf-leaderstrip { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 12px; width: calc(100% - 30px); margin: 10px 15px 0; box-sizing: border-box;
  padding: 8px 14px; border: 0; border-radius: 18px; cursor: pointer; text-align: start; color: #2b1500;
  background: linear-gradient(135deg, #fff3c4 0%, #f7d774 22%, #d9a21b 50%, #f7d774 78%, #fff1b8 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7), inset 0 -3px 8px rgba(120, 70, 0, .35), 0 6px 18px color-mix(in srgb, var(--lc) 55%, transparent); }
.pf-leaderstrip-badge { flex: none; width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(80, 30, 0, .55)); animation: daBadge 3s ease-in-out infinite; }
.pf-leaderstrip-mid { display: flex; flex-direction: column; min-width: 0; }
.pf-leaderstrip-mid b { font-size: 16px; font-weight: 900; letter-spacing: .2px; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.pf-leaderstrip-mid small { font-size: 12px; font-weight: 800; color: #6b3d00; }
.pf-leaderstrip-shine { position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .75) 50%, transparent 65%); transform: translateX(-120%); animation: daShine 3.2s ease-in-out .3s infinite; }

/* the profile's header in gold: my profile (photo + name) and another's (the photos) get a turning gold border and a glow */
.pf-main.pf-leader { padding: 8px; margin-bottom: 18px; height: auto; border-radius: 20px; isolation: isolate;
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 236, 170, .95), rgba(255, 248, 225, .9) 60%, rgba(247, 215, 116, .55));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--lc) 45%, transparent); }
.pf-main.pf-leader::before, .pf-about.pf-leader .pf-photos::before { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 3px; pointer-events: none;
  background: conic-gradient(from var(--da-a, 0deg), #fff6cf, #f5c542, #b8860b, #ffe9a3, #f5c542, #fff6cf);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: daSpin 5s linear infinite; }
.pf-about.pf-leader .pf-photos { box-shadow: 0 0 0 1px rgba(255, 220, 120, .6), 0 10px 26px color-mix(in srgb, var(--lc) 55%, transparent); }
.pf-about.pf-leader .pf-photos::after { background: linear-gradient(180deg, rgba(120, 70, 0, .25) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 45%, rgba(70, 35, 0, .7) 100%); }
.pf-main.pf-leader .pf-name { color: #6b3d00; }

/* the arrival card: gold, rays turning behind, a shine, a turning gold border, the crown on the photo, the emblem large */
.la-card { position: relative; align-self: stretch; flex: none; display: flex; align-items: center; gap: 12px; margin: 8px 0; padding: 12px 14px; border-radius: 18px;
  overflow: hidden; isolation: isolate; color: #2b1500;
  background: radial-gradient(120% 160% at 100% 50%, rgba(255, 246, 207, .95), transparent 60%), linear-gradient(120deg, #f7d774, #d9a21b 35%, #fff1b8 55%, #c88a12 80%, #f7d774);
  background-size: 100% 100%, 300% 300%;
  box-shadow: inset 0 -4px 10px rgba(120, 70, 0, .35), 0 8px 24px color-mix(in srgb, var(--lc) 60%, rgba(60, 30, 0, .4));
  animation: daIn .55s cubic-bezier(.2, 1.4, .4, 1) both, daFlow 6s ease-in-out infinite; }
.la-card::before { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 2.5px; pointer-events: none;
  background: conic-gradient(from var(--da-a, 0deg), #fff, #f5c542, #8a5a00, #ffe9a3, #fff); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; animation: daSpin 3.5s linear infinite; }
.la-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .7) 50%, transparent 65%);
  transform: translateX(-120%); animation: daShine 2.6s ease-in-out .3s infinite; }
.la-rays { position: absolute; z-index: -2; width: 260px; height: 260px; inset-inline-end: -70px; top: 50%; margin-top: -130px; pointer-events: none; opacity: .45;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .9) 0 6deg, transparent 6deg 18deg); -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%); mask: radial-gradient(circle, #000 20%, transparent 68%);
  animation: laRays 14s linear infinite; }
.la-ph { position: relative; flex: none; padding: 0; background: none; border: 0; cursor: pointer; }
.la-ph img { display: block; width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 3px solid #fff3c4; box-shadow: 0 0 0 2px #b8860b, 0 0 16px rgba(255, 215, 90, .95); }
.la-crown { position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-12deg); font-style: normal; font-size: 20px; filter: drop-shadow(0 2px 2px rgba(80, 30, 0, .5)); }
.la-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.la-arrive { max-width: 100%; font-size: 11px; font-weight: 900; letter-spacing: .3px; line-height: 1.25; color: #6b3d00; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.la-name { max-width: 100%; font-size: 17px; font-weight: 900; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.la-plan { margin-top: 2px; padding: 2px 12px; border-radius: 999px; font-size: 12px; font-weight: 900; color: #fff6d8; letter-spacing: .4px; text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  background: linear-gradient(180deg, #5a2c00, #2b1500); box-shadow: inset 0 0 0 1px rgba(255, 215, 90, .8), 0 2px 6px rgba(80, 40, 0, .45); }
.la-btn { white-space: nowrap; margin-top: 5px; padding: 4px 12px; border: 0; border-radius: 999px; cursor: pointer; font-size: 11px; font-weight: 900; color: #2b1500;
  background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(120, 70, 0, .45); }
.la-btn:hover { background: rgba(255, 255, 255, .8); }
.la-badge { flex: none; width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(255, 230, 140, .9)) drop-shadow(0 4px 6px rgba(80, 30, 0, .5)); animation: daBadge 3s ease-in-out infinite; }
@keyframes laRays { to { transform: rotate(360deg); } }
@media (max-width: 950px) { .la-badge { width: 70px; height: 70px; } .la-ph img { width: 48px; height: 48px; } .la-name { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .la-card, .la-card::before, .la-card::after, .la-rays, .la-badge, .leader-mark, .pf-leaderstrip-shine, .pf-main.pf-leader::before, .pf-about.pf-leader .pf-photos::before { animation: none; } }

/* the admin coupon window's «My coupons» tab: each coupon, used / uses, Cancel on one not used up (2026-11-12) */
.ac-mine { display: grid; gap: 8px; }
.ac-mrow { display: grid; gap: 4px; padding: 10px; border-radius: 12px; background: #faf8ff; border: 1px solid #e6defa; }
.ac-mrow.off { opacity: .6; background: #f4f4f4; border-color: #ddd; }
.ac-mtop, .ac-mbot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ac-mtop code { font: 800 14px/1.2 Montserrat, monospace; letter-spacing: 1px; color: #5b2bbf; }
.ac-mgives { color: #555; }
.ac-mbtn { border: 1px solid #e0485f; background: #fff; color: #c62839; border-radius: 8px; padding: 4px 10px; font-weight: 700; font-size: 12px; cursor: pointer; }
.ac-mrev { color: #777; font-size: 12px; font-weight: 700; }
