/* PUBGARENA — css/app.css
   Add-on styles for the real app. Original css/styles.css + css/panel.css
   are kept as-is; everything here only extends them. */
.bell-count{background:#e5484d;color:#fff;border-radius:999px;font-size:11px;padding:1px 6px;margin-left:4px;font-weight:700}
.dz-uc-note{font-size:12.5px;color:#ffd166;background:rgba(255,209,102,.08);border:1px solid rgba(255,209,102,.25);border-radius:8px;padding:7px 10px;margin:8px 0}
.dz-livik-note{font-size:11.5px;color:#9db4c6}
.dz-start-countdown{display:inline-flex;align-items:center;gap:6px;background:rgba(6,16,26,.55);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.22);color:#eaf6ff;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
.status-full{background:#5b6b7a;color:#fff}
.dz-form-errors{background:#3d0d0d;border:1px solid #e5484d;color:#ffb4b4;border-radius:8px;padding:10px 12px;margin-bottom:12px;font-size:13px}
.dz-form-errors p{margin:2px 0}
.dz-field-error{border-color:#e5484d !important;outline:2px solid rgba(229,72,77,.35)}
.dz-ajax-form label{display:block;font-size:13px;font-weight:600;color:#dbe9f2;margin:10px 0 4px}
.dz-ajax-form input,.dz-ajax-form select,.dz-ajax-form textarea{width:100%;background:#0b1a26;border:1px solid #24404f;color:#eaf6ff;border-radius:8px;padding:10px 12px;font-size:14px;box-sizing:border-box}
.dz-ajax-form input[readonly]{opacity:.75}
/* Registration modal — premium rebuild (2026-11-25).
   Root causes of the old look: the panel loads panel.css + app.css only
   (NOT styles.css), and neither styled .dz-reg-form inputs or .button* —
   so inputs fell back to browser-default WHITE boxes and the button to
   unstyled defaults; .dz-reg-card was one scrolling box (max-height +
   overflow:auto) so the Confirm button sat below the fold with no
   visible footer. Everything below is self-contained in app.css so the
   modal looks the same from the landing page and the user panel.
   Layout: flex column — hero (fixed) + scrollable middle + sticky
   footer, so Confirm is always visible. */
.dz-reg-card{max-width:680px;width:calc(100% - 32px);max-height:92vh;max-height:92dvh;padding:0;overflow:hidden;display:flex;flex-direction:column}
.dz-reg-card .modal-close{z-index:5}
#registerModalBody{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.dz-reg{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.dz-reg-hero{flex:none;padding-bottom:12px}
.dz-reg-banner{position:relative;min-height:158px;display:flex;align-items:flex-end;overflow:hidden;border-radius:16px 16px 0 0}
.dz-reg-banner img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.dz-reg-banner::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,10,18,.18) 0%,rgba(4,10,18,.55) 55%,rgba(4,10,18,.94) 100%)}
.dz-reg-banner-text{position:relative;z-index:1;padding:40px 20px 14px;width:100%}
.dz-reg-eyebrow{display:inline-block;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#a6ff24;background:rgba(6,16,26,.62);border:1px solid rgba(166,255,38,.4);border-radius:999px;padding:4px 10px;margin-bottom:8px}
.dz-reg-banner h3{margin:0 0 4px;font-size:22px;line-height:1.15;color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.65)}
.dz-reg-when{margin:0;font-size:13px;color:#dbe9f2}
.dz-reg-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:12px 16px 0}
.dz-reg-stat{background:#0b1a26;border:1px solid #24404f;border-radius:10px;padding:9px 10px;text-align:center}
.dz-reg-stat-v{display:block;font-size:15px;font-weight:800;color:#eaf6ff;white-space:nowrap}
.dz-reg-stat-v.dz-gold{color:#ffd166}
.dz-reg-stat-k{display:block;font-size:11px;color:#9db4c6;margin-top:2px;text-transform:uppercase;letter-spacing:.05em}
.dz-reg-hero .dz-uc-note{margin:12px 16px 0}
.dz-reg-form{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.dz-reg-form[hidden]{display:none}
.dz-reg-form .dz-form-errors{margin:12px 16px 0;flex:none}
.dz-reg-scroll{flex:1;min-height:0;overflow-y:auto;padding:14px 16px 16px}
.dz-reg-sec{display:flex;align-items:center;gap:8px;margin:4px 0 10px;font-size:15px;font-weight:800;color:#eaf6ff}
.dz-reg-sec-n{width:22px;height:22px;border-radius:50%;background:#a6ff24;color:#081523;font-size:12px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;flex:none}
.dz-reg-sec-hint{margin-left:auto;font-size:12px;color:#9db4c6;font-weight:400;text-align:right}
.dz-player-card{background:linear-gradient(135deg,rgba(20,42,60,.72),rgba(9,22,35,.92));border:1px solid #24404f;border-radius:12px;padding:12px;margin:0 0 10px;transition:border-color .2s ease,box-shadow .2s ease}
.dz-player-card:has(.dz-leader input:checked){border-color:rgba(255,209,102,.65);box-shadow:0 0 0 1px rgba(255,209,102,.25),0 6px 18px rgba(0,0,0,.35)}
.dz-player-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.dz-player-ava{width:30px;height:30px;flex:none;border-radius:50%;background:rgba(174,255,38,.16);border:1px solid rgba(174,255,38,.45);color:#a6ff24;font-weight:800;font-size:13px;display:inline-flex;align-items:center;justify-content:center}
.dz-player-who{flex:1;min-width:0;font-size:14px;font-weight:700;color:#eaf6ff}
.dz-you-pill{font-size:10.5px;font-weight:800;color:#081523;background:#a6ff24;border-radius:999px;padding:2px 8px;margin-left:6px;vertical-align:1px}
.dz-leader{font-size:12.5px;color:#ffd166;cursor:pointer;display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.dz-leader input{accent-color:#ffd166;width:15px;height:15px;cursor:pointer;margin:0}
.dz-leader-tag{display:none;font-size:11px;font-weight:700;color:#ffd166}
.dz-player-card:has(.dz-leader input:checked) .dz-leader-tag{display:inline}
.dz-player-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.dz-pf label{display:block;font-size:11.5px;font-weight:600;color:#9db4c6;margin-bottom:4px}
.dz-reg-form input[type="text"],.dz-reg-form input[type="tel"],.dz-reg-form select{width:100%;background:#0b1a26;border:1px solid #24404f;color:#eaf6ff;border-radius:9px;padding:10px 12px;font-size:14px;box-sizing:border-box}
.dz-reg-form input::placeholder{color:#5b7284}
.dz-reg-form input:focus,.dz-reg-form select:focus{outline:none;border-color:#a6ff24;box-shadow:0 0 0 3px rgba(166,255,38,.18)}
.dz-reg-form input[readonly]{background:#12283a;color:#cfe3f2;border-style:dashed}
.dz-reg-form select option{background:#0b1a26;color:#eaf6ff}
.dz-wa-row{display:grid;grid-template-columns:minmax(170px,1.35fr) 84px 1fr;gap:8px}
.dz-wa-row .dz-dial{text-align:center;font-weight:700}
.dz-reg-hint{font-size:12.5px;color:#9db4c6;margin:8px 0 0}
.dz-balance-chip{display:flex;gap:10px;align-items:flex-start;background:rgba(59,130,246,.1);border:1px solid rgba(59,130,246,.35);border-radius:12px;padding:12px 14px;margin:0 0 4px}
.dz-balance-chip .dz-bc-ico{font-size:20px;line-height:1}
.dz-balance-chip p{margin:0;font-size:13.5px;color:#dbe9f2}
.dz-balance-chip small{display:block;color:#9db4c6;font-size:12px;margin-top:3px}
.dz-balance-chip a{color:#a6ff24;font-weight:700;text-decoration:none}
.dz-reg-footer{flex:none;display:flex;gap:10px;padding:14px 16px;border-top:1px solid rgba(130,180,215,.18);background:rgba(6,16,26,.78)}
.dz-reg-confirm{flex:1;min-height:48px;border-radius:12px;border:1px solid rgba(223,255,143,.76);background:linear-gradient(135deg,#d6ff60 0%,#a8f900 46%,#75d900 100%);color:#101a08;font-weight:800;font-size:15px;cursor:pointer;box-shadow:0 8px 24px rgba(114,255,0,.28),inset 0 1px 0 rgba(255,255,255,.58)}
.dz-reg-confirm:hover{transform:translateY(-1px);filter:brightness(1.06)}
.dz-reg-confirm:disabled{opacity:.55;cursor:not-allowed;transform:none}
/* Short footer label for narrow screens (mobile polish) — hidden on
   desktop, where the full "Confirm Registration" label stays. */
.dz-confirm-short{display:none}
.dz-reg-cancel{flex:none;min-height:48px;padding:0 18px;border-radius:12px;border:1px solid #24404f;background:#12283a;color:#eaf6ff;font-weight:700;font-size:14px;cursor:pointer}
.dz-reg-cancel:hover{border-color:#a6ff24}
.dz-reg .dz-success:not([hidden]){display:flex;flex-direction:column;justify-content:center;flex:1;min-height:0}
.dz-success{text-align:center;padding:24px 8px}
.dz-success h3{margin:10px 0 4px;animation:dzFadeUp .4s ease .1s both}
.dz-success p{color:#9db4c6;font-size:13.5px;margin:0;animation:dzFadeUp .4s ease .18s both}
/* Animated success checkmark (2026-11-25; timings tightened Round 4):
   the ring draws, then the tick draws. ROUND 4: the old timings (ring
   0.6s, tick delayed 0.45s, heading at 0.55s) left a ~0.5s window where
   only a bare green ring arc was visible — in a screenshot cadence that
   reads as a "loading spinner" with no checkmark. Now the ring draws in
   0.35s, the tick starts at 0.2s, the heading fades in at 0.1s, and
   .dz-success-done (added by JS at +700ms) forces the final drawn state
   even if an animation stalls — a frame at ~1.2s always shows the
   complete checkmark. The SVG is re-created with every
   renderRegisterForm() call, so the animations replay each time the
   success state is shown. */
.dz-check-svg{width:76px;height:76px;margin:0 auto;display:block;animation:dzPop .45s ease}
.dz-check-ring{fill:none;stroke:#22c55e;stroke-width:4;stroke-dasharray:202;stroke-dashoffset:202;animation:dzDraw .35s ease forwards}
.dz-check-mark{fill:none;stroke:#22c55e;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:48;stroke-dashoffset:48;animation:dzDraw .35s ease .2s forwards}
.dz-success-done .dz-check-ring,.dz-success-done .dz-check-mark{stroke-dashoffset:0;animation:none}
.dz-success-done h3,.dz-success-done p{animation:none;opacity:1;transform:none}
@keyframes dzDraw{to{stroke-dashoffset:0}}
@keyframes dzPop{0%{transform:scale(.4);opacity:0}70%{transform:scale(1.12)}100%{transform:scale(1);opacity:1}}
@keyframes dzFadeUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
/* Admin tournament start date + time (separate inputs, 2026-11-25). */
.dz-datetime-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.dz-datetime-wrap{position:relative}
.dz-date-field{position:relative;display:flex;align-items:center}
.dz-date-field #dzStartDate{flex:1;padding-right:38px}
.dz-cal-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);border:0;background:transparent;font-size:17px;cursor:pointer;padding:6px;line-height:1}
.dz-cal{position:absolute;left:0;top:calc(100% + 6px);z-index:30;width:264px;background:#0f253a;border:1px solid rgba(130,180,215,.35);border-radius:12px;box-shadow:0 18px 44px rgba(0,0,0,.6);padding:10px}
.dz-cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.dz-cal-head strong{font-size:13.5px}
.dz-cal-head button{border:1px solid rgba(130,180,215,.3);background:#0b1a26;color:#eaf6ff;border-radius:7px;padding:4px 9px;cursor:pointer;font-size:13px}
.dz-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;text-align:center}
.dz-cal-grid .dz-cal-dow{font-size:10.5px;color:#9db4c6;font-weight:700;padding:3px 0}
.dz-cal-day{border:0;background:transparent;color:#eaf6ff;border-radius:7px;padding:6px 0;cursor:pointer;font-size:13px}
.dz-cal-day:hover{background:rgba(174,255,38,.16)}
.dz-cal-day.is-today{outline:1px solid rgba(174,255,38,.6)}
.dz-cal-day.is-selected{background:#a6ff24;color:#08131c;font-weight:800}
.dz-cal-day.is-other{color:#5b7284}
.dz-cal-day:disabled{color:#3d5265;cursor:default;background:transparent}
/* ROUND 4: the native date/time pickers are gone from the tournament
   modal (replaced by text inputs + an in-DOM calendar — native picker
   clicks never committed in this modal, twice). The blur removal below
   stays as defence for any future native control in this modal. */
.modal-backdrop:has(#tournamentForm){backdrop-filter:none;-webkit-backdrop-filter:none}
/* Tables */
.dz-toolbar{display:flex;gap:10px;align-items:center;margin-bottom:10px;flex-wrap:wrap}
.dz-table-search{flex:1;min-width:200px;background:#0b1a26;border:1px solid #24404f;color:#eaf6ff;border-radius:8px;padding:9px 12px}
.dz-table-count{font-size:12.5px;color:#9db4c6}
.dz-table{width:100%;border-collapse:collapse;font-size:13.5px}
.dz-table th,.dz-table td{padding:10px 8px;border-bottom:1px solid rgba(130,180,215,.12);text-align:left;vertical-align:top}
.dz-table th{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#9db4c6}
.dz-table tr:hover td{background:rgba(166,255,36,.04)}
.dz-table .thumb{width:64px;height:40px;object-fit:cover;border-radius:6px;vertical-align:middle;margin-right:8px}
.pill{display:inline-block;padding:3px 9px;border-radius:999px;font-size:11.5px;font-weight:700}
.pill-green{background:rgba(34,197,94,.18);color:#4ade80}
.pill-amber{background:rgba(245,158,11,.18);color:#fbbf24}
.pill-red{background:rgba(229,72,77,.18);color:#ff8a8a}
.pill-slate{background:rgba(148,163,184,.18);color:#cbd5e1}
.pill-blue{background:rgba(59,130,246,.18);color:#93c5fd}
.btn{display:inline-block;padding:7px 12px;border-radius:8px;font-size:13px;font-weight:600;text-decoration:none;border:1px solid #24404f;background:#12283a;color:#eaf6ff;cursor:pointer}
.btn-lime{background:#a6ff24;color:#081523;border-color:#a6ff24}
.btn-red{background:rgba(229,72,77,.15);color:#ff8a8a;border-color:rgba(229,72,77,.4)}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn-sm{padding:5px 9px;font-size:12px}
/* Cover picker */
.dz-cover-picker{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0}
.dz-cover-opt{cursor:pointer;text-align:center;font-size:11px;color:#9db4c6}
.dz-cover-opt img{width:120px;height:76px;object-fit:cover;border-radius:8px;border:2px solid transparent;display:block}
.dz-cover-opt input:checked + img{border-color:#a6ff24}
/* Chat (support tickets) */
.dz-chat{display:flex;flex-direction:column;gap:10px;max-width:760px;margin:0 auto}
.dz-msg{max-width:78%;padding:10px 14px;border-radius:14px;font-size:14px;line-height:1.5}
.dz-msg small{display:block;font-size:11px;opacity:.7;margin-top:4px}
.dz-msg.user{align-self:flex-end;background:#a6ff24;color:#081523;border-bottom-right-radius:4px}
.dz-msg.admin{align-self:flex-start;background:#12283a;color:#eaf6ff;border:1px solid #24404f;border-bottom-left-radius:4px}
.dz-msg.mine-admin{align-self:flex-end;background:#7c5cff;color:#fff;border-bottom-right-radius:4px}
/* Invoice timeline */
.dz-steps{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.dz-step{padding:7px 12px;border-radius:999px;font-size:12.5px;font-weight:700;background:#12283a;color:#9db4c6;border:1px solid #24404f}
.dz-step.on{background:#a6ff24;color:#081523;border-color:#a6ff24}
.dz-step.bad{background:#e5484d;color:#fff;border-color:#e5484d}
.kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:16px}
.dz-grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}
.nav-badge{background:#e5484d;color:#fff;border-radius:999px;font-size:11px;padding:1px 7px;margin-left:auto;font-weight:700}
.dz-modal-card{max-width:640px;width:calc(100% - 32px);max-height:88vh;overflow:auto}
.dz-modal-card h2{margin:0 0 10px}
.dz-hint{font-size:12.5px;color:#9db4c6;margin:4px 0 0}
.dz-empty{color:#9db4c6;padding:18px;text-align:center}
@media (max-width:640px){
  .dz-wa-row{grid-template-columns:1fr 84px}
  .dz-wa-row input[name="whatsapp_number"]{grid-column:1/-1}
  .dz-player-fields{grid-template-columns:1fr}
  .dz-reg-banner{min-height:120px}
  .dz-reg-banner-text{padding:32px 16px 12px}
  .dz-reg-banner h3{font-size:19px}
  .dz-reg-stats{padding:10px 12px 0}
  .dz-reg-scroll{padding:12px 12px 14px}
  .dz-reg-footer{padding:12px}
  .dz-reg-confirm{font-size:14px}
}

/* ===== Landing UI fixes (2026-11-25 audit) ===== */
/* 15. Sticky header must never clip anchored content */
html{scroll-padding-top:96px}
section[id], article[id]{scroll-margin-top:96px}
/* 2. Badge top-LEFT, timer top-RIGHT, separated, with a top scrim for readability.
   NOTE: cards use .dz-start-countdown (not .start-countdown) — that is why the
   old rule never applied and the two pills overlapped at top-left. */
.card-art{position:absolute;inset:0;background:center 18%/cover no-repeat}
.card-art::before{content:'';position:absolute;inset:0 0 auto 0;height:64px;background:linear-gradient(180deg,rgba(4,10,18,.72),rgba(4,10,18,0));z-index:1;pointer-events:none}
.card-art .status-pill{position:absolute;top:10px;left:10px;z-index:2}
/* Countdown pill: frosted-glass chip, one line, full text. The old rule
   clipped it with max-width + overflow:hidden + text-overflow:ellipsis
   while the 1s ticker rewrote the value with proportional numerals, so
   the pill's width jittered every tick and the text could paint
   mid-glyph (the garbled "2d 20h 20m" in the 22:50 screenshot).
   tabular-nums fixes the width, the ellipsis clipping is gone, and the
   max-width is only a guard so the pill can never reach the badge. */
.card-art .dz-start-countdown{position:absolute;top:10px;right:10px;z-index:2;max-width:calc(100% - 84px);white-space:nowrap;box-shadow:0 4px 14px rgba(0,0,0,.35)}
.tournament-card-body h3,.tournament-card-body .card-sub{text-shadow:0 1px 6px rgba(0,0,0,.85)}
/* Tournament cards inside the PANELS (admin/user): panel pages load
   panel.css + app.css only — NOT styles.css, where the card layout
   lives. Without these rules .card-art was a 0-size absolute box, so
   the cover background was invisible and the badge (absolute, top-left
   of that 0-size box) sat on top of the title. These mirror the
   landing card rules, so panels show the same covers as landing. */
/* User-panel tournaments: same 3-in-a-row grid as landing (3 desktop /
   2 tablet / 1 mobile). NOTE: panel pages never load styles.css, where
   display:grid lives — app.css only set grid-template-columns, so the
   grid was a plain block div and the cards stacked full-width, one per
   row (the 22:50 screenshot). The display rule + panel-scoped media
   queries are required here: the generic .tournament-grid queries
   below lose to .panel-main .tournament-grid on specificity. */
.panel-main .tournament-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
@media (max-width:1180px){.panel-main .tournament-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.panel-main .tournament-grid{grid-template-columns:1fr}}
/* Cover zoom layer: the cover image lives on this inner div (see
   tournament_card.php) so a hover scale never moves the badge/pills,
   which are siblings of it inside .card-art. */
.card-art-bg{position:absolute;inset:0;background-size:cover;background-position:center 18%;background-repeat:no-repeat;transition:transform .6s cubic-bezier(.22,.61,.36,1)}
.panel-main .tournament-card:hover .card-art-bg{transform:scale(1.07)}
.tournament-card{min-height:300px;border-radius:13px;overflow:hidden;position:relative;display:flex;flex-direction:column;justify-content:flex-end;border:1px solid rgba(93,171,217,.39);background:#0b1a26;box-shadow:0 9px 25px rgba(0,0,0,.4)}
.tournament-card-body{position:relative;z-index:2;padding:12px;background:linear-gradient(180deg,rgba(2,8,14,0),rgba(2,8,14,.88) 40%);margin-top:auto}
.tournament-card h3{margin:0;font-size:20px;line-height:1.1}
.card-sub{color:#c2cfd8;font-size:10px;margin:3px 0 8px}
.prize-line{display:flex;align-items:center;gap:6px;font-size:11px;color:#ffd166}
.prize-line b{font-size:14px}
.prize-line.secondary{color:#c8d5df;margin-top:2px;font-size:10px}
.card-foot{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:9px;padding-top:9px;border-top:1px solid rgba(255,255,255,.12);color:#c2cfd8;font-size:10px}
.status-pill{display:inline-flex;align-items:center;padding:4px 8px;font-size:9px;font-weight:800;border-radius:6px;letter-spacing:.3px;white-space:nowrap}
.status-live{color:#fff;background:#f23435;box-shadow:0 0 12px rgba(255,42,47,.4)}
.status-upcoming{color:#f6eaff;background:#6a27d5}
.status-full{color:#fff;background:#5b6b7a}
.mini-register{padding:7px 10px;border:1px solid rgba(181,255,37,.8);border-radius:7px;background:linear-gradient(135deg,#ccff54,#7de600);color:#152205;font-size:9px;font-weight:900;white-space:nowrap;cursor:pointer}
/* 3. Livik now has a real cover; keep its card text readable on the bright sky */
.art-livik{background:url('../assets/livik.jpg') center 30%/cover no-repeat}
.art-livik::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,40,30,.18),rgba(3,10,18,.25) 45%,rgba(2,8,14,.94) 78%),linear-gradient(120deg,rgba(20,180,140,.14),transparent 55%)}
/* 4. ONE Discover grid, 4 real tournaments = 4 across on desktop, 2x2 tablet, 1 mobile */
.tournament-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
@media (max-width:1180px){.tournament-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.tournament-grid{grid-template-columns:1fr}}
/* 9. Real bracket (registered squads, registration order) */
.format-panel{grid-template-columns:1fr}
.dz-bracket{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;margin-top:12px}
.dz-bracket-col h4{margin:0 0 8px;font:700 11px var(--font-body);letter-spacing:1px;text-transform:uppercase;color:#c6d9e4}
.dz-match{background:rgba(9,22,35,.75);border:1px solid rgba(148,180,210,.2);border-radius:8px;padding:7px 9px;margin-bottom:8px;font-size:11px;line-height:1.45}
.dz-match span{display:block;overflow-wrap:anywhere}
.dz-match i{display:block;color:#8fa8bd;font-style:normal;font-size:9px;text-align:center;margin:2px 0}
.dz-match.dz-final{border-color:rgba(255,194,26,.6);background:rgba(58,44,16,.5)}
.dz-bracket-note{font-size:11px;color:#9db4c6;margin:8px 0 0}
.format-copy .dz-bracket-note{margin-top:10px}
/* 10. Squad panel: show figures from the top, not cropped mid-body */
.squad-panel{background:linear-gradient(90deg,rgba(7,21,27,.95) 0%,rgba(8,27,35,.82) 48%,rgba(5,15,22,.3) 100%),url('../assets/squad.jpg') right top/cover no-repeat,linear-gradient(135deg,#1b4225,#091d25)}
/* 13. Blog grid: 2 columns on desktop, 16:9 covers so titles are visible */
.news-band .news-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.news-band .news-image{height:auto;aspect-ratio:16/9}
@media (max-width:600px){.news-band .news-cards{grid-template-columns:1fr}}
/* 12. Live-activity feed replaces the fake video player */
.highlights-panel .activity-list{display:flex;flex-direction:column;gap:4px}
.highlights-panel .activity-item{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid rgba(129,180,208,.12)}
.highlights-panel .activity-item:last-child{border-bottom:0}
.highlights-panel .activity-copy{flex:1;min-width:0}
.highlights-panel .activity-copy strong{font-size:12px;display:block}
.highlights-panel .activity-copy small{color:#9db4c6;font-size:11px}
.highlights-panel .activity-time{font-size:10px;color:#8fa8bd;white-space:nowrap}
/* 17. Mobile (390px) — no horizontal overflow, no overlap */
@media (max-width:640px){
  .card-foot{flex-wrap:wrap}
  .mini-register{white-space:normal;text-align:center}
  .dz-bracket{grid-template-columns:1fr}
  .featured-event .event-countdown{flex-wrap:wrap}
  .countdown-clock{flex-wrap:wrap}
  .hero-cta .button-large{min-height:44px;padding:0 18px}
  .dashboard-preview .player-card{grid-template-columns:56px 1fr;grid-template-rows:auto auto}
  .dashboard-preview .player-card .topup-button{grid-column:1/-1;justify-self:stretch;text-align:center}
}
@media (max-width:390px){
  .hero-stats{grid-template-columns:repeat(3,1fr);gap:0;padding:8px 2px}
  .stat-row strong{font-size:19px}
  .tournament-card{min-height:260px}
  .card-art .dz-start-countdown{font-size:10px;padding:4px 7px;max-width:calc(100% - 96px)}
  .steps-row{grid-template-columns:repeat(2,1fr)}
  .news-band .news-image{aspect-ratio:16/9}
}
/* Feature grid (desktop): Build Your Squad + Tournament Format share one
   balanced 2-col row; Most Entered spans the full row below. Explicit
   placement matters: the old rule let .format-panel span 1/-1, which made
   grid auto-placement put the leaderboard on a THIRD row and leave the
   second column of the squad row as a large empty dark half. */
@media (min-width:901px){
  .feature-grid{grid-template-columns:1fr 1fr}
  .squad-panel{grid-column:1;grid-row:1}
  .format-panel{grid-column:2;grid-row:1}
  .leaderboard-panel{grid-column:1/-1;grid-row:2}
}
/* The format panel is half-width on desktop now, so its 3-col bracket
   stacks below 1180px instead of squeezing into ~140px columns. */
@media (max-width:1180px){.dz-bracket{grid-template-columns:1fr}}

/* ===== Admin UI fixes (2026-11-25 audit) ===== */
/* 3. Modals: flex column, 90vh max. The FIELDS scroll inside
   .dz-modal-body; the footer sits in normal flow below it, so it can
   never cover the last input (the old sticky footer inside the
   scrolling form did exactly that on the Add User modal). */
.dz-modal-card{display:flex;flex-direction:column;max-height:90vh;max-height:90dvh;overflow:hidden}
.dz-modal-card h2{flex:none}
.dz-modal-card form{display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden}
.dz-modal-body{flex:1;min-height:0;overflow-y:auto;padding:2px 4px 14px;scrollbar-width:thin}
.dz-modal-footer{position:static;display:flex;justify-content:flex-end;gap:8px;background:#0f253a;border-top:1px solid rgba(130,180,215,.16);padding:12px 4px 2px;flex:none}
.dz-modal-footer .btn{margin-top:0}
/* 4. Panel footer */
.dz-panel-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:16px 4px 8px;color:#7d93a5;font-size:12px;border-top:1px solid rgba(130,180,215,.12);margin-top:18px}
.dz-panel-footer a{color:#a6ff24;text-decoration:none}
/* 8. Pagination */
.dz-pager{display:flex;gap:6px;align-items:center;justify-content:flex-end;margin-top:10px;flex-wrap:wrap}
.dz-pager .btn[aria-current="page"]{background:#a6ff24;color:#081523;border-color:#a6ff24}
/* 12. No awkward wrapping: badges, fees, dates stay on one line; name+thumb flex */
.dz-table .dz-nowrap{white-space:nowrap}
.dz-table .t-name-cell{display:flex;align-items:center;gap:8px;min-width:200px}
.dz-table .t-name-cell strong{line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dz-table .t-status-col{min-width:120px}
.dz-table td .pill,.status-pill{white-space:nowrap}
.dz-table td small{color:#9db4c6}
/* 17. Full payment instructions */
.dz-details summary{cursor:pointer;color:#a6ff24;font-size:12.5px;font-weight:600}
.dz-details div{font-size:13px;color:#dbe9f2;margin-top:6px;max-width:520px}
/* 22. Blog cover radio: inline label beside each radio */
.dz-radio-row{display:flex;gap:18px;flex-wrap:wrap;margin:6px 0}
.dz-radio-row label{display:inline-flex !important;align-items:center;gap:6px;margin:0 !important;font-weight:500}
.dz-radio-row input{width:auto !important}
/* 1. No-key HTML editor (replaces TinyMCE) */
.dz-rich-toolbar{display:flex;gap:4px;flex-wrap:wrap;margin:6px 0}
.dz-rich-toolbar button{background:#12283a;color:#eaf6ff;border:1px solid #24404f;border-radius:6px;padding:5px 9px;font-size:12px;font-weight:700;cursor:pointer}
.dz-rich-toolbar button:hover{border-color:#a6ff24}
.dz-rich-editor{min-height:220px;background:#0b1a26;border:1px solid #24404f;border-radius:8px;padding:10px 12px;color:#eaf6ff;overflow:auto}
.dz-rich-editor:focus{outline:2px solid rgba(166,255,36,.5)}
.dz-rich-editor img{max-width:100%}
/* 24. Ticket chat: full width, scrollable messages, sticky reply */
.dz-chat{max-width:none;max-height:52vh;overflow-y:auto;padding-right:6px}
.dz-ticket-reply{position:sticky;bottom:0;background:#0f253a;padding-top:10px}
.dz-ticket-head{flex-wrap:wrap;gap:8px}
.dz-ticket-head h2{overflow-wrap:anywhere}

/* ===== User-panel UI fixes (2026-11-25 audit) ===== */
/* 3. Sidebar: nav scrolls; bottom links (Back / Logout) stay reachable.
   The sidebar profile card was removed 2026-11-26 (dashboard item 2) —
   the header chip already shows name + balance. */
.panel-sidebar{overflow:hidden}
.panel-sidebar .sidebar-nav{flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin}
.panel-sidebar .sidebar-divider,.panel-sidebar .sidebar-back-link{flex:none}
/* 8. Notify Me: high contrast — dark text on lime; disabled = white on dark */
.mini-register.mini-ghost{background:linear-gradient(135deg,#ccff54,#7de600) !important;color:#152205 !important;border-color:#a6ff24 !important;box-shadow:none}
.mini-register.mini-ghost:disabled{background:#12283a !important;color:#eaf6ff !important;border-color:#24404f !important;opacity:1}
/* 13. Top-up method cards: radio INSIDE the card, whole card clickable */
.dz-pay-methods{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0}
.dz-pay-opt{cursor:pointer;border:1px solid #24404f;border-radius:10px;padding:12px 14px;display:flex;gap:10px;align-items:flex-start;background:#0b1a26;flex:1;min-width:180px}
.dz-pay-opt input{width:auto !important;margin-top:3px;accent-color:#a6ff24}
.dz-pay-opt:has(input:checked){border-color:#a6ff24;background:rgba(166,255,36,.07)}
.dz-pay-opt strong{color:#eaf6ff}
.dz-pay-opt small{color:#9db4c6}
/* 17. Profile: save buttons stay visible (sticky) at 794px viewport */
.dz-sticky-save{position:sticky;bottom:12px;z-index:2;box-shadow:0 8px 24px rgba(0,0,0,.45)}

/* ===== Premium polish pass (2026-11-25) — dark/lime identity kept ===== */

/* --- Landing: hero depth + glass stat card --- */
.hero::after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(ellipse 90% 60% at 50% 108%,rgba(164,255,20,.10),transparent 55%),radial-gradient(ellipse 60% 50% at 85% 0%,rgba(88,101,242,.12),transparent 60%)}
.hero-stats{background:rgba(6,17,28,.72);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(181,255,37,.22);box-shadow:0 18px 44px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.08)}
.hero-stats strong{font-size:22px}
@media (max-width:900px){.hero-stats{background:rgba(6,17,28,.82);backdrop-filter:blur(12px)}}

/* --- Landing: featured card polish (sits clear of the hero now) --- */
.featured-event{box-shadow:0 24px 60px rgba(0,0,0,.55),0 0 0 1px rgba(255,194,26,.14),0 0 44px rgba(255,194,26,.06),inset 0 1px 0 rgba(255,255,255,.06);transition:box-shadow .3s ease,border-color .3s ease}
.featured-event:hover{box-shadow:0 28px 70px rgba(0,0,0,.6),0 0 0 1px rgba(181,255,37,.35),0 0 54px rgba(164,255,20,.10),inset 0 1px 0 rgba(255,255,255,.08)}

/* --- Tournament cards: hover lift + cover glow (landing already had it
     in styles.css; panel cards use the app.css copy, so mirror it here) --- */
.panel-main .tournament-card{transition:transform .3s ease,border-color .3s ease,box-shadow .3s ease}
.panel-main .tournament-card:hover{transform:translateY(-6px);border-color:rgba(174,255,38,.8);box-shadow:0 22px 48px rgba(0,0,0,.55),0 0 28px rgba(139,255,18,.14)}
.panel-main .tournament-card:hover .card-art{filter:brightness(1.08) saturate(1.1)}

/* --- User-panel Tournaments: premium treatment (2026-11-25) --- */
/* Glass badges. NOTE: status_badge() emits .status-open for LIVE, which
   exists only in styles.css — panel pages never load it, so the LIVE
   badge had no background at all in the panel. Defined here to match
   landing; upcoming/full get translucent fills + blur. */
.status-open{color:#0d1f05;background:linear-gradient(135deg,#d6ff67,#83e900);box-shadow:0 0 12px rgba(164,255,0,.35)}
.panel-main .card-art .status-pill{backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.3);letter-spacing:.6px;padding:5px 9px;font-size:10px}
.panel-main .status-live{background:rgba(242,52,53,.82)}
.panel-main .status-upcoming{background:rgba(106,39,213,.82)}
.panel-main .status-full{background:rgba(91,107,122,.85)}
/* Richer cards: deeper shadow, stronger bottom gradient so the title
   stays readable over bright covers, roomier meta rows. */
.panel-main .tournament-card{box-shadow:0 12px 30px rgba(0,0,0,.45)}
.panel-main .tournament-card:hover{box-shadow:0 24px 52px rgba(0,0,0,.6),0 0 32px rgba(139,255,18,.16)}
.panel-main .tournament-card-body{padding:14px;background:linear-gradient(180deg,rgba(2,8,14,0),rgba(2,8,14,.92) 42%)}
.panel-main .tournament-card h3{font-size:21px}
.panel-main .card-sub{font-size:11px;margin:4px 0 9px}
.panel-main .prize-line{font-size:12px;gap:7px}
.panel-main .prize-line b{font-size:15px}
.panel-main .prize-line.secondary{font-size:11px}
.panel-main .card-foot{font-size:11px;padding-top:10px}
.panel-main .mini-register{transition:transform .2s ease,box-shadow .2s ease}
.panel-main .mini-register:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 0 18px rgba(166,255,36,.45)}
.panel-main .mini-ghost:not(:disabled):hover{box-shadow:0 0 14px rgba(147,197,253,.3)}
/* Page rhythm: eyebrow + title heads, subtle background depth so the
   page doesn't feel flat dark. */
.panel-view[data-view-section="tournaments"]{background:radial-gradient(760px 280px at 88% -60px,rgba(166,255,36,.06),transparent 62%),radial-gradient(680px 260px at -40px 0,rgba(93,171,217,.07),transparent 58%)}
.dz-section-head{margin:26px 0 14px}
.dz-section-head:first-child{margin-top:2px}
.dz-eyebrow{margin:0 0 4px;color:#a6ff24;font-size:11px;font-weight:800;letter-spacing:2px;text-transform:uppercase}
.dz-section-head h2{margin:0;font-size:22px}
/* My Registrations as premium rows (cover thumb + status + chips),
   not a plain table. */
.dz-reg-list{display:flex;flex-direction:column;gap:12px}
.dz-reg-row{display:flex;gap:14px;align-items:stretch;background:linear-gradient(135deg,rgba(20,42,60,.85),rgba(9,22,35,.92));border:1px solid rgba(93,171,217,.28);border-radius:14px;padding:12px;transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease}
.dz-reg-row:hover{transform:translateY(-2px);border-color:rgba(174,255,38,.55);box-shadow:0 14px 30px rgba(0,0,0,.4)}
.dz-reg-thumb{flex:0 0 132px;min-height:112px;border-radius:10px;background-size:cover;background-position:center 25%;background-color:#0b1a26}
.dz-reg-main{flex:1;min-width:0}
.dz-reg-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.dz-reg-top h3{margin:0;font-size:17px;line-height:1.2}
.dz-reg-meta{margin:5px 0 0;color:#c2cfd8;font-size:12px}
.dz-reg-team{margin:7px 0 0;font-size:12.5px;color:#eaf6ff;line-height:1.5}
.dz-reg-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.dz-reg-chips span{background:rgba(9,22,35,.85);border:1px solid rgba(148,180,210,.22);border-radius:999px;padding:4px 10px;font-size:11px;color:#c2cfd8;white-space:nowrap}
/* Designed empty state (icon + inviting copy + action). */
.dz-empty-state{text-align:center;padding:36px 20px;border:1px dashed rgba(148,180,210,.35);border-radius:16px;background:radial-gradient(420px 170px at 50% 0%,rgba(166,255,36,.08),transparent 70%)}
.dz-empty-icon{display:block;font-size:38px;margin-bottom:8px}
.dz-empty-state h3{margin:0 0 6px;font-size:19px}
.dz-empty-state p{margin:0 auto 16px;max-width:520px;color:#9db4c6;font-size:13px;line-height:1.6}
@media (max-width:640px){.dz-reg-row{flex-direction:column}.dz-reg-thumb{flex:none;height:150px;min-height:0}}

/* --- FAQ + blog cards: subtle borders, hover lift --- */
.faq-item{border:1px solid rgba(130,180,215,.16);border-radius:12px;transition:border-color .25s ease,background .25s ease}
.faq-item:hover{border-color:rgba(181,255,37,.35)}
.news-band .news-card{border:1px solid rgba(130,180,215,.16);border-radius:14px;overflow:hidden;transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease}
.news-band .news-card:hover{transform:translateY(-4px);border-color:rgba(181,255,37,.45);box-shadow:0 18px 40px rgba(0,0,0,.5)}
.news-band .news-card h3{padding:0 4px}
.news-band .news-card small{padding:0 4px 10px;display:block}

/* --- Buttons: consistent hover states --- */
.btn{transition:background .18s ease,border-color .18s ease,transform .18s ease,filter .18s ease}
.btn:hover{border-color:#a6ff24;transform:translateY(-1px)}
.btn-lime:hover{filter:brightness(1.1)}
.btn-red:hover{border-color:#e5484d;filter:brightness(1.1)}
.button{transition:transform .2s ease,filter .2s ease,border-color .2s ease,box-shadow .2s ease}
.button:hover{transform:translateY(-1px);filter:brightness(1.08)}

/* --- KPI cards: icon + label hierarchy, hover lift --- */
.kpi-card{transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease}
.kpi-card:hover{transform:translateY(-3px);border-color:rgba(181,255,37,.4);box-shadow:0 14px 32px rgba(0,0,0,.45)}
.kpi-icon{font-size:20px}
.kpi-icon span{font-size:20px;line-height:1}

/* --- Tables: cleaner header + row hover --- */
.dz-table thead th{border-bottom:1px solid rgba(130,180,215,.22);background:rgba(9,22,35,.55)}
.dz-table tbody tr{transition:background .15s ease}
.dz-table tr:hover td{background:rgba(166,255,36,.05)}

/* --- Inputs: visible focus rings everywhere --- */
.dz-ajax-form input:focus,.dz-ajax-form select:focus,.dz-ajax-form textarea:focus,.dz-table-search:focus{outline:2px solid rgba(166,255,36,.5);outline-offset:1px;border-color:#a6ff24}
.dz-ajax-form input:hover,.dz-ajax-form select:hover,.dz-ajax-form textarea:hover{border-color:rgba(166,255,36,.45)}

/* --- Empty states: friendly centred treatment --- */
.dz-empty{border:1px dashed rgba(130,180,215,.28);border-radius:10px;padding:22px 16px;margin:10px 0}

/* --- Webhook copy chips (admin Payment Methods) --- */
.dz-webhooks{display:flex;flex-direction:column;gap:8px;margin:10px 0 4px}
.dz-webhook-row{display:flex;align-items:center;gap:10px;background:#0b1a26;border:1px solid rgba(130,180,215,.2);border-radius:10px;padding:8px 10px;flex-wrap:wrap}
.dz-webhook-gw{font-size:12px;font-weight:800;color:#ffd166;min-width:74px}
.dz-webhook-row code{flex:1;min-width:200px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;color:#bfe9ff;overflow-wrap:anywhere;background:none;border:0;padding:0}
.dz-webhook-row .btn{flex:none}

/* --- Mobile (390px): tables scroll horizontally inside their card --- */
@media (max-width:640px){
  .panel-main .card{overflow-x:auto}
  .panel-main .card .dz-table{min-width:680px}
  .dz-modal-card{width:calc(100vw - 24px);max-width:none}
  .modal-backdrop{padding:12px}
  .dz-webhook-row code{min-width:0;flex-basis:100%;order:2}
}

/* --- In-page confirm dialog (defect 2, 2026-11-25) --- */
.dz-confirm-card{max-width:460px;width:calc(100% - 32px)}
.dz-confirm-card h3{margin:2px 0 4px}
#dzConfirmMsg{margin:6px 0 4px;overflow-wrap:anywhere}
.dz-confirm-card .dz-modal-footer{margin-top:14px}

/* ===== Premium invoice pages (2026-11-25) — user detail + list ===== */
/* Detail page: invoice-document feel. Amount hero, visual stepper,
   styled "How to pay" callout, drag-and-drop proof zone. All copy,
   amounts, statuses and form behaviour unchanged. */
.dz-invoice{overflow:hidden;background:linear-gradient(180deg,rgba(20,42,60,.5),rgba(9,22,35,.9)),#0d1f2e}
.dz-inv-back{margin:0 0 14px}
.dz-inv-top{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap}
.dz-inv-eyebrow{margin:0 0 4px;color:#a6ff24;font-size:11px;font-weight:800;letter-spacing:2px;text-transform:uppercase}
.dz-inv-no{margin:0;font-size:24px;line-height:1.2;overflow-wrap:anywhere}
.dz-inv-billed{margin:6px 0 0;color:#9db4c6;font-size:13px}
.dz-inv-billed strong{color:#eaf6ff}
.dz-inv-status{font-size:13px;padding:7px 16px;flex:none}
.dz-inv-hero{margin:18px 0 12px;background:linear-gradient(135deg,rgba(166,255,36,.12),rgba(93,171,217,.08)),#0b1a26;border:1px solid rgba(166,255,36,.28);border-radius:14px;padding:20px 22px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
.dz-inv-amount-label{display:block;font-size:11px;font-weight:800;letter-spacing:2px;text-transform:uppercase;color:#9db4c6;margin-bottom:4px}
.dz-inv-amount{font-size:36px;font-weight:900;letter-spacing:-.5px;line-height:1;color:#eaf6ff;font-variant-numeric:tabular-nums}
.dz-inv-method{display:inline-flex;align-items:center;gap:8px;background:rgba(9,22,35,.8);border:1px solid rgba(148,180,210,.3);border-radius:999px;padding:9px 16px;font-size:13.5px;font-weight:700;color:#eaf6ff;white-space:nowrap}
.dz-inv-method-icon{font-size:16px}
.dz-inv-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.dz-inv-meta div{background:rgba(9,22,35,.7);border:1px solid rgba(130,180,215,.16);border-radius:10px;padding:10px 12px;min-width:0}
.dz-inv-meta span{display:block;font-size:11px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:#9db4c6;margin-bottom:3px}
.dz-inv-meta strong{font-size:13.5px;font-weight:600;color:#eaf6ff;overflow-wrap:anywhere}
/* Status stepper: numbered circles on a connector line. Done = lime
   check, current = glowing lime ring (pulsing), todo = muted. */
.dz-inv-steps{display:flex;margin:24px 0 6px}
.dz-inv-step{flex:1;text-align:center;position:relative;min-width:0}
.dz-inv-step::before{content:'';position:absolute;top:17px;left:-50%;width:100%;height:2px;background:#24404f}
.dz-inv-step:first-child::before{display:none}
.dz-inv-step.done::before,.dz-inv-step.current::before{background:#a6ff24}
.dz-inv-step-dot{width:34px;height:34px;border-radius:50%;margin:0 auto 8px;display:flex;align-items:center;justify-content:center;background:#12283a;border:2px solid #24404f;color:#9db4c6;font-weight:800;font-size:14px;position:relative;z-index:1}
.dz-inv-step.done .dz-inv-step-dot{background:#a6ff24;border-color:#a6ff24;color:#081523}
.dz-inv-step.current .dz-inv-step-dot{border-color:#a6ff24;color:#a6ff24;background:rgba(166,255,36,.12);box-shadow:0 0 0 4px rgba(166,255,36,.18),0 0 18px rgba(166,255,36,.35);animation:dzStepPulse 2s ease-in-out infinite}
@keyframes dzStepPulse{0%,100%{box-shadow:0 0 0 4px rgba(166,255,36,.18),0 0 18px rgba(166,255,36,.35)}50%{box-shadow:0 0 0 7px rgba(166,255,36,.10),0 0 24px rgba(166,255,36,.5)}}
.dz-inv-step.bad .dz-inv-step-dot{background:#e5484d;border-color:#e5484d;color:#fff}
.dz-inv-step.bad::before{background:#e5484d}
.dz-inv-step-label{display:block;font-size:12px;font-weight:700;color:#9db4c6}
.dz-inv-step.done .dz-inv-step-label,.dz-inv-step.current .dz-inv-step-label{color:#eaf6ff}
.dz-inv-step.bad .dz-inv-step-label{color:#ff8a8a}
/* "How to pay" as a styled callout, not a plain paragraph. */
.dz-inv-callout{display:flex;gap:12px;background:rgba(255,209,102,.07);border:1px solid rgba(255,209,102,.3);border-radius:12px;padding:16px;margin:18px 0}
.dz-inv-callout-icon{font-size:24px;line-height:1.2;flex:none}
.dz-inv-callout h3{margin:0 0 6px;font-size:15.5px}
.dz-inv-callout p{margin:0;font-size:13.5px;line-height:1.65;color:#dbe9f2}
/* Submitted proof: thumbnail + TRX ID in a tidy box. */
.dz-inv-proof{display:flex;gap:14px;align-items:flex-start;background:rgba(9,22,35,.7);border:1px solid rgba(130,180,215,.2);border-radius:12px;padding:14px;margin:18px 0;flex-wrap:wrap}
.dz-inv-proof img{max-width:260px;width:100%;border-radius:10px;border:1px solid rgba(130,180,215,.25)}
.dz-inv-proof h3{margin:0 0 6px;font-size:15px}
.dz-inv-proof p{margin:0;font-size:13.5px;color:#dbe9f2}
/* Proof form: distinct section above a divider, drop zone, glowing
   submit, quiet danger-outline cancel. */
.dz-inv-proof-form{margin-top:20px;border-top:1px solid rgba(130,180,215,.16);padding-top:18px}
.dz-inv-proof-form h3{margin:0 0 4px;font-size:17px}
.dz-drop{display:block;border:2px dashed rgba(148,180,210,.45);border-radius:12px;padding:22px 16px;text-align:center;cursor:pointer;transition:border-color .2s ease,background .2s ease;margin-top:4px;background:rgba(9,22,35,.55)}
.dz-drop:hover{border-color:rgba(166,255,36,.7);background:rgba(166,255,36,.05)}
.dz-drop.is-dragover{border-color:#a6ff24;background:rgba(166,255,36,.09);border-style:solid}
.dz-drop.has-file{border-color:#a6ff24;border-style:solid;background:rgba(166,255,36,.06)}
.dz-drop-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.dz-drop-icon{display:block;font-size:26px;margin-bottom:6px}
.dz-drop-title{display:block;font-weight:700;font-size:13.5px;color:#eaf6ff}
.dz-drop-hint{display:block;font-size:12px;color:#9db4c6;margin-top:3px}
.dz-drop-name{display:block;margin-top:10px;font-size:13px;font-weight:700;color:#a6ff24;overflow-wrap:anywhere}
.dz-inv-submit{width:100%;padding:13px;font-size:14.5px;margin-top:14px;box-shadow:0 8px 26px rgba(166,255,36,.28)}
.dz-inv-submit:hover{box-shadow:0 10px 32px rgba(166,255,36,.45)}
.btn-danger-quiet{background:transparent;color:#ff8a8a;border:1px solid rgba(229,72,77,.4)}
.btn-danger-quiet:hover{border-color:#e5484d;background:rgba(229,72,77,.1);filter:none}
/* Admin review block on the same page. */
.dz-inv-admin{margin-top:20px;border-top:1px solid rgba(130,180,215,.16);padding-top:16px;display:flex;gap:10px;flex-wrap:wrap;align-items:center}
/* List view: premium rows matching the My Registrations rows. */
.dz-inv-list{display:flex;flex-direction:column;gap:10px}
.dz-inv-row{display:flex;align-items:center;gap:14px;background:linear-gradient(135deg,rgba(20,42,60,.85),rgba(9,22,35,.92));border:1px solid rgba(93,171,217,.26);border-radius:12px;padding:13px 14px;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.dz-inv-row:hover{transform:translateY(-2px);border-color:rgba(174,255,38,.55);box-shadow:0 12px 28px rgba(0,0,0,.4)}
.dz-inv-row-icon{flex:none;width:42px;height:42px;border-radius:10px;background:rgba(166,255,36,.12);border:1px solid rgba(166,255,36,.3);display:flex;align-items:center;justify-content:center;font-size:20px}
.dz-inv-row-main{flex:1;min-width:0}
.dz-inv-row-main strong{display:block;font-size:14.5px;overflow-wrap:anywhere}
.dz-inv-row-main small{display:block;color:#9db4c6;font-size:12px;margin-top:2px}
.dz-inv-row-reason{color:#ff8a8a !important}
.dz-inv-row-method{color:#c2cfd8;font-size:12.5px;white-space:nowrap;flex:none}
.dz-inv-row-amount{font-size:16px;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums;flex:none}
.dz-inv-row .pill{flex:none}
.dz-inv-row .btn{flex:none}
@media (max-width:640px){
  .dz-inv-amount{font-size:29px}
  .dz-inv-meta{grid-template-columns:1fr 1fr}
  .dz-inv-step-label{font-size:11px}
  .dz-inv-row{flex-wrap:wrap}
  .dz-inv-row-method{flex-basis:100%;order:4}
  .dz-inv-row-amount{margin-left:auto}
}

/* ===== Panel shell — slim sidebar scrollbar + sticky footer (2026-11-26) ===== */
/* Footer is NOT fixed (user's call, 2026-11-26) — and it must still sit at
   the viewport bottom on short pages. Classic sticky-footer flex pattern:
   .panel-main is a full-height flex column (min-height:100vh/100dvh) and
   the footer, its last child, has margin-top:auto, so short pages push it
   to the bottom while long pages let it sit naturally after the content.
   Premium look kept. */

/* --- Sidebar menu scrollbar: slim, rounded, lime on hover, invisible
   until the user hovers the nav (the chunky always-visible default bar is
   what looked bad). Firefox uses scrollbar-width/color; Chromium/Safari
   use the ::-webkit-scrollbar rules. The nav is the only scrolling part
   of the sidebar (.panel-sidebar itself is overflow:hidden and the
   profile chip is pinned at its bottom). --- */
.panel-sidebar .sidebar-nav{scrollbar-width:thin;scrollbar-color:transparent transparent}
.panel-sidebar .sidebar-nav:hover{scrollbar-color:rgba(166,255,36,.45) transparent}
.panel-sidebar .sidebar-nav::-webkit-scrollbar{width:6px}
.panel-sidebar .sidebar-nav::-webkit-scrollbar-track{background:transparent}
.panel-sidebar .sidebar-nav::-webkit-scrollbar-thumb{background:transparent;border-radius:999px;border:1px solid transparent;background-clip:padding-box}
.panel-sidebar .sidebar-nav:hover::-webkit-scrollbar-thumb{background:rgba(166,255,36,.45);background-clip:padding-box;border:1px solid transparent}
.panel-sidebar .sidebar-nav::-webkit-scrollbar-thumb:hover{background:#a6ff24}

/* --- Sticky footer (flex, NOT fixed): .panel-main is at least
   viewport-tall and a flex column; margin-top:auto on the footer absorbs
   all free space, so the footer rests at the viewport bottom on short
   pages and right after the content on long pages. No position:fixed or
   position:sticky anywhere on the footer. --- */
.panel-main{min-height:100vh;min-height:100dvh}
.dz-panel-footer{position:relative;flex-shrink:0;margin:auto 0 0;padding:14px 26px;display:flex;justify-content:space-between;align-items:center;gap:6px 20px;flex-wrap:wrap;background:linear-gradient(180deg,rgba(7,17,29,.93),rgba(4,10,18,.97));border-top:0;color:#8ea3b4;font-size:12px}
.dz-panel-footer::before{content:'';position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,rgba(166,255,36,.55) 30%,rgba(166,255,36,.55) 70%,transparent)}
.dz-panel-footer span:first-child::before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:#a6ff24;box-shadow:0 0 8px rgba(166,255,36,.7);margin-right:8px;vertical-align:1px}
.dz-panel-footer span:first-child{color:#9db4c6}
.dz-panel-footer a{color:#a6ff24;text-decoration:none;font-weight:600;transition:color .18s ease,text-shadow .18s ease}
.dz-panel-footer a:hover{color:#d6ff60;text-decoration:underline;text-shadow:0 0 12px rgba(166,255,36,.45)}
/* Mobile: footer padding shrinks with the content. */
@media (max-width:920px){
  .dz-panel-footer{padding:12px 16px}
}
@media (max-width:640px){
  .dz-panel-footer{font-size:11.5px}
}

/* ===== User-panel Dashboard polish (2026-11-26) — 9 items ===== */
/* 1. Active nav tab: dark bg + neon left-bar highlight + neon text.
   panel.css gives it a full neon gradient fill — too overpowering.
   app.css loads after panel.css, so these equal-specificity rules win. */
.nav-item.active{background:rgba(181,255,37,.09);color:#b5ff28;border-color:rgba(181,255,37,.22);box-shadow:inset 3px 0 0 #b5ff28;font-weight:700}
.nav-item.active .nav-ico,.nav-item.active .nav-chevron{color:#b5ff28}
/* 3. Nav icons: fixed-width centred slot so every icon aligns on one
   column with uniform weight (the emoji glyphs differ in width). */
.nav-item .nav-ico{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;flex:none;font-size:15px;line-height:1;text-align:center}
/* 4. One explicit metric size for every KPI value (24px / 800). Root-cause
   note (follow-up 2026-11-26): no competing rule for the wallet value
   exists — all four dashboard values are <strong class="kpi-value"> in one
   .kpi-grid, and the only size rules are panel.css .kpi-value (24px/800)
   and this rule. The sizing was split across two sheets (size here,
   weight/family/spacing in panel.css), so nothing in one place proved
   them identical. This rule now single-sources EVERY typographic property
   in the later-loaded sheet, so all four metrics compute identically. */
.kpi-grid .kpi-value{font-size:24px;font-weight:800;line-height:1.2;letter-spacing:-.5px;font-variant-numeric:tabular-nums}
/* 6. One icon shape for every stat icon: rounded square, same box. */
.kpi-grid .kpi-icon{width:46px;height:46px;border-radius:12px}
/* 7. Dashboard tournament rows: name + gold UC pill + muted meta icons. */
.dz-dash-tour{padding:12px 0;border-bottom:1px solid rgba(148,180,210,.12)}
.dz-dash-tour:last-child{border-bottom:0;padding-bottom:2px}
.dz-dash-tour-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.dz-dash-tour-name{font-size:15px;font-weight:800;color:#eaf6ff}
.dz-uc-pill{flex:none;font-size:11px;font-weight:800;letter-spacing:.3px;color:#ffd166;background:rgba(255,194,26,.14);border:1px solid rgba(255,194,26,.42);border-radius:999px;padding:3px 9px;white-space:nowrap}
.dz-dash-tour-meta{margin-top:5px;font-size:12px;color:#8fa6b8;display:flex;flex-wrap:wrap;gap:4px 14px}
.dz-dash-tour-meta .dz-meta-ico{opacity:.7}
/* 8. "View all notifications": low-opacity lime CTA so it reads as a button. */
.btn-soft-lime{background:rgba(166,255,36,.12);border-color:rgba(166,255,36,.38);color:#c8ff5e}
.btn-soft-lime:hover{background:rgba(166,255,36,.2);border-color:#a6ff24;color:#d6ff60;filter:none}
/* 9. Dashboard UC banner: stronger low-opacity amber tint so it stands
   out from generic dark UI (the base .dz-uc-note is barely visible). */
.dz-uc-note--amber{background:rgba(255,170,0,.14);border-color:rgba(255,193,60,.42);color:#ffcf5c}

/* ===== User-panel Tournaments polish (2026-11-26) — 7 items ===== */
/* 1. Avatar-stack rosters: names only in the visible text (no 10-digit
   IDs); each circle's hover tooltip carries full name + PUBG ID, and
   the leader gets a gold ring + crown badge. */
.dz-reg-team{display:flex;align-items:center;gap:10px;margin:10px 0 0;font-size:12.5px;line-height:1.45}
.dz-avatar-stack{display:inline-flex;flex:none}
.dz-avatar{position:relative;width:28px;height:28px;border-radius:50%;background:rgba(181,255,37,.14);border:1.5px solid rgba(181,255,37,.45);color:#c8ff5e;display:inline-grid;place-items:center;font-size:11px;font-weight:800;margin-left:-7px;cursor:default}
.dz-avatar:first-child{margin-left:0}
.dz-avatar.is-leader{border-color:#ffd166;background:rgba(255,194,26,.18);color:#ffd166}
.dz-avatar-crown{position:absolute;top:-8px;right:-5px;font-size:10px;font-style:normal;line-height:1}
.dz-team-names{color:#c2cfd8;min-width:0}
/* 2. Status-tag row: wider horizontal gaps so the chips breathe. */
.dz-reg-chips{gap:8px 12px}
/* 3. "Registered" pill: solid low-opacity green fill + stronger border
   so it reads as a status, not a hairline outline. Scoped to the
   registration rows; other pills are untouched. */
.dz-reg-top .pill-green{background:rgba(34,197,94,.32);border-color:rgba(74,222,128,.55);color:#86efac;font-weight:800}
/* 4. Stronger bottom scrim on card covers so white titles stay legible
   over bright image areas (the gradient starts darker and earlier). */
.tournament-card-body{background:linear-gradient(180deg,rgba(2,8,14,0) 0%,rgba(2,8,14,.55) 18%,rgba(2,8,14,.94) 45%)}
.panel-main .tournament-card-body{background:linear-gradient(180deg,rgba(2,8,14,0) 0%,rgba(2,8,14,.55) 18%,rgba(2,8,14,.94) 45%)}
/* 5. "Slots Full" / "Started": muted gray disabled state — clearly not
   an action, unlike the lime "Registered" state. */
.mini-register.mini-full{background:#1c2b38;border-color:#33475a;color:#7d93a5;box-shadow:none;cursor:not-allowed}
/* 6. Countdown pill: darker fill for readability over bright skies. */
.dz-start-countdown{background:rgba(4,10,18,.78);border-color:rgba(255,255,255,.28)}
/* 7. Section overlines sit closer to their headings so they group. */
.dz-eyebrow{margin:0 0 2px}
.dz-section-head h2{line-height:1.15}

/* ===== User-panel Wallet polish (2026-11-26) — 8 items ===== */
/* 1+2. Balance card: tighter label→value→note stack, and real secondary
   metrics (total spent / pending top-ups / tournaments joined — all
   computed from the user's own ledger) filling the empty right side. */
.dz-balance-card{justify-content:space-between}
.dz-balance-main .kpi-label{color:#8fa6b8;margin-bottom:2px}
.dz-balance-main .kpi-value{margin:0 0 3px}
.dz-balance-side{display:flex;gap:28px;margin-left:auto;padding-left:28px;border-left:1px solid rgba(148,180,210,.16);align-self:center}
.dz-balance-stat span{display:block;font-size:11px;color:#8fa6b8;font-weight:600}
.dz-balance-stat strong{display:block;font-size:16px;font-weight:800;margin-top:3px;white-space:nowrap;font-variant-numeric:tabular-nums}
@media (max-width:640px){.dz-balance-card{flex-direction:column;align-items:flex-start}.dz-balance-side{margin:14px 0 0;padding:14px 0 0;border-left:0;border-top:1px solid rgba(148,180,210,.16);width:100%;flex-wrap:wrap;gap:18px}}
/* 3. Method cards: native radio circles hidden; the selected card is
   marked by a thick neon border + glow + tinted background instead. */
.dz-pay-opt input{position:absolute !important;width:1px !important;height:1px !important;margin:0 !important;opacity:0;pointer-events:none}
.dz-pay-opt:has(input:checked){border-color:#a6ff24;background:rgba(166,255,36,.12);box-shadow:0 0 0 1px #a6ff24,0 0 18px rgba(166,255,36,.15)}
.dz-pay-opt:has(input:focus-visible){outline:2px solid #a6ff24;outline-offset:2px}
/* 4. Amount input: lighter typing area with a distinct border. */
.dz-amount-input{width:100%;max-width:320px;background:#16283a;border:1px solid #3a5a75;color:#eaf6ff;font-size:16px;font-weight:700;padding:12px 14px;border-radius:10px}
.dz-amount-input::placeholder{color:#6a8296;font-weight:500}
.dz-amount-input:focus{outline:none;border-color:#a6ff24;box-shadow:0 0 0 2px rgba(166,255,36,.25)}
/* 6. Wallet history: Type badge aligned left with the row's scan line. */
.dz-wallet-history td:nth-child(2){text-align:left}

/* ===== User-panel Invoices polish (2026-11-26) — 7 items ===== */
/* 1. Search field: lighter fill + stronger border so it reads instantly
   as an interactive text field (was the same dark as the card). This
   rule is shared by every .dz-table-search toolbar in the panel. */
.dz-table-search{background:#16283a;border-color:#3a5a75}
.dz-table-search::placeholder{color:#6a8296}
.dz-table-search:focus{outline:none;border-color:#a6ff24;box-shadow:0 0 0 2px rgba(166,255,36,.22)}
/* 2. Result count: small muted pill badge, grouped with the filter tools
   instead of floating as bare text at the far right. */
.dz-table-count{background:rgba(148,180,210,.12);border:1px solid rgba(148,180,210,.24);border-radius:999px;padding:3px 10px;font-size:11.5px;font-weight:700;color:#c2cfd8;white-space:nowrap}
/* 3. Invoice rows: wider gaps between the right-side pieces (method,
   amount, status, View) so they stop crowding each other. */
.dz-inv-row{gap:14px 22px}
/* 5. Pending badge: brighter, more opaque amber so the critical state
   catches the eye. Shared .pill-amber — the invoice detail page uses
   the same class, so both stay consistent. */
.pill-amber{background:rgba(245,158,11,.32);border:1px solid rgba(251,191,36,.5);color:#fcd34d}
/* 6. "View" button: lime outline, no fill — clearly the row's action,
   not another status badge. */
.btn-outline{background:transparent;border-color:rgba(166,255,36,.55);color:#c8ff5e}
.btn-outline:hover{background:rgba(166,255,36,.12);border-color:#a6ff24;color:#d6ff60}

/* ===== User-panel Tickets list polish (2026-11-26) — 7 items ===== */
/* 1. Form layout: Subject/Message capped at a readable measure; the two
   dropdowns sit side by side in a two-column row (stacks on mobile). */
.dz-ajax-form.dz-ticket-form input[type="text"],.dz-ajax-form.dz-ticket-form select,.dz-ajax-form.dz-ticket-form textarea{max-width:640px}
.dz-ticket-form .dz-form-row2{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:640px}
.dz-ticket-form .dz-form-row2>div{min-width:0}
/* 2. Input contrast: lighter fill + stronger border so fillable areas are
   instantly recognisable (was #0b1a26 on the dark card). */
.dz-ajax-form.dz-ticket-form input,.dz-ajax-form.dz-ticket-form select,.dz-ajax-form.dz-ticket-form textarea{background:#16283a;border-color:#3a5a75}
.dz-ajax-form.dz-ticket-form input:focus,.dz-ajax-form.dz-ticket-form select:focus,.dz-ajax-form.dz-ticket-form textarea:focus{outline:none;border-color:#a6ff24;box-shadow:0 0 0 2px rgba(166,255,36,.22)}
/* 3. Message textarea: taller by default, vertical resize only. */
.dz-ticket-form textarea{resize:vertical;min-height:120px}
/* 4+6. Table: rows vertically centred; the Open badge is a solid ~15%
   neon-brand-green fill with solid green text (shared with the ticket
   chat header below — both stay consistent; closed stays pill-slate). */
.dz-tickets-table td,.dz-tickets-table th{vertical-align:middle}
.dz-tickets-table .pill-green,.dz-ticket-head .pill-green{background:rgba(166,255,36,.15);color:#a6ff24;border-color:rgba(166,255,36,.35)}
@media (max-width:640px){.dz-ticket-form .dz-form-row2{grid-template-columns:1fr}}

/* ===== User-panel Ticket chat polish (2026-11-26) — 8 items ===== */
/* 1. Header meta: icon-led spans (folder / person / clock) instead of a
   long bullet string; email dropped from the subtitle (visible on the
   Users page) so the row scans at a glance. */
.dz-ticket-back{margin:0 0 10px}
.dz-ticket-meta{display:flex;flex-wrap:wrap;gap:6px 16px}
.dz-ticket-meta span{white-space:nowrap}
/* 4. Chat bubbles: max 70% of the chat container (was 78% of a
   full-width container) so text wraps like a standard chat UI. */
.dz-msg{max-width:70%}
/* 5. Own-bubble timestamp: solid dark slate at full opacity — the old
   0.7-opacity dark text on bright lime read as muddy dark green.
   Admin/support bubbles (light text on dark, white on purple) are
   already readable and are left alone. */
.dz-msg.user small{opacity:1;color:#101f2c}
/* 6. Reply textarea: same lighter fill + border as the create form. */
.dz-ticket-reply textarea{background:#16283a;border-color:#3a5a75}
.dz-ticket-reply textarea:focus{outline:none;border-color:#a6ff24;box-shadow:0 0 0 2px rgba(166,255,36,.22)}
/* 7+8. Close Ticket: now sits beside Send Reply via the form attribute
   (the close form stays a separate form with its own action/CSRF, so
   the confirm flow and data-confirm handling are unchanged); bold red
   text + stronger border on the existing 15% red tint. */
.btn-red.dz-close-btn{font-weight:700;border-color:rgba(255,138,138,.55)}
.btn-red.dz-close-btn:hover{background:rgba(229,72,77,.25);border-color:#ff8a8a}

/* ===== User-panel Notifications polish (2026-11-26) — 7 items ===== */
/* 1+2. The inner card heading is removed in the markup (the shell
   already shows "Notifications"); the list is capped at 760px and
   centred so lines stay readable on wide desktop. */
.dz-notif-list{max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:10px}
.dz-notif{display:flex;align-items:flex-start;gap:12px;background:rgba(20,42,60,.55);border:1px solid rgba(93,171,217,.18);border-radius:12px;padding:12px 14px}
.dz-notif-icon{flex:none;width:36px;height:36px;border-radius:10px;background:rgba(166,255,36,.1);border:1px solid rgba(166,255,36,.22);display:flex;align-items:center;justify-content:center;font-size:18px}
.dz-notif-body{flex:1;min-width:0}
.dz-notif-body p{margin:0;font-size:13.5px;line-height:1.5;color:#eaf6ff}
.dz-notif-body small{display:block;color:#9db4c6;font-size:12px;margin-top:3px}
/* 3+4. Timestamp is muted gray under the message; the action is a neon
   link on the far right, visually separated from the timestamp. */
.dz-notif-link{flex:none;align-self:center;color:#a6ff24;font-size:12.5px;font-weight:700;text-decoration:none;white-space:nowrap}
.dz-notif-link:hover{text-decoration:underline}
/* 6. Unread: solid neon dot (always rendered so rows stay aligned),
   brighter card background, bolder message text. Read-marking
   behaviour (js-notif-link click) is unchanged. */
.dz-notif-dot{flex:none;width:8px;height:8px;border-radius:50%;background:transparent;margin-top:7px}
.dz-notif.is-unread{background:rgba(166,255,36,.09);border-color:rgba(166,255,36,.35)}
.dz-notif.is-unread .dz-notif-dot{background:#a6ff24;box-shadow:0 0 8px rgba(166,255,36,.8)}
.dz-notif.is-unread .dz-notif-body p{font-weight:700}

/* ===== User-panel Profile polish (2026-11-26) — 6 items ===== */
/* 1+2+3. Static account info (Email, Currency) lives in a summary strip
   above the two columns — plain text, no input boxes. The two readonly
   inputs were removed from the Edit Profile form (they had no name
   attribute, so the submitted payload is unchanged). */
.dz-profile-strip{display:flex;flex-wrap:wrap;gap:8px 28px;align-items:center;background:rgba(20,42,60,.55);border:1px solid rgba(93,171,217,.18);border-radius:12px;padding:12px 16px;margin-bottom:14px}
.dz-profile-strip span{font-size:13.5px;color:#eaf6ff;min-width:0;overflow-wrap:anywhere}
.dz-profile-strip strong{color:#9db4c6;font-weight:600;margin-right:6px;font-size:12px;text-transform:uppercase;letter-spacing:.04em}
/* Strip icons are inline SVG, not emoji: the 💱 glyph renders as a garbled
   "$¥" on the user's Android, so both icons are SVGs for consistency. */
.dz-strip-ico{width:16px;height:16px;vertical-align:-3px;color:#c8ff5e;flex:none}
/* 4. Editable inputs: same lighter fill + border as the ticket forms. */
.dz-ajax-form.dz-profile-form input{background:#16283a;border-color:#3a5a75}
.dz-ajax-form.dz-profile-form input:focus{outline:none;border-color:#a6ff24;box-shadow:0 0 0 2px rgba(166,255,36,.22)}
/* 5. Button hierarchy: Save Profile stays the solid primary; Change
   Password is now the shared lime-outline secondary (see invoices). */

/* ===== Rewards feature (2026-11-27) ===== */
/* User Rewards page: premium result cards. The old prize-split table is
   gone — results are winner-takes-all, so each card shows the user's
   actual result: Pending / Won (UC on its way) / Lost / UC Transferred. */
.dz-rew-kpis{margin-bottom:14px}
.dz-rew-banner{display:flex;gap:12px;align-items:flex-start;background:linear-gradient(135deg,rgba(245,158,11,.16),rgba(245,158,11,.05));border:1px solid rgba(251,191,36,.45);border-radius:14px;padding:14px 16px;margin-bottom:14px}
.dz-rew-banner-ico{font-size:22px;line-height:1.2}
.dz-rew-banner strong{display:block;font-size:15px;color:#fde68a}
.dz-rew-banner p{margin:4px 0 0;color:#d6c9a8;font-size:13px;line-height:1.55}
.dz-rew-list{display:grid;gap:14px}
.dz-rew-card{display:flex;gap:14px;align-items:stretch;background:linear-gradient(135deg,rgba(20,42,60,.85),rgba(9,22,35,.92));border:1px solid rgba(93,171,217,.28);border-radius:14px;padding:12px;transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease}
.dz-rew-card:hover{transform:translateY(-2px);border-color:rgba(174,255,38,.55);box-shadow:0 14px 30px rgba(0,0,0,.4)}
.dz-rew-card--won{border-color:rgba(251,191,36,.55)}
.dz-rew-card--done{border-color:rgba(74,222,128,.55)}
.dz-rew-card--lost{border-color:rgba(148,163,184,.25);opacity:.92}
.dz-rew-thumb{flex:0 0 132px;min-height:112px;border-radius:10px;background-size:cover;background-position:center 25%;background-color:#0b1a26}
.dz-rew-main{flex:1;min-width:0}
.dz-rew-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.dz-rew-top h3{margin:0;font-size:17px;line-height:1.3}
.dz-rew-meta{margin:6px 0;color:#9db4c6;font-size:13px}
.dz-rew-leader{display:flex;align-items:center;gap:8px;margin:8px 0 10px;color:#c8d9e6;font-size:13px;flex-wrap:wrap}
.dz-rew-leader-ava{width:26px;height:26px;border-radius:50%;background:linear-gradient(135deg,#d6ff67,#83e900);color:#0d1f05;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:13px;flex:none}
.dz-rew-uid{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px;background:rgba(148,180,210,.14);border:1px solid rgba(148,180,210,.25);border-radius:6px;padding:1px 6px;color:#eaf6ff;overflow-wrap:anywhere}
.dz-rew-alert{display:flex;gap:10px;align-items:flex-start;border-radius:12px;padding:12px 14px}
.dz-rew-alert>span{font-size:20px;line-height:1.25;flex:none}
.dz-rew-alert strong{display:block;font-size:14px;line-height:1.4}
.dz-rew-alert p{margin:4px 0 0;font-size:13px;line-height:1.55;color:#b8cdd9}
.dz-rew-alert--pending{background:rgba(245,158,11,.12);border:1px solid rgba(251,191,36,.4)}
.dz-rew-alert--pending strong{color:#fcd34d}
.dz-rew-alert--won{background:linear-gradient(135deg,rgba(251,191,36,.18),rgba(251,191,36,.06));border:1px solid rgba(251,191,36,.55)}
.dz-rew-alert--won strong{color:#fde68a}
.dz-rew-alert--done{background:rgba(34,197,94,.14);border:1px solid rgba(74,222,128,.5)}
.dz-rew-alert--done strong{color:#86efac}
.dz-rew-alert--lost{background:rgba(148,163,184,.08);border:1px solid rgba(148,163,184,.25)}
.dz-rew-alert--lost strong{color:#cbd5e1}
/* Admin Manage Rewards. */
.dz-mr-head-top{display:flex;gap:12px;align-items:center}
.dz-mr-head-top .thumb{width:64px;height:40px;object-fit:cover;border-radius:6px;flex:none}
.dz-mr-head-top>div{flex:1;min-width:0}
.dz-mr-head-top .card-title{margin:0}
.dz-mr-winner-line{margin:12px 0 0;font-size:14px}
.dz-mr-head-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.dz-mr-list{display:grid;gap:14px}
.dz-mr-row{display:flex;gap:14px;align-items:stretch;background:linear-gradient(135deg,rgba(20,42,60,.85),rgba(9,22,35,.92));border:1px solid rgba(93,171,217,.28);border-radius:14px;padding:12px}
.dz-mr-status{margin:6px 0 10px;color:#c8d9e6;font-size:13px}
.dz-table-scroll{overflow-x:auto}
.status-completed{color:#0d1f05;background:linear-gradient(135deg,#d6ff67,#83e900)}
.panel-main .status-completed{background:rgba(166,255,36,.85)}

/* ===== Player reviews (2026-11-27) — landing section + admin table ===== */
/* Shared by the landing page and the admin panel (both load app.css).
   Dark + lime, same glass treatment as the rest of the site. */
.reviews-section{padding-top:34px}
.reviews-section .section-intro>p{max-width:520px}
.dz-rev-summary{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:16px 20px;margin:4px 0 18px}
.dz-rev-score{display:flex;align-items:center;gap:12px}
.dz-rev-score strong{font-size:34px;line-height:1;color:#eaffb0;font-family:var(--font-display,inherit)}
.dz-rev-summary p{margin:0;color:#9db4c6;font-size:13px}
.dz-rev-stars-bg{position:relative;display:inline-block;font-size:22px;line-height:1;letter-spacing:2px;color:#33465a;white-space:nowrap}
.dz-rev-stars-fg{position:absolute;left:0;top:0;overflow:hidden;color:#fbbf24;white-space:nowrap;letter-spacing:2px}
.dz-rev-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:20px}
.dz-rev-card{padding:18px;transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease}
.dz-rev-card:hover{transform:translateY(-3px);border-color:rgba(174,255,38,.5);box-shadow:0 14px 30px rgba(0,0,0,.4)}
.dz-rev-card-top{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.dz-rev-ava{width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,#d6ff67,#83e900);color:#0d1f05;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:16px;flex:none}
.dz-rev-card-top>div{display:flex;flex-direction:column;min-width:0}
.dz-rev-card-top strong{font-size:14px;color:#eaf6ff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dz-rev-card-top small{color:#8da1b1;font-size:11px}
.dz-rev-card-stars{margin-left:auto;font-size:15px;letter-spacing:1px;white-space:nowrap}
.dz-rev-card-stars span{color:#33465a}
.dz-rev-card-stars span.is-on{color:#fbbf24}
.dz-rev-card>p{margin:0;color:#c8d9e6;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.dz-rev-empty{text-align:center;padding:34px 20px;margin-bottom:20px}
.dz-rev-empty-ico{display:inline-block;font-size:40px;line-height:1;color:#fbbf24;margin-bottom:8px}
.dz-rev-empty h3{margin:0 0 6px;font-size:20px;color:#eaf6ff}
.dz-rev-empty p{margin:0;color:#9db4c6;font-size:14px;line-height:1.6;max-width:460px;margin-inline:auto}
.dz-rev-form-wrap{padding:22px;margin-bottom:8px}
.dz-rev-form-wrap h3{margin:0 0 8px;font-size:20px}
.dz-rev-form-wrap>.muted{margin:0 0 16px;font-size:14px;line-height:1.6;max-width:560px}
.dz-rev-status{border-radius:10px;padding:10px 14px;font-size:13px;line-height:1.55;margin:0 0 16px}
.dz-rev-status--pending{background:rgba(245,158,11,.12);border:1px solid rgba(251,191,36,.4);color:#fcd34d}
.dz-rev-status--ok{background:rgba(34,197,94,.12);border:1px solid rgba(74,222,128,.45);color:#86efac}
.dz-rev-status--no{background:rgba(229,72,77,.1);border:1px solid rgba(229,72,77,.4);color:#ff9a9a}
.dz-rev-form label{display:block;color:#c5d4dd;font-size:12px;font-weight:700;margin-bottom:6px}
.dz-rev-form textarea{width:100%;border:1px solid rgba(121,180,215,.3);border-radius:10px;padding:12px 14px;background:rgba(1,8,15,.7);color:#fff;font-size:14px;font-family:inherit;resize:vertical;min-height:96px;margin-top:6px}
.dz-rev-form textarea:focus{outline:none;border-color:var(--lime);box-shadow:0 0 0 3px rgba(181,255,37,.15)}
.dz-rev-stars{display:flex;gap:4px;margin:2px 0 14px}
.dz-rev-star{appearance:none;background:none;border:0;padding:2px;font-size:30px;line-height:1;color:#33465a;cursor:pointer;transition:transform .12s ease,color .12s ease}
.dz-rev-star:hover{transform:scale(1.15)}
.dz-rev-star.is-on{color:#fbbf24}
.dz-rev-star:focus-visible{outline:2px solid var(--lime);outline-offset:2px;border-radius:4px}
.dz-rev-form .dz-hint{margin:0 0 14px}
.dz-rev-form .dz-form-errors{margin-bottom:12px}

/* ===== Player Profile + Admin Analytics (2026-11-27) ===== */
/* Player Profile page (user panel): player card + history table. */
.dz-profile-card{display:flex;gap:16px;align-items:flex-start;padding:20px;margin-bottom:14px}
.dz-profile-ava{width:64px;height:64px;border-radius:50%;background:linear-gradient(135deg,#d6ff67,#83e900);color:#0d1f05;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:28px;flex:none;box-shadow:0 0 22px rgba(166,255,36,.25)}
.dz-profile-main{flex:1;min-width:0}
.dz-profile-main h3{margin:0 0 6px;font-size:21px}
.dz-profile-meta{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0 0 8px;color:#c8d9e6;font-size:13px;line-height:1.6}
.dz-profile-meta>span{white-space:nowrap}
.dz-profile-main p:last-child{margin:0}
.dz-profile-history td{vertical-align:middle}

/* Admin Analytics: pure-SVG bar charts rendered by PHP (no CDN). */
.dz-chart{display:block;width:100%;height:auto;margin:6px 0 4px}
.dz-chart-axis{stroke:rgba(148,180,210,.3);stroke-width:1}
.dz-chart-val{fill:#eaf6ff;font-size:11px;font-weight:700;text-anchor:middle}
.dz-chart-lab{fill:#8da1b1;font-size:10px;text-anchor:middle}
@media (max-width:600px){.dz-chart-lab.is-alt{display:none}}

/* ===== User-panel MOBILE polish (2026-11-26) — ≤600px only ===== */
/* From the user's own Android screenshots (~390px). Every rule here lives
   inside this one media query, so desktop is byte-for-byte untouched.
   Landing is untouched too (the mobile hero band + bracket stack stay
   exactly as the user left them on 2026-11-25). */
@media (max-width:600px){
  /* 1. Registration modal — player-card header as a clean stacked grid:
     row 1 avatar + "Player N" + You pill; row 2 the leader radio;
     row 3 the crown tag (only when that player is leader). No more
     flex-wrap jumble, no mid-word wrapping. */
  .dz-player-top{display:grid;grid-template-columns:30px minmax(0,1fr);grid-template-areas:"ava who" "ava leader" "ava tag";column-gap:10px;row-gap:6px;align-items:center}
  .dz-player-ava{grid-area:ava;align-self:start}
  .dz-player-who{grid-area:who;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .dz-leader{grid-area:leader;min-height:44px}
  .dz-leader input{width:20px;height:20px}
  .dz-leader-tag{grid-area:tag;white-space:nowrap}
  /* Section 1 hint ("Add your 3 teammates…") drops to its own line
     instead of squeezing beside the heading. */
  .dz-reg-sec{flex-wrap:wrap;row-gap:4px}
  .dz-reg-sec-hint{flex-basis:100%;margin-left:0;text-align:left}
  /* 2. Sticky footer: short label on one line, Cancel stays tappable. */
  .dz-reg-footer{gap:8px;padding:12px}
  .dz-reg-confirm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}
  .dz-reg-confirm .dz-confirm-full{display:none}
  .dz-reg-confirm .dz-confirm-short{display:inline}
  .dz-reg-cancel{padding:0 14px}
  /* 3. Stat chips: tighter padding/font so all three fit one clean row. */
  .dz-reg-stats{gap:6px;padding:10px 12px 0}
  .dz-reg-stat{padding:8px 6px}
  .dz-reg-stat-v{font-size:14px}
  .dz-reg-stat-k{font-size:10px}
  /* 4. Browse cards: taller card (overrides the 260px ≤390px rule) so the
     body can never clip at the bottom edge; smaller title; deeper scrim
     so white text stays legible over bright covers; bigger card button. */
  .panel-main .tournament-card{min-height:300px}
  .panel-main .tournament-card-body{padding:12px 14px 14px;background:linear-gradient(180deg,rgba(2,8,14,0) 0%,rgba(2,8,14,.72) 25%,rgba(2,8,14,.96) 55%)}
  .panel-main .tournament-card h3{font-size:19px}
  .card-foot{gap:8px}
  .panel-main .mini-register{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;font-size:11px}
  /* 5. Wallet metrics: proper 3-column grid with safe min-widths; each
     value stays on one line under its label (ellipsis guard for very
     large amounts). Overrides the ≤640px flex-wrap row. */
  .dz-balance-side{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 12px}
  .dz-balance-stat{min-width:0}
  .dz-balance-stat strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  /* 6. Profile strip: one item per line, full width, email wraps cleanly. */
  .dz-profile-strip{flex-direction:column;align-items:flex-start;gap:8px}
  .dz-profile-strip span{max-width:100%}
  /* 7. General mobile polish (user panel only). */
  /* Tap targets ≥44px. */
  .panel-main .btn{min-height:44px;height:auto}
  .panel-main .btn-sm{min-height:44px;height:auto;padding-left:14px;padding-right:14px}
  .bell-btn{width:44px;height:44px}
  .mobile-drawer-btn{width:44px;height:44px}
  .user-chip{min-height:44px}
  .nav-item{min-height:44px;padding-top:11px;padding-bottom:11px}
  /* Header row: tighter gaps, smaller page title. */
  .panel-topbar{gap:12px}
  .topbar-left{gap:10px}
  .topbar-right{gap:8px}
  .topbar-title h1{font-size:20px}
  /* Full-width primary buttons where sensible (reply-form buttons keep
     their side-by-side row — they are not matched here). */
  form[data-action="create_invoice"] .btn[type="submit"],form[data-action="create_ticket"] .btn[type="submit"],.dz-profile-form .btn[type="submit"]{width:100%}
  /* Comfortable empty states. */
  .dz-empty{padding:20px 16px}
  /* No horizontal overflow anywhere. */
  body{overflow-x:hidden}
  .panel-main{min-width:0}
  img,video{max-width:100%}
  /* Rewards (2026-11-27): cards stack, thumb on top, alerts full width. */
  .dz-rew-card,.dz-mr-row{flex-direction:column}
  .dz-rew-thumb{flex:none;height:150px;min-height:0}
  .dz-rew-top h3{font-size:16px}
  .dz-mr-head-top{flex-wrap:wrap}
  /* Reviews (2026-11-27): 1-column grid, smaller picker stars, full-width submit. */
  .dz-rev-grid{grid-template-columns:1fr}
  .dz-rev-summary{padding:14px 16px}
  .dz-rev-score strong{font-size:28px}
  .dz-rev-card-top{flex-wrap:wrap}
  .dz-rev-card-stars{margin-left:0}
  .dz-rev-form-wrap{padding:18px 16px}
  .dz-rev-star{font-size:34px;padding:6px 2px;min-width:44px;min-height:44px}
  .dz-rev-form .button[type="submit"]{width:100%;justify-content:center}
  .dz-rev-form-wrap .button{width:100%;justify-content:center}
  /* Player Profile + Analytics (2026-11-27): card stacks, avatar shrinks,
     meta wraps; charts scale (SVG width:100%), history table scrolls via
     .dz-table-scroll. */
  .dz-profile-card{flex-direction:column;align-items:flex-start;gap:12px}
  .dz-profile-ava{width:52px;height:52px;font-size:23px}
  .dz-profile-meta>span{white-space:normal}
}
