/* Neverlose-style theme for dmc */

.nl-page {
  background: #0b0e14;
}

.nl-page .noise,
.nl-page .glow {
  display: none !important;
}

.nl-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  padding: 0 1.5rem;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body:not(.nl-page) .nl-nav {
  position: sticky;
}

.dash {
  padding-top: 0.5rem;
}

.nl-logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  line-height: 0;
}

.nl-logo-img {
  height: 58px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nl-logo-mark {
  color: var(--accent, #b0a4e3);
  display: grid;
  place-items: center;
}

.nl-nav-center {
  display: flex;
  gap: 1.75rem;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 500;
}

.nl-nav-center a {
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.15s ease;
}

.nl-nav-center a:hover,
.nl-nav-center a.on {
  color: #fff;
}

.nl-nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  font-size: 0.86rem;
  font-weight: 500;
}

.nl-nav-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.nl-nav-auth:hover {
  color: var(--accent, #b0a4e3);
}

.nl-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5.5rem 1.25rem 4rem;
  overflow: hidden;
}

.nl-hero-bg {
  position: absolute;
  inset: 0;
  background:
    url("../fon.png") center center / cover no-repeat;
  transform: scale(1.06);
  filter: blur(4px);
}

.nl-hero-bg::before,
.nl-hero-bg::after {
  display: none;
}

.nl-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.55) 0%, rgba(8, 10, 14, 0.35) 40%, rgba(11, 14, 20, 0.72) 100%),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55) 75%);
  pointer-events: none;
}

.nl-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.nl-hero-title {
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

.nl-dot {
  color: var(--accent, #b0a4e3);
}

.nl-hero-sub {
  margin: 1.15rem auto 1.75rem;
  max-width: 520px;
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
  line-height: 1.55;
}

.nl-hero-sub strong {
  font-weight: 700;
}

.nl-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.6rem;
  background: var(--accent, #b0a4e3);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(176, 164, 227, 0.4);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.nl-btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #fff;
}

.nl-btn-sm {
  min-height: 36px;
  padding: 0.45rem 1rem;
  font-size: 0.75rem;
}

.nl-scroll {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 22px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  display: grid;
  place-items: start center;
  padding-top: 6px;
}

.nl-scroll span {
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.75);
  animation: nlScroll 1.4s ease-in-out infinite;
}

@keyframes nlScroll {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

.nl-products {
  position: relative;
  z-index: 1;
}

.nl-product {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 320px;
  padding: 3.5rem 6vw;
  overflow: hidden;
}

.nl-product-a {
  background: linear-gradient(100deg, #c5b9f0 0%, #b0a4e3 42%, #b0a4e3 100%);
  clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
  margin-top: -2rem;
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.nl-product-b {
  background: linear-gradient(100deg, #1a6fa8 0%, #1f8fc4 40%, #2ec6e0 100%);
  clip-path: polygon(0 0, 100% 12%, 100% 100%, 0 88%);
  margin-top: -2.5rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.nl-product-copy {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.nl-product-b .nl-product-copy {
  justify-self: end;
}

.nl-product h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  font-weight: 800;
  color: #fff;
}

.nl-product p {
  margin: 0 0 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
}

.nl-btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 1.15rem;
  background: #b0a4e3;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: filter 0.15s ease;
}

.nl-btn-buy:hover {
  filter: brightness(1.1);
  color: #fff;
}

.nl-btn-buy-cyan {
  background: #1789b0;
}

.nl-product-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}

.nl-product-art-a {
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(192, 58, 48, 0.55) 0%, rgba(192, 58, 48, 0.15) 42%, transparent 58%),
    url("../images.jpg") right center / cover no-repeat;
  filter: blur(3px);
  transform: scale(1.04);
}

.nl-product-art-a::after {
  display: none;
}

.nl-product-art-b {
  background:
    radial-gradient(ellipse at 22% 50%, rgba(0, 0, 0, 0.2), transparent 50%),
    linear-gradient(270deg, transparent 40%, rgba(0, 0, 0, 0.2) 100%);
}

.nl-product-art-b::after {
  content: "";
  position: absolute;
  left: 2%;
  top: 8%;
  bottom: 8%;
  width: 44%;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(120, 200, 255, 0.3), transparent 48%),
    radial-gradient(ellipse at 45% 75%, rgba(10, 30, 50, 0.5), transparent 55%);
}

.nl-features {
  padding: 4.5rem 1.25rem 3rem;
  background: #0b0e14;
}

.nl-features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.75rem;
}

.nl-feature {
  text-align: center;
  padding: 0.5rem 0.75rem;
}

.nl-feature-ic {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent, #b0a4e3);
  border: 2px solid rgba(176, 164, 227, 0.55);
  font-size: 1.15rem;
  background: rgba(176, 164, 227, 0.08);
}

.nl-feature h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.nl-feature p {
  margin: 0;
  color: var(--muted, #9aa3b5);
  font-size: 0.86rem;
  line-height: 1.55;
}

.nl-pricing {
  padding: 1rem 1.25rem 4.5rem;
  background: #0b0e14;
}

.nl-section-title {
  text-align: center;
  margin: 0 0 1.75rem;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nl-price-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.nl-price-card {
  background: #141922;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 1.4rem 1.2rem;
  text-align: center;
}

.nl-price-card-hot {
  border-color: rgba(176, 164, 227, 0.5);
  box-shadow: 0 0 0 1px rgba(176, 164, 227, 0.15), 0 16px 40px rgba(0, 0, 0, 0.35);
}

.nl-price-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.nl-price-num {
  margin: 0.55rem 0;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--accent, #b0a4e3);
}

.nl-price-card p {
  margin: 0 0 1rem;
  color: var(--muted, #9aa3b5);
  font-size: 0.86rem;
}

.nl-footer {
  background: #0a0c11;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.75rem 1.5rem 1.25rem;
}

.nl-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto 1rem;
}

.nl-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
  font-size: 0.82rem;
  color: var(--muted, #9aa3b5);
}

.nl-footer-links a:hover {
  color: var(--accent, #b0a4e3);
}

.nl-footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #6b7385;
  font-size: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.85rem;
}

.nl-cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: #151a24;
  border: 1px solid rgba(176, 164, 227, 0.35);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.nl-cookie.hidden {
  display: none !important;
}

.nl-cookie p {
  margin: 0;
  flex: 1;
  font-size: 0.82rem;
  color: var(--muted, #9aa3b5);
}

/* Auth / inner pages */
.nl-auth-body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(176, 164, 227, 0.14), transparent 50%),
    #0b0e14;
}

.nl-auth-wrap {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 58px);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.nl-auth-card {
  width: min(420px, 100%);
  background: #141922;
  border: 1px solid rgba(176, 164, 227, 0.28);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.nl-auth-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 800;
}

.nl-auth-card .muted {
  color: var(--muted, #9aa3b5);
  font-size: 0.88rem;
}

.nl-auth-card .form-row {
  margin: 0.9rem 0;
}

.nl-auth-card label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted, #9aa3b5);
  font-weight: 600;
}

.nl-auth-card input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0d1118;
  color: #fff;
  outline: none;
}

.nl-auth-card input:focus {
  border-color: rgba(176, 164, 227, 0.55);
}

.nl-auth-card .btn-accent,
.nl-auth-card button[type="submit"] {
  width: 100%;
  margin-top: 0.5rem;
  background: var(--accent, #b0a4e3) !important;
  border: 0 !important;
  border-radius: 4px !important;
  box-shadow: 0 8px 24px rgba(176, 164, 227, 0.35) !important;
}

.nl-auth-card a {
  color: var(--accent, #b0a4e3);
}

@media (max-width: 900px) {
  .nl-nav {
    grid-template-columns: 1fr auto;
    height: auto;
    padding: 0.65rem 0.9rem;
    gap: 0.5rem;
  }

  .nl-nav-center {
    display: none;
  }

  .nl-product {
    grid-template-columns: 1fr;
    min-height: 240px;
  }

  .nl-product-b .nl-product-copy {
    justify-self: start;
  }

  .nl-features-grid,
  .nl-price-grid {
    grid-template-columns: 1fr;
  }

  .nl-product-a,
  .nl-product-b {
    clip-path: none;
    margin-top: 0;
    padding: 2.5rem 1.25rem;
  }
}

/* ── Dashboard (Neverlose-style) ── */
.nl-dash-page {
  position: relative;
  min-height: 100vh;
  background: #070a10;
  color: #fff;
}

.nl-dash-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: min(340px, 42vh);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    url("../fon.png") center 30% / cover no-repeat;
  filter: blur(2px) saturate(0.95) brightness(0.72);
  transform: scale(1.02);
}

.nl-dash-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 10, 16, 0.35) 0%,
    rgba(7, 10, 16, 0.55) 45%,
    #070a10 100%
  );
}

.nl-dash-page .nl-nav {
  position: sticky;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
}

.nl-nav-userlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
}

.nl-nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1a222e;
  border: 1px solid rgba(176, 164, 227, 0.45);
  font-size: 0.75rem;
  font-weight: 700;
  color: #c5b9f0;
}

/* User dropdown (Neverlose-style) */
.nl-user-menu {
  position: relative;
  z-index: 50;
}

.nl-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 34px;
  padding: 0.2rem 0.35rem 0.2rem 0.15rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.86rem;
}

.nl-user-btn:hover,
.nl-user-menu.open .nl-user-btn {
  border: 0;
  opacity: 0.9;
}

.nl-user-name {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nl-user-caret {
  color: #c5b9f0;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.nl-user-menu.open .nl-user-caret {
  transform: rotate(180deg);
}

.nl-user-drop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 168px;
  padding: 0.35rem 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 60;
}

.nl-user-drop a,
.nl-user-drop button {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 0;
  background: transparent;
  color: #1a1a1a;
  text-align: left;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.nl-user-drop a:hover,
.nl-user-drop button:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nl-user-drop svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.nl-user-drop-stack {
  line-height: 1.15;
  font-size: 0.78rem;
}

.nl-user-drop hr {
  margin: 0.3rem 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.nl-user-drop [data-nav-logout] {
  color: #7a7a7a;
  font-weight: 500;
}

.nl-dash {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.nl-dash-profile {
  text-align: center;
  margin-bottom: 2.25rem;
}

.nl-dash-avatar {
  width: 110px;
  height: 110px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #2a3344, #121820);
  border: 3px solid rgba(176, 164, 227, 0.55);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.nl-dash-profile h1 {
  margin: 0 0 1.35rem;
  font-size: 1.45rem;
  font-weight: 700;
}

.nl-dash-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  text-align: left;
  justify-content: center;
  max-width: 420px;
  margin: 0 auto;
}

.nl-dash-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  background: #b0a4e3;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(176, 164, 227, 0.35);
  justify-self: start;
}

.nl-dash-download:hover {
  filter: brightness(1.08);
  color: #fff;
}

.nl-dash-download.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  filter: none;
}

.nl-dash-download.is-busy {
  opacity: 0.7;
  pointer-events: none;
}

.nl-dash-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.nl-dash-meta-row {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.nl-dash-products {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.nl-dash-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 118px;
  padding: 1.35rem 1.6rem;
  border-radius: 8px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  text-decoration: none;
}

.nl-dash-card:hover {
  filter: brightness(1.06);
  color: #fff;
}

.nl-dash-card-a {
  background: linear-gradient(105deg, #b0a4e3 0%, #b0a4e3 42%, #3a1210 100%);
}

.nl-dash-card-b {
  background: linear-gradient(105deg, #3a4456 0%, #1e2632 48%, #0e1218 100%);
}

.nl-dash-card-title {
  position: relative;
  z-index: 1;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.nl-dash-card-meta {
  position: relative;
  z-index: 1;
  margin-left: auto;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-align: right;
  white-space: nowrap;
}

.nl-dash-card-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
}

.nl-dash-card-art-a {
  background:
    linear-gradient(90deg, #b0a4e3 0%, rgba(176, 164, 227, 0.55) 38%, transparent 68%),
    url("../images.jpg") right center / cover no-repeat;
  filter: blur(1.5px);
  transform: scale(1.06);
}

.nl-dash-card-art-b {
  background:
    linear-gradient(90deg, #1e2632 0%, rgba(30, 38, 50, 0.75) 40%, transparent 70%),
    url("../fon.png") right center / cover no-repeat;
  filter: blur(2px) grayscale(0.35);
  transform: scale(1.06);
  opacity: 0.55;
}

.nl-dash-panel {
  margin-top: 1.25rem;
  padding: 1.25rem 1.35rem;
  background: rgba(16, 20, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.nl-dash-panel h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.nl-dash-redeem {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

.nl-dash-redeem input {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0f16;
  color: #fff;
  outline: none;
}

.nl-dash-redeem input:focus {
  border-color: rgba(176, 164, 227, 0.5);
}

@media (max-width: 800px) {
  .nl-dash-actions {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .nl-dash-download {
    justify-self: center;
  }

  .nl-dash-meta {
    align-items: center;
  }

  .nl-dash-card {
    flex-direction: column;
    align-items: flex-start;
    min-height: 96px;
    gap: 0.35rem;
  }

  .nl-dash-card-meta {
    margin-left: 0;
    white-space: normal;
    text-align: left;
    font-size: 0.85rem;
  }
}

/* ── Auth modals (Neverlose-style, red accent) ── */
.nl-modal-page {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  font-family: "Montserrat", system-ui, sans-serif;
  background: #07090e;
}

.nl-modal-bg {
  position: fixed;
  inset: 0;
  background: url("../fon.png") center center / cover no-repeat;
  transform: scale(1.04);
  filter: blur(8px);
}

.nl-modal-dim {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 14, 0.72);
}

.nl-modal {
  position: relative;
  z-index: 2;
  width: min(420px, calc(100vw - 2rem));
  margin: 10vh auto;
  padding: 2.75rem 2.25rem 2rem;
  background: #0c1520;
  border-radius: 16px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.6);
}

.nl-modal-tall {
  margin: 8vh auto;
  padding: 2.75rem 2.25rem 2rem;
}

.nl-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #1a1a1a;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  z-index: 3;
}

.nl-modal-close:hover {
  color: #b0a4e3;
}

.nl-modal-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.nl-modal-logo {
  height: 88px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nl-modal-brand .nl-logo-mark {
  color: #b0a4e3;
  display: grid;
}

.nl-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.nl-modal-form input[type="text"],
.nl-modal-form input[type="password"],
.nl-modal-form input[type="email"] {
  width: 100%;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: #071018;
  color: #fff;
  font-size: 0.98rem;
  outline: none;
}

.nl-modal-form input::placeholder {
  color: rgba(224, 90, 76, 0.75);
}

.nl-modal-form input:focus {
  border-color: rgba(176, 164, 227, 0.55);
}

.nl-captcha {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.35rem 0 0.15rem;
  padding: 0.65rem 0.8rem;
  background: #fff;
  border-radius: 4px;
  color: #222;
  font-size: 0.88rem;
  cursor: pointer;
  user-select: none;
}

.nl-captcha input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nl-captcha-box {
  width: 22px;
  height: 22px;
  border: 2px solid #c2c2c2;
  border-radius: 3px;
  background: #fff;
  flex-shrink: 0;
  position: relative;
}

.nl-captcha input:checked + .nl-captcha-box {
  border-color: #b0a4e3;
  background: #b0a4e3;
}

.nl-captcha input:checked + .nl-captcha-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.nl-captcha-text {
  flex: 1;
  font-weight: 500;
}

.nl-agree {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.35rem 0 0.25rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.88);
}

.nl-agree label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  line-height: 1.35;
}

.nl-agree input {
  margin-top: 0.15rem;
  accent-color: #b0a4e3;
}

.nl-agree a {
  color: #c5b9f0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nl-modal-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 0.55rem;
  border: 0;
  border-radius: 8px;
  background: #b0a4e3;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(176, 164, 227, 0.35);
}

.nl-modal-submit:hover {
  filter: brightness(1.08);
}

.nl-modal-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.nl-modal-msg {
  min-height: 1.1rem;
  margin: 0.15rem 0 0;
  text-align: center;
  color: #c5b9f0;
  font-size: 0.82rem;
}

.nl-modal-links {
  margin-top: 1.15rem;
  text-align: center;
  font-size: 0.82rem;
  color: #8a96a8;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.nl-modal-links a {
  color: #8a96a8;
}

.nl-modal-links a:hover,
.nl-modal-links p a {
  color: #c5b9f0;
}

.nl-modal-links p {
  margin: 0.2rem 0 0;
}

@media (max-width: 480px) {
  .nl-modal {
    margin: 4vh auto;
  }

  .nl-modal-close {
    right: 8px;
    top: 8px;
  }
}

/* ══════════════════════════════════════════
   Marketplace — Neverlose-exact layout
   Accent: red (dmc brand) instead of NL cyan
   ══════════════════════════════════════════ */
.mk-page {
  min-height: 100vh;
  margin: 0;
  background: #07090e;
  color: #e8eef6;
  font-family: "Montserrat", system-ui, sans-serif;
}

.mk-page .nl-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
}

.mk {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.35rem 1.15rem 3.5rem;
  width: 100%;
  box-sizing: border-box;
}

.mk-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 178px;
  gap: 1.15rem;
  align-items: start;
}

.mk-main {
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

/* Hero + balance */
.mk-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.35rem;
}

.mk-hero-copy h1 {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  font-family: "Montserrat", system-ui, sans-serif;
}

.mk-hero-copy p {
  margin: 0.45rem 0 0;
  max-width: 34rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #8a96a8;
}

.mk-hero-copy a {
  color: #c5b9f0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mk-balance {
  text-align: right;
  flex-shrink: 0;
}

.mk-balance-label {
  font-size: 0.92rem;
  color: #c8d0dc;
  margin-bottom: 0.55rem;
}

.mk-balance-label strong {
  color: #fff;
  font-weight: 700;
}

.mk-balance-btns {
  display: flex;
  gap: 0.45rem;
  justify-content: flex-end;
}

.mk-bal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.4rem 0.95rem;
  border-radius: 4px;
  background: #b0a4e3;
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(176, 164, 227, 0.35);
}

.mk-bal-btn:hover {
  filter: brightness(1.08);
  color: #fff !important;
}

/* Filters */
.mk-filters {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.95rem;
}

.mk-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.mk-game {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0.35rem 0.85rem;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(135deg, #e07a3a, #c45a28);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: default;
}

.mk-game-ic {
  font-size: 0.7rem;
  opacity: 0.9;
}

.mk-seg {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
  background: rgba(12, 16, 24, 0.85);
}

.mk-seg-btn {
  border: 0;
  background: transparent;
  color: #9aa6b8;
  padding: 0.5rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.mk-seg-btn:last-child {
  border-right: 0;
}

.mk-seg-btn.on {
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(176, 164, 227, 0.85);
  background: rgba(176, 164, 227, 0.12);
}

.mk-seg-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.mk-filter-search {
  gap: 0.65rem;
}

.mk-search {
  position: relative;
  flex: 1 1 220px;
  min-width: 160px;
}

.mk-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b778a;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.mk-search input {
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  padding: 0.55rem 0.85rem 0.55rem 2.15rem;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c1018;
  color: #e8eef6;
  outline: none;
  font-size: 0.88rem;
  font-family: inherit;
}

.mk-search input:focus {
  border-color: rgba(176, 164, 227, 0.55);
}

.mk-sort {
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c1018;
  color: #c8d0dc;
  font-size: 0.82rem;
  font-family: inherit;
  min-width: 220px;
}

.mk-empty {
  color: #8a96a8;
  font-size: 0.9rem;
  padding: 1.5rem 0.25rem;
}

/* List rows — Neverlose card */
.mk-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mk-row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(120px, 0.7fr) 72px minmax(110px, 0.65fr);
  align-items: center;
  gap: 0.75rem 1rem;
  width: 100%;
  text-align: left;
  padding: 0.95rem 1.05rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #0e141e;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-family: inherit;
}

.mk-row:hover {
  background: #121a26;
  border-color: rgba(176, 164, 227, 0.35);
}

.mk-row-static {
  cursor: default;
  grid-template-columns: minmax(0, 1fr) auto;
}

.mk-row-static:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.mk-row-body {
  min-width: 0;
}

.mk-row-title {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mk-row-tags {
  color: #7a8699;
  font-size: 0.78rem;
  margin-top: 0.28rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mk-row-author {
  font-size: 0.84rem;
  color: #c8d0dc;
}

.mk-row-author strong {
  color: #fff;
  font-weight: 700;
}

.mk-row-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}

.mk-row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.mk-row-buys {
  font-size: 0.78rem;
  color: #8a96a8;
  text-align: right;
}

.mk-row-stars {
  display: flex;
  gap: 2px;
  color: #b0a4e3;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-shadow: 0 0 8px rgba(176, 164, 227, 0.55);
}

.mk-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.mk-ghost-btn,
.mk-row-actions button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #c8d0dc;
  border-radius: 4px;
  padding: 0.4rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.mk-ghost-btn:hover,
.mk-row-actions button:hover {
  color: #fff;
  border-color: rgba(176, 164, 227, 0.5);
}

/* Right rail */
.mk-rail {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem;
  background: #0c121a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  box-shadow: 0 0 28px rgba(176, 164, 227, 0.08);
}

.mk-rail-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.7rem 0.65rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9aa6b8;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  font-family: inherit;
}

.mk-rail-btn:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.mk-rail-btn.on {
  color: #fff;
  background: rgba(176, 164, 227, 0.1);
  box-shadow: inset 0 0 0 1px rgba(176, 164, 227, 0.75);
}

.mk-rail-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.mk-rail-ic {
  width: 1.25rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  opacity: 0.95;
}

/* Detail */
.mk-back {
  border: 0;
  background: transparent;
  color: #c5b9f0;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
}

.mk-back:hover {
  color: #fff;
}

.mk-detail-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.mk-detail-head h1 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  font-family: inherit;
}

.mk-detail-icon {
  width: 36px;
  height: 36px;
  margin-top: 0.15rem;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #c5b9f0;
  flex-shrink: 0;
}

.mk-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.72fr);
  gap: 0;
  align-items: start;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.25rem;
}

.mk-detail-left {
  padding-right: 1.75rem;
  border-right: 1px solid rgba(80, 120, 180, 0.18);
}

.mk-detail-right {
  padding-left: 1.75rem;
}

.mk-author-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.mk-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1a222e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.mk-author-name {
  color: #c5b9f0;
  font-weight: 700;
  font-size: 0.95rem;
}

.mk-badges {
  display: inline-flex;
  align-items: stretch;
  margin-bottom: 1.35rem;
  border-radius: 6px;
  overflow: hidden;
}

.mk-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.mk-badge-cfg {
  color: #1a1008;
  background: linear-gradient(135deg, #b0a4e3, #9a8fd4);
}

.mk-badge-game {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(20, 24, 32, 0.55), rgba(20, 24, 32, 0.35)),
    url("../images.jpg") center / cover no-repeat;
  min-width: 72px;
  justify-content: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

.mk-section-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: #fff;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.mk-prose,
.mk-changelog {
  color: #c8d0dc;
  font-size: 0.9rem;
  line-height: 1.65;
}

.mk-prose p,
.mk-changelog p {
  margin: 0 0 0.75rem;
}

.mk-prose ul,
.mk-changelog ul {
  margin: 0 0 0.75rem;
  padding-left: 1.15rem;
}

.mk-price {
  font-size: 1.65rem;
  font-weight: 800;
  color: #c5b9f0;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
  text-shadow: 0 0 18px rgba(176, 164, 227, 0.35);
}

.mk-detail-buys {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: #8a96a8;
}

.mk-get-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-bottom: 1.35rem;
  border: 0;
  border-radius: 5px;
  background: #b0a4e3;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 0 22px rgba(176, 164, 227, 0.4);
}

.mk-get-btn:hover:not(:disabled) {
  filter: brightness(1.08);
}

.mk-get-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.mk-get-btn-sm {
  width: auto;
  min-width: 120px;
  margin-bottom: 0;
  padding: 0 1.25rem;
}

.mk-changelog-label {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
}

.mk-changelog {
  padding: 0.95rem 1rem;
  border-radius: 8px;
  background: #0c1420;
  border: 1px solid rgba(80, 120, 180, 0.2);
  min-height: 4rem;
}

.mk-updated {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  color: #6b778a;
  text-align: left;
}

.mk-edit-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 720px;
}

.mk-edit-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: #8a96a8;
  font-size: 0.82rem;
  font-weight: 600;
}

.mk-edit-form textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 120px;
  padding: 0.75rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c1018;
  color: #e8eef6;
  outline: none;
  line-height: 1.5;
  font-family: inherit;
}

.mk-edit-form textarea:focus {
  border-color: rgba(176, 164, 227, 0.5);
}

.mk-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

@media (max-width: 960px) {
  .mk-shell {
    grid-template-columns: 1fr;
  }

  .mk-rail {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    order: -1;
  }

  .mk-rail-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .mk-hero {
    flex-direction: column;
  }

  .mk-balance {
    text-align: left;
  }

  .mk-balance-btns {
    justify-content: flex-start;
  }

  .mk-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .mk-row-meta {
    align-items: flex-start;
    flex-direction: row;
    gap: 0.75rem;
  }

  .mk-detail-grid {
    grid-template-columns: 1fr;
  }

  .mk-detail-left {
    padding-right: 0;
    border-right: 0;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(80, 120, 180, 0.18);
  }

  .mk-detail-right {
    padding-left: 0;
  }
}

/* ══════════════════════════════════════════
   Support tickets — Neverlose-exact layout
   ══════════════════════════════════════════ */
.tk-page {
  min-height: 100vh;
  margin: 0;
  background: #07090e;
  color: #e8eef6;
  font-family: "Montserrat", system-ui, sans-serif;
}

.tk-page .nl-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
}

.tk {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 1.15rem 4rem;
  width: 100%;
  box-sizing: border-box;
}

.tk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  padding: 0.65rem 1rem;
  background: #1a1010;
  border: 1px solid rgba(176, 164, 227, 0.35);
  border-radius: 4px;
}

.tk-bar h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  font-family: inherit;
}

.tk-bar-detail {
  margin-bottom: 1.25rem;
}

.tk-bar-actions {
  display: flex;
  gap: 0.4rem;
}

.tk-create {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0.4rem 0.95rem;
  border: 0;
  border-radius: 4px;
  background: #b0a4e3;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 0 16px rgba(176, 164, 227, 0.35);
}

.tk-create:hover {
  filter: brightness(1.08);
}

.tk-create-block {
  width: 100%;
  margin-top: 0.35rem;
}

.tk-total {
  margin: 0.75rem 0 0.85rem;
  font-size: 0.82rem;
  color: #8a96a8;
}

.tk-search {
  position: relative;
  display: block;
  margin-bottom: 0.85rem;
}

.tk-search input {
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  padding: 0.55rem 2.4rem 0.55rem 0.9rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c1018;
  color: #e8eef6;
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
}

.tk-search input:focus {
  border-color: rgba(176, 164, 227, 0.5);
}

.tk-search-ic {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b778a;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.tk-list {
  background: #0c121a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  overflow: hidden;
}

.tk-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto minmax(120px, 0.55fr);
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 1rem 1.05rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
}

.tk-row:last-child {
  border-bottom: 0;
}

.tk-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.tk-row-left {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.tk-ava {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #1a222e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c5b9f0;
  font-weight: 700;
  font-size: 0.9rem;
}

.tk-ava-sm {
  width: 28px;
  height: 28px;
  font-size: 0.72rem;
}

.tk-row-copy {
  min-width: 0;
}

.tk-row-title {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tk-row-user {
  margin-top: 0.15rem;
  color: #9aa6b8;
  font-size: 0.84rem;
}

.tk-row-meta {
  margin-top: 0.2rem;
  color: #6b778a;
  font-size: 0.75rem;
}

.tk-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.7rem;
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  justify-self: center;
}

.tk-st-closed {
  background: #3a424e;
  color: #e8eef6;
}

.tk-st-answered {
  background: #1e4a38;
  color: #b8efd0;
}

.tk-st-open {
  background: rgba(176, 164, 227, 0.22);
  color: #f0c0ba;
}

.tk-check {
  font-size: 0.75rem;
}

.tk-row-right {
  text-align: right;
  font-size: 0.75rem;
  color: #8a96a8;
  line-height: 1.45;
}

.tk-last {
  color: #c5b9f0;
  font-weight: 600;
}

.tk-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #8a96a8;
  font-size: 0.9rem;
}

.tk-back {
  border: 0;
  background: transparent;
  color: #c5b9f0;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
}

.tk-back:hover {
  color: #fff;
}

.tk-chip {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #c8d0dc;
  border-radius: 3px;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.tk-chip-danger {
  border-color: rgba(176, 164, 227, 0.55);
  color: #f0c0ba;
}

.tk-chip-ok {
  border-color: rgba(125, 206, 160, 0.45);
  color: #7dcea0;
}

.tk-thread {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tk-msg {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0.85rem;
  padding: 1.1rem 1.15rem;
  background: #0c1420;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}

.tk-msg-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.tk-msg-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #c5b9f0;
  word-break: break-all;
}

.tk-msg-name.staff {
  color: #b0a4e3;
}

.tk-msg-body {
  min-width: 0;
}

.tk-msg-time {
  text-align: right;
  font-size: 0.75rem;
  color: #6b778a;
  margin-bottom: 0.35rem;
}

.tk-msg-subject {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  font-family: inherit;
}

.tk-msg-text {
  color: #d4dce8;
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.tk-sys {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  background: #0a1018;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

.tk-sys-text {
  color: #c8d0dc;
  font-size: 0.88rem;
}

.tk-sys-time {
  color: #6b778a;
  font-size: 0.75rem;
}

.tk-closed-label {
  margin: 1.25rem 0 0.5rem;
  color: #fff;
  font-size: 0.95rem;
}

.tk-rate {
  margin-top: 1.5rem;
  text-align: center;
  padding: 1.5rem 1rem;
}

.tk-rate h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  color: #fff;
  font-family: inherit;
}

.tk-rate p {
  margin: 0 0 0.85rem;
  color: #8a96a8;
  font-size: 0.9rem;
}

.tk-stars {
  display: inline-flex;
  gap: 0.35rem;
}

.tk-stars button {
  border: 0;
  background: transparent;
  color: #3a424e;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.1rem;
}

.tk-stars button.on,
.tk-stars button:hover {
  color: #b0a4e3;
  text-shadow: 0 0 10px rgba(176, 164, 227, 0.45);
}

.tk-reply {
  margin-top: 1.15rem;
  display: grid;
  gap: 0.65rem;
}

.tk-reply textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 96px;
  resize: vertical;
  padding: 0.75rem 0.9rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c1018;
  color: #e8eef6;
  outline: none;
  font-family: inherit;
  line-height: 1.45;
}

.tk-reply textarea:focus {
  border-color: rgba(176, 164, 227, 0.5);
}

.tk-reply .tk-create {
  justify-self: end;
}

.tk-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.65);
}

.tk-modal[hidden] {
  display: none !important;
}

.tk-modal-card {
  position: relative;
  width: min(440px, 100%);
  padding: 1.5rem 1.35rem 1.35rem;
  background: #0e141e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.tk-modal-card h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  color: #fff;
  font-family: inherit;
}

.tk-modal-card label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  color: #8a96a8;
  font-size: 0.8rem;
  font-weight: 600;
}

.tk-modal-card input,
.tk-modal-card textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c1018;
  color: #e8eef6;
  outline: none;
  font-family: inherit;
}

.tk-modal-card input:focus,
.tk-modal-card textarea:focus {
  border-color: rgba(176, 164, 227, 0.5);
}

.tk-modal-x {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  border: 0;
  background: transparent;
  color: #8a96a8;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.tk-modal-x:hover {
  color: #fff;
}

.tk-modal-msg {
  min-height: 1rem;
  margin: 0.55rem 0 0;
  color: #c5b9f0;
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 720px) {
  .tk-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .tk-status {
    justify-self: start;
  }

  .tk-row-right {
    text-align: left;
  }

  .tk-msg {
    grid-template-columns: 64px minmax(0, 1fr);
  }
}

/* ══════════════════════════════════════════
   Admin panel — modern dmc / Neverlose style
   ══════════════════════════════════════════ */
.ad-page {
  min-height: 100vh;
  margin: 0;
  background: #07090e;
  color: #e8eef6;
  font-family: "Montserrat", system-ui, sans-serif;
}

.ad-page .nl-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
}

.ad-page .noise,
.ad-page .glow {
  display: none !important;
}

.ad {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.35rem 1.15rem 3.5rem;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
  box-sizing: border-box;
  width: 100%;
}

.ad-side {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.55rem;
  background: #0c121a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  box-shadow: 0 0 28px rgba(176, 164, 227, 0.06);
}

.ad-side-label {
  margin: 0 0.55rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b778a;
}

.ad-side-btn,
.ad-page .side .linkish {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.7rem 0.7rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9aa6b8;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  box-shadow: none !important;
}

.ad-side-btn:hover,
.ad-page .side .linkish:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.ad-side-btn.on,
.ad-page .side .linkish.on {
  color: #fff;
  background: rgba(176, 164, 227, 0.12);
  box-shadow: inset 0 0 0 1px rgba(176, 164, 227, 0.7) !important;
}

.ad-side-ic {
  width: 1.1rem;
  text-align: center;
  opacity: 0.8;
  font-size: 0.85rem;
}

.ad-main {
  min-width: 0;
}

.ad-panel,
.ad-page .panel {
  background: #0c121a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: none;
}

.ad-head,
.ad-page .panel-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.ad-head h1,
.ad-page .panel h1 {
  margin: 0;
  font-family: inherit;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
}

.ad-head p,
.ad-page .panel .muted,
.ad-page .panel-top p {
  margin: 0.35rem 0 0;
  color: #8a96a8;
  font-size: 0.86rem;
  max-width: 36rem;
}

.ad-form {
  max-width: 420px;
}

.ad-page .form-row {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.95rem;
}

.ad-page .form-row label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #8a96a8;
  letter-spacing: 0.02em;
}

.ad-page .form-row input,
.ad-page .form-row select,
.ad-page .admin-search,
.ad-page .balance-input,
.ad-page .hwid-ban-form input {
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0e14;
  color: #e8eef6;
  outline: none;
  font: inherit;
  font-size: 0.9rem;
  appearance: none;
  -webkit-appearance: none;
}

.ad-page .form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%238a96a8' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.2rem;
}

.ad-page .form-row input:focus,
.ad-page .form-row select:focus,
.ad-page .admin-search:focus,
.ad-page .balance-input:focus,
.ad-page .hwid-ban-form input:focus {
  border-color: rgba(176, 164, 227, 0.55);
}

.ad-search {
  display: block;
  min-width: min(260px, 100%);
}

.ad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.ad-btn,
.ad-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 1.15rem;
  border-radius: 5px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transform: none !important;
  box-shadow: none;
}

.ad-btn-primary,
.ad-page .btn-accent {
  background: #b0a4e3;
  color: #fff !important;
  box-shadow: 0 0 18px rgba(176, 164, 227, 0.3);
}

.ad-btn-primary:hover,
.ad-page .btn-accent:hover {
  filter: brightness(1.08);
}

.ad-btn-ghost,
.ad-page .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.14);
  color: #c8d0dc !important;
}

.ad-btn-ghost:hover,
.ad-page .btn-ghost:hover {
  border-color: rgba(176, 164, 227, 0.45);
  color: #fff !important;
  background: rgba(255, 255, 255, 0.03);
}

.ad-page .gen-result {
  margin-top: 1.15rem;
  padding: 1rem 1.1rem;
  background: rgba(176, 164, 227, 0.08);
  border: 1px solid rgba(176, 164, 227, 0.35);
  border-radius: 8px;
  display: grid;
  gap: 0.35rem;
}

.ad-page .gen-result .label {
  color: #8a96a8;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.ad-page .gen-result code {
  color: #fff;
  font-size: 1.05rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
}

.ad-page .gen-result .meta {
  color: #8a96a8;
  font-size: 0.8rem;
}

.ad-page .admin-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: #8a96a8;
}

.ad-page .admin-stats b {
  color: #fff;
  font-weight: 700;
}

.ad-page .admin-stats .ok b {
  color: #7dcea0;
}

.ad-page .admin-stats .bad b {
  color: #c5b9f0;
}

.ad-page .admin-scroll {
  max-height: min(68vh, 760px);
  overflow: auto;
  padding-right: 0.15rem;
}

.ad-page .admin-scroll::-webkit-scrollbar {
  width: 6px;
}

.ad-page .admin-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.ad-page .admin-cards {
  display: grid;
  gap: 0.65rem;
}

.ad-page .admin-card {
  background: #0a1018;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 1rem 1.05rem;
  transition: border-color 0.15s ease;
}

.ad-page .admin-card:hover {
  border-color: rgba(176, 164, 227, 0.35);
}

.ad-page .admin-card.is-banned {
  border-color: rgba(176, 164, 227, 0.35);
  background: linear-gradient(180deg, rgba(176, 164, 227, 0.1), #0a1018 60%);
}

.ad-page .admin-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.ad-page .key-code {
  color: #fff;
  font-size: 0.9rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
}

.ad-page .user-title {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.ad-page .user-title strong {
  color: #fff;
  font-size: 1.02rem;
}

.ad-page .user-title .uid {
  color: #6b778a;
  font-size: 0.75rem;
}

.ad-page .badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ad-page .badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.5rem;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.7rem;
  font-weight: 700;
  color: #9aa6b8;
  background: rgba(255, 255, 255, 0.03);
}

.ad-page .badge.ok {
  color: #b8efd0;
  border-color: rgba(125, 206, 160, 0.35);
  background: rgba(30, 74, 56, 0.45);
}

.ad-page .badge.dead {
  color: #f0c0ba;
  border-color: rgba(176, 164, 227, 0.4);
  background: rgba(176, 164, 227, 0.18);
}

.ad-page .admin-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.65rem;
}

.ad-page .admin-meta > div {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.ad-page .admin-meta span {
  color: #6b778a;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.ad-page .admin-meta b {
  color: #e8eef6;
  font-size: 0.84rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-page .chip-row,
.ad-page .reseller-controls {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
  align-items: center;
}

.ad-page .chip {
  appearance: none;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #c8d0dc;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.ad-page .chip:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.ad-page .chip-danger {
  border-color: rgba(176, 164, 227, 0.45);
  color: #f0c0ba;
}

.ad-page .chip-danger:hover {
  border-color: rgba(176, 164, 227, 0.75);
  color: #fff;
  background: rgba(176, 164, 227, 0.12);
}

.ad-page .chip-ok {
  border-color: rgba(125, 206, 160, 0.4);
  color: #7dcea0;
}

.ad-page .chip-ok:hover {
  border-color: rgba(125, 206, 160, 0.65);
  color: #b8efd0;
  background: rgba(125, 206, 160, 0.08);
}

.ad-page .balance-input {
  width: 7.5rem;
  min-height: 36px;
  padding: 0.4rem 0.55rem;
}

.ad-page .admin-empty {
  padding: 2.25rem 1rem;
  text-align: center;
  color: #8a96a8;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.9rem;
}

.ad-page .admin-empty.err {
  color: #c5b9f0;
  border-color: rgba(176, 164, 227, 0.35);
}

.ad-ban-form,
.ad-page .hwid-ban-form {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
  padding: 1rem;
  background: #0a1018;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
}

.ad-page .hwid-ban-form .form-row {
  margin: 0;
}

.ad-page .toast {
  background: #121820;
  border: 1px solid rgba(176, 164, 227, 0.45);
  border-radius: 6px;
}

@media (max-width: 900px) {
  .ad {
    grid-template-columns: 1fr;
  }

  .ad-side {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ad-side-label {
    width: 100%;
    margin-bottom: 0.25rem;
  }

  .ad-side-btn,
  .ad-page .side .linkish {
    flex: 1 1 auto;
    justify-content: center;
  }

  .ad-ban-form,
  .ad-page .hwid-ban-form {
    grid-template-columns: 1fr;
  }
}

