/* Customer Dashboard: sidebar group, license activation dialog, licenses, orders.
   Loaded after styles/dashboard.css on pages/dashboard.html. Behaviour: scripts/dashboard.js */
.dsh { --gold: 240, 200, 110; --ok: 96, 208, 150; --bad: 248, 113, 113; }

/* ---------- sidebar group ---------- */
.dsh-nav__sep { display: block; height: 1px; margin: 10px 8px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent); }
.dsh-nav a.dsh-grouphead {
  position: relative; z-index: 1;
  gap: 10px; padding: 10px 10px 10px 8px; margin-bottom: 2px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, rgba(var(--acc), 0.14), rgba(var(--acc), 0.03));
  box-shadow: inset 0 0 0 1px rgba(var(--acc), 0.22);
  overflow: hidden;
  transition: box-shadow 0.35s ease, background-color 0.35s ease, transform 0.35s var(--ease);
}
.dsh-nav a.dsh-grouphead::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
  transform: translateX(-120%); animation: dsh-sweep 4.5s ease-in-out 1.2s infinite;
}
@keyframes dsh-sweep { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.dsh-nav a.dsh-grouphead:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(var(--acc), 0.45), 0 12px 26px -16px rgba(var(--acc), 0.9); }
.dsh-nav a .dsh-grouphead__ic { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; color: #0b0b0d; background: rgb(var(--acc)); box-shadow: 0 0 16px -2px rgba(var(--acc), 0.8); }
.dsh-nav .dsh-grouphead__ic .dsh-ic { width: 16px; height: 16px; color: #0b0b0d; }
.dsh-nav a .dsh-grouphead__txt { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.dsh-grouphead__txt small { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(var(--acc), 0.9); }
.dsh-nav a.dsh-grouphead em.dsh-grouphead__cta { min-width: 0; padding: 3px 9px; font-size: 11px; color: #0b0b0d; background: rgb(var(--acc)); animation: dsh-pulse 2.2s ease-in-out infinite; }
@keyframes dsh-pulse { 50% { box-shadow: 0 0 0 5px rgba(var(--acc), 0.18); } }
.dsh-nav a.dsh-grouphead em.dsh-grouphead__ok { display: grid; place-items: center; width: 22px; min-width: 0; height: 22px; padding: 0; border-radius: 50%; color: #0b0b0d; background: rgb(var(--ok)); }
.dsh-nav .dsh-grouphead__ok .dsh-ic { width: 13px; height: 13px; color: #0b0b0d; }
.dsh-nav a.dsh-grouphead.is-open { background: linear-gradient(135deg, rgba(var(--gold), 0.16), rgba(var(--acc), 0.05)); box-shadow: inset 0 0 0 1px rgba(var(--gold), 0.3); }
.dsh-nav a.dsh-grouphead.is-open .dsh-grouphead__ic { background: linear-gradient(145deg, #ffe7a8, rgb(var(--gold))); box-shadow: 0 0 18px -2px rgba(var(--gold), 0.8); }
.dsh-nav a.dsh-grouphead.is-open .dsh-grouphead__txt small { color: rgb(var(--gold)); }
.dsh-group { display: flex; flex-direction: column; gap: 2px; padding-left: 12px; margin-left: 16px; border-left: 1px dashed rgba(255, 255, 255, 0.1); }
.dsh-nav a.is-locked > span, .dsh-nav a.is-locked > .dsh-ic:first-child { filter: blur(2.2px); opacity: 0.55; transition: filter 0.35s ease, opacity 0.35s ease; }
.dsh-nav a.is-locked:hover > span, .dsh-nav a.is-locked:hover > .dsh-ic:first-child { filter: blur(0.8px); opacity: 0.8; }
.dsh-nav .dsh-nav__lock { width: 14px; height: 14px; color: rgba(255, 255, 255, 0.5); }
.dsh-glider.is-gold { background: linear-gradient(90deg, rgba(var(--gold), 0.22), rgba(var(--gold), 0.06)); box-shadow: inset 0 0 0 1px rgba(var(--gold), 0.35), 0 8px 20px -12px rgba(var(--gold), 0.9); }
@container dsh (max-width: 960px) {
  .dsh-nav__sep { width: 1px; height: 26px; margin: 0 4px; flex: none; }
  .dsh-group { flex-direction: row; padding-left: 0; margin-left: 0; border-left: 0; }
  .dsh-nav a.dsh-grouphead { flex: none; padding: 6px 10px 6px 6px; }
  .dsh-grouphead__txt small { display: none; }
}

/* ---------- unlock call-to-action ---------- */
.dsh-unlock {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 22px; border-radius: 22px;
  border: 1px solid rgba(var(--acc), 0.3);
  background: radial-gradient(120% 140% at 0% 0%, rgba(var(--acc), 0.18), transparent 55%), linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  box-shadow: 0 30px 60px -40px rgba(var(--acc), 0.9);
}
.dsh-unlock__art { position: relative; display: grid; place-items: center; width: 72px; height: 72px; }
.dsh-unlock__art span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(var(--acc), 0.45); animation: dsh-ring 3s ease-out infinite; }
.dsh-unlock__art span + span { animation-delay: 1.5s; }
.dsh-unlock__art i { position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; color: #0b0b0d; background: linear-gradient(145deg, #dbe7ff, rgb(var(--acc))); box-shadow: 0 0 26px rgba(var(--acc), 0.6); animation: dsh-float 4s ease-in-out infinite; }
.dsh-unlock__art .dsh-ic { width: 24px; height: 24px; }
.dsh-unlock__txt .dsh-kicker { margin-bottom: 8px; }
.dsh-unlock__txt b { display: block; font-family: var(--display); font-size: 20px; }
.dsh-unlock__txt p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.55; color: #9a9ca8; }
.dsh-unlock--compact { grid-template-columns: auto minmax(0, 1fr); }
.dsh-unlock--compact .avn-btn { grid-column: 1 / -1; justify-self: start; }
@container dmain (max-width: 640px) {
  .dsh-unlock { grid-template-columns: minmax(0, 1fr); }
  .dsh-unlock .avn-btn { justify-self: stretch; }
}

/* locked view: a blurred ghost of the dashboard behind the CTA */
.dsh-lockwall { position: relative; min-height: 420px; display: grid; place-items: center; padding: 30px 0; }
.dsh-lockwall .dsh-unlock { position: relative; z-index: 1; max-width: 720px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); background: radial-gradient(120% 140% at 0% 0%, rgba(var(--acc), 0.2), transparent 55%), rgba(16, 17, 22, 0.78); }
.dsh-ghost { position: absolute; inset: 0; display: grid; grid-template-rows: 150px 1fr 1fr; gap: 14px; filter: blur(7px); opacity: 0.55; pointer-events: none; -webkit-mask-image: radial-gradient(90% 90% at 50% 50%, #000, transparent); mask-image: radial-gradient(90% 90% at 50% 50%, #000, transparent); }
.dsh-ghost__hero { border-radius: 22px; background: linear-gradient(120deg, rgba(var(--gold), 0.25), rgba(var(--acc), 0.18)); }
.dsh-ghost__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; }
.dsh-ghost__row i { border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)); animation: dsh-shimmer 2.4s ease-in-out infinite; }
@keyframes dsh-shimmer { 50% { opacity: 0.55; } }

/* ---------- customer dashboard hero ---------- */
.dsh-kicker--gold { color: #f5dfa6; border-color: rgba(var(--gold), 0.35); background: rgba(var(--gold), 0.08); }
.dsh-kicker--gold .dsh-ic { color: rgb(var(--gold)); }
.dsh-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: clamp(20px, 3vw, 30px); border-radius: 26px;
  border: 1px solid rgba(var(--gold), 0.25);
  background: radial-gradient(90% 140% at 100% 0%, rgba(var(--acc), 0.2), transparent 55%), radial-gradient(70% 120% at 0% 100%, rgba(var(--gold), 0.14), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  box-shadow: 0 40px 80px -50px rgba(var(--gold), 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.dsh-hero__glow { position: absolute; z-index: -1; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(var(--acc), 0.35), rgba(var(--gold), 0.3), rgba(var(--acc), 0.35)); filter: blur(70px); opacity: 0.6; animation: dsh-spin 16s linear infinite; }
@keyframes dsh-spin { to { transform: rotate(360deg); } }
.dsh-hero .dsh-h1 span { background-image: linear-gradient(100deg, #ffe7a8, #fff 50%, rgb(var(--gold))); }
.dsh-hero__stats { display: flex; gap: 10px; flex-wrap: wrap; }
.dsh-hero__stats > div { min-width: 118px; padding: 12px 16px; border-radius: 16px; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.08); }
.dsh-hero__stats b { display: block; font-family: var(--display); font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dsh-hero__stats span { font-size: 12px; color: #9a9ca8; }

/* ---------- license cards ---------- */
.dsh-lics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.dsh-lic {
  --c: var(--acc);
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  border-radius: 22px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  transition: transform 0.45s var(--ease), border-color 0.3s ease, box-shadow 0.45s ease;
}
.dsh-view.is-enter .dsh-lic, .dsh-view.is-enter .dsh-addlic, .dsh-view.is-enter .dsh-keyrow { animation: dsh-in 0.7s var(--ease) both; animation-delay: calc(0.08s + var(--k, 0) * 70ms); }
.dsh-lic[data-s="life"] { --c: var(--gold); }
.dsh-lic[data-s="soon"] { --c: 245, 180, 84; }
.dsh-lic[data-s="expired"], .dsh-lic[data-s="revoked"] { --c: var(--bad); }
.dsh-lic[data-s="revoked"] .dsh-lic__media img { filter: grayscale(1) brightness(0.7); }
.dsh-lic:hover { transform: translateY(-4px); border-color: rgba(var(--c), 0.35); box-shadow: 0 30px 60px -36px rgba(var(--c), 0.9); }
.dsh-lic__media { position: relative; aspect-ratio: 16 / 8.2; overflow: hidden; border-bottom: 1px solid var(--line); }
.dsh-lic__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 0.8s var(--ease); }
.dsh-lic:hover .dsh-lic__media img { transform: scale(1.08); }
.dsh-lic__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(12, 13, 17, 0.85)); }
.dsh-lic__plan, .dsh-lic__media .dsh-pill { position: absolute; z-index: 1; top: 12px; }
.dsh-lic__plan { left: 12px; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #0b0b0d; background: rgb(var(--c)); box-shadow: 0 6px 18px -6px rgba(var(--c), 0.9); }
.dsh-lic__media .dsh-pill { right: 12px; background: rgba(10, 11, 15, 0.82); }
.dsh-lic__body { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px; }
.dsh-lic__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dsh-lic__top > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.dsh-lic__top b { font-family: var(--display); font-size: 19px; }
.dsh-lic__top small { font-size: 12.5px; color: #9a9ca8; }
.dsh-lic__state { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: rgb(var(--c)); background: rgba(var(--c), 0.1); border: 1px solid rgba(var(--c), 0.3); }
.dsh-lic__left { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.dsh-lic__left span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #9a9ca8; }
.dsh-lic__left span .dsh-ic { width: 15px; height: 15px; color: rgb(var(--c)); }
.dsh-lic__left b { font-family: var(--display); font-size: 24px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 0 22px rgba(var(--c), 0.45); }
.dsh-lic__meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; color: #8a8c98; }
.dsh-lic__acts { display: flex; gap: 8px; margin-top: 2px; }
.dsh-lic__acts .avn-btn { flex: 1; }

/* time-left bar */
.dsh-life { position: relative; display: block; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.dsh-life--lg { height: 8px; }
.dsh-life span {
  --c: var(--acc);
  position: absolute; top: 0; bottom: 0; left: 0; width: var(--p, 0%); border-radius: inherit; overflow: hidden;
  background: linear-gradient(90deg, rgba(var(--c), 0.55), rgb(var(--c)));
  box-shadow: 0 0 12px rgba(var(--c), 0.8);
  transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.2s var(--ease) 0.15s, width 0.9s linear;
}
.dsh-life.is-in span { transform: scaleX(1); }
.dsh-life span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent); transform: translateX(-100%); animation: dsh-flow 2.6s ease-in-out infinite; }
@keyframes dsh-flow { to { transform: translateX(100%); } }
[data-s="life"] .dsh-life span { --c: var(--gold); }
[data-s="soon"] .dsh-life span { --c: 245, 180, 84; }
[data-s="expired"] .dsh-life span { --c: var(--bad); }

.dsh-addlic {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 280px;
  border-radius: 22px; border: 1.5px dashed rgba(var(--acc), 0.35);
  background: radial-gradient(60% 60% at 50% 40%, rgba(var(--acc), 0.1), transparent 70%);
  color: #fff; font: inherit; cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.45s var(--ease);
}
.dsh-addlic:hover { border-color: rgba(var(--acc), 0.7); transform: translateY(-4px); }
.dsh-addlic__ic { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 4px; border-radius: 18px; color: #0b0b0d; background: rgb(var(--acc)); box-shadow: 0 0 30px -4px rgba(var(--acc), 0.9); transition: transform 0.5s var(--spring); }
.dsh-addlic__ic .dsh-ic { width: 24px; height: 24px; }
.dsh-addlic:hover .dsh-addlic__ic { transform: rotate(90deg) scale(1.06); }
.dsh-addlic b { font-family: var(--display); font-size: 18px; }
.dsh-addlic small { font-size: 13px; color: #9a9ca8; }

/* mini license rows (overview) */
.dsh-cont[data-s] .dsh-cont__body small { display: inline-flex; align-items: center; gap: 5px; }
.dsh-cont__body small .dsh-ic { width: 13px; height: 13px; }

/* ---------- license key rows ---------- */
.dsh-keyrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px; }
.dsh-keyrow__img { width: 118px; height: 66px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.dsh-keyrow__img img { width: 100%; height: 100%; object-fit: cover; }
.dsh-keyrow__main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dsh-keyrow__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dsh-keyrow__top b { font-size: 15.5px; }
.dsh-keyrow__meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #9a9ca8; }
.dsh-keyrow__meta .dsh-ic { width: 14px; height: 14px; color: rgb(var(--acc)); }
.dsh-keyrow__meta b { color: #fff; font-variant-numeric: tabular-nums; }
.dsh-keyrow__meta i { width: 3px; height: 3px; margin: 0 4px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.dsh-keyrow[data-s="expired"] { border-color: rgba(var(--bad), 0.3); }
.dsh-keyrow[data-s="revoked"] { border-color: rgba(var(--bad), 0.3); }
.dsh-keyrow[data-s="revoked"] .dsh-key__code { color: #8a8c98; text-decoration: line-through; text-decoration-color: rgba(var(--bad), 0.7); }
.dsh-keyrow[data-s="revoked"] .dsh-keyrow__img img { filter: grayscale(1) brightness(0.7); }
.dsh-keyrow[data-s="revoked"] .dsh-keyrow__meta .dsh-ic { color: rgb(var(--bad)); }
.dsh-key__main small { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8f919d; }
@container dmain (max-width: 640px) {
  .dsh-keyrow { grid-template-columns: auto minmax(0, 1fr); }
  .dsh-keyrow .dsh-key__acts { grid-column: 1 / -1; }
  .dsh-keyrow .dsh-ib--copy { flex: 1; }
  .dsh-keyrow__img { width: 80px; height: 48px; }
}

.dsh-sidelic { border-color: rgba(var(--acc), 0.3); }
.dsh-sidelic__left { display: flex; flex-direction: column; margin-bottom: 12px; }
.dsh-sidelic__left b { font-family: var(--display); font-size: 26px; font-variant-numeric: tabular-nums; }
.dsh-sidelic__left small { font-size: 12.5px; color: #9a9ca8; }
.dsh-pick__add { color: rgb(var(--acc)); border-style: dashed; border-color: rgba(var(--acc), 0.4); padding-left: 12px; }
.dsh-pick__add .dsh-ic { width: 16px; height: 16px; }

/* ---------- orders ---------- */
.dsh-order__head { flex-wrap: wrap; }
.dsh-ostat { margin-left: auto; margin-right: 14px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.dsh-ostat--preview { color: #c9d6f5; background: rgba(var(--acc), 0.12); border: 1px solid rgba(var(--acc), 0.3); }
.dsh-ostat--wait { color: #f5dfa6; background: rgba(var(--gold), 0.1); border: 1px solid rgba(var(--gold), 0.3); }
.dsh-ostat--fulfilled { color: #d6f5e3; background: rgba(var(--ok), 0.1); border: 1px solid rgba(var(--ok), 0.3); }
.dsh-ostat--refunded { color: #fecaca; background: rgba(var(--bad), 0.1); border: 1px solid rgba(var(--bad), 0.3); }
.dsh-oi--key { flex-wrap: wrap; }
.dsh-okey {
  flex: 1 1 100%; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-left: 56px; padding: 10px 12px; border-radius: 14px;
  border: 1px dashed rgba(var(--acc), 0.35); background: rgba(var(--acc), 0.06);
}
.dsh-okey > span:first-child { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.dsh-okey small { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(var(--acc)); }
.dsh-okey code { overflow: hidden; padding: 0; font: 600 13.5px/1.4 ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: 0.05em; color: #e6ecfb; text-overflow: ellipsis; white-space: nowrap; background: none; }
.dsh-okey__go { padding: 8px 14px; font-size: 13px; border-radius: 11px; }
.dsh-chip--ok { display: inline-flex; align-items: center; gap: 5px; color: #0b0b0d; background: rgb(var(--ok)); }
.dsh-chip--ok .dsh-ic { width: 13px; height: 13px; }
.dsh-chip--gold { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 11px; color: #0b0b0d; background: linear-gradient(145deg, #ffe7a8, rgb(var(--gold))); }
.dsh-chip--gold .dsh-ic { width: 14px; height: 14px; }
.dsh-btns--center { justify-content: center; }
@container dmain (max-width: 540px) { .dsh-okey { margin-left: 0; } .dsh-ostat { order: 3; margin: 6px 0 0; } }

/* =====================================================================
   Activation dialog (appended to <body>, so it declares its own tokens)
   ===================================================================== */
.dsh-lk {
  --acc: var(--cl-accent-rgb, 163, 191, 240); --gold: 240, 200, 110; --ok: 96, 208, 150;
  --ease: cubic-bezier(0.22, 1, 0.36, 1); --spring: cubic-bezier(0.34, 1.56, 0.64, 1); --display: "Clash Display", var(--font-body, system-ui, sans-serif);
  position: fixed; inset: 0; z-index: 2050; display: grid; place-items: center; padding: 18px; overflow-y: auto;
}
.dsh-lk[hidden] { display: none; }
.dsh-lk .dsh-ic { width: 18px; height: 18px; flex: none; }
.dsh-lk .dsh-kicker { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #d9dbe3; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.dsh-lk .dsh-kicker .dsh-ic { width: 14px; height: 14px; color: rgb(var(--acc)); }
.dsh-lk .dsh-kicker--gold { color: #f5dfa6; border-color: rgba(var(--gold), 0.35); background: rgba(var(--gold), 0.08); }
.dsh-lk .dsh-kicker--gold .dsh-ic { color: rgb(var(--gold)); }
.dsh-lk .dsh-lead { margin: 0; font-size: 14px; color: #a3a6b3; }
.dsh-lk .dsh-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.dsh-lk .dsh-chip { display: inline-block; padding: 2px 8px; border-radius: 7px; font-size: 11.5px; font-weight: 600; color: #c7cbd8; background: rgba(255, 255, 255, 0.07); white-space: nowrap; }
.dsh-lk__scrim {
  position: fixed; inset: 0;
  background: radial-gradient(60% 60% at 50% 45%, rgba(var(--acc), 0.14), transparent 70%), rgba(5, 6, 9, 0.62);
  -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px);
  opacity: 0; transition: opacity 0.45s ease, backdrop-filter 0.55s ease, -webkit-backdrop-filter 0.55s ease;
}
.dsh-lk.is-open .dsh-lk__scrim { opacity: 1; -webkit-backdrop-filter: blur(20px) saturate(120%); backdrop-filter: blur(20px) saturate(120%); }
.dsh-lk__card {
  position: relative; isolation: isolate; overflow: hidden;
  width: 100%; max-width: 640px; padding: 26px 28px 24px; border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(24, 25, 32, 0.96), rgba(12, 13, 17, 0.98));
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(var(--acc), 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  color: #fff;
  transform: translateY(30px) scale(0.95); opacity: 0; filter: blur(8px);
  transition: transform 0.6s var(--ease), opacity 0.35s ease, filter 0.45s ease;
}
.dsh-lk.is-open .dsh-lk__card { transform: none; opacity: 1; filter: none; }
.dsh-lk__card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; padding: 1px; border-radius: inherit;
  background: conic-gradient(from var(--dsh-a, 0deg), transparent 0 70%, rgba(var(--acc), 0.85) 82%, rgba(var(--gold), 0.6) 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: dsh-orbit 6s linear infinite; pointer-events: none;
}
@property --dsh-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes dsh-orbit { to { --dsh-a: 360deg; } }
.dsh-lk__glow { position: absolute; z-index: -1; top: -200px; left: 50%; width: 520px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--acc), 0.32), transparent 65%); filter: blur(30px); transform: translateX(-50%); pointer-events: none; }
.dsh-lk__grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(70% 40% at 50% 0%, #000, transparent); mask-image: radial-gradient(70% 40% at 50% 0%, #000, transparent); pointer-events: none; }
.dsh-lk__x { position: absolute; top: 18px; right: 18px; z-index: 2; }

.dsh-lk__hero { display: flex; align-items: center; gap: 18px; margin: 4px 40px 18px 0; }
.dsh-lk__emblem { position: relative; display: grid; place-items: center; flex: none; width: 76px; height: 76px; }
.dsh-lk__emblem span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(var(--acc), 0.5); animation: dsh-lk-ring 3s ease-out infinite; }
.dsh-lk__emblem span + span { animation-delay: 1.5s; }
@keyframes dsh-lk-ring { from { transform: scale(0.55); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.dsh-lk__emblem i { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; color: #0b0b0d; background: linear-gradient(145deg, #e3ecff, rgb(var(--acc))); box-shadow: 0 0 34px rgba(var(--acc), 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.6); animation: dsh-lk-float 4s ease-in-out infinite; }
@keyframes dsh-lk-float { 50% { transform: translateY(-5px) rotate(-4deg); } }
.dsh-lk__emblem .dsh-ic { width: 26px; height: 26px; }
.dsh-lk__hero .dsh-kicker { margin-bottom: 8px; }
.dsh-lk__title { margin: 0 0 4px; font-family: var(--display); font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.dsh-lk__title span { background: linear-gradient(100deg, rgb(var(--acc)), #fff 50%, rgb(var(--acc))); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: dsh-lk-sheen 6s ease-in-out infinite; }
@keyframes dsh-lk-sheen { 50% { background-position: 100% 0; } }

.dsh-lk__steps { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.dsh-lk__steps li { display: flex; align-items: center; gap: 8px; flex: 1; font-size: 12.5px; font-weight: 700; color: #7d7f8b; white-space: nowrap; transition: color 0.3s ease; }
.dsh-lk__steps li::after { content: ""; flex: 1; min-width: 12px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); transition: background-color 0.4s ease; }
.dsh-lk__steps li:last-child { flex: none; }
.dsh-lk__steps li:last-child::after { display: none; }
.dsh-lk__steps i { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 8px; font-style: normal; font-size: 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.4s var(--spring); }
.dsh-lk__steps li.is-on { color: #fff; }
.dsh-lk__steps li.is-on i { color: #0b0b0d; background: rgb(var(--acc)); border-color: transparent; box-shadow: 0 0 16px -2px rgba(var(--acc), 0.9); transform: scale(1.08); }
.dsh-lk__steps li.is-done { color: #d6f5e3; }
.dsh-lk__steps li.is-done i { color: #0b0b0d; background: rgb(var(--ok)); border-color: transparent; }
.dsh-lk__steps li.is-done::after { background: linear-gradient(90deg, rgb(var(--ok)), rgba(var(--acc), 0.6)); }

.dsh-lk__sec { padding: 14px; margin: 0 0 12px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.025); }
.dsh-lk__sechead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dsh-lk__sechead b { font-size: 14px; }
.dsh-lk__sechead small { overflow: hidden; font-size: 12.5px; font-weight: 600; color: rgb(var(--acc)); text-overflow: ellipsis; white-space: nowrap; }
.dsh-lk__search { position: relative; display: flex; align-items: center; margin: 0; }
.dsh-lk__search .dsh-ic { position: absolute; left: 10px; width: 15px; height: 15px; color: rgba(255, 255, 255, 0.45); pointer-events: none; }
.dsh-lk__search input { width: 190px; height: 36px; padding: 0 12px 0 32px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.25); color: #fff; font: inherit; font-size: 13px; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease, width 0.4s var(--ease); }
.dsh-lk__search input:focus { width: 230px; border-color: rgba(var(--acc), 0.6); box-shadow: 0 0 0 3px rgba(var(--acc), 0.14); }

.dsh-lk__games {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px;
  max-height: 232px; overflow-y: auto; padding: 8px 6px 6px 2px; margin: -6px -4px 0 -2px;
  scrollbar-width: thin; scrollbar-color: rgba(var(--acc), 0.4) transparent;
}
.dsh-lk__game {
  position: relative; display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 6px 8px 6px 6px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.03);
  cursor: pointer; outline: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.35s var(--ease), box-shadow 0.3s ease;
}
.dsh-lk__game:hover { border-color: rgba(255, 255, 255, 0.18); transform: translateY(-2px); }
.dsh-lk__game:focus-visible { box-shadow: 0 0 0 2px rgba(var(--acc), 0.7); }
.dsh-lk__game.is-active { border-color: rgba(var(--acc), 0.7); background: linear-gradient(135deg, rgba(var(--acc), 0.2), rgba(var(--acc), 0.05)); box-shadow: 0 10px 24px -14px rgba(var(--acc), 1); }
.dsh-lk__gimg { width: 52px; height: 36px; flex: none; border-radius: 9px; overflow: hidden; background: rgba(255, 255, 255, 0.05); }
.dsh-lk__gimg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); }
.dsh-lk__gtxt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.dsh-lk__gtxt b { overflow: hidden; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.dsh-lk__gtxt small { overflow: hidden; font-size: 11px; color: #8f919d; text-overflow: ellipsis; white-space: nowrap; }
.dsh-lk__tick { position: absolute; top: -7px; right: -6px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #0b0b0d; background: rgb(var(--acc)); box-shadow: 0 0 12px rgba(var(--acc), 0.9); transform: scale(0); transition: transform 0.4s var(--spring); }
.dsh-lk__tick .dsh-ic { width: 12px; height: 12px; }
.dsh-lk__game.is-active .dsh-lk__tick { transform: scale(1); }
.dsh-lk__own { position: absolute; bottom: 5px; right: 6px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: #0b0b0d; background: rgb(var(--ok)); }
.dsh-lk__own .dsh-ic { width: 10px; height: 10px; }
.dsh-lk__none { grid-column: 1 / -1; margin: 18px 0; text-align: center; font-size: 13px; color: #8f919d; }

[data-lk-form] { opacity: 0.55; transition: opacity 0.35s ease; }
[data-lk-form].is-ready { opacity: 1; }
.dsh-lk__field { position: relative; display: flex; align-items: center; }
.dsh-lk__field > .dsh-ic { position: absolute; left: 16px; width: 20px; height: 20px; color: rgb(var(--acc)); pointer-events: none; }
.dsh-lk__field input {
  width: 100%; height: 58px; padding: 0 100px 0 48px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(0, 0, 0, 0.35); color: #fff;
  font: 700 17px/1 ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: 0.08em; text-transform: uppercase; outline: none;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, background-color 0.2s ease;
}
.dsh-lk__field input::placeholder { color: rgba(255, 255, 255, 0.22); letter-spacing: 0.06em; }
.dsh-lk__field input:focus { border-color: rgba(var(--acc), 0.7); box-shadow: 0 0 0 4px rgba(var(--acc), 0.14), 0 0 30px -10px rgba(var(--acc), 0.8); background: rgba(0, 0, 0, 0.45); }
.dsh-lk__field.is-bad input { border-color: rgba(248, 113, 113, 0.7); box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12); }
.dsh-lk__paste { position: absolute; right: 8px; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.06); color: #d9dbe3; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.dsh-lk__paste .dsh-ic { width: 15px; height: 15px; }
.dsh-lk__paste:hover { color: #fff; background: rgba(var(--acc), 0.16); }
[data-lk-form] .avn-err.is-on { margin-top: 10px; }
[data-lk-form] .avn-btn { margin-top: 12px; }
.dsh-lk__fine { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: 12px; color: #7d7f8b; }
.dsh-lk__fine .dsh-ic { width: 13px; height: 13px; }

/* success */
.dsh-lk__done { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 0 6px; animation: dsh-lk-pop 0.6s var(--spring) both; }
.dsh-lk__done[hidden] { display: none; }
@keyframes dsh-lk-pop { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }
.dsh-lk__done .dsh-kicker { margin: 6px 0 10px; }
.dsh-lk__success { display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--ok), 0.22), transparent 70%); animation: dsh-lk-pop 0.7s var(--spring) both; }
.dsh-lk__success svg { width: 84px; height: 84px; fill: none; stroke: rgb(var(--ok)); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 14px rgba(var(--ok), 0.7)); }
.dsh-lk__success circle { stroke-dasharray: 145; stroke-dashoffset: 145; animation: dsh-lk-draw 0.7s var(--ease) 0.15s forwards; }
.dsh-lk__success path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: dsh-lk-draw 0.45s var(--ease) 0.7s forwards; }
@keyframes dsh-lk-draw { to { stroke-dashoffset: 0; } }
.dsh-lk__done .dsh-lk__title span { background-image: linear-gradient(100deg, #ffe7a8, #fff 50%, rgb(var(--gold))); }
.dsh-lk__sum { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 440px; margin: 16px auto 20px; padding: 12px; border-radius: 18px; text-align: left; border: 1px solid rgba(var(--gold), 0.3); background: linear-gradient(135deg, rgba(var(--gold), 0.1), rgba(255, 255, 255, 0.02)); }
.dsh-lk__sumimg { width: 110px; height: 62px; flex: none; border-radius: 12px; overflow: hidden; }
.dsh-lk__sumimg img { width: 100%; height: 100%; object-fit: cover; }
.dsh-lk__sumtxt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dsh-lk__sumtxt b { font-family: var(--display); font-size: 18px; }
.dsh-lk__sumtxt small { font-size: 12.5px; color: #9a9ca8; }
.dsh-lk__sumrow { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 12.5px; color: #d6f5e3; }
.dsh-lk__bit { position: absolute; left: 50%; top: 70px; width: 8px; height: 8px; border-radius: 2px; background: rgb(var(--c)); box-shadow: 0 0 10px rgba(var(--c), 0.9); pointer-events: none; animation: dsh-lk-bit 1.3s cubic-bezier(0.15, 0.6, 0.3, 1) forwards; }
.dsh-lk__bit:nth-child(3n) { border-radius: 50%; }
@keyframes dsh-lk-bit { 0% { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(1); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 60px)) rotate(var(--r)) scale(0.5); } }

@media (max-width: 575.98px) {
  .dsh-lk { padding: 10px; align-items: end; }
  .dsh-lk__card { padding: 20px 16px 18px; border-radius: 24px; }
  .dsh-lk__hero { gap: 12px; margin-right: 36px; }
  .dsh-lk__emblem { width: 56px; height: 56px; }
  .dsh-lk__emblem i { width: 42px; height: 42px; border-radius: 14px; }
  .dsh-lk__sechead { flex-wrap: wrap; }
  .dsh-lk__search, .dsh-lk__search input, .dsh-lk__search input:focus { width: 100%; }
  .dsh-lk__games { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 200px; }
  .dsh-lk__field input { font-size: 14px; padding-right: 92px; }
  .dsh-lk__steps li { font-size: 11px; }
}

/* =====================================================================
   Nav wrapper, banners, support tickets (customer side)
   ===================================================================== */
/* links live in a wrapper so live refreshes can swap them without touching the glider */
.dsh-nav__links { display: contents; }

/* staff notices + account on hold (overview) */
.dsh-banners { display: grid; gap: 10px; }
.dsh-banner {
  --c: var(--acc);
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 16px;
  font-size: 14px; line-height: 1.5; color: #e3e6ef;
  border: 1px solid rgba(var(--c), 0.32);
  background: linear-gradient(90deg, rgba(var(--c), 0.12), rgba(var(--c), 0.03));
  box-shadow: inset 3px 0 0 rgb(var(--c));
}
.dsh-view.is-enter .dsh-banner { animation: dsh-in 0.6s var(--ease) both; }
.dsh-banner[data-level="warn"] { --c: 245, 180, 84; }
.dsh-banner[data-level="bad"] { --c: var(--bad); }
.dsh-banner[data-level="ok"] { --c: var(--ok); }
.dsh-banner > .dsh-ic { width: 20px; height: 20px; color: rgb(var(--c)); }
.dsh-banner > span { flex: 1; min-width: 0; }
.dsh-banner b { color: #fff; }
.dsh-banner small { flex: none; font-size: 12px; color: #8f919d; }
.dsh-banner__go { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 13px; font-weight: 700; color: rgb(var(--c)); }
.dsh-banner__go .dsh-ic { width: 15px; height: 15px; }
.dsh-unlock--hold { border-color: rgba(var(--bad), 0.35); background: radial-gradient(120% 140% at 0% 0%, rgba(var(--bad), 0.16), transparent 55%), rgba(16, 17, 22, 0.78); }
.dsh-unlock--hold .dsh-unlock__art i { background: linear-gradient(145deg, #ffd0d0, rgb(var(--bad))); box-shadow: 0 0 26px rgba(var(--bad), 0.6); }
.dsh-unlock--hold .dsh-unlock__art span { border-color: rgba(var(--bad), 0.45); }

/* new-ticket form: slides open */
.dsh-tform-wrap { display: grid; grid-template-rows: 0fr; opacity: 0; margin-bottom: -18px; transition: grid-template-rows 0.5s var(--ease), opacity 0.35s ease, margin 0.5s var(--ease); }
.dsh-tform-wrap.is-open { grid-template-rows: 1fr; opacity: 1; margin-bottom: 0; }
.dsh-tform-wrap__in { min-height: 0; overflow: hidden; }
.dsh-tform { border-color: rgba(var(--acc), 0.35); background: radial-gradient(120% 60% at 100% 0%, rgba(var(--acc), 0.12), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)); }
.dsh-tform__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.dsh-tform__head .dsh-h2 { margin-bottom: 2px; }
.dsh-tform__head .dsh-muted { margin: 0; }
.dsh-tform__ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; color: #0b0b0d; background: linear-gradient(145deg, #e3ecff, rgb(var(--acc))); box-shadow: 0 10px 24px -10px rgba(var(--acc), 1); }
.dsh-lbl textarea, .dsh-reply textarea {
  width: 100%; padding: 12px 14px; border-radius: 13px; resize: vertical; min-height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.25); color: #fff;
  font: inherit; font-size: 14.5px; line-height: 1.55; outline: none;
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}
.dsh-lbl textarea:focus, .dsh-reply textarea:focus { border-color: rgba(var(--acc), 0.6); box-shadow: 0 0 0 4px rgba(var(--acc), 0.13); }
.dsh-lbl select optgroup { color: #9a9ca8; background: #16161b; }

/* ticket list */
.dsh-tlist { display: grid; gap: 8px; }
.dsh-trow {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); color: #fff;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.4s var(--ease);
}
.dsh-view.is-enter .dsh-trow { animation: dsh-in 0.6s var(--ease) both; animation-delay: calc(0.1s + var(--k, 0) * 55ms); }
.dsh-trow:hover { color: #fff; border-color: rgba(var(--acc), 0.35); background: rgba(var(--acc), 0.05); transform: translateX(3px); }
.dsh-trow.is-unread { border-color: rgba(var(--acc), 0.45); }
.dsh-trow.is-unread::after { content: ""; position: absolute; top: 10px; left: 10px; width: 9px; height: 9px; border-radius: 50%; background: rgb(var(--acc)); box-shadow: 0 0 0 3px #15161b, 0 0 12px rgba(var(--acc), 0.9); }
.dsh-trow__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: rgb(var(--acc)); background: rgba(var(--acc), 0.1); }
.dsh-trow__ic[data-ts="resolved"], .dsh-trow__ic[data-ts="closed"] { color: rgb(var(--ok)); background: rgba(var(--ok), 0.1); }
.dsh-trow__txt { display: flex; flex-direction: column; min-width: 0; }
.dsh-trow__txt b { overflow: hidden; font-size: 14.5px; text-overflow: ellipsis; white-space: nowrap; }
.dsh-trow__txt small { overflow: hidden; font-size: 12.5px; color: #9a9ca8; text-overflow: ellipsis; white-space: nowrap; }
.dsh-trow__ago { font-size: 12px; color: #7d7f8b; white-space: nowrap; }
.dsh-tstat { --c: var(--acc); padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; color: rgb(var(--c)); background: rgba(var(--c), 0.1); border: 1px solid rgba(var(--c), 0.3); }
.dsh-tstat[data-ts="open"] { --c: 245, 180, 84; }
.dsh-tstat[data-ts="pending"] { --c: var(--acc); }
.dsh-tstat[data-ts="resolved"], .dsh-tstat[data-ts="closed"] { --c: var(--ok); }
.dsh-tstat--lg { padding: 6px 14px; font-size: 12.5px; }

/* ticket thread */
.dsh-backlink { justify-self: start; display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: #b7bac6; }
.dsh-backlink:hover { color: #fff; }
.dsh-backlink .dsh-ic { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.dsh-backlink:hover .dsh-ic { transform: translateX(-3px); }
.dsh-thread { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.dsh-thread__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); background: radial-gradient(120% 100% at 100% 0%, rgba(var(--acc), 0.1), transparent 60%); }
.dsh-thread__title { margin: 0 0 4px; font-family: var(--display); font-size: clamp(20px, 2.4vw, 26px); line-height: 1.15; }
.dsh-thread__head .dsh-muted { margin: 0; font-size: 13px; }
.dsh-msgs { display: flex; flex-direction: column; gap: 14px; max-height: 520px; min-height: 180px; overflow-y: auto; padding: 22px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.15) transparent; }
.dsh-msg { display: flex; align-items: flex-end; gap: 10px; max-width: 82%; }
.dsh-view.is-enter .dsh-msg { animation: dsh-msg-in 0.45s var(--ease) both; }
@keyframes dsh-msg-in { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
.dsh-msg--me { align-self: flex-end; flex-direction: row-reverse; }
.dsh-msg__av { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: rgba(var(--acc), 0.12); border: 1px solid rgba(var(--acc), 0.3); }
.dsh-msg__av img { width: 18px; height: 18px; object-fit: contain; }
.dsh-msg__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.dsh-msg--me .dsh-msg__body { align-items: flex-end; }
.dsh-msg__bubble { padding: 11px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.dsh-msg--them .dsh-msg__bubble { color: #e7e7ea; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.dsh-msg--me .dsh-msg__bubble { color: #0b0b0d; font-weight: 600; background: linear-gradient(135deg, rgb(var(--acc)), color-mix(in srgb, rgb(var(--acc)) 72%, #5a78c8)); border-bottom-right-radius: 5px; box-shadow: 0 10px 24px -12px rgba(var(--acc), 0.9); }
.dsh-msg small { font-size: 11.5px; color: #7d7f8b; }
.dsh-msg--sys { align-self: center; max-width: 100%; }
.dsh-msg--sys span { padding: 4px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: #9a9ca8; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.dsh-reply { padding: 16px 22px 20px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.15); }
.dsh-reply textarea { min-height: 84px; }
.dsh-reply__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.dsh-reply__foot small { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #7d7f8b; }
.dsh-reply__foot small .dsh-ic { width: 14px; height: 14px; }
.dsh-thread__closed { padding: 16px 22px 20px; border-top: 1px solid var(--line); }
.dsh-thread__closed a { color: rgb(var(--acc)); }
@container dmain (max-width: 640px) {
  .dsh-trow { grid-template-columns: auto minmax(0, 1fr); }
  .dsh-trow .dsh-tstat { grid-column: 2; justify-self: start; }
  .dsh-trow__ago { display: none; }
  .dsh-thread__head { flex-direction: column; padding: 16px; }
  .dsh-msgs { padding: 16px; }
  .dsh-msg { max-width: 94%; }
  .dsh-reply { padding: 14px 16px 16px; }
  .dsh-banner { flex-wrap: wrap; }
}

/* =====================================================================
   Renewals, what's new, screenshots, ratings, tiers, rewards, invites
   ===================================================================== */
.dsh { --tier-bronze: 214, 158, 116; --tier-silver: 196, 206, 226; --tier-gold: 240, 200, 110; --tier-diamond: 125, 214, 255; }
[data-tier="bronze"] { --tc: var(--tier-bronze); }
[data-tier="silver"] { --tc: var(--tier-silver); }
[data-tier="gold"] { --tc: var(--tier-gold); }
[data-tier="diamond"] { --tc: var(--tier-diamond); }

.dsh-banner em { font-style: normal; font-variant-numeric: tabular-nums; }
.dsh-banner code { padding: 1px 7px; border-radius: 6px; font: 700 12.5px/1.4 ui-monospace, Consolas, monospace; color: #fff; background: rgba(255, 255, 255, 0.08); }
.dsh-banner__btn { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 7px 12px; border: 0; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 700; color: #0b0b0d; background: rgb(var(--c)); cursor: pointer; transition: transform 0.3s var(--ease), filter 0.2s ease; }
.dsh-banner__btn .dsh-ic { width: 15px; height: 15px; }
.dsh-banner__btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.dsh-ib--renew { color: #0b0b0d; background: rgb(245, 180, 84); border-color: transparent; }
.dsh-ib--renew:hover { color: #0b0b0d; background: rgb(245, 180, 84); filter: brightness(1.08); }

/* what's new (setup guide) */
.dsh-cl { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.dsh-cl li { --c: var(--acc); position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.dsh-cl li[data-type="fix"] { --c: var(--ok); }
.dsh-cl li[data-type="new"] { --c: 172, 146, 255; }
.dsh-cl li[data-type="note"] { --c: 245, 180, 84; }
.dsh-cl li + li::before { content: ""; position: absolute; left: 4px; top: -12px; height: 16px; width: 1px; background: var(--line); }
.dsh-cl__dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: rgb(var(--c)); box-shadow: 0 0 10px rgba(var(--c), 0.8); }
.dsh-cl__top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.dsh-cl__top b { font-size: 12.5px; }
.dsh-cl__top em { padding: 1px 7px; border-radius: 999px; font-style: normal; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: rgb(var(--c)); background: rgba(var(--c), 0.12); }
.dsh-cl__top small { font-size: 11.5px; color: #7d7f8b; }
.dsh-cl p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: #c3c6d1; }

/* help suggestions while typing a ticket */
.dsh-suggest { display: none; grid-column: 1 / -1; padding: 12px; border-radius: 14px; border: 1px solid rgba(var(--acc), 0.3); background: rgba(var(--acc), 0.06); animation: dsh-pop 0.4s var(--spring) both; }
.dsh-suggest.is-on { display: grid; gap: 4px; }
.dsh-suggest > b { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; font-size: 12.5px; color: #c9d6f5; }
.dsh-suggest > b .dsh-ic { width: 15px; height: 15px; color: rgb(var(--acc)); }
.dsh-suggest a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: #fff; font-size: 13.5px; transition: background-color 0.2s ease; }
.dsh-suggest a:hover { color: #fff; background: rgba(var(--acc), 0.1); }
.dsh-suggest a span { flex: 1; min-width: 0; }
.dsh-suggest a small { font-size: 11.5px; color: #8f919d; }
.dsh-suggest a .dsh-ic { width: 14px; height: 14px; color: rgb(var(--acc)); }

/* screenshots */
.dsh-attach { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.dsh-attach__f { position: relative; width: 74px; height: 56px; border-radius: 11px; overflow: hidden; border: 1px solid var(--line); animation: dsh-pop 0.4s var(--spring) both; }
.dsh-attach__f img { width: 100%; height: 100%; object-fit: cover; }
.dsh-attach__f button { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 6px; color: #fff; background: rgba(0, 0, 0, 0.7); cursor: pointer; }
.dsh-attach__f button .dsh-ic { width: 11px; height: 11px; }
.dsh-attach__add { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 12px; border-radius: 12px; border: 1px dashed rgba(var(--acc), 0.4); background: rgba(var(--acc), 0.05); color: #d9dbe3; font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease; }
.dsh-attach__add:hover { border-color: rgba(var(--acc), 0.7); background: rgba(var(--acc), 0.1); }
.dsh-attach__add .dsh-ic { width: 16px; height: 16px; color: rgb(var(--acc)); }
.dsh-attach__add small { font-size: 11px; font-weight: 500; color: #7d7f8b; }
.dsh-attach__add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dsh-attach--sm { margin-top: 8px; }
.dsh-attach--sm .dsh-attach__add { padding: 6px 10px; font-size: 12px; }
form.is-drop { outline: 2px dashed rgba(var(--acc), 0.7); outline-offset: 4px; }
.dsh-shots { display: flex; flex-wrap: wrap; gap: 6px; }
.dsh-shot { width: 150px; max-width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #000; cursor: zoom-in; transition: transform 0.35s var(--ease), border-color 0.2s ease; }
.dsh-shot img { width: 100%; height: 100%; object-fit: cover; }
.dsh-shot:hover { transform: translateY(-2px); border-color: rgba(var(--acc), 0.5); }
.dsh-msg--me .dsh-shots, .adm-msg--staff .dsh-shots { justify-content: flex-end; }
.dsh-lb { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 20px; }
.dsh-lb[hidden] { display: none; }
.dsh-lb__scrim { position: absolute; inset: 0; background: rgba(4, 4, 7, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; transition: opacity 0.35s ease; }
.dsh-lb.is-open .dsh-lb__scrim { opacity: 1; }
.dsh-lb__fig { position: relative; display: flex; flex-direction: column; gap: 10px; max-width: min(1200px, 100%); max-height: 100%; margin: 0; transform: scale(0.94); opacity: 0; transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease; }
.dsh-lb.is-open .dsh-lb__fig { transform: none; opacity: 1; }
.dsh-lb__fig img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 14px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9); object-fit: contain; }
.dsh-lb__fig figcaption { display: flex; align-items: center; gap: 10px; font: 600 13px/1.4 var(--font-body, Urbanist, sans-serif); color: #d9dbe3; }
.dsh-lb__fig figcaption span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dsh-lb__dl, .dsh-lb__x { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px; background: rgba(255, 255, 255, 0.06); color: #fff; font: inherit; cursor: pointer; text-decoration: none; }
.dsh-lb__dl svg, .dsh-lb__x svg { width: 15px; height: 15px; }
.dsh-lb__dl:hover, .dsh-lb__x:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }

/* rating after a ticket is resolved */
.dsh-rate { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 22px 18px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(240, 200, 110, 0.3); background: linear-gradient(135deg, rgba(240, 200, 110, 0.1), rgba(255, 255, 255, 0.02)); }
.dsh-rate.is-rated { border-color: var(--line); background: rgba(255, 255, 255, 0.025); }
.dsh-rate__txt { display: flex; flex-direction: column; flex: 1 1 200px; }
.dsh-rate__txt b { font-size: 14.5px; }
.dsh-rate__txt small { font-size: 12.5px; color: #9a9ca8; }
.dsh-rate__btns { display: flex; gap: 8px; }
.dsh-rate__b { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.04); color: #c3c6d1; cursor: pointer; transition: transform 0.35s var(--spring), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.dsh-rate__b .dsh-ic { width: 20px; height: 20px; }
.dsh-rate__b:hover { transform: translateY(-2px) scale(1.06); color: #0b0b0d; background: rgb(var(--ok)); border-color: transparent; }
.dsh-rate__b--down:hover { background: rgb(var(--bad)); }
.dsh-rate__b.is-on { color: #0b0b0d; background: rgb(var(--ok)); border-color: transparent; box-shadow: 0 0 20px -4px rgba(var(--ok), 0.9); }
.dsh-rate__b--down.is-on { background: rgb(var(--bad)); box-shadow: 0 0 20px -4px rgba(var(--bad), 0.9); }
.dsh-rate__why { display: flex; gap: 8px; flex: 1 1 100%; margin: 0; }
.dsh-rate__why input { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.25); color: #fff; font: inherit; font-size: 13.5px; outline: none; }
.dsh-rate__why input:focus { border-color: rgba(var(--acc), 0.6); }

/* tier, rewards, invites (profile) */
.dsh-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.dsh-chip--tier { margin-top: 4px; color: rgb(var(--tc)); background: rgba(var(--tc), 0.12); border: 1px solid rgba(var(--tc), 0.35); }
.dsh-tier { position: relative; overflow: hidden; isolation: isolate; border-color: rgba(var(--tc), 0.35); background: radial-gradient(120% 90% at 100% 0%, rgba(var(--tc), 0.16), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)); }
.dsh-tier__glow { position: absolute; z-index: -1; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--tc), 0.35), transparent 70%); filter: blur(20px); animation: dsh-float 6s ease-in-out infinite; }
.dsh-tier__top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.dsh-tier__badge { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 16px; color: #0b0b0d; background: linear-gradient(145deg, #fff, rgb(var(--tc))); box-shadow: 0 0 26px -4px rgba(var(--tc), 0.9); }
.dsh-tier__badge .dsh-ic { width: 24px; height: 24px; }
.dsh-tier__top small { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(var(--tc)); }
.dsh-tier__top b { display: block; font-family: var(--display); font-size: 24px; line-height: 1.1; }
.dsh-tier__top p { margin: 2px 0 0; font-size: 12.5px; color: #a3a6b3; }
.dsh-tier__next { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; font-size: 12px; color: #9a9ca8; }
.dsh-tier__next b { color: #fff; }
.dsh-bar--tier { display: block; }
.dsh-bar--tier span { background: linear-gradient(90deg, rgba(var(--tc), 0.6), rgb(var(--tc))); box-shadow: 0 0 10px rgba(var(--tc), 0.8); }
.dsh-tier__ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 14px; }
.dsh-tier__ladder span { padding: 5px 0; border-radius: 8px; font-size: 11px; font-weight: 700; text-align: center; color: #6f717c; background: rgba(255, 255, 255, 0.03); }
.dsh-tier__ladder span.is-on { color: #0b0b0d; background: rgb(var(--tc)); }
.dsh-rewards .dsh-h2, .dsh-invite .dsh-h2 { display: flex; align-items: center; gap: 8px; }
.dsh-rewards .dsh-h2 .dsh-ic, .dsh-invite .dsh-h2 .dsh-ic { color: rgb(var(--acc)); }
.dsh-codes { display: grid; gap: 8px; }
.dsh-code { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 14px; border: 1px dashed rgba(var(--ok), 0.4); background: rgba(var(--ok), 0.06); }
.dsh-code > span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.dsh-code b { font-size: 14px; color: #d6f5e3; }
.dsh-code small { font-size: 11.5px; color: #9a9ca8; }
.dsh-code__c { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 0; border-radius: 10px; background: rgba(0, 0, 0, 0.3); color: #fff; cursor: pointer; }
.dsh-code__c code { font: 700 13px/1 ui-monospace, Consolas, monospace; letter-spacing: 0.06em; color: #fff; background: none; padding: 0; }
.dsh-code__c .dsh-ic { width: 14px; height: 14px; color: rgb(var(--ok)); }
.dsh-code__c.is-done { background: rgb(var(--ok)); }
.dsh-code__c.is-done code, .dsh-code__c.is-done .dsh-ic { color: #0b0b0d; }
.dsh-invite__row { display: flex; gap: 8px; }
.dsh-invite__row input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.28); color: #c9d6f5; font: 600 12.5px/1 ui-monospace, Consolas, monospace; outline: none; }
.dsh-invite .dsh-muted b { color: #fff; }
@container dmain (max-width: 900px) { .dsh-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dsh-grid3 > .dsh-tier { grid-column: 1 / -1; } }
@container dmain (max-width: 580px) {
  .dsh-grid3 { grid-template-columns: minmax(0, 1fr); }
  .dsh-rate { margin: 0 16px 14px; }
  .dsh-invite__row { flex-direction: column; }
  .dsh-shot { width: 120px; }
}
