/* ==========================================================================
   Grid Software — App chrome: dashboard shell, footer, legal docs, form widgets
   Loaded on every page after components.css.
   ========================================================================== */

/* --- Sticky top nav (one of only two glass surfaces) ----------------------- */

.topbar {
  position: sticky;
  top: var(--alert-h, 0px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  height: var(--nav-h);
  padding: 0 var(--sp-5);
  border-bottom: 1px solid var(--line-1);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.topnav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.topnav-links a {
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.topnav-links a:hover {
  color: var(--text);
}

.topnav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 var(--sp-4);
  border-radius: var(--r-md);
  background: var(--accent);
  color: #fff !important;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.topnav-cta:hover {
  background: var(--accent-hi);
}

/* --- Dashboard shell ------------------------------------------------------- */

.app-shell .shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: 0;
  width: 100%;
  margin: 0;
  align-items: stretch;
}

.sidebar {
  position: sticky;
  top: calc(var(--nav-h) + var(--alert-h, 0px));
  align-self: start;
  display: flex !important;
  flex-direction: column !important;
  gap: var(--sp-4);
  height: calc(100dvh - var(--nav-h) - var(--alert-h, 0px));
  overflow-y: auto;
  padding: var(--sp-5) var(--sp-4);
  border: 0;
  border-right: 1px solid var(--line-1);
  border-radius: 0;
  background: var(--bg-elev);
}

.app-shell .content {
  min-width: 0 !important;
  width: 100%;
  box-sizing: border-box;
  padding: 28px 36px 80px;
}

.dashboard-v2-container {
  width: 100%;
  max-width: 1180px;
  margin: 0;
}

.app-shell .content > * {
  max-width: 100%;
}

.app-shell .content > .prose,
.app-shell .content > .app-prose {
  max-width: var(--prose-max, 68ch);
}

.sidebar h2 {
  margin: 0 0 var(--sp-1);
  padding: 0 var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.sidebar-nav,
.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav {
  gap: var(--sp-4);
}

.sidebar-group + .sidebar-group {
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-1);
}

.sidebar-group-label {
  margin: 0 0 var(--sp-2);
  padding: 0 var(--sp-2);
  color: var(--text-3);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
}

.sidebar a {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  color: rgba(255, 255, 255, 0.65);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.sidebar a::before {
  display: none !important;
}

.sidebar a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.sidebar a.active,
.sidebar .nav-item.active {
  background: rgba(59, 130, 246, 0.12) !important;
  border: 1px solid rgba(59, 130, 246, 0.35) !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15) !important;
}

.sidebar a.active .sidebar-icon,
.sidebar .nav-item.active .sidebar-icon {
  color: #60a5fa !important;
}

.sidebar-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: currentColor;
}

.content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  min-width: 0;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.page-head h1 {
  margin: 0 0 var(--sp-1);
}

.page-head .eyebrow {
  margin-bottom: var(--sp-2);
}

.product-icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-1);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  object-fit: cover;
  flex: 0 0 auto;
}

.row-gap-10 { gap: var(--sp-3); }
.flex-1 { flex: 1; min-width: 0; }

@media (max-width: 960px) {
  .app-shell .shell {
    grid-template-columns: 1fr;
    width: calc(100% - var(--sp-5));
    gap: var(--sp-4);
  }

  .sidebar {
    position: static;
    flex-direction: row;
    gap: var(--sp-2);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: var(--sp-2);
  }

  .sidebar h2,
  .sidebar-group-label { display: none; }

  .sidebar-nav,
  .sidebar-group {
    flex-direction: row;
    gap: var(--sp-2);
  }

  .sidebar-group + .sidebar-group {
    padding-top: 0;
    border-top: 0;
  }

  .sidebar a {
    white-space: nowrap;
  }

  .sidebar a::before {
    left: var(--sp-3);
    right: var(--sp-3);
    top: auto;
    bottom: 2px;
    width: auto;
    height: 2px;
  }
}

/* --- Onboarding checklist -------------------------------------------------- */

.onboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-5);
  align-items: center;
  padding: var(--sp-5);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(120deg, var(--accent-soft), transparent 62%),
    var(--surface-1);
}

.onboard-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  padding: 0;
  list-style: none;
}

.onboard-steps li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: var(--fs-sm);
}

.onboard-steps li.is-done {
  border-color: rgba(63, 207, 142, 0.28);
  background: var(--ok-soft);
  color: var(--text);
}

.onboard-steps .step-mark {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
}

.onboard-steps li.is-done .step-mark {
  border-color: transparent;
  background: var(--ok);
  color: #06301f;
}

.progress-ring {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--pct, 0) * 1%), var(--surface-3) 0);
}

.progress-ring span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface-1);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 600;
}

@media (max-width: 720px) {
  .onboard {
    grid-template-columns: 1fr;
  }

  .progress-ring {
    justify-self: start;
  }
}

/* --- Subscription rows ----------------------------------------------------- */

.sub-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.sub-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-4);
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
  background: var(--surface-2);
  transition: border-color var(--t-fast);
}

.sub-row:hover {
  border-color: var(--line-2);
}

.sub-thumb {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface-3);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-2);
}

.sub-name {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
}

.sub-meta {
  margin-top: 2px;
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
}

.meter {
  height: 4px;
  margin-top: var(--sp-2);
  border-radius: var(--r-pill);
  background: var(--surface-3);
  overflow: hidden;
}

.meter > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.meter.is-warn > i { background: var(--warn); }
.meter.is-err > i { background: var(--err); }

@media (max-width: 640px) {
  .sub-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .sub-row .sub-actions {
    grid-column: 1 / -1;
  }
}

/* --- Activity timeline ----------------------------------------------------- */

.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding-left: var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-3);
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 18px;
  bottom: -18px;
  width: 1px;
  background: var(--line-1);
}

.timeline li:last-child::after {
  display: none;
}

.timeline li.is-ok::before { background: var(--ok); }
.timeline li.is-warn::before { background: var(--warn); }
.timeline li.is-err::before { background: var(--err); }

.timeline strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.timeline time {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-3);
}

/* --- Flash messages -------------------------------------------------------- */

.flash {
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--fs-sm);
}

.flash-success { border-color: rgba(63, 207, 142, 0.3); background: var(--ok-soft); }
.flash-error { border-color: rgba(244, 88, 92, 0.3); background: var(--err-soft); }

/* --- Custom select / file inputs ------------------------------------------ */

.js-custom-select.is-enhanced { display: none !important; }

.custom-select {
  position: relative;
  margin-top: var(--sp-2);
}

.custom-select-trigger {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 12px;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  min-height: 40px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface-inset);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-align: left;
}

.custom-select-trigger:hover {
  border-color: var(--line-3);
  background: var(--surface-2);
}

.custom-select-trigger-icon,
.custom-select-option-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  background: var(--surface-3);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.custom-select-trigger-icon.has-image,
.custom-select-option-icon.has-image {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: transparent;
  font-size: 0;
}

.custom-select-trigger-icon[data-tone="success"],
.custom-select-option-icon[data-tone="success"] { border-color: rgba(63, 207, 142, 0.3); background: var(--ok-soft); color: var(--ok); }

.custom-select-trigger-icon[data-tone="danger"],
.custom-select-option-icon[data-tone="danger"] { border-color: rgba(244, 88, 92, 0.3); background: var(--err-soft); color: var(--err); }

.custom-select-trigger-icon[data-tone="warning"],
.custom-select-option-icon[data-tone="warning"] { border-color: rgba(245, 165, 36, 0.3); background: var(--warn-soft); color: var(--warn); }

.custom-select-trigger-label,
.custom-select-option-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-caret {
  justify-self: end;
  color: var(--text-3);
  font-size: 10px;
  transition: transform var(--t-fast);
}

.custom-select.is-open .custom-select-caret {
  transform: rotate(180deg);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 2px;
  max-height: 260px;
  padding: var(--sp-1);
  overflow-y: auto;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface-2);
  box-shadow: var(--e3);
}

.custom-select-menu[hidden] { display: none !important; }

.custom-select-option {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  min-height: 36px;
  padding: 0 var(--sp-2);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-align: left;
}

.custom-select-option:hover:not(:disabled),
.custom-select-option.is-selected {
  background: var(--surface-3);
  border-color: var(--line-2);
}

.custom-select-option:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.custom-file {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-3);
  min-height: 44px;
  padding: var(--sp-1) var(--sp-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface-inset);
}

.custom-file-btn {
  position: relative;
  z-index: 1;
  min-height: 32px;
  padding: 0 var(--sp-3);
  font-size: var(--fs-xs);
}

.custom-file-name {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-2);
  font-size: var(--fs-sm);
}

.custom-file input[type="file"],
input[type="file"].is-enhanced {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

.pretty-file-input.is-enhanced {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

/* --- Site footer ----------------------------------------------------------- */

.footer {
  margin-top: var(--sp-9);
  border-top: 1px solid var(--line-1);
  background: var(--bg-elev);
}

.footer-wrap {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: var(--sp-7);
  width: min(var(--shell-max), calc(100% - var(--sp-8)));
  margin-inline: auto;
  padding: var(--sp-7) 0 var(--sp-5);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.footer-tagline {
  max-width: 32ch;
  color: var(--text-3);
  font-size: var(--fs-sm);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer-col h6 {
  margin: 0 0 var(--sp-1);
  color: var(--text-3);
  font-family: var(--font-ui);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
}

.footer-col a {
  color: var(--text-2);
  font-size: var(--fs-sm);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  width: min(var(--shell-max), calc(100% - var(--sp-8)));
  margin-inline: auto;
  padding: var(--sp-4) 0 var(--sp-6);
  border-top: 1px solid var(--line-1);
  color: var(--text-3);
  font-size: var(--fs-xs);
}

@media (max-width: 900px) {
  .footer-wrap {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-5);
  }
}

/* --- Legal documents ------------------------------------------------------- */

body.legal .container {
  margin-block: var(--sp-7) var(--sp-9);
  width: min(1040px, calc(100% - var(--sp-8)));
}

body.legal .legal-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--sp-7);
  align-items: start;
}

body.legal .legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-4));
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--sp-4);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  background: var(--surface-1);
}

body.legal .legal-toc-label,
body.legal .legal-toc-title {
  margin: 0 0 var(--sp-2);
  color: var(--text-3);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
}

body.legal .legal-toc a {
  padding: var(--sp-2) var(--sp-3);
  border-left: 2px solid transparent;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.35;
}

body.legal .legal-toc a:hover {
  background: var(--surface-2);
  color: var(--text);
}

body.legal .legal-toc a.is-active {
  border-left-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
}

body.legal .legal-doc,
body.legal .card {
  padding: var(--sp-7);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  background: var(--surface-1);
}

body.legal h1 {
  font-size: clamp(30px, 3.4vw, 38px);
}

body.legal .legal-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin: var(--sp-3) 0 var(--sp-6);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line-1);
  color: var(--text-3);
  font-size: var(--fs-sm);
}

body.legal p,
body.legal li {
  max-width: var(--prose-max);
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.7;
}

body.legal p + p,
body.legal ul,
body.legal ol {
  margin-top: var(--sp-4);
}

body.legal ul,
body.legal ol {
  padding-left: var(--sp-5);
}

body.legal li + li {
  margin-top: var(--sp-2);
}

body.legal li::marker {
  color: var(--text-3);
}

body.legal h2 {
  margin: var(--sp-7) 0 var(--sp-3);
  padding-top: var(--sp-2);
  scroll-margin-top: calc(var(--nav-h) + var(--sp-5));
  font-size: var(--fs-h2);
}

body.legal h3 {
  margin: var(--sp-5) 0 var(--sp-2);
  scroll-margin-top: calc(var(--nav-h) + var(--sp-5));
}

body.legal .legal-note {
  display: block;
  max-width: 100%;
  margin: var(--sp-4) 0;
  padding: var(--sp-4);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-md);
  background: var(--accent-soft);
}

body.legal .legal-defs {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  max-width: 100%;
  margin-top: var(--sp-4);
  padding: 0;
}

body.legal .legal-history {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-1);
}

body.legal .legal-history table {
  width: 100%;
  max-width: var(--prose-max);
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

body.legal .legal-history td {
  padding: var(--sp-2) var(--sp-3) var(--sp-2) 0;
  border-bottom: 1px solid var(--line-1);
  color: var(--text-2);
  vertical-align: top;
}

body.legal .legal-history td:first-child {
  width: 130px;
  font-family: var(--font-mono);
  color: var(--text-3);
  white-space: nowrap;
}

body.legal .legal-nextprev {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-1);
  font-size: var(--fs-sm);
}

@media (max-width: 980px) {
  body.legal .legal-shell {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  body.legal .legal-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--sp-1);
  }

  body.legal .legal-toc-label,
  body.legal .legal-toc-title { width: 100%; }

  body.legal .legal-toc a {
    border-left: 0;
    border-radius: var(--r-sm);
    background: var(--surface-2);
  }

  body.legal .legal-toc a.is-active {
    border-left: 0;
  }
}

@media (max-width: 640px) {
  body.legal .legal-doc,
  body.legal .card {
    padding: var(--sp-5);
  }

  body.legal .legal-defs {
    grid-template-columns: 1fr;
    gap: var(--sp-1) 0;
  }

  body.legal .legal-defs dd {
    margin-bottom: var(--sp-3);
  }
}

/* ==========================================================================
   Ambani-Style Dark Gaming Aesthetics (Customer Panel, Discord Banner, Subscriptions, Wizard)
   ========================================================================== */

/* --- Customer Panel Sidebar --- */
.customer-panel-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  margin-bottom: var(--sp-4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.customer-panel-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-shield-icon {
  color: #f43f5e;
}

.panel-toggle-icon {
  color: var(--text-3);
  display: flex;
  align-items: center;
  cursor: pointer;
}

.panel-toggle-icon:hover {
  color: var(--text);
}

.ambani-sidebar .nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--r-md);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.ambani-sidebar .nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.ambani-sidebar .nav-item.active {
  background: rgba(59, 130, 246, 0.12) !important;
  border: 1px solid rgba(59, 130, 246, 0.35) !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15) !important;
}

.ambani-sidebar .nav-item.active::before {
  display: none !important;
}

.ambani-sidebar .nav-item.active .sidebar-icon {
  color: #60a5fa !important;
}

/* --- Discord Connect Banner --- */
.discord-connect-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid rgba(88, 101, 242, 0.35);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.15) 0%, rgba(15, 20, 45, 0.6) 100%);
  margin-bottom: 16px;
}

.discord-connect-banner.is-linked {
  border-color: rgba(87, 211, 154, 0.35);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.14) 0%, rgba(15, 20, 45, 0.6) 100%);
}

.discord-banner-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(88, 101, 242, 0.25);
  display: grid;
  place-items: center;
  color: #5865f2;
}

.discord-banner-icon svg {
  width: 24px !important;
  height: 24px !important;
  display: block;
}

.discord-banner-text {
  flex: 1;
}

.discord-banner-text h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.discord-banner-text p {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.4;
}

.btn-discord-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-discord-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* --- Help Prompt Card --- */
.help-prompt-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
  margin-bottom: 24px;
}

.help-prompt-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.help-prompt-icon {
  color: #f43f5e;
}

.help-prompt-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}

.help-prompt-text strong {
  color: #fff;
  font-size: 13.5px;
}

.help-prompt-text span {
  color: var(--text-3);
}

.help-prompt-arrow {
  color: var(--text-3);
  font-size: 18px;
}

/* --- Subscriptions & Add License Card --- */
.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dash-section-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 8px;
  background: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
}

.btn-primary-glow:hover {
  background: #3b82f6;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.5);
  color: #fff;
}

.dash-section {
  margin-top: 32px;
  margin-bottom: 32px;
}

.add-license-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
  margin-bottom: 20px;
}

.add-license-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.04);
}

.add-license-plus {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  color: var(--text-2);
}

.add-license-card strong {
  font-size: 15px;
  color: #fff;
}

.sub-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 28px;
}

.sub-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(15, 18, 26, 0.6);
}

.sub-item-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sub-product-badge {
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
}

.sub-item-info h3 {
  margin: 0 0 2px;
  font-size: 15px;
  color: #fff;
}

.sub-expiry-text {
  font-size: 12.5px;
  color: var(--text-3);
}

.sub-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-success-glow {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.badge-danger-soft {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

/* --- Global Chat Locked Card --- */
.chat-locked-card {
  position: relative;
  overflow: hidden;
}

.chat-blur-container {
  position: relative;
  min-height: 200px;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 12px;
}

.chat-blur-bg {
  filter: blur(5px);
  opacity: 0.35;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.chat-mock-msg {
  font-size: 13px;
  color: #cbd5e1;
}

.chat-mock-msg strong {
  color: #60a5fa;
}

.chat-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: rgba(8, 10, 15, 0.75);
}

.chat-lock-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: var(--text-2);
  margin-bottom: 12px;
}

.chat-lock-overlay h4 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #fff;
}

.chat-lock-overlay p {
  margin: 0;
  max-width: 260px;
  font-size: 12.5px;
}

/* --- Guides List --- */
.guides-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13.5px;
  color: #e2e8f0;
}

/* --- Getting Started (loader wizard) --- */
.gs-page {
  display: grid;
  gap: 18px;
  max-width: 880px;
}

.gs-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.gs-kicker {
  margin: 0 0 8px;
  color: var(--kicker, #7eb6ff);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gs-title {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.03em;
  color: #f5f8ff;
}

.gs-sub {
  margin: 0;
  max-width: 52ch;
  color: var(--text-3, #93a4bd);
  font-size: 14px;
  line-height: 1.55;
}

.gs-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.gs-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-3, #93a4bd);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.gs-step:hover {
  border-color: rgba(96, 165, 250, 0.35);
  color: #e8eefc;
}

.gs-step.is-active {
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(37, 99, 235, 0.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.15);
}

.gs-step.is-done {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.28);
}

.gs-step-num {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.gs-step.is-active .gs-step-num {
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  color: #fff;
}

.gs-step.is-done .gs-step-num {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.gs-step-label {
  font-size: 13px;
  font-weight: 600;
}

.gs-panel {
  padding: 28px;
}

.gs-pane-head {
  margin-bottom: 22px;
}

.gs-pane-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #fff;
}

.gs-pane-head-center {
  text-align: center;
}

.gs-pane-head-center .muted {
  margin: 0 auto;
  max-width: 42ch;
}

.gs-status-ok {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
  color: #bbf7d0;
  font-size: 14px;
}

.gs-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15);
}

.gs-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.gs-actions-split {
  justify-content: space-between;
}

.gs-req-list {
  display: grid;
  gap: 12px;
}

.gs-req {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}

.gs-req.is-warn {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.05);
}

.gs-req-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.gs-req-mark.is-ok {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
}

.gs-req-mark.is-warn {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

.gs-req-body h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: #f1f5ff;
}

.gs-req-body p {
  margin: 0 0 8px;
  color: var(--text-3, #93a4bd);
  font-size: 13px;
  line-height: 1.45;
}

.gs-req-body a {
  color: #93c5fd;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.gs-req-body a:hover {
  color: #fff;
}

.gs-req-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.gs-req-title-row h3 {
  margin: 0;
}

.gs-download {
  display: grid;
  gap: 20px;
}

.gs-download-hero {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.gs-download-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #93c5fd;
  background:
    radial-gradient(circle at 30% 20%, rgba(96, 165, 250, 0.28), transparent 55%),
    rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.15);
}

.gs-download-copy h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #fff;
}

.gs-download-copy .muted {
  margin: 0;
  max-width: 48ch;
  line-height: 1.5;
}

.gs-sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  width: fit-content;
  max-width: 100%;
}

.gs-sub-pill.is-ok {
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  color: #bbf7d0;
}

.gs-sub-pill.is-warn {
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
  color: #fde68a;
}

.gs-sub-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.gs-sub-pill.is-ok .gs-sub-dot {
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

.gs-sub-pill.is-warn .gs-sub-dot {
  background: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.gs-download-visual {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: #93c5fd;
  background:
    radial-gradient(circle at 30% 20%, rgba(96, 165, 250, 0.28), transparent 55%),
    rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.18);
}

.gs-dl-form {
  margin: 0;
}

.gs-dl-status {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.gs-dl-status.is-unlocked {
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(34, 197, 94, 0.06);
}

.gs-dl-status.is-locked {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.06);
}

.gs-dl-status-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: #e2e8f0;
}

.gs-dl-status.is-unlocked .gs-dl-status-line {
  color: #bbf7d0;
}

.gs-dl-status.is-unlocked .gs-sub-dot {
  margin-top: 6px;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

.gs-dl-status.is-locked .gs-dl-status-line {
  color: #fde68a;
  font-weight: 500;
}

.gs-dl-staff-note {
  margin: 0;
  font-size: 13px;
}

.gs-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
}

.gs-dl-ver {
  margin-left: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.gs-lockout {
  display: grid;
  gap: 12px;
  justify-items: start;
  width: min(100%, 480px);
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.06);
  text-align: left;
}

.gs-lockout p {
  margin: 0;
  color: #fde68a;
  font-size: 14px;
  line-height: 1.45;
}

.gs-key-card {
  width: 100%;
  max-width: 100%;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  background: rgba(8, 12, 24, 0.65);
}

.gs-key-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f1f5ff;
}

.gs-key-hint {
  margin: 0 0 12px;
  font-size: 13px;
}

.gs-key-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c7d4ea;
}

.gs-key-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background: rgba(4, 8, 18, 0.9);
}

.gs-key-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.gs-key-actions .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.gs-key-row:hover {
  border-color: rgba(96, 165, 250, 0.45);
}

.gs-key-value {
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #7dd3fc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gs-key-value.is-masked {
  color: #64748b;
  letter-spacing: 0.12em;
  user-select: none;
}

.gs-key-value.is-revealed {
  color: #bae6fd;
  user-select: all;
}

.gs-key-action {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
}

.gs-guide {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  counter-reset: gs-guide;
}

.gs-guide li {
  position: relative;
  padding: 16px 16px 16px 54px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  counter-increment: gs-guide;
}

.gs-guide li::before {
  content: counter(gs-guide);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 800;
}

.gs-guide strong {
  display: block;
  margin-bottom: 4px;
  color: #f8fafc;
}

.gs-guide p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .gs-hero {
    flex-direction: column;
  }

  .gs-steps {
    grid-template-columns: 1fr 1fr;
  }

  .gs-download-hero {
    flex-direction: column;
  }

  .gs-key-actions .btn {
    flex: 1;
  }

  .gs-actions,
  .gs-actions-split {
    flex-direction: column;
  }

  .gs-actions .btn,
  .gs-actions-split .btn {
    width: 100%;
  }
}

/* legacy aliases kept so older markup does not break */
.wizard-header,
.wizard-stepper,
.step-item,
.ambani-download-center {
  /* superseded by .gs-* */
}

.req-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.req-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.req-row.req-warn {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.04);
}

.req-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  display: grid;
  place-items: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

.req-warn-box {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  font-weight: 700;
}

.req-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.badge-warning-sm {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.req-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 12.5px;
  color: #60a5fa;
  text-decoration: underline;
}

.req-link:hover {
  color: #93c5fd;
}

/* --- Changelogs Component --- */
.changelog-tabs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.changelog-tabs-bar .tab-btn {
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.changelog-tabs-bar .tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.changelog-tabs-bar .tab-btn.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #fff;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.15);
}

.changelogs-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.changelog-card {
  padding: 20px 24px;
  border-radius: 12px;
  background: rgba(15, 18, 26, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.changelog-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.changelog-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.changelog-product-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.badge-info-sm {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.badge-success-sm {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.changelog-body ul {
  margin: 0;
  padding-left: 20px;
  color: #cbd5e1;
  font-size: 13.5px;
  line-height: 1.7;
}

/* --- Settings & Profile Component --- */
.settings-profile-card {
  padding: 24px;
}

.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.profile-avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-data-table {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.profile-data-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-3);
}

.profile-data-val {
  font-size: 13.5px;
  color: #fff;
}

.settings-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.settings-head-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: grid;
  place-items: center;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

.settings-section-head h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
}

.settings-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.settings-action-row:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(56, 189, 248, 0.2);
}

.settings-action-info strong {
  display: block;
  color: #fff;
  font-size: 13.5px;
  margin-bottom: 2px;
}

/* --- Daily Roulette Component --- */
.roulette-main-card {
  padding: 30px 20px;
  position: relative;
  overflow: hidden;
}

.roulette-track-wrapper {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.roulette-center-marker {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
}

.marker-laser-line {
  width: 2px;
  height: 100%;
  margin: 0 auto;
  background: #f43f5e;
  box-shadow: 0 0 12px #f43f5e;
}

.marker-top-arrow,
.marker-bottom-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #f43f5e;
  font-size: 12px;
}

.marker-top-arrow { top: 2px; }
.marker-bottom-arrow { bottom: 2px; }

.roulette-reel {
  display: flex;
  gap: 12px;
  height: 100%;
  align-items: center;
  padding: 0 20px;
  width: max-content;
}

.reel-item {
  width: 100px;
  height: 110px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.reel-item.tier-jackpot {
  border-color: rgba(244, 63, 94, 0.5);
  background: rgba(244, 63, 94, 0.1);
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.2);
}

.reel-item.tier-legendary {
  border-color: rgba(234, 179, 8, 0.5);
  background: rgba(234, 179, 8, 0.1);
}

.reel-item.tier-epic {
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(168, 85, 247, 0.1);
}

.reel-item.tier-rare {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.1);
}

.reel-icon { font-size: 24px; margin-bottom: 4px; }
.reel-amount { font-size: 13px; font-weight: 700; color: #fff; }
.reel-tier-label { font-size: 10px; color: var(--text-3); text-transform: uppercase; margin-top: 2px; }

.odds-card {
  padding: 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.odds-title { display: block; font-weight: 600; color: #fff; font-size: 13.5px; margin-bottom: 4px; }
.odds-chance { font-size: 12px; color: var(--text-3); }

/* --- 1:1 Ambani.dev Step 3 Centered Download Hero --- */
.ambani-download-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px 32px;
  width: 100%;
}

.ambani-dl-icon-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.25);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  box-shadow: 0 0 24px rgba(244, 63, 94, 0.15);
}

.ambani-dl-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.ambani-dl-subtitle {
  font-size: 14px;
  color: var(--text-3);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}

.btn-ambani-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 0 24px rgba(244, 63, 94, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ambani-dl:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(244, 63, 94, 0.6);
  background: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%);
}

.uuid-blur-box {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.uuid-box-header {
  margin-bottom: 8px;
  text-align: left;
}

.uuid-code-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.uuid-key-blurred {
  font-size: 13.5px;
  color: #38bdf8;
  filter: blur(6px);
  transition: filter 0.25s cubic-bezier(0.2, 0, 0, 1);
  user-select: all;
}

.uuid-code-wrapper:hover .uuid-key-blurred,
.uuid-key-blurred.is-revealed {
  filter: blur(0px) !important;
}

.ambani-dl-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.ambani-nav-link {
  font-size: 13.5px;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s ease;
}

.ambani-nav-link:hover {
  color: #fff;
}

/* --- Support Tickets Component --- */
.ticket-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.ticket-filter-btn {
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}

.ticket-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.ticket-filter-btn.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #fff;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.15);
}

.tickets-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ticket-row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(15, 18, 26, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.ticket-row-card:hover {
  background: rgba(20, 25, 38, 0.85);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

.ticket-row-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ticket-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ticket-row-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ticket-row-title {
  color: #fff;
  font-size: 14.5px;
}

.ticket-row-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticket-arrow {
  color: var(--text-3);
  transition: transform 0.15s ease;
}

.ticket-row-card:hover .ticket-arrow {
  transform: translateX(3px);
  color: #fff;
}

/* --- New Ticket Modal (Landing-Inspired Glass UI) --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalBackdropFadeIn 0.22s ease forwards;
}

@keyframes modalBackdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ticket-modal-box {
  width: 100%;
  max-width: 500px;
  background: rgba(13, 14, 18, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 20px;
  padding: 26px 26px 24px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.65),
    0 0 20px rgba(59, 130, 246, 0.15);
  position: relative;
  overflow: visible;
  animation: ticketModalPopIn 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes ticketModalPopIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.ticket-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 14px;
}

.ticket-modal-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ticket-modal-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.18);
}

.ticket-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}

.ticket-modal-subtitle {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 3px;
  font-weight: 400;
  line-height: 1.4;
}

.ticket-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  padding: 0;
  flex-shrink: 0;
}

.ticket-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

/* Field labels & Counter */
.ticket-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 8px;
}

.ticket-char-badge {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: normal;
  font-family: var(--font-mono, monospace);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.ticket-field-hint {
  font-size: 11px;
  font-weight: 400;
  color: #64748b;
  text-transform: none;
  letter-spacing: normal;
}

/* Inputs & Textareas */
.custom-modal-input,
.custom-modal-textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  border-radius: 12px !important;
  background: rgba(8, 11, 17, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  padding: 12px 14px !important;
  color: #f1f5f9 !important;
  font-size: 13.5px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.custom-modal-input::placeholder,
.custom-modal-textarea::placeholder {
  color: #4b5563 !important;
  font-size: 13.5px !important;
}

.custom-modal-input:hover,
.custom-modal-textarea:hover {
  border-color: rgba(255, 255, 255, 0.16) !important;
  background: rgba(10, 14, 22, 0.75) !important;
}

.custom-modal-input:focus,
.custom-modal-textarea:focus {
  border-color: rgba(59, 130, 246, 0.7) !important;
  background: rgba(10, 14, 22, 0.9) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16), 0 0 20px rgba(59, 130, 246, 0.12) !important;
  outline: none !important;
}

.custom-modal-textarea {
  min-height: 110px !important;
  max-height: 220px !important;
  resize: vertical !important;
  line-height: 1.5 !important;
}

/* Custom Floating Dropdown */
.custom-dropdown-wrap {
  position: relative;
  width: 100%;
}

.custom-select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(8, 11, 17, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #f1f5f9;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  box-sizing: border-box;
}

.custom-select-btn:hover {
  background: rgba(14, 19, 29, 0.85);
  border-color: rgba(255, 255, 255, 0.18);
}

.custom-select-btn.is-active,
.custom-select-btn:focus {
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
  outline: none;
}

.custom-select-btn .select-left {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-btn .select-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 8px #3b82f6;
  flex-shrink: 0;
}

.custom-select-btn .select-dot.prod-dot {
  background: #06b6d4;
  box-shadow: 0 0 8px #06b6d4;
}

.dropdown-chevron {
  color: #64748b;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  flex-shrink: 0;
}

.custom-select-btn.is-active .dropdown-chevron {
  transform: rotate(180deg);
  color: #60a5fa;
}

.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #111624;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 6px;
  z-index: 1050;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05);
  max-height: 220px;
  overflow-y: auto;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: dropdownSlideDown 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dropdownSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-opt {
  padding: 9px 12px;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.dropdown-opt:hover {
  background: rgba(59, 130, 246, 0.14);
  color: #fff;
}

.dropdown-opt.selected {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  font-weight: 600;
}

.dropdown-opt .opt-check {
  opacity: 0;
  color: #60a5fa;
  transition: opacity 0.15s ease;
  flex-shrink: 0;
}

.dropdown-opt.selected .opt-check {
  opacity: 1;
}

/* Notice / Tip Box */
.ticket-modal-notice {
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.16);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
}

.ticket-modal-notice .notice-icon {
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ticket-modal-notice .notice-text {
  font-size: 12.5px;
  color: #93c5fd;
  line-height: 1.45;
}

/* Action Buttons */
.ticket-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 12px;
}

.ticket-btn-secondary {
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ticket-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}

.ticket-btn-submit {
  padding: 12px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ticket-btn-submit:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
  transform: translateY(-1px);
}

.ticket-btn-submit:active {
  transform: translateY(0);
}

@media (max-width: 520px) {
  .ticket-modal-box {
    padding: 20px 18px 18px;
    border-radius: 16px;
  }
  .ticket-modal-header {
    margin-bottom: 18px;
  }
  .ticket-modal-actions {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Ticket View & Chat Feed (Landing-Inspired Glass UI)
   ========================================================================== */

.ticket-view-container {
  max-width: 980px;
  margin: 0 auto;
}

/* Nav bar & Back Button */
.ticket-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ticket-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ticket-back-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}

.ticket-ref-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: #64748b;
}

.ticket-ref-hash {
  color: #3b82f6;
  font-weight: 700;
}

/* Hero Ticket Header Card */
.ticket-hero-card {
  background: rgba(13, 14, 18, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(59, 130, 246, 0.15);
}

.ticket-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.ticket-hero-info {
  flex: 1;
  min-width: 0;
}

.ticket-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Status Pill */
.ticket-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ticket-status-tag.status-open {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.ticket-status-tag.status-active {
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #60a5fa;
}

.ticket-status-tag.status-waiting {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.ticket-status-tag.status-closed {
  background: rgba(100, 116, 139, 0.14);
  border: 1px solid rgba(100, 116, 139, 0.28);
  color: #94a3b8;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.ticket-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
}

.cat-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 6px #3b82f6;
}

.cat-indicator-dot.billing { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.cat-indicator-dot.hwid-reset { background: #06b6d4; box-shadow: 0 0 6px #06b6d4; }
.cat-indicator-dot.general { background: #a855f7; box-shadow: 0 0 6px #a855f7; }

.ticket-prod-tag {
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: #22d3ee;
  font-size: 12px;
  font-weight: 600;
}

.ticket-hero-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.3;
  word-break: break-word;
}

.ticket-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: #64748b;
}

.meta-sep {
  color: #334155;
}

.ticket-close-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: #f87171;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ticket-close-action-btn:hover {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* Chat Card */
.ticket-chat-card {
  background: rgba(13, 14, 18, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(59, 130, 246, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ticket-chat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}

.ticket-chat-card-header .header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #60a5fa;
}

.ticket-chat-card-header .header-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.02em;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #34d399;
  font-weight: 500;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* Chat Stream */
.ticket-chat-stream {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 280px;
  max-height: 600px;
  overflow-y: auto;
}

.chat-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: #64748b;
  font-size: 13.5px;
}

/* Message Rows */
.ticket-msg-row {
  display: flex;
  gap: 14px;
  max-width: 82%;
}

.ticket-msg-row.msg-own {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ticket-msg-row.msg-other {
  align-self: flex-start;
}

.msg-avatar {
  flex-shrink: 0;
  margin-top: 2px;
}

.avatar-initials {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.avatar-shield {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.msg-bubble-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 140px;
}

.ticket-msg-row.msg-own .msg-bubble-container {
  align-items: flex-end;
}

.msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.msg-sender {
  font-weight: 600;
  color: #cbd5e1;
}

.staff-tag,
.group-tag {
  display: inline-flex;
  align-items: center;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #60a5fa;
}

.group-tag.role-admin {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.group-tag.role-moderator {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.group-tag.role-developer {
  background: rgba(6, 182, 212, 0.18);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #22d3ee;
}

.group-tag.role-supporter {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.group-tag.role-staff {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(79, 70, 229, 0.25));
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c084fc;
}

.author-tag {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.06em;
}

.msg-time {
  color: #64748b;
  font-size: 11px;
}

/* Bubble Styling */
.msg-bubble {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  word-break: break-word;
  position: relative;
}

.ticket-msg-row.msg-own .msg-bubble {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22) 0%, rgba(29, 78, 216, 0.14) 100%);
  border: 1px solid rgba(59, 130, 246, 0.38);
  color: #f1f5f9;
  border-top-right-radius: 3px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.ticket-msg-row.msg-other .msg-bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #e2e8f0;
  border-top-left-radius: 3px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.ticket-msg-row.msg-is-staff.msg-other .msg-bubble {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(139, 92, 246, 0.28);
}

.msg-text {
  margin: 0;
  white-space: pre-wrap;
}

/* Attachments */
.msg-attachment-wrap {
  margin-top: 10px;
}

.msg-attachment-link {
  display: inline-block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: all 0.2s ease;
}

.msg-attachment-link:hover {
  border-color: rgba(59, 130, 246, 0.6);
  transform: translateY(-2px);
}

.msg-attachment-img {
  display: block;
  max-width: 320px;
  max-height: 220px;
  object-fit: cover;
}

.attachment-zoom-pill {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Reply Input Area */
.ticket-reply-area {
  padding: 16px 22px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.25);
}

.reply-input-box {
  background: rgba(8, 11, 17, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px;
  transition: all 0.2s ease;
}

.reply-input-box:focus-within {
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
  background: rgba(10, 14, 22, 0.9);
}

.reply-textarea {
  width: 100%;
  background: transparent !important;
  border: none !important;
  color: #f1f5f9;
  font-size: 13.5px;
  line-height: 1.5;
  resize: vertical;
  min-height: 65px;
  max-height: 180px;
  padding: 0 !important;
  box-sizing: border-box;
}

.reply-textarea::placeholder {
  color: #4b5563;
}

.reply-textarea:focus {
  outline: none;
  box-shadow: none;
}

.reply-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  gap: 12px;
}

.attach-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 12.5px;
  cursor: pointer;
  transition: color 0.15s ease;
  padding: 4px 8px;
  border-radius: 6px;
}

.attach-button:hover {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.08);
}

.attach-button input[type="file"] {
  display: none;
}

.reply-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reply-submit-btn:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
  transform: translateY(-1px);
}

/* Closed Notice */
.ticket-closed-notice {
  padding: 24px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.3);
}

.closed-notice-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(100, 116, 139, 0.12);
  border: 1px solid rgba(100, 116, 139, 0.25);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.closed-notice-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.closed-notice-body strong {
  font-size: 13.5px;
  color: #e2e8f0;
}

.closed-notice-body span {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.4;
}

.closed-new-ticket-btn {
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.closed-new-ticket-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 640px) {
  .ticket-hero-top {
    flex-direction: column;
    gap: 14px;
  }
  .ticket-msg-row {
    max-width: 94%;
  }
  .ticket-closed-notice {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Badge Sizing & Semantic Aliases */
.badge-sm,
.badge-success-sm,
.badge-info-sm,
.badge-warning-sm,
.badge-secondary-sm,
.badge-muted-sm {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
}

.badge-success-sm {
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}

.badge-info-sm {
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
}

.badge-warning-sm {
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.badge-secondary-sm {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.badge-muted-sm {
  border: 1px solid rgba(100, 116, 139, 0.28);
  background: rgba(100, 116, 139, 0.12);
  color: #94a3b8;
}

/* ==========================================================================
   Admin Support Ticket Center & Chat Modal
   ========================================================================== */
.admin-tickets-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.admin-ticket-search-box {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 280px;
  max-width: 440px;
}

.admin-ticket-search-box .search-icon {
  position: absolute;
  left: 12px;
  color: #64748b;
  pointer-events: none;
}

.admin-ticket-search-box input {
  width: 100%;
  background: rgba(13, 14, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  padding: 8px 34px 8px 36px;
  font-size: 13px;
  color: #f1f5f9;
  outline: none;
  transition: all 0.2s ease;
}

.admin-ticket-search-box input:focus {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.2);
  background: rgba(13, 14, 18, 0.95);
}

.admin-ticket-search-box .clear-search-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  font-size: 13px;
  display: none;
}

.admin-ticket-search-box .clear-search-btn:hover {
  color: #f1f5f9;
}

.search-matches-indicator {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
}

/* Admin Chat Modal */
.admin-chat-modal-box {
  position: relative;
  width: 92%;
  max-width: 860px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: rgba(13, 14, 18, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75), 0 0 24px rgba(59, 130, 246, 0.16);
  border-radius: 16px;
  overflow: hidden;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.admin-chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 20, 28, 0.65);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.admin-chat-header-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.admin-chat-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-chat-title {
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

.admin-chat-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
  flex-wrap: wrap;
}

.admin-chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.admin-chat-stream {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
  max-height: 52vh;
  background: rgba(10, 11, 15, 0.5);
}

.admin-chat-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: #94a3b8;
  font-size: 13.5px;
}

.admin-chat-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 20, 28, 0.7);
  flex-shrink: 0;
}

.admin-reply-textarea {
  width: 100%;
  background: rgba(8, 9, 12, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  padding: 10px 14px;
  color: #f1f5f9;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.5;
  resize: vertical;
  min-height: 65px;
  max-height: 140px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.admin-reply-textarea:focus {
  border-color: rgba(59, 130, 246, 0.5);
}

.admin-chat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 12px;
}

/* ==========================================================================
   Universal Spacing & Utility Classes for Dashboard
   ========================================================================== */
.mt-4 { margin-top: 4px !important; }
.mt-8 { margin-top: 8px !important; }
.mt-10 { margin-top: 10px !important; }
.mt-12 { margin-top: 12px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-24 { margin-top: 24px !important; }
.mt-32 { margin-top: 32px !important; }
.mt-40 { margin-top: 40px !important; }

.mb-4 { margin-bottom: 4px !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-12 { margin-bottom: 12px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }

.py-20 { padding-top: 20px !important; padding-bottom: 20px !important; }
.row-gap-8 { gap: 8px !important; }
.row-gap-12 { gap: 12px !important; }
.row-gap-16 { gap: 16px !important; }

.grid.grid-2 {
  gap: 20px !important;
}



