@font-face {
  font-family: "Oxanium";
  src: local("Oxanium");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-VariableFont_wght.ttf") format("truetype-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Italic-VariableFont_wght.ttf") format("truetype-variations");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bs-font-sans-serif: "Oxanium", sans-serif;
  --bs-body-font-family: "Oxanium", sans-serif;
}

.starfield {
  opacity: 1 !important;
  z-index: 0 !important;
  perspective: 800px !important;
}

.star {
  animation-name: moveToward !important;
  animation-fill-mode: both !important;
  opacity: 0;
  transform: translateZ(-2000px) scale(0.5);
}

.navbar-modern {
  background: transparent !important;
  border-bottom: 1px solid transparent !important;
  padding: 0 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transition: padding 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.navbar-modern.scrolled {
  background: transparent !important;
  border-bottom-color: transparent !important;
  padding: 10px 24px !important;
}

.navbar-container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 28px !important;
  position: relative !important;
  transition: max-width 520ms cubic-bezier(0.16, 1, 0.3, 1),
              padding 520ms cubic-bezier(0.16, 1, 0.3, 1),
              width 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-modern.scrolled .navbar-container {
  width: calc(100% - 112px) !important;
  max-width: 1480px !important;
  padding: 0 !important;
}

.navbar-content {
  min-height: 64px !important;
  gap: 36px !important;
  padding: 0 18px !important;
  justify-content: space-between !important;
  transition: min-height 520ms cubic-bezier(0.16, 1, 0.3, 1),
              padding 520ms cubic-bezier(0.16, 1, 0.3, 1),
              gap 520ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 520ms cubic-bezier(0.16, 1, 0.3, 1),
              background 520ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-modern.scrolled .navbar-content {
  min-height: 54px !important;
  padding: 0 12px !important;
  gap: 18px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.006)),
    rgba(10, 10, 12, 0.34) !important;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px !important;
  overflow: hidden !important;
  background-clip: padding-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.065),
    0 10px 26px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(5px) saturate(108%) !important;
  backdrop-filter: blur(5px) saturate(108%) !important;
}

.navbar-modern.scrolled .navbar-content::before {
  border-radius: inherit !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.005)),
    rgba(12, 12, 14, 0.34) !important;
  box-shadow: none !important;
}

.navbar-modern.scrolled .navbar-brand {
  display: none !important;
}

.navbar-modern.scrolled .navbar-logo-section {
  gap: 8px !important;
}

.navbar-modern.scrolled .nav-link {
  min-height: 32px;
  padding: 0 11px !important;
}

.navbar-modern.scrolled .navbar-search,
.navbar-modern.scrolled .cart-button,
.navbar-modern.scrolled .btn-login {
  min-height: 38px;
  height: 38px;
}

.navbar-logo-section {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 22px !important;
  flex: 0 1 auto;
  margin-right: auto;
}

.navbar-brand {
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
}

.brand-logo {
  width: 38px !important;
  height: auto !important;
  max-height: 38px;
  border-radius: 0 !important;
  object-fit: contain;
}

.navbar-separator {
  display: none !important;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 8px !important;
  margin-left: 0;
}

.nav-link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 13px !important;
  border: 1px solid transparent;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.56) !important;
  opacity: 1 !important;
  font-size: 0.93rem !important;
  font-weight: 700 !important;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.92) !important;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: #b85cff !important;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.09);
}

.nav-link-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.nav-link-text {
  background: none !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  color: currentColor !important;
  white-space: nowrap;
}

.navbar-actions {
  gap: 10px !important;
  flex: 0 0 auto;
  margin-left: auto;
}

.navbar-search {
  display: none;
  width: 286px;
  height: 38px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(159, 175, 206, 0.86);
}

.navbar-search-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.navbar-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  font: inherit;
  font-size: 0.9rem;
}

.navbar-search input::placeholder {
  color: rgba(159, 175, 206, 0.62);
}

.cart-button {
  width: 38px !important;
  height: 38px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.045) !important;
  border-color: rgba(255, 255, 255, 0.13) !important;
}

.cart-icon {
  width: 19px !important;
  height: 19px !important;
}

.auth-button.desktop {
  display: none;
}

.btn-login {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 20px !important;
  border-radius: 9px !important;
  border: 0 !important;
  color: #120719 !important;
  background: linear-gradient(180deg, #bb5cff, #a93cff) !important;
  box-shadow: none !important;
  font-size: 0.94rem !important;
  font-weight: 800 !important;
}

.login-icon {
  width: 17px;
  height: 17px;
}

.mobile-menu-toggle {
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: white;
}

.menu-icon {
  display: none !important;
}

.mobile-menu-icon {
  width: 21px;
  height: 21px;
}

.mobile-nav-link span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mobile-nav-icon {
  width: 17px;
  height: 17px;
}

@media (min-width: 992px) {
  .navbar-search.desktop {
    display: flex !important;
  }

  .auth-button.desktop {
    display: block !important;
  }
}

@media (max-width: 1200px) {
  .navbar-search {
    width: 220px;
  }

  .nav-link {
    padding: 0 10px !important;
  }

  .brand-logo {
    width: 36px !important;
    max-height: 36px;
  }
}

@media (max-width: 991px) {
  .navbar-modern.scrolled {
    padding: 10px 14px !important;
  }

  .navbar-container {
    padding: 0 14px !important;
  }

  .navbar-modern.scrolled .navbar-content {
    padding: 0 12px !important;
    border-radius: 12px;
  }

  .brand-logo {
    width: 34px !important;
    max-height: 34px;
  }
}

@media (max-width: 576px) {
  .navbar-content,
  .navbar-modern.scrolled .navbar-content {
    min-height: 58px !important;
  }

  .brand-logo {
    width: 32px !important;
    max-height: 32px;
  }
}

.variants {
  display: none !important;
}

#quantity,
.mb-3.col-12:first-of-type {
  display: none !important;
}

.btn-primary {
  display: none !important;
}

.btn-outline-primary {
  display: none !important;
}

.addon-item {
  display: none !important;
}

  body, html {
    font-family: "Oxanium", sans-serif;
    overflow-x: hidden;
  }

.section-title {
  font-size: 1.875rem;
  font-weight: bold;
}

@media (min-width: 640px) {

  /* sm breakpoint */
  .section-title {
    font-size: 2.25rem;
  }
}

.section-title-background-text {
  position: absolute;
  bottom: 0;
  left: 0;
  user-select: none;
  white-space: nowrap;
  background: linear-gradient(to bottom, white, transparent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 3.75rem;
  font-weight: bold;
  opacity: 0.15;
  line-height: normal;
}
.btn-outline-primary-gradient {
  position: relative;
  overflow: hidden;
  border: none;
  background: linear-gradient(135deg, #9900ff 0%, #7700cc 100%);
  color: #fff;
  font-weight: 600;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(153, 0, 255, 0.3);
}

.btn-outline-primary-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #aa00ff 0%, #8800dd 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-outline-primary-gradient:hover::before {
  opacity: 1;
}

.btn-outline-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(153, 0, 255, 0.4);
}

.btn-outline-primary-gradient span,
.btn-outline-primary-gradient svg {
  position: relative;
  z-index: 1;
}

.products-section {
  padding-top: 5rem !important;
}

.products-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
  padding-bottom: 1.35rem;
}

.products-header.popular-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.products-header h3 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.popular-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  font-family: "Geist", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    transform 0.18s ease;
}

.popular-view-all:hover {
  background: rgba(169, 40, 255, 0.16);
  border-color: rgba(169, 40, 255, 0.42);
  color: #fff;
  transform: translateX(2px);
}

.popular-view-all svg {
  width: 16px;
  height: 16px;
}

/* Hero character: scale 50% larger than default, anchored to right edge,
   fade out the bottom so it dissolves into the background instead of cutting off */
.hero-section .character-image {
  max-width: 735px !important;
  flex: 1.05 !important;
  align-self: center;
  margin-left: auto;
  margin-right: auto;
  animation: heroFloat 3s ease-in-out infinite !important;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 70%,
    rgba(0, 0, 0, 0.35) 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 70%,
    rgba(0, 0, 0, 0.35) 92%,
    transparent 100%
  );
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 1400px) {
  .hero-section .character-image {
    max-width: 595px !important;
  }
}

@media (max-width: 1200px) {
  .hero-section .character-image {
    max-width: 476px !important;
  }
}

/* Make the hero + marquee fit one viewport — marquee visible at bottom on load */
.hero-section {
  min-height: calc(100vh - 190px);
  display: flex;
  align-items: center;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.hero-section .hero-wrapper {
  width: 100%;
}

.marquee-container {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 24px;
}

@media (max-width: 968px) {
  .hero-section {
    min-height: auto;
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
}

/* Popular section: 3 cards fill the row at every breakpoint above mobile */
.popular-products-section .row.products > [class*="col-"] {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
}

@media (max-width: 768px) {
  .popular-products-section .row.products > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Category landing grid on /products */
.products-header-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.products-header-detail h3 {
  flex: 1;
  min-width: 0;
}

.category-back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.8);
  font-family: "Geist", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    transform 0.18s ease;
}

.category-back-button:hover {
  background: rgba(169, 40, 255, 0.14);
  border-color: rgba(169, 40, 255, 0.4);
  color: #fff;
  transform: translateX(-2px);
}

.category-back-button svg {
  width: 16px;
  height: 16px;
}

.category-detail-count {
  color: rgba(255, 255, 255, 0.55);
  font-family: "Geist", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
}

.categories-grid {
  --bs-gutter-y: 1.25rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease, background 0.25s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: rgba(169, 40, 255, 0.4);
  background: rgba(169, 40, 255, 0.05);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(169, 40, 255, 0.08);
}

.category-card:focus-visible {
  outline: none;
  border-color: rgba(169, 40, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(169, 40, 255, 0.18);
}

.category-card-media {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.25%;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(169, 40, 255, 0.4), transparent 55%),
    linear-gradient(135deg, rgba(80, 6, 130, 0.45), rgba(15, 0, 30, 0.85));
}

.category-card-media:has(img) {
  background: transparent;
}

.category-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.category-card:hover .category-card-media img {
  transform: scale(1.04);
}

.category-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Geist", sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.55);
}

.category-card-count {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-family: "Geist", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.category-card-shadow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
  pointer-events: none;
}

.category-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem 1.25rem;
}

.category-card-body strong {
  flex: 1;
  min-width: 0;
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-card-enter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(206, 155, 255, 0.92);
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.18s ease, transform 0.18s ease;
}

.category-card-enter svg {
  width: 14px;
  height: 14px;
}

.category-card:hover .category-card-enter {
  color: #fff;
  transform: translateX(2px);
}

.category-filters {
  display: flex;
  align-items: center;
  gap: 1.85rem;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.category-filters::-webkit-scrollbar {
  display: none;
}

.category-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  flex: 0 0 auto;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  padding: 0 0.1rem;
  transition: color 0.18s ease, background 0.18s ease, padding 0.18s ease;
}

.category-filter:hover {
  color: rgba(255, 255, 255, 0.84) !important;
  background: transparent !important;
}

.category-filter.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  padding: 0 1.1rem;
}

.category-filter-icon {
  width: 15px;
  height: 15px;
  color: rgba(255, 255, 255, 0.48);
  flex: 0 0 auto;
}

.category-filter.active .category-filter-icon {
  color: rgba(255, 255, 255, 0.85);
}

.category-filter-thumb {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  flex: 0 0 auto;
  display: block;
}

@media (max-width: 768px) {
  .products-section {
    padding-top: 3.5rem !important;
  }

  .products-header h3 {
    font-size: 1.5rem;
  }

  .category-filters {
    gap: 1rem;
    margin-bottom: 1.75rem;
  }

  .category-filter {
    font-size: 0.92rem;
  }
}

.downloads-page {
  min-height: calc(100vh - 160px);
  padding: 7rem 1.5rem 4rem;
}

.downloads-container {
  max-width: 1180px;
  margin: 0 auto;
}

.downloads-heading {
  max-width: 680px;
  margin-bottom: 2.2rem;
}

.downloads-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.downloads-kicker svg {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
}

.downloads-heading h1 {
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 1rem;
}

.downloads-heading p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.downloads-table-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  background: rgba(10, 10, 12, 0.46);
  color: #fff;
}

.downloads-table-card {
  padding: 1rem 1rem 0;
}

.downloads-category-list {
  display: grid;
  gap: 1rem;
}

.downloads-category-title {
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
}

.downloads-product-table {
  table-layout: fixed;
}

.downloads-action-heading,
.downloads-action-cell {
  text-align: right !important;
  width: 260px;
  white-space: nowrap;
}

.downloads-action-heading {
  padding-right: 1.45rem !important;
}

.downloads-action-cell {
  vertical-align: middle !important;
}

.downloads-action-buttons {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.downloads-action-cell .customer-inline-link {
  margin-left: 0;
}

.downloads-action-cell .downloads-download-link {
  min-width: 104px;
  border-color: rgba(177, 73, 255, 0.36) !important;
  background: linear-gradient(135deg, rgba(153, 0, 255, 0.96), rgba(178, 73, 255, 0.92)) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(153, 0, 255, 0.14);
}

.downloads-action-cell .downloads-download-link:hover {
  border-color: rgba(210, 159, 255, 0.44) !important;
  background: linear-gradient(135deg, rgba(177, 73, 255, 0.98), rgba(153, 0, 255, 0.96)) !important;
  color: #fff !important;
}

.downloads-action-cell .downloads-instructions-link {
  min-width: 104px;
  border-color: rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.82) !important;
}

.downloads-action-cell .downloads-instructions-link:hover {
  border-color: rgba(255, 255, 255, 0.26) !important;
  background: rgba(255, 255, 255, 0.11) !important;
  color: #fff !important;
}

.downloads-product-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.downloads-product-thumb {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.downloads-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.downloads-product-thumb svg,
.customer-inline-link svg,
.customer-action-link svg {
  width: 16px;
  height: 16px;
}

.downloads-note {
  color: #ffb3c0;
  margin: 1.25rem 0 0;
}

@media (max-width: 768px) {
  .downloads-page {
    padding: 5rem 1rem 3rem;
  }

  .downloads-heading h1 {
    font-size: 2.25rem;
  }

}

.guide-page {
  min-height: calc(100vh - 160px);
  padding: 7rem 1.5rem 4rem;
}

.guide-container {
  max-width: 1180px;
  margin: 0 auto;
}

.guide-heading {
  max-width: 680px;
  margin-bottom: 2.2rem;
}

.guide-heading h1 {
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 1rem;
}

.guide-heading p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.guide-search-wrap {
  position: relative;
  max-width: 100%;
  margin-bottom: 2rem;
}

.guide-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
  pointer-events: none;
}

.guide-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  outline: none;
  transition: border-color 0.18s;
  box-sizing: border-box;
}

.guide-search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.guide-search-input:focus {
  border-color: rgba(153, 0, 255, 0.5);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.guide-card {
  background: rgba(10, 10, 12, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  padding: 1.4rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.guide-card-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-primary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.guide-card-icon {
  font-size: 1rem;
  line-height: 1;
}

.guide-card-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  margin: 0 0 1rem;
}

.guide-card-body {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0 0 1.25rem;
  min-height: 4.95rem;
}

.guide-card-btn {
  align-self: flex-start;
  background: var(--accent-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.guide-card-btn:hover {
  opacity: 0.85;
}

.guide-empty {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.95rem;
  padding: 2rem 0;
}

.instructions-card-title {
  gap: 0.6rem !important;
}

.instructions-card-thumb {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.instructions-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructions-card-thumb svg {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.3);
}

.instructions-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.instructions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(10, 10, 12, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  padding: 1rem 1.25rem;
}

.instructions-row-name {
  color: var(--accent-primary);
  font-size: 1rem;
  font-weight: 700;
}

.instructions-card-btn-disabled {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: default;
  user-select: none;
}

.guide-detail-page {
  min-height: calc(100vh - 160px);
  padding: 7rem 1.5rem 4rem;
}

.guide-detail-container {
  max-width: 780px;
  margin: 0 auto;
}

.guide-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1.75rem;
  transition: color 0.15s;
}

.guide-detail-back:hover {
  color: #fff;
}

.guide-detail-back svg {
  width: 16px;
  height: 16px;
}

.guide-detail-card {
  background: rgba(10, 10, 12, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  padding: 2rem 2.25rem 2.25rem;
}

.guide-detail-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-primary);
  font-size: 1.85rem;
  font-weight: 800;
  margin: 0 0 1.25rem;
  line-height: 1.2;
}

.guide-detail-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  margin: 0 0 1.5rem;
}

.guide-detail-body {
  display: flex;
  flex-direction: column;
}

.guide-detail-section {
  display: flex;
  flex-direction: column;
}

.guide-detail-section-heading {
  color: var(--accent-primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.guide-detail-section-body {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0 0 1.5rem;
}

.guide-rich h1,
.guide-rich h2,
.guide-rich h3,
.guide-rich h4 {
  color: var(--accent-primary);
  font-weight: 800;
  line-height: 1.2;
  margin: 1.2rem 0 0.75rem;
}

.guide-rich h1 { font-size: 1.8rem; }
.guide-rich h2 { font-size: 1.45rem; }
.guide-rich h3 { font-size: 1.2rem; }
.guide-rich h4 { font-size: 1.05rem; }

.guide-rich p {
  margin: 0 0 0.85rem;
}

.guide-rich strong,
.guide-rich b {
  color: #fff;
  font-weight: 700;
}

.guide-rich em,
.guide-rich i {
  font-style: italic;
}

.guide-rich u {
  text-decoration: underline;
}

.guide-rich ul,
.guide-rich ol {
  margin: 0.5rem 0 1rem;
  padding-left: 1.6rem;
}

.guide-rich li {
  margin: 0.25rem 0;
  line-height: 1.65;
}

.guide-rich a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guide-rich a:hover {
  color: #d29fff;
}

.guide-rich hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  margin: 1.25rem 0;
}

.guide-rich blockquote {
  border-left: 3px solid rgba(153, 0, 255, 0.45);
  background: rgba(255, 255, 255, 0.025);
  padding: 0.6rem 0.95rem;
  margin: 0.75rem 0;
  color: rgba(255, 255, 255, 0.78);
}

.guide-rich code {
  background: rgba(255, 255, 255, 0.07);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 0.88em;
}

.guide-rich pre {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  overflow-x: auto;
}

/* ── Rich Text Editor ─────────────────────────────────────── */
.rte {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.rte:focus-within {
  border-color: rgba(153, 0, 255, 0.45);
}

.rte-toolbar {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.rte-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.rte-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

.rte-btn:active {
  transform: scale(0.95);
}

.rte-btn svg {
  width: 14px;
  height: 14px;
}

.rte-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 0.25rem;
}

.rte-select {
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.4rem;
  cursor: pointer;
  outline: none;
}

.rte-select:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.rte-select option {
  background: #1a0f24;
  color: #fff;
}

.rte-color-wrap {
  position: relative;
}

.rte-color-popover {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #15101a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.45rem;
  display: flex;
  gap: 0.3rem;
  z-index: 50;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.rte-color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.rte-color-swatch:hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.rte-color-custom {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  overflow: hidden;
}

.rte-color-custom:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.rte-color-custom input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.rte-content {
  min-height: 140px;
  padding: 0.7rem 0.9rem;
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.6;
  outline: none;
}

.rte-content:empty::before {
  content: attr(data-placeholder);
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.rte-content h1,
.rte-content h2,
.rte-content h3 {
  color: var(--accent-primary);
  font-weight: 800;
  margin: 0.6rem 0 0.4rem;
}

.rte-content h1 { font-size: 1.5rem; }
.rte-content h2 { font-size: 1.25rem; }
.rte-content h3 { font-size: 1.05rem; }

.rte-content p {
  margin: 0 0 0.5rem;
}

.rte-content ul,
.rte-content ol {
  margin: 0.35rem 0 0.6rem;
  padding-left: 1.5rem;
}

.rte-content a {
  color: var(--accent-primary);
  text-decoration: underline;
}

.guide-detail-empty {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.95rem;
  padding: 1rem 0;
}

@media (max-width: 768px) {
  .guide-page {
    padding: 5rem 1rem 3rem;
  }

  .guide-heading h1 {
    font-size: 2.25rem;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-detail-page {
    padding: 5rem 1rem 3rem;
  }

  .guide-detail-card {
    padding: 1.5rem 1.25rem;
  }

  .guide-detail-title {
    font-size: 1.5rem;
  }
}

/* ── Mod Portal v2 ──────────────────────────────────────── */
@keyframes mod-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mod-pop-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.mod-portal-v2 {
  padding: 1.75rem 2rem 2.5rem;
  width: 100%;
  max-width: 1500px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mod-portal-v2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.mod-portal-v2-titlebar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mod-portal-v2-icon {
  width: 36px;
  height: 36px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.mod-portal-v2-titlebar h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.2rem;
  letter-spacing: -0.01em;
}

.mod-portal-v2-titlebar p {
  color: rgba(255,255,255,0.5);
  font-size: 0.92rem;
  margin: 0;
}

.mod-portal-v2-stats {
  display: flex;
  gap: 0.75rem;
}

.mod-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.7rem 1.1rem;
  text-align: center;
  min-width: 110px;
}

.mod-stat strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.mod-stat span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 0.35rem;
}

/* Two-column layout: side list + editor */
.mod-portal-v2-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.25rem;
  min-height: 580px;
}

@media (max-width: 1024px) {
  .mod-portal-v2-grid {
    grid-template-columns: 1fr;
  }
}

/* Side list ─────────────────────────── */
.mod-side-list {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mod-side-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}

.mod-side-search svg {
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
}

.mod-side-search input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  padding: 0.2rem 0;
}

.mod-side-search input::placeholder {
  color: rgba(255,255,255,0.32);
}

.mod-side-search-clear {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0.15rem;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.mod-side-search-clear:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.mod-side-search-clear svg {
  width: 13px;
  height: 13px;
}

.mod-side-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.6rem 1rem;
  max-height: 70vh;
}

.mod-side-section {
  margin-bottom: 1.25rem;
}

.mod-side-section:last-child {
  margin-bottom: 0;
}

.mod-side-section h3 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin: 0 0.5rem 0.5rem;
}

.mod-side-empty {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  margin: 0 0.5rem;
  padding: 0.4rem 0;
}

.mod-side-hint {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.3);
  margin: 0.5rem 0.5rem 0;
  font-style: italic;
}

.mod-list-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  margin-bottom: 0.2rem;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.mod-list-row:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.mod-list-row:active {
  transform: scale(0.99);
}

.mod-list-row.selected {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  box-shadow: inset 2px 0 0 var(--accent-primary);
}

.mod-list-row.has-perms .mod-list-avatar {
  background: linear-gradient(135deg, rgba(153,0,255,0.4), rgba(178,73,255,0.25));
}

.mod-list-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.mod-list-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mod-list-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mod-list-badge {
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.08rem 0.4rem;
  border-radius: 4px;
  min-width: 18px;
  text-align: center;
}

.mod-list-email {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mod-list-icon {
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,0.25);
  flex-shrink: 0;
}

.mod-list-icon.active {
  color: var(--accent-primary);
}

/* Editor pane ─────────────────────────── */
.mod-editor {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  animation: mod-fade-in 0.25s ease both;
}

.mod-editor-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255,255,255,0.4);
  padding: 3rem 2rem;
}

.mod-editor-empty-icon {
  width: 56px;
  height: 56px;
  color: rgba(153,0,255,0.4);
  margin-bottom: 1rem;
}

.mod-editor-empty h2 {
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.mod-editor-empty p {
  font-size: 0.88rem;
  max-width: 380px;
  line-height: 1.55;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.mod-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.mod-editor-user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.mod-editor-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(153,0,255,0.45), rgba(178,73,255,0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.mod-editor-user h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mod-editor-user p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

.mod-editor-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, rgba(153,0,255,0.95), rgba(178,73,255,0.9));
  color: #fff;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
}

.mod-editor-actions {
  display: flex;
  gap: 0.5rem;
}

.mod-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
  white-space: nowrap;
}

.mod-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.mod-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mod-btn svg {
  width: 14px;
  height: 14px;
}

.mod-btn-primary {
  background: linear-gradient(135deg, rgba(153,0,255,0.95), rgba(178,73,255,0.9));
  color: #fff;
  border-color: rgba(178,73,255,0.5);
  box-shadow: 0 4px 14px rgba(153,0,255,0.18);
}

.mod-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(178,73,255,1), rgba(153,0,255,1));
  box-shadow: 0 6px 18px rgba(153,0,255,0.28);
}

.mod-btn-primary.saved {
  background: linear-gradient(135deg, #2bd574, #2bd574);
  border-color: rgba(43,213,116,0.5);
}

.mod-btn-ghost {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.1);
}

.mod-btn-ghost:hover:not(:disabled) {
  background: rgba(255,255,255,0.07);
  color: #fff;
}

.mod-btn-danger {
  background: rgba(255,80,80,0.1);
  color: #ff7878;
  border-color: rgba(255,80,80,0.3);
}

.mod-btn-danger:hover:not(:disabled) {
  background: rgba(255,80,80,0.18);
  color: #ff9999;
}

.mod-editor-error {
  background: rgba(255,80,80,0.1);
  border: 1px solid rgba(255,80,80,0.3);
  color: #ff7878;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  animation: mod-pop-in 0.2s ease both;
}

/* Presets ─────────────────────────── */
.mod-presets {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.mod-presets-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.mod-presets-head svg {
  width: 13px;
  height: 13px;
  color: var(--accent-primary);
}

.mod-presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mod-preset-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.78);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
}

.mod-preset-btn:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}

.mod-preset-btn:active {
  transform: scale(0.97);
}

.mod-preset-btn.ghost {
  background: transparent;
  color: rgba(255,255,255,0.45);
}

.mod-preset-btn.ghost:hover {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.18);
}

/* Capability groups ─────────────────────────── */
.mod-cap-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 0.85rem;
}

.mod-cap-group {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 0.85rem 1rem 1rem;
}

.mod-cap-group-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mod-cap-group-icon {
  font-size: 1rem;
  line-height: 1;
}

.mod-cap-group h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.005em;
}

.mod-cap-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mod-cap {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0.5rem;
  border-radius: 7px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.mod-cap:hover {
  background: rgba(255,255,255,0.03);
}

.mod-cap.on {
  background: rgba(255,255,255,0.04);
}

.mod-cap input {
  display: none;
}

.mod-cap-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,0.22);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #fff;
}

.mod-cap-box svg {
  width: 11px;
  height: 11px;
  stroke-width: 3.5px;
}

.mod-cap.on .mod-cap-box {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: scale(1.08);
}

.mod-cap-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.mod-cap-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  line-height: 1.2;
}

.mod-cap.on .mod-cap-name {
  color: #fff;
}

.mod-cap-desc {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.42);
  line-height: 1.35;
}

/* Summary footer ─────────────────────────── */
.mod-summary {
  background: rgba(43,213,116,0.06);
  border: 1px solid rgba(43,213,116,0.18);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  align-items: center;
}

.mod-summary-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mod-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.mod-summary-tag {
  font-size: 0.74rem;
  font-weight: 600;
  background: rgba(43,213,116,0.12);
  color: #6df0a0;
  border: 1px solid rgba(43,213,116,0.25);
  padding: 0.17rem 0.5rem;
  border-radius: 5px;
}


/* ── Resources Portal ────────────────────────────────────── */
.resources-portal {
  padding: 2rem 2.5rem;
  width: 100%;
}

.resources-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.resources-header-icon {
  width: 32px;
  height: 32px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.resources-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.2rem;
}

.resources-subtitle {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin: 0;
}

.resources-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.resources-tab {
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}

.resources-tab.active {
  color: #fff;
  border-bottom-color: var(--accent-primary);
}

.resources-section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.resources-count {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.resources-entry-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.resources-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1rem 1.2rem;
}

.resources-new-card {
  border-color: rgba(153,0,255,0.3);
  background: rgba(153,0,255,0.04);
  margin-bottom: 0.75rem;
}

.resources-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 1rem;
}

.resources-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.resources-card-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.resources-card-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.resources-card-name {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
}

.resources-card-meta {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.38);
  margin-top: 0.15rem;
}

.resources-card-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.resources-untitled {
  color: rgba(255,255,255,0.3);
  font-style: italic;
}

.resources-empty {
  color: rgba(255,255,255,0.35);
  font-size: 0.9rem;
  padding: 1rem 0;
}

.resources-entry-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.resources-form-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.resources-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.resources-field.short {
  flex: 0 0 80px;
}

.resources-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}

.resources-sections-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 0.6rem;
}

.resources-add-section {
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.55);
  border-radius: 5px;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.12s, border-color 0.12s;
}

.resources-add-section:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}

.resources-add-section svg {
  width: 12px;
  height: 12px;
}

.resources-section-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  position: relative;
}

.resources-remove-section {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.12s, background 0.12s;
}

.resources-remove-section:hover {
  color: #ff6b6b;
  background: rgba(255,107,107,0.1);
}

.resources-remove-section svg {
  width: 14px;
  height: 14px;
}

.resources-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.resources-error {
  color: #ff6b6b;
  font-size: 0.85rem;
}

.resources-instructions-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.resources-instructions-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.resources-url-input {
  flex: 1;
}

.admin-loading {
  padding: 3rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
}

/* shared admin button helpers */
.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(153,0,255,0.95), rgba(178,73,255,0.9));
  color: #fff;
  border: 1px solid rgba(178,73,255,0.5);
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease, opacity 0.18s ease;
  white-space: nowrap;
}

.admin-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(178,73,255,1), rgba(153,0,255,1));
}

.admin-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.admin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-btn svg {
  width: 14px;
  height: 14px;
}

.admin-btn-primary {
  /* alias for default */
  background: linear-gradient(135deg, rgba(153,0,255,0.95), rgba(178,73,255,0.9));
}

.admin-btn-sm {
  padding: 0.35rem 0.8rem !important;
  font-size: 0.8rem !important;
}

.admin-btn-danger {
  background: rgba(255,80,80,0.12) !important;
  color: #ff6b6b !important;
  border-color: rgba(255,80,80,0.25) !important;
}

.admin-btn-danger:hover {
  background: rgba(255,80,80,0.2) !important;
}

.admin-btn-danger svg {
  width: 13px;
  height: 13px;
}

.admin-btn-ghost {
  background: rgba(255,255,255,0.05) !important;
  color: rgba(255,255,255,0.65) !important;
  border-color: rgba(255,255,255,0.1) !important;
}

.admin-btn-ghost:hover {
  background: rgba(255,255,255,0.09) !important;
  color: #fff !important;
}

.admin-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px;
  color: #fff;
  font-size: 0.9rem;
  padding: 0.55rem 0.8rem;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.admin-input:focus {
  border-color: rgba(153,0,255,0.45);
}

.admin-input::placeholder {
  color: rgba(255,255,255,0.25);
}

.admin-textarea {
  resize: vertical;
  min-height: 60px;
  font-family: inherit;
}

/* ─────────────────────────────────────────────────────────── */
.status-page-shell.container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 6.5rem 0 3rem !important;
}

#saph-status {
  --saph-primary: #9900ff;
  --saph-primary-hover: #aa1aff;
  --saph-border: rgba(255, 255, 255, 0.08);
  --saph-text: #e9eef5;
  --saph-muted: #9aa4b2;
  position: relative;
  background: transparent;
  border: 1px solid var(--saph-border);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 32px);
  margin: clamp(28px, 5vw, 64px) auto;
  max-width: 1560px;
  width: calc(100% - 40px);
}

#saph-status .x-status-head {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(20px, 3vw, 28px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--saph-border);
}

#saph-status .x-title {
  margin: 0;
  font-weight: 700;
  color: var(--saph-text);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

#saph-status .x-em {
  color: var(--saph-primary);
}

#saph-status .x-sub {
  color: var(--saph-muted);
  margin: 6px 0 0;
  font-size: 0.95rem;
}

#saph-status .x-head-right {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

#saph-status .x-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#saph-status .x-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--saph-text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--saph-border);
  cursor: pointer;
  transition: all 0.2s ease;
}

#saph-status .x-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.85);
  }
}

#saph-status .x-tag:not(.is-on) {
  opacity: 0.4;
}

#saph-status .x-tag:not(.is-on) .dot {
  animation: none;
}

#saph-status .x-tag:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

#saph-status .x-tag.is-on {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

#saph-status .x-tools {
  display: flex;
  gap: 10px;
  align-items: center;
}

#saph-status .x-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--saph-border);
  color: var(--saph-muted);
  transition: all 0.2s ease;
}

#saph-status .x-input:focus-within {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

#saph-status .x-input svg {
  flex-shrink: 0;
}

#saph-status .x-input input {
  background: transparent;
  border: 0;
  color: var(--saph-text);
  outline: 0;
  width: 180px;
  font-size: 0.95rem;
}

#saph-status .x-input input::placeholder {
  color: var(--saph-muted);
}

#saph-status .x-refresh {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: var(--saph-primary);
  border: 1px solid var(--saph-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

#saph-status .x-refresh:hover {
  background: var(--saph-primary-hover);
  transform: translateY(-1px);
}

#saph-status .x-refresh:active {
  transform: translateY(0);
}

#saph-status .x-group {
  margin-top: 24px;
}

#saph-status .x-group-head h2 {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--saph-muted);
}

#saph-status .x-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#saph-status .x-card {
  --st: #9aa4b2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-decoration: none;
  padding: 20px 24px;
  border-radius: 12px;
  color: var(--saph-text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--saph-border);
  transition: all 0.2s ease;
  width: 100%;
}

#saph-status .x-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

#saph-status .x-card-main {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

#saph-status .x-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

#saph-status .x-label {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--saph-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#saph-status .x-subtle {
  color: var(--saph-muted);
  font-size: 0.85rem;
}

#saph-status .x-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  flex-shrink: 0;
}

#saph-status .x-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--st);
  flex-shrink: 0;
  animation: pulse-status 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 var(--st);
}

@keyframes pulse-status {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 var(--st);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 8px 2px var(--st);
  }
}

#saph-status .x-pill .txt {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--saph-text);
}

#saph-status .x-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

#saph-status .x-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--saph-primary);
  border: 1px solid var(--saph-primary);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

#saph-status .x-price:hover {
  background: var(--saph-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(153, 0, 255, 0.3);
}

#saph-status .x-price:active {
  transform: translateY(0);
}

#saph-status .x-card:hover .x-price {
  box-shadow: 0 4px 16px rgba(153, 0, 255, 0.4);
}

#saph-status .x-glow,
#saph-status .x-border,
#saph-status .x-scan,
#saph-status .x-grid {
  display: none;
}

@media (max-width: 768px) {
  .status-page-shell.container {
    padding: 5rem 0 2.5rem !important;
  }

  #saph-status {
    width: calc(100% - 24px);
    padding: 16px;
  }

  #saph-status .x-status-head {
    flex-direction: column;
    align-items: flex-start;
  }

  #saph-status .x-head-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  #saph-status .x-legend {
    width: 100%;
  }

  #saph-status .x-tools {
    width: 100%;
    flex-direction: column;
  }

  #saph-status .x-input {
    width: 100%;
  }

  #saph-status .x-input input {
    width: 100%;
  }

  #saph-status .x-refresh {
    width: 100%;
    justify-content: center;
  }

  #saph-status .x-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  #saph-status .x-card-main {
    width: 100%;
    flex-wrap: wrap;
  }

  #saph-status .x-meta {
    width: 100%;
  }

  #saph-status .x-price {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  #saph-status .x-card-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.product-wrapper {
  position: relative;
  min-height: calc(100vh - 80px);
}

.bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: float 20s infinite ease-in-out;
}

button.btn-login {
  appearance: none;
}

button.mobile-nav-link {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
}

.customer-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.admin-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #050505;
}

.admin-login-card {
  width: min(100%, 440px);
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.01)),
    rgba(8, 8, 10, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.admin-login-hero {
  padding: 30px 28px 22px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-login-avatar {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(169, 40, 255, 0.16);
  color: #ce9bff;
}

.admin-login-avatar svg {
  width: 26px;
  height: 26px;
}

.admin-login-hero h2 {
  margin: 0;
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin-login-hero p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-family: "Geist", sans-serif;
  font-size: 0.86rem;
  line-height: 1.45;
}

.admin-login-body {
  padding: 22px 28px 28px;
}

.admin-login-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-family: "Geist", sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.admin-login-label-spaced {
  margin-top: 16px;
}

.admin-login-label svg {
  width: 16px;
  height: 16px;
  color: rgba(169, 130, 255, 0.85);
}

.admin-login-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.admin-login-input:focus {
  border-color: rgba(169, 40, 255, 0.55);
  background: rgba(169, 40, 255, 0.06);
}

.admin-login-error {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.3);
  color: #ff8a8a;
  font-size: 0.82rem;
}

.admin-login-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 0;
  background: linear-gradient(135deg, #a928ff, #6b1cc4);
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.admin-login-primary:hover:not(:disabled) {
  filter: brightness(1.1);
}

.admin-login-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.admin-login-primary svg {
  width: 16px;
  height: 16px;
}

.customer-auth-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 15%, rgba(153, 0, 255, 0.12), transparent 30%),
    rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
  animation: customer-auth-backdrop-in 180ms ease-out both;
}

.customer-auth-modal {
  position: relative;
  width: min(100%, 480px);
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.01)),
    rgba(8, 8, 10, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  transform-origin: center;
  animation: customer-auth-modal-in 240ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes customer-auth-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes customer-auth-modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.customer-auth-hero {
  position: relative;
  padding: 1.55rem 1.75rem 1.25rem;
  text-align: center;
  background:
    radial-gradient(circle at 18% 0%, rgba(153, 0, 255, 0.32), transparent 34%),
    linear-gradient(135deg, rgba(153, 0, 255, 0.18), rgba(255, 255, 255, 0.018) 48%, rgba(153, 0, 255, 0.08));
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.customer-auth-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
}

.customer-auth-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.customer-auth-admin-shortcut {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(177, 73, 255, 0.32);
  border-radius: 8px;
  background: rgba(169, 40, 255, 0.12);
  color: rgba(206, 155, 255, 0.95);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    transform 0.18s ease;
}

.customer-auth-admin-shortcut:hover {
  background: rgba(169, 40, 255, 0.22);
  border-color: rgba(177, 73, 255, 0.6);
  color: #fff;
  transform: translateY(-1px);
}

.customer-auth-admin-shortcut svg {
  width: 1.05rem;
  height: 1.05rem;
}

.customer-auth-avatar,
.customer-auth-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  margin-bottom: 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(177, 73, 255, 0.28);
  background: rgba(153, 0, 255, 0.12);
  color: #fff;
}

.customer-auth-lock {
  width: 3.5rem;
  height: 3.5rem;
  margin-inline: auto;
  margin-bottom: 1rem;
  color: #c36cff;
  background: rgba(153, 0, 255, 0.16);
}

.customer-auth-hero h2 {
  margin: 0;
  font-size: 1.62rem;
  font-weight: 900;
  color: #fff;
}

.customer-auth-hero p {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.58);
}

.customer-auth-body {
  padding: 1.25rem;
}

.customer-auth-panel {
  animation: customer-auth-panel-in 190ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes customer-auth-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.customer-auth-card {
  padding: 1.05rem;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(15, 15, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.customer-auth-card-center {
  text-align: center;
}

.customer-auth-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.5rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.customer-auth-label svg {
  color: #9900ff;
}

.customer-auth-label-spaced {
  margin-top: 1rem;
}

.customer-auth-label-center {
  justify-content: center;
}

.customer-auth-help {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.95rem;
}

.customer-auth-help-center strong {
  display: block;
  margin-top: 0.35rem;
  color: #b65cff;
}

.customer-auth-input,
.customer-auth-otp {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #0c0c0d;
  color: #fff;
  outline: none;
}

.customer-auth-input {
  height: 50px;
  padding: 0 1rem;
  font-size: 1rem;
}

.customer-auth-otp-row {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
}

.customer-auth-otp {
  width: 3rem;
  height: 3.5rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.customer-auth-input:focus,
.customer-auth-otp:focus {
  border-color: rgba(153, 0, 255, 0.8);
  box-shadow: 0 0 0 0.2rem rgba(153, 0, 255, 0.18);
}

.customer-auth-error,
.customer-auth-debug,
.customer-auth-success {
  margin-top: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-size: 0.92rem;
}

.customer-auth-error {
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.28);
  color: #ff9cab;
}

.customer-auth-debug {
  background: rgba(153, 0, 255, 0.12);
  border: 1px solid rgba(153, 0, 255, 0.25);
  color: #d4a7ff;
}

.customer-auth-success {
  background: rgba(20, 184, 120, 0.12);
  border: 1px solid rgba(20, 184, 120, 0.28);
  color: #8ff5c5;
}

.customer-auth-primary,
.customer-auth-secondary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 8px;
  min-height: 44px;
  font-size: 0.96rem;
  font-weight: 700;
}

.customer-auth-primary {
  margin-top: 1rem;
  color: #fff;
  border: 1px solid rgba(177, 73, 255, 0.32);
  background: linear-gradient(135deg, rgba(153, 0, 255, 0.96), rgba(178, 73, 255, 0.92));
  box-shadow: 0 8px 18px rgba(153, 0, 255, 0.14);
}

.customer-auth-primary:hover:not(:disabled) {
  transform: translateY(-1px);
}

.customer-auth-secondary {
  margin-top: 0.75rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
}

.customer-auth-primary:disabled,
.customer-auth-secondary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.customer-auth-footer {
  margin-top: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.58);
}

.customer-auth-footer a,
.customer-auth-footer button {
  color: #9900ff;
  font-weight: 700;
}

.customer-auth-footer button {
  padding: 0;
  border: 0;
  background: transparent;
}

.customer-auth-footer-divider {
  margin: 0 0.45rem;
  color: rgba(255, 255, 255, 0.28);
}

.customer-area {
  padding: 6.5rem 1.25rem 3rem;
}

body:has(.reseller-shell) {
  background: #000;
  padding-top: 0 !important;
  overflow: hidden;
}

html:has(.reseller-shell) {
  overflow: hidden;
}

body:has(.reseller-shell) .flex-wrapper,
body:has(.reseller-shell) #app,
body:has(.reseller-shell) .flex-wrapper > div {
  height: 100vh;
  max-height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

body:has(.reseller-shell) .flex-wrapper > div > header.sticky-top,
body:has(.reseller-shell) .footer,
body:has(.reseller-shell) .bg-image {
  display: none !important;
}

body:has(.reseller-shell) .starfield {
  opacity: 0.24 !important;
}

.reseller-shell {
  min-height: 100vh;
  padding: 0;
  position: relative;
  z-index: 2;
  display: flex;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(153, 0, 255, 0.055), transparent 32rem),
    #000;
  color: #fff;
  font-family: "Geist", sans-serif;
}

.reseller-template {
  --reseller-sidebar-expanded: 236px;
  --reseller-sidebar: #060606;
  --reseller-card: #060606;
  --reseller-muted: rgba(255, 255, 255, 0.56);
  --reseller-border: rgba(255, 255, 255, 0.075);
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}

.reseller-template-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 3;
  width: var(--reseller-sidebar-expanded);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--reseller-border);
  background: var(--reseller-sidebar);
  box-shadow: 8px 0 24px rgba(0, 0, 0, 0.28);
}

.reseller-template-logo {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 14px;
  gap: 0.65rem;
  border-bottom: 1px solid var(--reseller-border);
}

.reseller-template-logo > span:last-child {
  position: relative;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  opacity: 1;
  transform: translateX(0);
  white-space: nowrap;
}

.reseller-template-logo-mark {
  flex: 0 0 34px;
  opacity: 1 !important;
  transform: none !important;
  max-width: 34px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(153, 0, 255, 0.18);
  border-radius: 7px;
  background: rgba(153, 0, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.reseller-template-logo-mark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.reseller-template-nav {
  flex: 1;
  padding: 14px 12px;
  overflow-y: auto;
  scrollbar-width: none;
}

.reseller-template-nav::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.reseller-template-nav-group {
  margin-bottom: 12px;
  position: relative;
}

.reseller-template-nav-group::before {
  display: none;
}

.reseller-template-nav-group:first-child::before {
  margin-top: 0;
}

.reseller-template-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 8px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.38);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.reseller-template-group-toggle i {
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
}

.reseller-template-group-toggle svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.42);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.16s ease;
}

.reseller-template-group-toggle:hover,
.reseller-template-group-toggle:hover svg {
  color: rgba(255, 255, 255, 0.72);
}

.reseller-template-group-toggle svg.is-collapsed {
  transform: rotate(-90deg);
}

.reseller-template-nav-items {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(0);
  transition:
    max-height 260ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reseller-template-nav-items.is-collapsed {
  pointer-events: none;
  transform: translateY(-4px) !important;
}

.reseller-template-nav-items-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reseller-template-nav-item {
  position: relative;
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--reseller-muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: left;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.reseller-template-nav-item:hover,
.reseller-template-nav-item.is-active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.14);
}

.reseller-template-nav-item svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  transition: color 0.18s ease, transform 0.18s ease;
}

.reseller-template-nav-item > span:last-child {
  opacity: 1;
  max-width: 170px;
  overflow: hidden;
  white-space: nowrap;
}

.reseller-template-nav-item:hover svg {
  transform: scale(1.08);
}

.reseller-template-nav-item.is-active svg {
  color: #b457ff;
}

.reseller-template-active-rail {
  position: absolute;
  left: 0;
  right: auto;
  top: 50%;
  width: 3px;
  height: 24px;
  border-radius: 0 999px 999px 0;
  background: #9900ff;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.18s ease;
}

.reseller-template-nav-item.is-active .reseller-template-active-rail {
  opacity: 1;
}

.reseller-template-balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 14px 14px;
  padding: 13px 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.004)),
    var(--reseller-sidebar);
}

.reseller-template-balance-card div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reseller-template-balance-card strong {
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.reseller-template-balance-card span {
  color: rgba(255, 255, 255, 0.47);
  font-size: 0.78rem;
  font-weight: 700;
}

.reseller-template-balance-card button {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(198, 79, 255, 0.32);
  border-radius: 8px;
  background: linear-gradient(135deg, #9900ff, #c24dff);
  color: #fff;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.reseller-template-balance-card button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.reseller-template-balance-card svg {
  width: 17px;
  height: 17px;
}

.reseller-template-user {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px;
  border-top: 1px solid var(--reseller-border);
}

.reseller-template-avatar {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(153, 0, 255, 0.16);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.reseller-template-user div:nth-child(2) {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  opacity: 1;
  max-width: 130px;
  overflow: hidden;
}

.reseller-template-user strong {
  color: #fff;
  font-size: 0.88rem;
  line-height: 1.15;
}

.reseller-template-user span {
  color: var(--reseller-muted);
  font-size: 0.76rem;
}

.reseller-template-user button {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--reseller-muted);
  opacity: 1;
  max-width: 32px;
  overflow: hidden;
  transition: opacity 160ms ease, max-width 180ms ease, background 0.18s ease, color 0.18s ease;
}

.reseller-template-user button:hover {
  background: rgba(153, 0, 255, 0.1);
  color: #fff;
}

.reseller-template-user button svg {
  width: 17px;
  height: 17px;
}

.reseller-template-main {
  height: 100vh;
  min-height: 100vh;
  width: 100%;
  margin-left: var(--reseller-sidebar-expanded);
  overflow: hidden;
  background: #050505;
  --admin-bg: #050505;
  --admin-panel: rgba(12, 12, 13, 0.92);
  --admin-panel-soft: rgba(255, 255, 255, 0.025);
  --admin-border: rgba(255, 255, 255, 0.075);
  --admin-border-strong: rgba(255, 255, 255, 0.11);
  --admin-muted: rgba(226, 230, 240, 0.58);
  --admin-text: #f7f7fb;
  --admin-purple: #a928ff;
  --admin-purple-2: #c05cff;
  color: var(--admin-text);
}

.reseller-template-content {
  height: 100vh;
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.reseller-template-content::-webkit-scrollbar {
  width: 10px;
}

.reseller-template-content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.reseller-dashboard-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 20px;
}

.reseller-dashboard-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.85rem, 2.5vw, 2.7rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.reseller-dashboard-hero h1 span {
  color: #9900ff;
}

.reseller-dashboard-hero p {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 1rem;
}

.reseller-date-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0 1rem;
  border: 1px solid rgba(177, 73, 255, 0.36);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(153, 0, 255, 0.96), rgba(178, 73, 255, 0.9));
  color: #fff;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(153, 0, 255, 0.14);
}

.reseller-date-button svg {
  width: 16px;
  height: 16px;
}

.reseller-template-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  grid-column: 1 / -1;
}

.reseller-dashboard-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.72fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.reseller-template-metric-card,
.reseller-template-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--reseller-border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0.003)),
    var(--reseller-card);
  animation: reseller-template-card-in 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes reseller-template-card-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reseller-template-metric-card {
  min-height: 92px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
}

.reseller-template-metric-glow {
  display: none;
}

.reseller-template-metric-card:hover {
  border-color: rgba(255, 255, 255, 0.13);
}

.reseller-template-metric-top {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.36rem;
}

.reseller-template-metric-top span {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
}

.reseller-template-metric-top div {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(153, 0, 255, 0.13);
  color: #9f62ff;
}

.reseller-template-metric-top svg {
  width: 14px;
  height: 14px;
}

.reseller-template-metric-card:hover .reseller-template-metric-top div {
  background: rgba(153, 0, 255, 0.14);
  color: #b457ff;
}

.reseller-template-metric-value {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.reseller-template-metric-caption {
  position: relative;
  margin: 0 0 0.45rem;
  color: rgba(202, 214, 241, 0.66);
  font-size: 0.72rem;
}

.reseller-template-metric-value strong {
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: clamp(1.35rem, 1.65vw, 1.75rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.045em;
}

.reseller-template-metric-card:nth-child(2)::after,
.reseller-template-metric-card:nth-child(3)::after {
  content: none;
}

.reseller-template-panel {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.reseller-template-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.reseller-template-panel-head > div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reseller-template-panel-head svg {
  width: 15px;
  height: 15px;
  color: var(--reseller-muted);
}

.reseller-template-panel-head h2 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.reseller-template-panel-subtitle {
  margin: 0 0 12px;
  color: rgba(202, 214, 241, 0.66);
  font-size: 0.76rem;
  line-height: 1.35;
}

.reseller-template-panel-subtitle span {
  color: rgba(150, 175, 255, 0.95);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.reseller-product-chart {
  flex: 1;
  min-height: 0;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 10px 8px 0;
}

.reseller-recent-panel {
  grid-column: 1;
  min-height: 0;
}

.reseller-template-panel-large {
  grid-column: 2;
  min-height: 0;
  height: auto;
  align-self: start;
}

.reseller-activity-list {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.reseller-activity-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 72px 82px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.reseller-activity-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.reseller-activity-main strong {
  color: rgba(255, 255, 255, 0.9);
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reseller-activity-main span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(202, 214, 241, 0.62);
  font-family: "Geist", sans-serif;
  font-size: 0.74rem;
}

.reseller-activity-main svg {
  width: 12px;
  height: 12px;
  color: rgba(202, 214, 241, 0.48);
}

.reseller-activity-row em {
  justify-self: end;
  border: 1px solid rgba(0, 255, 130, 0.14);
  border-radius: 6px;
  background: rgba(0, 196, 104, 0.12);
  color: #27df86;
  font-family: "Geist", sans-serif;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  padding: 3px 7px;
}

.reseller-activity-price {
  justify-self: end;
  color: rgba(166, 185, 255, 0.95);
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
}

.reseller-activity-row small {
  justify-self: end;
  color: rgba(142, 162, 205, 0.74);
  font-family: "Geist", sans-serif;
  font-size: 0.72rem;
}

.reseller-product-list {
  flex: 1;
  min-height: 0;
  display: grid;
  align-content: start;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.reseller-product-list .reseller-product-row {
  min-height: 44px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 64px 70px 42px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.reseller-product-rank {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.55);
  font-family: "Geist", sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
}

.reseller-product-list strong {
  min-width: 0;
  color: rgba(255, 255, 255, 0.86);
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reseller-product-list span,
.reseller-product-list small {
  color: rgba(202, 214, 241, 0.58);
  font-family: "Geist", sans-serif;
  font-size: 0.7rem;
  text-align: right;
  white-space: nowrap;
}

.reseller-product-list .reseller-product-row > span:nth-of-type(3) {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
}

.reseller-product-list small {
  color: rgba(39, 223, 134, 0.85);
  font-weight: 800;
}

.reseller-product-row {
  display: grid;
  grid-template-columns: 162px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.reseller-product-row > span {
  min-width: 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Geist", sans-serif;
  font-size: 0.86rem;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reseller-product-row > div {
  position: relative;
  height: 30px;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(33.333% - 1px),
      rgba(255, 255, 255, 0.035) calc(33.333% - 1px),
      rgba(255, 255, 255, 0.035) 33.333%
    ),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 29px,
      rgba(255, 255, 255, 0.035) 29px,
      rgba(255, 255, 255, 0.035) 30px
    );
}

.reseller-product-row i {
  display: block;
  height: 100%;
  min-width: 18px;
  border-radius: 0 7px 7px 0;
  background: #5268f2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.reseller-chart-axis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 26px 0 174px;
  color: rgba(255, 255, 255, 0.62);
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
}

.reseller-chart-axis span {
  text-align: right;
}

.reseller-chart-label {
  margin: 6px 0 0 174px;
  color: rgba(255, 255, 255, 0.68);
  font-family: "Geist", sans-serif;
  font-size: 0.84rem;
  text-align: center;
}

.reseller-recent-panel {
  min-height: 0;
}

.reseller-activity-list {
  flex: 1;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
  scrollbar-width: thin;
}

.reseller-activity-card {
  min-height: 92px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.035);
}

.reseller-activity-card > div:first-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.reseller-activity-card strong {
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.84rem;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reseller-activity-card span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(202, 214, 241, 0.7);
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
}

.reseller-activity-card span svg {
  width: 13px;
  height: 13px;
  color: rgba(202, 214, 241, 0.58);
}

.reseller-activity-card em {
  width: fit-content;
  border: 1px solid rgba(0, 255, 130, 0.16);
  border-radius: 999px;
  background: rgba(0, 196, 104, 0.18);
  color: #27df86;
  font-family: "Geist", sans-serif;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
  padding: 3px 8px;
}

.reseller-activity-card > div:last-child {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.reseller-activity-card > div:last-child span {
  color: #5268f2;
  font-weight: 900;
}

.reseller-activity-card small {
  color: rgba(142, 162, 205, 0.76);
  font-family: "Geist", sans-serif;
  font-size: 0.76rem;
}

.reseller-dashboard-grid .reseller-activity-list {
  display: block;
  gap: 0;
  overflow: hidden;
  padding-right: 0;
}

.reseller-dashboard-grid .reseller-activity-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 72px 82px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.reseller-dashboard-grid .reseller-product-list .reseller-product-row {
  min-height: 44px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 64px 70px 42px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.reseller-dashboard-grid .reseller-product-list .reseller-product-row > span,
.reseller-dashboard-grid .reseller-product-list .reseller-product-row > strong,
.reseller-dashboard-grid .reseller-product-list .reseller-product-row > small {
  font-family: "Geist", sans-serif;
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reseller-dashboard-grid .reseller-product-list .reseller-product-row > strong {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: left;
}

.reseller-dashboard-grid .reseller-product-list .reseller-product-row > span,
.reseller-dashboard-grid .reseller-product-list .reseller-product-row > small {
  text-align: right;
}

.reseller-topbar {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(320px, 420px) minmax(220px, 1fr);
  align-items: center;
  gap: 16px;
  margin: -24px -24px 22px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent),
    rgba(6, 6, 6, 0.96);
}

.reseller-search {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(202, 214, 241, 0.58);
}

.reseller-search svg {
  width: 15px;
  height: 15px;
}

.reseller-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
}

.reseller-search input::placeholder {
  color: rgba(202, 214, 241, 0.58);
}

.reseller-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.reseller-topbar-actions button,
.reseller-panel-action {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.026);
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
}

.reseller-topbar-actions svg,
.reseller-panel-action svg {
  width: 14px;
  height: 14px;
}

.reseller-icon-button {
  position: relative;
  width: 36px;
  padding: 0 !important;
}

.reseller-icon-button span {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #9900ff;
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.65rem;
  font-weight: 900;
}

.reseller-dashboard-hero {
  padding: 0 0 14px;
}

.reseller-dashboard-hero h1 {
  font-size: clamp(1.42rem, 1.75vw, 1.95rem);
  letter-spacing: -0.02em;
}

.reseller-dashboard-hero p {
  margin-top: 0.22rem;
  font-size: 0.82rem;
  color: rgba(202, 214, 241, 0.56);
}

.reseller-date-button {
  min-height: 34px;
  border-color: rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.026);
  box-shadow: none;
  font-size: 0.78rem;
}

.reseller-date-button svg {
  width: 14px;
  height: 14px;
}

.reseller-dashboard-grid {
  --reseller-dashboard-panel-height: 358px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.reseller-template-metrics {
  gap: 12px;
}

.reseller-template-metric-card {
  min-height: 130px;
  padding: 18px;
}

.reseller-template-metric-top {
  gap: 10px;
  margin-bottom: 14px;
}

.reseller-template-metric-top span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.reseller-template-metric-top div {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.reseller-template-metric-top svg {
  width: 16px;
  height: 16px;
}

.reseller-template-metric-value strong {
  font-size: clamp(1.62rem, 2.2vw, 2.15rem);
}

.reseller-template-metric-caption {
  order: 3;
  margin: 4px 0 0;
  color: rgba(202, 214, 241, 0.62);
  font-size: 0.78rem;
}

.reseller-metric-trend {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  justify-items: end;
  gap: 6px;
}

.reseller-metric-trend span {
  width: fit-content;
  border-radius: 6px;
  padding: 4px 7px;
  font-family: "Geist", sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
}

.reseller-metric-trend small {
  color: rgba(202, 214, 241, 0.54);
  font-family: "Geist", sans-serif;
  font-size: 0.68rem;
}

.reseller-metric-trend.is-up span {
  background: rgba(18, 185, 112, 0.16);
  color: #31df91;
}

.reseller-metric-trend.is-down span {
  background: rgba(239, 68, 68, 0.15);
  color: #ff6b6b;
}

.reseller-template-panel-large {
  grid-column: 1;
  grid-row: 2;
  height: 100%;
  align-self: stretch;
}

.reseller-recent-panel {
  grid-column: 2;
  grid-row: 2;
}

.reseller-template-panel {
  padding: 18px;
}

.reseller-template-panel-head h2 {
  font-size: 1rem;
}

.reseller-template-panel-subtitle {
  margin-bottom: 16px;
  font-size: 0.78rem;
}

.reseller-product-list,
.reseller-activity-list {
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.reseller-dashboard-grid .reseller-product-list .reseller-product-row {
  min-height: 46px;
  grid-template-columns: 28px minmax(0, 1.4fr) 70px 82px 68px;
}

.reseller-product-head {
  min-height: 34px !important;
  color: rgba(202, 214, 241, 0.5);
}

.reseller-product-head span {
  font-size: 0.68rem !important;
  font-weight: 800;
}

.reseller-product-name-cell {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left !important;
}

.reseller-product-name-cell i {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(153, 0, 255, 0.2);
  color: #b457ff;
}

.reseller-product-name-cell svg {
  width: 13px;
  height: 13px;
}

.reseller-product-list small {
  color: #31df91;
}

.reseller-panel-footnote {
  margin: 12px 0 0;
  color: rgba(202, 214, 241, 0.58);
  font-family: "Geist", sans-serif;
  font-size: 0.76rem;
}

.reseller-dashboard-grid .reseller-activity-row {
  min-height: 36px;
  height: 36px;
  grid-template-columns: minmax(0, 1fr) 76px 64px 56px;
  gap: 8px;
}

.reseller-dashboard-grid .reseller-activity-main {
  gap: 2px;
}

.reseller-dashboard-grid .reseller-activity-main strong,
.reseller-dashboard-grid .reseller-activity-main span,
.reseller-dashboard-grid .reseller-activity-price,
.reseller-dashboard-grid .reseller-activity-row small {
  line-height: 1.12;
}

.reseller-activity-row em {
  border-radius: 6px;
}

.reseller-activity-row em.is-pending {
  border-color: rgba(245, 158, 11, 0.18);
  background: rgba(245, 158, 11, 0.15);
  color: #f4b041;
}

.reseller-template-content {
  padding: 0 24px 24px;
}

.reseller-topbar {
  min-height: 64px;
  margin: 0 -24px 22px;
}

.reseller-template-panel-large {
  height: var(--reseller-dashboard-panel-height) !important;
  align-self: start !important;
}

.reseller-recent-panel {
  height: var(--reseller-dashboard-panel-height) !important;
  align-self: start !important;
}

.reseller-template-panel-large .reseller-product-row {
  min-height: 38px !important;
}

.reseller-template-panel-large .reseller-product-head {
  min-height: 30px !important;
}

.reseller-template-panel-large .reseller-panel-footnote {
  margin-top: 10px;
}

.reseller-recent-panel .reseller-panel-footnote {
  margin-top: 10px;
}

.reseller-date-picker {
  position: relative;
  z-index: 5;
}

.reseller-date-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(642px, calc(100vw - 300px));
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.004)),
    #060606;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  overflow: hidden;
  animation: reseller-date-menu-in 160ms ease-out both;
}

@keyframes reseller-date-menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reseller-date-presets {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.075);
}

.reseller-date-presets button,
.reseller-calendar-grid button,
.reseller-calendar-month header button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font: inherit;
}

.reseller-date-presets button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 7px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 800;
}

.reseller-date-presets button:hover,
.reseller-date-presets button.is-active {
  background: #9900ff;
  color: #fff;
}

.reseller-calendar-month {
  min-width: 0;
  padding: 18px 18px 20px;
}

.reseller-calendar-month + .reseller-calendar-month {
  border-left: 1px solid rgba(255, 255, 255, 0.075);
}

.reseller-calendar-month header {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  margin-bottom: 18px;
}

.reseller-calendar-month header strong {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Geist", sans-serif;
  font-size: 0.92rem;
  font-weight: 900;
  text-align: center;
}

.reseller-calendar-month header button {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 1rem;
}

.reseller-calendar-month header button:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.reseller-calendar-month:nth-child(3) header strong {
  grid-column: 1 / 3;
}

.reseller-calendar-month:nth-child(3) header button {
  grid-column: 3;
}

.reseller-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px 6px;
}

.reseller-calendar-grid span {
  color: rgba(255, 255, 255, 0.43);
  font-family: "Geist", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.reseller-calendar-grid button,
.reseller-calendar-grid i {
  height: 28px;
}

.reseller-calendar-grid button {
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.42);
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
}

.reseller-calendar-grid button:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.reseller-calendar-grid button.is-selected {
  background: #9900ff;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(153, 0, 255, 0.24);
}

.reseller-template-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--reseller-muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.reseller-template-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.reseller-template-switch i {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.reseller-template-switch i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.18s ease;
}

.reseller-template-switch input:checked + i {
  background: #9900ff;
}

.reseller-template-switch input:checked + i::after {
  transform: translateX(16px);
}

.reseller-template-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.reseller-template-empty > div {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.reseller-template-empty svg {
  width: 28px;
  height: 28px;
  color: var(--reseller-muted);
}

.reseller-template-empty strong {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
}

.reseller-template-empty p {
  max-width: 270px;
  margin: 6px 0 0;
  color: var(--reseller-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .reseller-template-sidebar {
    position: relative;
    width: 100%;
    min-height: auto;
  }

  .reseller-template {
    display: block;
    overflow: auto;
  }

  .reseller-template-main {
    margin-left: 0;
  }

  .reseller-template-metrics,
  .reseller-template-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .reseller-template-content {
    padding: 16px;
  }
}

.reseller-sidebar {
  width: 240px;
  min-height: 100vh;
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.075);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.006)),
    rgba(8, 8, 10, 0.96);
  box-shadow: 8px 0 28px rgba(0, 0, 0, 0.24);
}

.reseller-shop-switcher {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.42rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
}

.reseller-shop-main {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.reseller-shop-logo {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(153, 0, 255, 0.12);
}

.reseller-shop-logo img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.reseller-shop-switcher button,
.reseller-notification-button {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.018);
  color: rgba(255, 255, 255, 0.8);
}

.reseller-shop-switcher button svg,
.reseller-notification-button svg {
  width: 16px;
  height: 16px;
}

.reseller-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1rem;
}

.reseller-nav-link {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.72rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.reseller-nav-link svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.reseller-nav-link:hover,
.reseller-nav-link.is-active {
  color: #fff;
  border-color: rgba(153, 0, 255, 0.22);
  background: rgba(153, 0, 255, 0.11);
}

.reseller-nav-link.is-active {
  box-shadow: inset 3px 0 0 rgba(153, 0, 255, 0.95);
}

.reseller-settings-trigger {
  width: 100%;
}

.reseller-nav-chevron {
  margin-left: auto;
  opacity: 0.65;
}

.reseller-main {
  min-width: 0;
  min-height: 100vh;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.reseller-topline {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 5, 6, 0.72);
}

.reseller-dashboard-search {
  width: min(420px, 42vw);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: rgba(11, 11, 13, 0.92);
  color: rgba(255, 255, 255, 0.54);
}

.reseller-dashboard-search svg {
  width: 18px;
  height: 18px;
  color: rgba(185, 199, 220, 0.78);
}

.reseller-dashboard-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
}

.reseller-dashboard-search input::placeholder {
  color: rgba(185, 199, 220, 0.62);
}

.reseller-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.reseller-balance-chip {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.8rem;
  border: 1px solid rgba(153, 0, 255, 0.24);
  border-radius: 8px;
  background: rgba(153, 0, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
}

.reseller-balance-chip svg {
  width: 17px;
  height: 17px;
  color: #a955ff;
}

.reseller-content {
  flex: 1;
  overflow: auto;
  padding: 1.55rem;
}

.reseller-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.reseller-kicker {
  margin: 0 0 0.45rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reseller-page-head h1 {
  margin: 0;
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.reseller-primary-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0 1rem;
  border: 1px solid rgba(177, 73, 255, 0.34);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(153, 0, 255, 0.95), rgba(178, 73, 255, 0.9));
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(153, 0, 255, 0.12);
}

.reseller-primary-action svg {
  width: 17px;
  height: 17px;
}

.reseller-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.reseller-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.reseller-card {
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.01)),
    rgba(9, 9, 11, 0.96);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.reseller-stat-card {
  padding: 1.1rem;
}

.reseller-stat-card span {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  font-weight: 800;
}

.reseller-stat-card strong {
  display: block;
  margin-top: 0.75rem;
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.reseller-stat-card p,
.reseller-panel-head p,
.reseller-empty-state p {
  margin: 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.88rem;
  line-height: 1.45;
}

.reseller-stat-card p {
  margin-top: 0.65rem;
}

.reseller-panel,
.reseller-wide-panel {
  padding: 1.05rem;
}

.reseller-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.reseller-panel-head h2 {
  margin: 0 0 0.32rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.reseller-panel-head > svg {
  width: 20px;
  height: 20px;
  color: rgba(153, 0, 255, 0.85);
}

.reseller-panel-badge {
  flex: 0 0 auto;
  padding: 0.32rem 0.55rem;
  border: 1px solid rgba(153, 0, 255, 0.22);
  border-radius: 999px;
  background: rgba(153, 0, 255, 0.08);
  color: #d4a7ff;
  font-size: 0.74rem;
  font-weight: 800;
}

.reseller-empty-state {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-align: center;
}

.reseller-empty-state svg {
  width: 34px;
  height: 34px;
  color: rgba(153, 0, 255, 0.68);
}

.reseller-empty-state strong {
  color: #fff;
  font-size: 0.98rem;
}

.reseller-empty-state p {
  max-width: 320px;
}

.reseller-wide-panel {
  min-height: 110px;
}

@media (max-width: 1080px) {
  .reseller-shell {
    display: block;
  }

  .reseller-sidebar {
    width: 100%;
    min-height: 0;
    flex: none;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  }

  .reseller-sidebar-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reseller-dashboard-grid,
  .reseller-stat-grid {
    grid-template-columns: 1fr;
  }

  .reseller-dashboard-search {
    width: 100%;
  }

  .reseller-topline,
  .reseller-page-head {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .reseller-content {
    padding: 1rem;
  }

  .reseller-sidebar-nav {
    grid-template-columns: 1fr;
  }
}

body:has(.admin-shell) {
  padding-top: 0 !important;
  background: #050505;
  overflow: hidden;
}

html:has(.admin-shell),
body:has(.admin-shell) .flex-wrapper,
body:has(.admin-shell) #app,
body:has(.admin-shell) .flex-wrapper > div {
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

body:has(.admin-shell) .sticky-top,
body:has(.admin-shell) footer,
body:has(.admin-shell) .starfield,
body:has(.admin-shell) .bg-image {
  display: none !important;
}

.admin-shell {
  --admin-bg: #050505;
  --admin-panel: rgba(12, 12, 13, 0.92);
  --admin-panel-soft: rgba(255, 255, 255, 0.025);
  --admin-border: rgba(255, 255, 255, 0.075);
  --admin-border-strong: rgba(255, 255, 255, 0.11);
  --admin-muted: rgba(226, 230, 240, 0.58);
  --admin-text: #f7f7fb;
  --admin-purple: #a928ff;
  --admin-purple-2: #c05cff;
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  background: var(--admin-bg);
  color: var(--admin-text);
  font-family: "Geist", sans-serif;
  overflow: hidden;
}

.admin-shell button,
.admin-shell input {
  font: inherit;
}

.admin-sidebar {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  padding: 0 14px 18px;
  border-right: 1px solid var(--admin-border);
  background: rgba(7, 7, 8, 0.98);
}

.admin-brand {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 -14px;
  padding: 0 18px;
  border-bottom: 1px solid var(--admin-border);
  color: inherit;
  text-decoration: none;
}

.admin-brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(169, 40, 255, 0.22);
  background: rgba(153, 0, 255, 0.1);
  overflow: hidden;
}

.admin-brand-mark img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.admin-brand strong {
  color: #fff;
  font-size: 1.36rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.admin-nav {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 18px;
  overflow: hidden;
}

.admin-nav-group {
  display: grid;
  gap: 7px;
}

.admin-nav-group:not(:first-child) {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.admin-nav-group p {
  margin: 0 0 4px 6px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-nav-item {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
  text-decoration: none;
  font-size: 0.91rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-nav-item:hover {
  color: #fff;
}

.admin-nav-item svg {
  width: 17px;
  height: 17px;
  color: var(--admin-purple-2);
}

.admin-nav-item.is-active {
  border-color: rgba(255, 255, 255, 0.085);
  background:
    linear-gradient(90deg, rgba(169, 40, 255, 0.045), rgba(255, 255, 255, 0.022)),
    rgba(255, 255, 255, 0.032);
  color: #fff;
}

.admin-help-card {
  padding: 18px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-help-card strong {
  color: #fff;
  font-size: 0.95rem;
}

.admin-help-card p {
  margin: 0.55rem 0 1rem;
  color: var(--admin-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.admin-help-card button,
.admin-help-card-button {
  width: 100%;
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--admin-purple), #7c2be8);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
}

a.admin-help-card {
  text-decoration: none;
}

.admin-main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr);
  overflow: hidden;
}

.admin-topbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(360px, 482px) minmax(220px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 34px;
  border-bottom: 1px solid var(--admin-border);
  background: rgba(7, 7, 8, 0.98);
}

.admin-search {
  width: min(482px, 100%);
  grid-column: 2;
  justify-self: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 0 15px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.58);
}

.admin-search svg {
  width: 18px;
  height: 18px;
}

.admin-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 0.9rem;
}

.admin-search input::placeholder {
  color: rgba(255, 255, 255, 0.54);
}

.admin-topbar-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-icon-button {
  position: relative;
  width: 43px;
  height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--admin-border-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.82);
}

.admin-icon-button svg {
  width: 18px;
  height: 18px;
}

.admin-icon-button span {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--admin-purple);
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
}

.reseller-inbox-trigger > span {
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

.reseller-inbox-menu {
  min-width: 320px;
  max-width: 360px;
}

.reseller-inbox-list {
  display: grid;
  gap: 4px;
  padding: 6px 4px 8px;
  max-height: 360px;
  overflow-y: auto;
}

.reseller-inbox-item {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  transition: background 120ms ease;
}

.reseller-inbox-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.reseller-inbox-item.is-unread::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -2px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--admin-purple);
}

.reseller-inbox-item strong {
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
}

.reseller-inbox-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-family: "Geist", sans-serif;
  font-size: 0.8rem;
  line-height: 1.4;
}

.reseller-inbox-item small {
  color: rgba(255, 255, 255, 0.4);
  font-family: "Geist", sans-serif;
  font-size: 0.72rem;
}

.reseller-inbox-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 22px 14px 18px;
  text-align: center;
}

.reseller-inbox-empty svg {
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 4px;
}

.reseller-inbox-empty strong {
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.reseller-inbox-empty p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Geist", sans-serif;
  font-size: 0.8rem;
  line-height: 1.4;
}

.admin-profile-wrapper {
  position: relative;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 10px 4px 4px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}

.admin-profile:hover,
.admin-profile[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--admin-border-strong);
}

.admin-profile[aria-expanded="true"] > svg:last-child {
  transform: rotate(180deg);
}

.admin-profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  min-width: 240px;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 10px;
  background: rgba(10, 10, 12, 0.98);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: admin-date-menu-in 120ms ease-out;
}

.admin-profile-menu-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 10px 12px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-profile-menu-head > span {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid rgba(169, 40, 255, 0.7);
  background: rgba(169, 40, 255, 0.17);
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
}

.admin-profile-menu-head > span img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-profile-menu-head > div {
  min-width: 0;
  flex: 1;
}

.admin-profile-menu-head strong {
  display: block;
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-profile-menu-head small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Geist", sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
}

.admin-profile-menu-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font-family: "Geist", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.admin-profile-menu-item:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.admin-profile-menu-item svg {
  width: 16px;
  height: 16px;
}

.admin-profile-menu-item.is-danger {
  color: #ff7a7a;
}

.admin-profile-menu-item.is-danger:hover:not(:disabled) {
  background: rgba(255, 74, 74, 0.12);
  color: #ff9b9b;
}

.admin-profile-menu-item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  animation: admin-modal-fade-in 140ms ease-out;
}

@keyframes admin-modal-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.admin-modal {
  width: min(540px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--admin-border-strong);
  border-radius: 14px;
  background: rgba(13, 13, 16, 0.99);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  animation: admin-modal-pop-in 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.admin-modal-head,
.admin-modal-foot {
  flex-shrink: 0;
}

@keyframes admin-modal-pop-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.admin-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-modal-head h2 {
  margin: 0;
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.005em;
}

.admin-modal-head p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Geist", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.45;
}

.admin-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.admin-modal-close:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--admin-border-strong);
  color: #fff;
}

.admin-modal-close svg {
  width: 16px;
  height: 16px;
}

.admin-modal-body {
  padding: 18px 22px 6px;
  overflow-y: auto;
  display: grid;
  gap: 18px;
  flex: 1 1 auto;
  min-height: 0;
}

.admin-modal-body::-webkit-scrollbar {
  width: 10px;
}

.admin-modal-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.admin-modal-head {
  flex-shrink: 0;
}

.admin-modal-foot {
  flex: 0 0 auto;
  flex-shrink: 0;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px;
  min-height: 64px;
  border-top: 1px solid var(--admin-border);
  background: rgba(20, 20, 24, 0.98);
  position: sticky;
  bottom: 0;
  z-index: 2;
}

.admin-modal-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.88);
  font-family: "Geist", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}

.admin-modal-secondary svg {
  width: 14px;
  height: 14px;
}

.admin-modal-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.admin-modal-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--admin-purple), #7c2be8);
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: opacity 120ms ease, transform 120ms ease;
}

.admin-modal-primary svg {
  width: 14px;
  height: 14px;
}

.admin-modal-primary:hover:not(:disabled) {
  transform: translateY(-1px);
}

.admin-modal-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-notif-section {
  display: grid;
  gap: 8px;
}

.admin-notif-label {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: rgba(255, 255, 255, 0.62);
  font-family: "Geist", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-notif-label small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.admin-notif-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.admin-notif-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
  color: rgba(255, 255, 255, 0.78);
  font-family: "Geist", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.admin-notif-tab svg {
  width: 15px;
  height: 15px;
}

.admin-notif-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.admin-notif-tab.is-active {
  background: rgba(169, 40, 255, 0.14);
  border-color: rgba(169, 40, 255, 0.45);
  color: #fff;
}

.admin-notif-hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-family: "Geist", sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.45;
}

.admin-notif-input {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  outline: 0;
  transition: border-color 120ms ease, background 120ms ease;
}

.admin-notif-input::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.admin-notif-input:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.admin-notif-input:focus {
  border-color: rgba(169, 40, 255, 0.55);
  background: rgba(169, 40, 255, 0.04);
}

.admin-notif-textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}

.admin-notif-preview {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 16px 38px 16px 16px;
  border: 1px solid rgba(169, 40, 255, 0.22);
  border-radius: 10px;
  background:
    radial-gradient(circle at 0% 0%, rgba(169, 40, 255, 0.12), transparent 70%),
    rgba(15, 12, 22, 0.85);
  box-shadow: inset 3px 0 0 0 rgba(169, 40, 255, 0.65);
}

.admin-notif-preview strong {
  color: #c98bff;
  font-family: "Geist", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.3;
}

.admin-notif-preview-time {
  color: rgba(255, 255, 255, 0.45);
  font-family: "Geist", sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
}

.admin-notif-preview p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-family: "Geist", sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.5;
  white-space: pre-wrap;
}

.admin-notif-preview ul {
  margin: 6px 0 0;
  padding: 0 0 0 14px;
  color: rgba(255, 255, 255, 0.86);
  font-family: "Geist", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
}

.admin-notif-preview ul li::marker {
  color: rgba(169, 40, 255, 0.85);
}

.admin-notif-preview-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  cursor: default;
}

.admin-notif-preview-close svg {
  width: 13px;
  height: 13px;
}

.admin-notif-preview.is-system {
  border-color: rgba(85, 207, 255, 0.22);
  background:
    radial-gradient(circle at 0% 0%, rgba(85, 207, 255, 0.12), transparent 70%),
    rgba(11, 16, 22, 0.85);
  box-shadow: inset 3px 0 0 0 rgba(85, 207, 255, 0.65);
}

.admin-notif-preview.is-system strong {
  color: #8fdcff;
}

.admin-notif-preview.is-system ul li::marker {
  color: rgba(85, 207, 255, 0.85);
}

.admin-notif-preview.is-products {
  border-color: rgba(40, 229, 139, 0.22);
  background:
    radial-gradient(circle at 0% 0%, rgba(40, 229, 139, 0.1), transparent 70%),
    rgba(10, 18, 14, 0.85);
  box-shadow: inset 3px 0 0 0 rgba(40, 229, 139, 0.6);
}

.admin-notif-preview.is-products strong {
  color: #7ff0b3;
}

.admin-notif-preview.is-products ul li::marker {
  color: rgba(40, 229, 139, 0.85);
}

.admin-notif-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 100, 100, 0.32);
  border-radius: 8px;
  background: rgba(255, 100, 100, 0.08);
  color: #ff9b9b;
  font-family: "Geist", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-stock-modal {
  width: min(620px, 100%);
}

.admin-stock-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 4px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.022);
}

.admin-stock-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-family: "Geist", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.admin-stock-tab:hover {
  color: #fff;
}

.admin-stock-tab.is-active {
  background: linear-gradient(135deg, var(--admin-purple), #7c2be8);
  color: #fff;
}

.admin-stock-textarea {
  min-height: 160px;
  font-family: "Geist Mono", "Geist", monospace;
  font-size: 0.84rem;
  line-height: 1.5;
}

.admin-stock-count {
  margin: 0;
  color: rgba(255, 255, 255, 0.46);
  font-family: "Geist", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.admin-products {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 308px minmax(0, 1fr);
  gap: 16px;
}

.admin-products-sidebar {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.006)),
    var(--admin-panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 1px 0 rgba(0, 0, 0, 0.35);
}

.admin-products-sidebar > .admin-products-list,
.admin-products-sidebar > .admin-products-empty {
  flex: 1 1 0;
  min-height: 0;
}

.admin-products-shell {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.admin-products-shell > .admin-products {
  flex: 1;
  min-height: 0;
}

.admin-products-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.58);
}

.admin-products-search svg {
  width: 16px;
  height: 16px;
}

.admin-products-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
}

.admin-products-search input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

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

.admin-products-toolbar h2 {
  margin: 0;
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: -0.005em;
}

.admin-products-toolbar > div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-products-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.022);
  color: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.admin-products-tool svg {
  width: 14px;
  height: 14px;
}

.admin-products-tool:hover:not(:disabled) {
  background: rgba(169, 40, 255, 0.16);
  border-color: rgba(169, 40, 255, 0.4);
  color: #fff;
}

.admin-products-tool:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.admin-products-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  align-content: start;
  grid-auto-rows: min-content;
  gap: 4px;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.admin-products-list > li {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.admin-products-list::-webkit-scrollbar {
  width: 6px;
}

.admin-products-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.admin-products-item {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background 120ms ease, border-color 120ms ease;
}

.admin-products-item > div {
  flex: 1;
  min-width: 0;
}

.admin-products-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.admin-products-item.is-active {
  background: rgba(169, 40, 255, 0.12);
  border-color: rgba(169, 40, 255, 0.4);
  color: #fff;
}

.admin-products-item strong {
  display: block;
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-products-item small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.45);
  font-family: "Geist", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
}

.admin-products-item-ok {
  color: #28e58b;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.admin-products-item-warn {
  color: #ffc164;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.admin-products-star {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  transition: color 120ms ease, background 120ms ease;
}

.admin-products-star:hover {
  color: rgba(255, 200, 60, 0.75);
  background: rgba(255, 200, 60, 0.08);
}

.admin-products-star.is-on {
  color: #ffc846;
}

.admin-products-star.is-on:hover {
  color: rgba(255, 200, 60, 0.6);
}

.admin-products-star svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
}

.admin-products-star.is-on svg {
  fill: currentColor;
}

.admin-products-featured-order {
  border: 1px solid rgba(255, 200, 60, 0.18);
  border-radius: 8px;
  background: rgba(255, 200, 60, 0.03);
  overflow: hidden;
  margin-bottom: 8px;
}

.admin-products-featured-order-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px 6px;
  color: #ffc846;
  font-family: "Geist", sans-serif;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-products-featured-order-head svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  flex-shrink: 0;
}

.admin-products-featured-list {
  list-style: none;
  padding: 0 6px 6px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-products-featured-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.025);
  cursor: grab;
  transition: background 100ms ease, border-color 100ms ease, opacity 100ms ease;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Geist", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  user-select: none;
}

.admin-products-featured-item:active {
  cursor: grabbing;
}

.admin-products-featured-item > svg {
  color: rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
  width: 13px;
  height: 13px;
}

.admin-products-featured-item > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-products-featured-item.is-over {
  background: rgba(255, 200, 60, 0.09);
  border-color: rgba(255, 200, 60, 0.28);
}

.admin-products-featured-item.is-dragging {
  opacity: 0.35;
}

.admin-orders {
  display: grid;
  gap: 16px;
}

.admin-orders-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.admin-orders-head h1 {
  margin: 0;
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: clamp(1.4rem, 1.7vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.admin-orders-head p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-family: "Geist", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
}

.admin-orders-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.admin-orders-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-orders-search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.006)),
    var(--admin-panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.62);
  transition: border-color 120ms ease;
}

.admin-orders-search:focus-within {
  border-color: rgba(169, 40, 255, 0.45);
}

.admin-orders-search svg {
  width: 16px;
  height: 16px;
}

.admin-orders-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
}

.admin-orders-search input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.admin-orders-count {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.admin-orders-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1280px) {
  .admin-orders-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .admin-orders-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .admin-orders-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.admin-order-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  animation: admin-order-card-in 320ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--card-index, 0) * 22ms);
}

@keyframes admin-order-card-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-order-card {
    animation: none;
  }
}

.admin-order-card-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-order-id {
  flex: 1;
  min-width: 0;
  color: rgba(255, 255, 255, 0.55);
  font-family: "Geist Mono", "Geist", monospace;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-order-status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: "Geist", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.005em;
}

.admin-order-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.admin-order-status.is-fulfilled {
  background: rgba(40, 229, 139, 0.1);
  color: #28e58b;
}

.admin-order-status.is-processing {
  background: rgba(255, 176, 32, 0.1);
  color: #ffc164;
}

.admin-order-status.is-cancelled {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
}

.admin-order-status.is-pending {
  background: rgba(85, 207, 255, 0.1);
  color: #8fdcff;
}

.admin-order-status.is-refunded {
  background: rgba(255, 100, 100, 0.1);
  color: #ff9b9b;
}

.admin-order-status.is-other {
  background: rgba(169, 40, 255, 0.12);
  color: #c98bff;
}

.admin-order-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.022);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
  flex-shrink: 0;
}

.admin-order-copy:hover {
  background: rgba(169, 40, 255, 0.14);
  border-color: rgba(169, 40, 255, 0.4);
  color: #fff;
}

.admin-order-copy svg {
  width: 13px;
  height: 13px;
}

.admin-order-copied {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(40, 229, 139, 0.16);
  color: #28e58b;
  font-family: "Geist", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  pointer-events: none;
}

.admin-order-money {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.admin-order-money strong {
  display: block;
  color: var(--admin-purple-2);
  font-family: "Geist", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.admin-order-time {
  color: rgba(255, 255, 255, 0.4);
  font-family: "Geist", sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  white-space: nowrap;
}

.admin-order-label {
  display: block;
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.32);
  font-family: "Geist", sans-serif;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-order-customer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--admin-border);
  color: rgba(255, 255, 255, 0.78);
  font-family: "Geist", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
}

.admin-order-customer svg {
  width: 15px;
  height: 15px;
  color: rgba(255, 255, 255, 0.42);
  flex-shrink: 0;
}

.admin-order-customer span {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-order-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-order-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: "Geist", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.005em;
}

.admin-order-badge.is-fulfilled {
  background: rgba(40, 229, 139, 0.12);
  border-color: rgba(40, 229, 139, 0.28);
  color: #28e58b;
}

.admin-order-badge.is-processing {
  background: rgba(255, 176, 32, 0.12);
  border-color: rgba(255, 176, 32, 0.28);
  color: #ffc164;
}

.admin-order-badge.is-cancelled {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--admin-border-strong);
  color: rgba(255, 255, 255, 0.6);
}

.admin-order-badge.is-pending {
  background: rgba(85, 207, 255, 0.12);
  border-color: rgba(85, 207, 255, 0.28);
  color: #8fdcff;
}

.admin-order-badge.is-refunded {
  background: rgba(255, 100, 100, 0.12);
  border-color: rgba(255, 100, 100, 0.28);
  color: #ff9b9b;
}

.admin-order-badge.is-other {
  background: rgba(169, 40, 255, 0.14);
  border-color: rgba(169, 40, 255, 0.32);
  color: #c98bff;
}

.admin-order-badge.is-seller {
  background: rgba(40, 229, 139, 0.1);
  border-color: rgba(40, 229, 139, 0.22);
  color: rgba(40, 229, 139, 0.85);
}

.admin-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-order-row-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-family: "Geist", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-order-row-label svg {
  width: 15px;
  height: 15px;
  color: rgba(255, 255, 255, 0.45);
}

.admin-order-row-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-family: "Geist", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
}

.admin-order-row-value svg {
  width: 15px;
  height: 15px;
  color: rgba(255, 255, 255, 0.5);
}

.admin-order-row-value strong {
  color: var(--admin-purple-2);
  font-family: "Geist", sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
}

.admin-order-product {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Geist", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-order-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--admin-border);
}

.admin-order-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.85);
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
}

.admin-order-email > svg {
  width: 16px;
  height: 16px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.admin-order-email > span {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-order-time {
  color: rgba(255, 255, 255, 0.45);
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.admin-orders-empty {
  padding: 0;
}

.admin-keys-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-keys-toolbar > .admin-orders-search {
  flex: 1;
  min-width: 240px;
}

.admin-keys-game-filter {
  min-width: 200px;
}

.admin-keys-table {
  padding: 0;
  overflow: hidden;
}

.admin-keys-table-head,
.admin-keys-row {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.6fr)
    160px
    minmax(160px, 1.3fr)
    110px
    100px
    minmax(180px, 1.3fr)
    110px;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
}

.admin-keys-table-head {
  border-bottom: 1px solid var(--admin-border);
  background: rgba(255, 255, 255, 0.012);
  color: rgba(255, 255, 255, 0.42);
  font-family: "Geist", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.admin-keys-table-head > span {
  justify-self: center;
}

.admin-keys-table-head > span:first-child {
  justify-self: start;
}

.admin-keys-row {
  border-bottom: 1px solid var(--admin-border);
  font-family: "Geist", sans-serif;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  animation: admin-order-card-in 320ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--card-index, 0) * 22ms);
  transition: background 120ms ease, opacity 120ms ease;
}

.admin-keys-row:last-child {
  border-bottom: 0;
}

.admin-keys-row:hover {
  background: rgba(255, 255, 255, 0.015);
}

.admin-keys-row.status-deleted {
  opacity: 0.5;
}

.admin-keys-row.status-deleted .admin-keys-key code {
  text-decoration: line-through;
}

@media (prefers-reduced-motion: reduce) {
  .admin-keys-row {
    animation: none;
  }
}

.admin-keys-key {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  justify-self: start;
}

.admin-keys-key code {
  flex: 1;
  min-width: 0;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Geist Mono", "Geist", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-keys-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(40, 229, 139, 0.9);
  box-shadow: 0 0 0 3px rgba(40, 229, 139, 0.12);
}

.admin-keys-dot.is-hwid {
  background: rgba(85, 207, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(85, 207, 255, 0.12);
}

.admin-keys-dot.is-frozen {
  background: rgba(85, 207, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(85, 207, 255, 0.12);
}

.admin-keys-dot.is-locked {
  background: rgba(255, 176, 32, 0.95);
  box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.12);
}

.admin-keys-dot.is-deleted {
  background: rgba(255, 100, 100, 0.95);
  box-shadow: 0 0 0 3px rgba(255, 100, 100, 0.12);
}

.admin-keys-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.018);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 120ms ease, color 120ms ease;
}

.admin-keys-icon:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.admin-keys-icon svg {
  width: 12px;
  height: 12px;
}

.admin-keys-key code.is-copied {
  color: #28e58b;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-keys-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  justify-self: center;
}

.admin-keys-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.022);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.admin-keys-action svg {
  width: 14px;
  height: 14px;
}

.admin-keys-action:hover {
  color: #fff;
}

.admin-keys-action.is-hwid:hover,
.admin-keys-action.is-hwid.is-on {
  background: rgba(85, 207, 255, 0.16);
  border-color: rgba(85, 207, 255, 0.4);
  color: #8fdcff;
}

.admin-keys-action.is-frozen:hover,
.admin-keys-action.is-frozen.is-on {
  background: rgba(120, 200, 255, 0.14);
  border-color: rgba(120, 200, 255, 0.4);
  color: #b6deff;
}

.admin-keys-action.is-locked:hover,
.admin-keys-action.is-locked.is-on {
  background: rgba(255, 176, 32, 0.14);
  border-color: rgba(255, 176, 32, 0.42);
  color: #ffc164;
}

.admin-keys-action.is-delete:hover,
.admin-keys-action.is-delete.is-on {
  background: rgba(255, 100, 100, 0.14);
  border-color: rgba(255, 100, 100, 0.42);
  color: #ff9b9b;
}

.admin-keys-action.is-balance:hover,
.admin-keys-action.is-balance.is-on {
  background: rgba(40, 229, 139, 0.14);
  border-color: rgba(40, 229, 139, 0.4);
  color: #28e58b;
}

.admin-resellers-balance-input {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 8px;
  padding-left: 12px;
  background: rgba(255, 255, 255, 0.022);
}

.admin-resellers-balance-input em {
  color: rgba(255, 255, 255, 0.6);
  font-family: "Geist", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  font-style: normal;
}

.admin-resellers-balance-input .admin-products-input {
  border: 0;
  background: transparent;
  flex: 1;
  min-height: 40px;
}

.admin-resellers-balance-input .admin-products-input:focus {
  background: transparent;
}

.admin-keys-product,
.admin-keys-order {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  justify-self: center;
}

.admin-keys-order {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--admin-purple-2);
  font-family: "Geist Mono", "Geist", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  transition: color 100ms ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-keys-order:hover {
  color: #d59cff;
}

.admin-keys-order:focus,
.admin-keys-order:focus-visible,
.admin-keys-order:active {
  outline: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.admin-keys-order.is-copied {
  color: #28e58b;
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-keys-hwid {
  color: rgba(255, 255, 255, 0.72);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: center;
  justify-self: center;
}

.admin-keys-owner {
  display: grid;
  gap: 2px;
  min-width: 0;
  justify-self: center;
  justify-items: center;
}

.admin-keys-owner-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(40, 229, 139, 0.1);
  color: #28e58b;
  font-family: "Geist", sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-keys-owner-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-keys-owner-name svg {
  width: 13px;
  height: 13px;
  color: rgba(255, 255, 255, 0.42);
  flex-shrink: 0;
}

.admin-keys-date {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.76rem;
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
  justify-self: center;
}

@media (max-width: 1380px) {
  .admin-keys-table-head,
  .admin-keys-row {
    grid-template-columns:
      minmax(200px, 1.4fr)
      140px
      minmax(140px, 1.2fr)
      100px
      90px
      minmax(160px, 1.2fr)
      96px;
    gap: 10px;
    padding: 12px 14px;
  }
}

@media (max-width: 1100px) {
  .admin-keys-table {
    overflow-x: auto;
  }

  .admin-keys-table-head,
  .admin-keys-row {
    min-width: 1100px;
  }
}

.admin-tx-table {
  padding: 0;
  overflow: hidden;
}

.admin-tx-head,
.admin-tx-row {
  display: grid;
  grid-template-columns:
    minmax(150px, 1fr)
    minmax(140px, 1fr)
    100px
    100px
    minmax(180px, 1.4fr)
    110px
    minmax(140px, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
}

.admin-tx-head {
  border-bottom: 1px solid var(--admin-border);
  background: rgba(255, 255, 255, 0.012);
  color: rgba(255, 255, 255, 0.42);
  font-family: "Geist", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-tx-head > span {
  justify-self: center;
}

.admin-tx-head > span:first-child {
  justify-self: start;
}

.admin-tx-row {
  border-bottom: 1px solid var(--admin-border);
  font-family: "Geist", sans-serif;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
  animation: admin-order-card-in 320ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--card-index, 0) * 22ms);
  transition: background 120ms ease;
}

.admin-tx-row:last-child {
  border-bottom: 0;
}

.admin-tx-row:hover {
  background: rgba(255, 255, 255, 0.015);
}

@media (prefers-reduced-motion: reduce) {
  .admin-tx-row {
    animation: none;
  }
}

.admin-tx-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.022);
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  min-width: 0;
  width: fit-content;
}

.admin-tx-user-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.admin-tx-user-icon svg {
  width: 12px;
  height: 12px;
}

.admin-tx-user > span:not(.admin-tx-user-icon) {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-tx-ledger {
  display: grid;
  gap: 2px;
  justify-self: center;
  justify-items: center;
}

.admin-tx-ledger strong {
  color: #fff;
  font-size: 0.94rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.admin-tx-ledger em {
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.admin-tx-ledger em.is-positive {
  color: #28e58b;
}

.admin-tx-ledger em.is-negative {
  color: #ff7a7a;
}

.admin-tx-ledger small {
  color: rgba(255, 255, 255, 0.36);
  font-size: 0.7rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.admin-tx-wallet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
}

.admin-tx-wallet > span {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(169, 40, 255, 0.14);
  border: 1px solid rgba(169, 40, 255, 0.32);
  color: #c98bff;
  font-family: "Geist", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.005em;
}

.admin-tx-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
}

.admin-tx-type > span {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: "Geist", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.005em;
}

.admin-tx-type.is-add > span {
  background: rgba(40, 229, 139, 0.12);
  border: 1px solid rgba(40, 229, 139, 0.32);
  color: #28e58b;
}

.admin-tx-type.is-remove > span {
  background: rgba(255, 100, 100, 0.12);
  border: 1px solid rgba(255, 100, 100, 0.32);
  color: #ff7a7a;
}

.admin-tx-reference {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--admin-purple-2);
  font-family: "Geist Mono", "Geist", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  justify-self: center;
  max-width: 100%;
  transition: color 100ms ease;
}

.admin-tx-reference:hover {
  color: #d59cff;
}

.admin-tx-reference:focus,
.admin-tx-reference:focus-visible,
.admin-tx-reference:active {
  outline: none;
  text-decoration: none;
}

.admin-tx-reference.is-copied {
  color: #28e58b;
  font-family: "Geist", sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-tx-date {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.76rem;
  font-weight: 500;
  white-space: nowrap;
  justify-self: center;
}

.admin-tx-amount {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: "Geist", sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  justify-self: center;
}

.admin-tx-amount-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  flex-shrink: 0;
}

.admin-tx-amount-icon svg {
  width: 12px;
  height: 12px;
}

.admin-tx-amount.is-add {
  background: rgba(40, 229, 139, 0.08);
  border-color: rgba(40, 229, 139, 0.22);
  color: #28e58b;
}

.admin-tx-amount.is-add .admin-tx-amount-icon {
  background: rgba(40, 229, 139, 0.18);
  color: #28e58b;
}

.admin-tx-amount.is-remove {
  background: rgba(255, 100, 100, 0.08);
  border-color: rgba(255, 100, 100, 0.22);
  color: #ff7a7a;
}

.admin-tx-amount.is-remove .admin-tx-amount-icon {
  background: rgba(255, 100, 100, 0.18);
  color: #ff7a7a;
}

@media (max-width: 1280px) {
  .admin-tx-head,
  .admin-tx-row {
    grid-template-columns:
      minmax(130px, 1fr)
      minmax(120px, 1fr)
      90px
      90px
      minmax(160px, 1.3fr)
      96px
      minmax(130px, 1fr);
    gap: 10px;
    padding: 12px 14px;
  }
}

@media (max-width: 1100px) {
  .admin-tx-table {
    overflow-x: auto;
  }

  .admin-tx-head,
  .admin-tx-row {
    min-width: 1100px;
  }
}

.admin-resellers-table {
  padding: 0;
  overflow: hidden;
}

.admin-resellers-head,
.admin-resellers-row {
  display: grid;
  grid-template-columns:
    minmax(160px, 1.2fr)
    minmax(180px, 1.4fr)
    100px
    110px
    90px
    110px
    90px
    140px;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}

.admin-resellers-head {
  border-bottom: 1px solid var(--admin-border);
  background: rgba(255, 255, 255, 0.012);
  color: rgba(255, 255, 255, 0.42);
  font-family: "Geist", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-resellers-head > span {
  justify-self: center;
}

.admin-resellers-head > span:first-child {
  justify-self: start;
}

.admin-resellers-row {
  border-bottom: 1px solid var(--admin-border);
  font-family: "Geist", sans-serif;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
  animation: admin-order-card-in 320ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--card-index, 0) * 22ms);
  transition: background 120ms ease, opacity 120ms ease;
}

.admin-resellers-row:last-child {
  border-bottom: 0;
}

.admin-resellers-row:hover {
  background: rgba(255, 255, 255, 0.015);
}

.admin-resellers-row.status-banned {
  opacity: 0.55;
}

.admin-resellers-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-resellers-user-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(169, 40, 255, 0.32);
  background: rgba(169, 40, 255, 0.14);
  color: var(--admin-purple-2);
  flex-shrink: 0;
}

.admin-resellers-user-icon svg {
  width: 14px;
  height: 14px;
}

.admin-resellers-user strong {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-resellers-email {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-family: "Geist", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  justify-self: center;
  transition: color 100ms ease;
}

.admin-resellers-email:hover {
  color: #fff;
}

.admin-resellers-email.is-copied {
  color: #28e58b;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-resellers-money {
  color: #fff;
  font-family: "Geist", sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  justify-self: center;
}

.admin-resellers-money.is-muted {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 500;
}

.admin-resellers-num {
  color: rgba(255, 255, 255, 0.78);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  justify-self: center;
}

.admin-resellers-date {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.76rem;
  white-space: nowrap;
  justify-self: center;
}

.admin-resellers-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: "Geist", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  justify-self: center;
}

.admin-resellers-status.is-active {
  background: rgba(40, 229, 139, 0.12);
  border: 1px solid rgba(40, 229, 139, 0.32);
  color: #28e58b;
}

.admin-resellers-status.is-banned {
  background: rgba(255, 100, 100, 0.12);
  border: 1px solid rgba(255, 100, 100, 0.32);
  color: #ff7a7a;
}

.admin-resellers-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: center;
}

.admin-resellers-invite {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 10px;
  background: rgba(169, 40, 255, 0.06);
  text-align: center;
}

.admin-resellers-invite code {
  display: block;
  color: #fff;
  font-family: "Geist Mono", "Geist", monospace;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.admin-resellers-invite-list {
  display: grid;
  gap: 8px;
}

.admin-resellers-invite-list > .admin-products-hint {
  margin: 0 0 6px;
}

.admin-resellers-invite-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 8px;
  background: rgba(169, 40, 255, 0.06);
}

.admin-resellers-invite-row code {
  flex: 1;
  min-width: 0;
  color: #fff;
  font-family: "Geist Mono", "Geist", monospace;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-resellers-invite-row .admin-modal-secondary {
  height: 32px;
  padding: 0 10px;
  font-size: 0.78rem;
  flex-shrink: 0;
}

@media (max-width: 1300px) {
  .admin-resellers-head,
  .admin-resellers-row {
    grid-template-columns:
      minmax(140px, 1fr)
      minmax(160px, 1.2fr)
      90px
      100px
      80px
      96px
      80px
      130px;
    gap: 8px;
    padding: 12px 14px;
  }
}

@media (max-width: 1100px) {
  .admin-resellers-table {
    overflow-x: auto;
  }

  .admin-resellers-head,
  .admin-resellers-row {
    min-width: 1100px;
  }
}

.admin-customers-table {
  padding: 0;
  overflow: hidden;
}

.admin-customers-head,
.admin-customers-row {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.6fr)
    minmax(120px, 1fr)
    90px
    140px
    140px
    110px
    minmax(120px, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
}

.admin-customers-head {
  border-bottom: 1px solid var(--admin-border);
  background: rgba(255, 255, 255, 0.012);
  color: rgba(255, 255, 255, 0.42);
  font-family: "Geist", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-customers-head > span {
  justify-self: center;
}

.admin-customers-head > span:first-child {
  justify-self: start;
}

.admin-customers-sort {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  outline: none;
  justify-self: center;
  transition: background 100ms ease, color 100ms ease;
}

.admin-customers-sort svg {
  width: 12px;
  height: 12px;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.admin-customers-sort:hover {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
}

.admin-customers-sort:hover svg {
  color: rgba(255, 255, 255, 0.55);
}

.admin-customers-sort.is-active {
  background: rgba(169, 40, 255, 0.12);
  color: #fff;
}

.admin-customers-sort.is-active svg {
  color: var(--admin-purple-2);
}

.admin-customers-row {
  border-bottom: 1px solid var(--admin-border);
  font-family: "Geist", sans-serif;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
  animation: admin-order-card-in 320ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--card-index, 0) * 22ms);
  transition: background 120ms ease;
}

.admin-customers-row:last-child {
  border-bottom: 0;
}

.admin-customers-row:hover {
  background: rgba(255, 255, 255, 0.015);
}

.admin-customers-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font-family: "Geist", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  text-decoration: none;
  max-width: 100%;
  min-width: 0;
  text-align: left;
  transition: color 100ms ease;
}

.admin-customers-email:hover {
  color: #fff;
}

.admin-customers-email > svg {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.admin-customers-email > span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-customers-email.is-copied {
  color: #28e58b;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-customers-cell {
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  justify-self: center;
}

.admin-customers-cell em {
  color: rgba(255, 255, 255, 0.3);
  font-style: normal;
}

.admin-customers-cell code {
  color: rgba(255, 255, 255, 0.82);
  font-family: "Geist Mono", "Geist", monospace;
  font-size: 0.76rem;
}

.admin-customers-money {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  justify-self: center;
}

.admin-customers-newsletter {
  display: grid;
  gap: 4px;
  justify-self: center;
  justify-items: center;
}

.admin-customers-newsletter small {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
  font-weight: 500;
}

.admin-customers-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: "Geist", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
}

.admin-customers-pill.is-on {
  background: rgba(40, 229, 139, 0.12);
  border: 1px solid rgba(40, 229, 139, 0.32);
  color: #28e58b;
}

.admin-customers-pill.is-off {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--admin-border-strong);
  color: rgba(255, 255, 255, 0.55);
}

.admin-customers-spent {
  display: grid;
  gap: 2px;
  justify-self: center;
  justify-items: center;
}

.admin-customers-spent strong {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.admin-customers-spent small {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
  font-weight: 500;
}

@media (max-width: 1280px) {
  .admin-customers-head,
  .admin-customers-row {
    grid-template-columns:
      minmax(180px, 1.4fr)
      minmax(110px, 1fr)
      80px
      130px
      130px
      100px
      minmax(110px, 1fr);
    gap: 10px;
    padding: 12px 14px;
  }
}

@media (max-width: 1100px) {
  .admin-customers-table {
    overflow-x: auto;
  }

  .admin-customers-head,
  .admin-customers-row {
    min-width: 1100px;
  }
}

.admin-webhooks {
  display: grid;
  gap: 18px;
  width: 100%;
}

.admin-webhooks-card {
  display: grid;
  gap: 14px;
  padding: 22px 24px;
}

.admin-webhooks-section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.admin-webhooks-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid rgba(169, 40, 255, 0.32);
  background: rgba(169, 40, 255, 0.14);
  color: var(--admin-purple-2);
  flex-shrink: 0;
}

.admin-webhooks-icon svg {
  width: 17px;
  height: 17px;
}

.admin-webhooks-section-head h2 {
  margin: 0;
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.005em;
}

.admin-webhooks-section-head p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Geist", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
}

.admin-webhooks-url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.admin-webhooks-events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.admin-webhooks-event {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.022);
  color: rgba(255, 255, 255, 0.78);
  font-family: "Geist", sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}

.admin-webhooks-event:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.admin-webhooks-event.is-on {
  background: rgba(169, 40, 255, 0.08);
  border-color: rgba(169, 40, 255, 0.36);
}

.admin-webhooks-event-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.62);
  transition: background 120ms ease, color 120ms ease;
}

.admin-webhooks-event-icon svg {
  width: 17px;
  height: 17px;
}

.admin-webhooks-event.is-on .admin-webhooks-event-icon {
  background: rgba(169, 40, 255, 0.18);
  color: var(--admin-purple-2);
}

.admin-webhooks-event-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-webhooks-event-meta strong {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.admin-webhooks-event-meta small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
}

.admin-webhooks-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--admin-border-strong);
  flex-shrink: 0;
  transition: background 120ms ease, border-color 120ms ease;
}

.admin-webhooks-switch > span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  transition: transform 140ms cubic-bezier(0.2, 0.7, 0.2, 1), background 120ms ease;
}

.admin-webhooks-event.is-on .admin-webhooks-switch {
  background: linear-gradient(135deg, var(--admin-purple), #7c2be8);
  border-color: rgba(169, 40, 255, 0.6);
}

.admin-webhooks-event.is-on .admin-webhooks-switch > span {
  transform: translateX(14px);
  background: #fff;
}

.admin-webhooks-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding-top: 2px;
}

.admin-webhooks-foot-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(40, 229, 139, 0.9);
  font-family: "Geist", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-webhooks-foot-status svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 700px) {
  .admin-webhooks-url-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.admin-settings {
  display: grid;
  gap: 18px;
  width: 100%;
}

.admin-settings-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
}

.admin-settings-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  border: 2px solid rgba(169, 40, 255, 0.45);
  background: rgba(169, 40, 255, 0.18);
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 120ms ease;
}

.admin-settings-avatar:hover {
  border-color: rgba(169, 40, 255, 0.8);
}

.admin-settings-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-settings-avatar-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  opacity: 0;
  transition: opacity 120ms ease;
}

.admin-settings-avatar:hover .admin-settings-avatar-overlay {
  opacity: 1;
}

.admin-settings-avatar-overlay svg {
  width: 22px;
  height: 22px;
}

.admin-settings-name {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-settings-name h1 {
  margin: 0;
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.admin-settings-name > span {
  color: rgba(255, 255, 255, 0.55);
  font-family: "Geist", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
}

.admin-settings-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Geist", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
}

.admin-settings-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-settings-meta svg {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.4);
}

.admin-settings-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.admin-settings-stat {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
}

.admin-settings-stat header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-family: "Geist", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-settings-stat header svg {
  width: 16px;
  height: 16px;
  color: var(--admin-purple-2);
}

.admin-settings-stat strong {
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
}

.admin-settings-stat strong.is-money {
  color: #28e58b;
}

.admin-settings-stat strong.is-purple {
  color: var(--admin-purple-2);
}

.admin-settings-card {
  padding: 0;
  overflow: hidden;
}

.admin-settings-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 22px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-settings-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Geist", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 100ms ease;
}

.admin-settings-tab svg {
  width: 15px;
  height: 15px;
}

.admin-settings-tab:hover {
  color: rgba(255, 255, 255, 0.85);
}

.admin-settings-tab.is-active {
  color: var(--admin-purple-2);
}

.admin-settings-tab.is-active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--admin-purple-2);
}

.admin-settings-form {
  display: grid;
  gap: 16px;
  padding: 22px 26px 22px;
}

.admin-settings-form h2 {
  margin: 0;
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.005em;
}

.admin-settings-form .admin-products-field > label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}

.admin-settings-form .admin-products-field > label svg {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.42);
}

.admin-settings-blurb {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-family: "Geist", sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.5;
}

.admin-settings-pw {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-settings-pw input {
  padding-right: 42px;
}

.admin-settings-pw button {
  position: absolute;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.admin-settings-pw button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.admin-settings-pw button svg {
  width: 15px;
  height: 15px;
}

.admin-settings-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 26px;
  border-top: 1px solid var(--admin-border);
  background: rgba(255, 255, 255, 0.025);
  transition: background 200ms ease, border-top-color 200ms ease;
}

.admin-settings-inline-save {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--admin-border);
}

.admin-settings-inline-save .admin-settings-save {
  min-width: 180px;
  justify-content: center;
}

/* ----------------------------------------------------------------------- */
/* Reseller shell: pull the sidebar + topbar over to match the admin theme */
/* ----------------------------------------------------------------------- */

.reseller-template {
  --reseller-sidebar: rgba(7, 7, 8, 0.98);
  --reseller-card: rgba(12, 12, 13, 0.92);
  --reseller-border: rgba(255, 255, 255, 0.075);
  background: #050505;
  font-family: "Geist", sans-serif;
}

.reseller-template-sidebar {
  border-right: 1px solid var(--reseller-border);
  background: rgba(7, 7, 8, 0.98);
  box-shadow: none;
}

.reseller-template-logo {
  height: 68px;
  padding: 0 18px;
  gap: 12px;
  border-bottom: 1px solid var(--reseller-border);
}

.reseller-template-logo-mark {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  max-width: 38px;
  border-radius: 8px;
  border: 1px solid rgba(169, 40, 255, 0.22);
  background: rgba(153, 0, 255, 0.1);
}

.reseller-template-logo-mark img {
  width: 31px;
  height: 31px;
}

.reseller-template-logo > span:last-child {
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 1.36rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.reseller-template-nav {
  padding: 18px 14px;
}

.reseller-template-nav-group {
  margin-bottom: 18px;
}

.reseller-template-group-toggle {
  width: 100%;
  margin: 0 0 6px 6px;
  padding: 0;
  color: rgba(255, 255, 255, 0.48);
  font-family: "Geist", sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  background: transparent;
}

.reseller-template-group-toggle i {
  display: none;
}

.reseller-template-group-toggle svg {
  width: 12px;
  height: 12px;
  color: rgba(255, 255, 255, 0.3);
  margin-left: auto;
}

.reseller-template-group-toggle:hover,
.reseller-template-group-toggle:hover svg {
  color: rgba(255, 255, 255, 0.7);
}

.reseller-template-nav-items-inner {
  gap: 6px;
}

.reseller-template-nav-item {
  min-height: 44px;
  padding: 0 12px;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-family: "Geist", sans-serif;
  font-size: 0.91rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.reseller-template-nav-item:hover {
  color: #fff;
  background: transparent;
  border-color: transparent;
}

.reseller-template-nav-item.is-active {
  border-color: rgba(255, 255, 255, 0.085);
  background:
    linear-gradient(90deg, rgba(169, 40, 255, 0.045), rgba(255, 255, 255, 0.022)),
    rgba(255, 255, 255, 0.032);
  color: #fff;
}

.reseller-template-nav-item svg {
  width: 17px;
  height: 17px;
  color: rgba(192, 92, 255, 0.95);
  transition: color 120ms ease;
}

.reseller-template-nav-item:hover svg {
  transform: none;
  color: #c98bff;
}

.reseller-template-nav-item.is-active svg {
  color: #c98bff;
}

.reseller-template-active-rail {
  display: none;
}

.reseller-template-balance-card {
  margin: 0 14px 12px;
  padding: 14px;
  border: 1px solid var(--reseller-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

.reseller-template-balance-card strong {
  color: #fff;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.reseller-template-balance-card span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 600;
}

.reseller-template-balance-card button {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid var(--reseller-border);
  border-radius: 7px;
  background: linear-gradient(135deg, var(--admin-purple, #a928ff), #7c2be8);
  color: #fff;
}

.reseller-template-user {
  margin: 0 14px 14px;
  padding: 12px;
  border: 1px solid var(--reseller-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
  display: flex;
  align-items: center;
  gap: 11px;
}

.reseller-template-avatar {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(169, 40, 255, 0.7);
  background: rgba(169, 40, 255, 0.17);
  color: #fff;
  font-family: "Geist", sans-serif;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reseller-template-user > div {
  flex: 1;
  min-width: 0;
}

.reseller-template-user > div strong {
  display: block;
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reseller-template-user > div span {
  color: rgba(255, 255, 255, 0.5);
  font-family: "Geist", sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
}

.reseller-template-user > button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--reseller-border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.reseller-template-user > button:hover {
  background: rgba(255, 74, 74, 0.14);
  color: #ff7878;
}

.reseller-template-user > button svg {
  width: 15px;
  height: 15px;
}

/* Reseller topbar — match admin */
.reseller-topbar {
  border-bottom: 1px solid var(--reseller-border);
  background: rgba(7, 7, 8, 0.98);
  padding: 0 34px;
  min-height: 68px;
}

.reseller-search {
  min-height: 44px;
  padding: 0 12px 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.58);
  font-family: "Geist", sans-serif;
}

.reseller-search svg {
  width: 18px;
  height: 18px;
}

.reseller-search input {
  background: transparent;
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.9rem;
}

.reseller-search input::placeholder {
  color: rgba(255, 255, 255, 0.54);
}

.reseller-topbar-actions button {
  font-family: "Geist", sans-serif;
  font-weight: 700;
}

.reseller-icon-button {
  width: 43px;
  height: 43px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.82);
}

.reseller-icon-button svg {
  width: 18px;
  height: 18px;
}

.reseller-icon-button span {
  background: var(--admin-purple, #a928ff);
  color: #fff;
  font-family: "Geist", sans-serif;
  font-weight: 900;
}

/* Reseller signup page */
.reseller-signup {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
  background:
    radial-gradient(circle at 20% 0%, rgba(169, 40, 255, 0.16), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(124, 43, 232, 0.14), transparent 50%),
    #050505;
}

.reseller-signup-card {
  width: 100%;
  max-width: 460px;
  padding: 32px;
  border: 1px solid var(--admin-border, rgba(255, 255, 255, 0.075));
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.008)),
    rgba(12, 12, 14, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 60px rgba(0, 0, 0, 0.55);
  font-family: "Geist", sans-serif;
}

.reseller-signup-head {
  text-align: center;
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.reseller-signup-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  border: 1px solid rgba(169, 40, 255, 0.4);
  background: rgba(169, 40, 255, 0.16);
  color: var(--admin-purple-2, #c05cff);
}

.reseller-signup-icon svg {
  width: 24px;
  height: 24px;
}

.reseller-signup-head h1 {
  margin: 0;
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.reseller-signup-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.5;
}

.reseller-signup-form {
  display: grid;
  gap: 14px;
}

.reseller-signup-field {
  display: grid;
  gap: 6px;
}

.reseller-signup-field label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Geist", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
}

.reseller-signup-field label svg {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.45);
}

.reseller-signup-field input {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.022);
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  outline: 0;
  transition: border-color 120ms ease, background 120ms ease;
}

.reseller-signup-field input::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.reseller-signup-field input:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.reseller-signup-field input:focus {
  border-color: rgba(169, 40, 255, 0.55);
  background: rgba(169, 40, 255, 0.04);
}

.reseller-signup-pw {
  position: relative;
}

.reseller-signup-pw input {
  padding-right: 44px;
}

.reseller-signup-pw button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.reseller-signup-pw button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.reseller-signup-pw button svg {
  width: 16px;
  height: 16px;
}

.reseller-signup-submit {
  min-height: 44px;
  margin-top: 4px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--admin-purple, #a928ff), #7c2be8);
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.005em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(169, 40, 255, 0.28);
  transition: transform 120ms ease, opacity 120ms ease;
}

.reseller-signup-submit:hover:not(:disabled) {
  transform: translateY(-1px);
}

.reseller-signup-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.reseller-signup-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 100, 100, 0.32);
  border-radius: 8px;
  background: rgba(255, 100, 100, 0.08);
  color: #ff9b9b;
  font-family: "Geist", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
}

.reseller-signup-success {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(40, 229, 139, 0.32);
  border-radius: 8px;
  background: rgba(40, 229, 139, 0.08);
  color: #28e58b;
  font-family: "Geist", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.reseller-signup-success svg {
  width: 16px;
  height: 16px;
}

.reseller-signup-foot {
  margin-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Geist", sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
}

.reseller-signup-foot a {
  color: var(--admin-purple-2, #c05cff);
  font-weight: 700;
  text-decoration: none;
}

.reseller-signup-foot a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-settings-foot.is-dirty {
  background: rgba(169, 40, 255, 0.04);
  border-top-color: rgba(169, 40, 255, 0.32);
}

.admin-settings-foot-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.42);
  font-family: "Geist", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-settings-foot-status svg {
  width: 14px;
  height: 14px;
  color: #28e58b;
}

.admin-settings-foot.is-dirty .admin-settings-foot-status {
  color: var(--admin-purple-2);
}

.admin-settings-foot-buttons {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.admin-settings-save {
  min-width: 160px;
  justify-content: center;
}

.admin-settings-save:not(:disabled) {
  box-shadow: 0 6px 18px rgba(169, 40, 255, 0.28);
}

.admin-orders-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.admin-orders-pager-info {
  color: rgba(255, 255, 255, 0.45);
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.admin-orders-pager-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.admin-orders-pager-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
  color: rgba(255, 255, 255, 0.72);
  font-family: "Geist", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.admin-orders-pager-button svg {
  width: 14px;
  height: 14px;
}

.admin-orders-pager-button:hover:not(:disabled):not(.is-active) {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.admin-orders-pager-button.is-active {
  background: rgba(169, 40, 255, 0.16);
  border-color: rgba(169, 40, 255, 0.4);
  color: #fff;
  cursor: default;
}

.admin-orders-pager-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.admin-orders-pager-gap {
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.32);
  font-family: "Geist", sans-serif;
  font-size: 0.84rem;
}

@media (max-width: 760px) {
  .admin-orders-head,
  .admin-orders-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-orders-head-actions {
    flex-wrap: wrap;
  }
}

.admin-products-banner {
  margin: 0;
  padding: 8px 10px;
  border-radius: 7px;
  font-family: "Geist", sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.45;
}

.admin-products-banner.is-warn {
  border: 1px solid rgba(255, 176, 32, 0.28);
  background: rgba(255, 176, 32, 0.1);
  color: #ffc164;
}

.admin-products-banner.is-error {
  border: 1px solid rgba(255, 100, 100, 0.32);
  background: rgba(255, 100, 100, 0.08);
  color: #ff9b9b;
}

.admin-products-empty {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px 12px;
  text-align: center;
}

.admin-products-empty p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Geist", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
}

.admin-products-empty-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--admin-purple), #7c2be8);
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-products-empty-cta svg {
  width: 14px;
  height: 14px;
}

.admin-products-main {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.006)),
    var(--admin-panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 1px 0 rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.admin-products-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-products-head h1 {
  margin: 0;
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.admin-products-head p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
}

.admin-products-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-products-mode {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid var(--admin-border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.012);
  margin-right: 4px;
}

.admin-products-mode-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-family: "Geist", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 100ms ease, background 100ms ease;
}

.admin-products-mode-tab:hover {
  color: rgba(255, 255, 255, 0.85);
}

.admin-products-mode-tab.is-active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.admin-products-mode-hint {
  margin: 0;
  padding: 8px 22px;
  border-bottom: 1px solid var(--admin-border);
  color: rgba(255, 255, 255, 0.6);
  font-family: "Geist", sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.45;
}

.admin-products-mode-hint.is-customer {
  background: rgba(169, 40, 255, 0.05);
  border-bottom-color: rgba(169, 40, 255, 0.18);
  color: rgba(206, 158, 255, 0.85);
}

.admin-products-mode-hint.is-reseller {
  background: rgba(40, 229, 139, 0.04);
  border-bottom-color: rgba(40, 229, 139, 0.18);
  color: rgba(150, 235, 195, 0.85);
}

.admin-products-save,
.admin-products-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 120ms ease, background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.admin-products-save {
  background: linear-gradient(135deg, var(--admin-purple), #7c2be8);
  color: #fff;
}

.admin-products-save:hover:not(:disabled) {
  transform: translateY(-1px);
}

.admin-products-save:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-products-cancel {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--admin-border-strong);
  color: rgba(255, 255, 255, 0.82);
}

.admin-products-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-products-save svg,
.admin-products-cancel svg {
  width: 15px;
  height: 15px;
}

.admin-products-tabs {
  display: flex;
  gap: 4px;
  padding: 6px 12px 0;
  border-bottom: 1px solid var(--admin-border);
  overflow-x: auto;
  scrollbar-width: none;
}

.admin-products-tabs::-webkit-scrollbar {
  display: none;
}

.admin-products-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: "Geist", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 100ms ease;
  white-space: nowrap;
}

.admin-products-tab:hover {
  color: #fff;
}

.admin-products-tab.is-active {
  color: #fff;
}

.admin-products-tab.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--admin-purple);
}

.admin-products-panel {
  min-height: 0;
  padding: 22px 24px 28px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.admin-products-panel::-webkit-scrollbar {
  width: 10px;
}

.admin-products-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.admin-products-form {
  display: grid;
  gap: 20px;
  max-width: 760px;
}

.admin-products-field {
  display: grid;
  gap: 8px;
}

.admin-products-field > label,
.admin-products-feature > label {
  color: rgba(255, 255, 255, 0.62);
  font-family: "Geist", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-products-hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-family: "Geist", sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.5;
}

.admin-products-section-head h3 {
  margin: 0;
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
}

.admin-products-section-head p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.5;
}

.admin-products-input {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  outline: 0;
  transition: border-color 120ms ease, background 120ms ease;
}

.admin-products-input::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.admin-products-input:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.admin-products-input:focus {
  border-color: rgba(169, 40, 255, 0.55);
  background: rgba(169, 40, 255, 0.04);
}

.admin-products-textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.5;
}

.admin-select {
  position: relative;
}

.admin-select-trigger {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}

.admin-select-trigger > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-select-trigger svg {
  width: 15px;
  height: 15px;
  color: rgba(255, 255, 255, 0.6);
  transition: transform 120ms ease;
}

.admin-select-trigger:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.admin-select-trigger[aria-expanded="true"] {
  border-color: rgba(169, 40, 255, 0.55);
  background: rgba(169, 40, 255, 0.05);
}

.admin-select-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.admin-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--admin-border-strong);
  border-radius: 9px;
  background: rgba(13, 13, 16, 0.99);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  animation: admin-modal-fade-in 90ms ease-out;
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.admin-select-menu::-webkit-scrollbar {
  width: 6px;
}

.admin-select-menu::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.admin-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Geist", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 100ms ease, color 100ms ease;
}

.admin-select-option > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-select-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.admin-select-option.is-active {
  background: rgba(169, 40, 255, 0.16);
  color: #fff;
}

.admin-select-option svg {
  width: 14px;
  height: 14px;
  color: var(--admin-purple-2);
}

.admin-products-input-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.admin-products-input-row > .admin-products-input {
  flex: 1;
  min-width: 0;
}

.admin-products-input-row > .admin-products-icon-button,
.admin-products-input-row > .admin-products-input-leading {
  flex: 0 0 auto;
}

.admin-products-input-row .admin-products-input-leading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
  color: rgba(255, 255, 255, 0.55);
}

.admin-products-input-row .admin-products-input-leading + .admin-products-input {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 0;
}

.admin-products-input-row .admin-products-input-leading svg {
  width: 16px;
  height: 16px;
}

.admin-products-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.admin-products-icon-button:hover:not(:disabled) {
  background: rgba(169, 40, 255, 0.14);
  border-color: rgba(169, 40, 255, 0.36);
  color: #fff;
}

.admin-products-icon-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.admin-products-icon-button svg {
  width: 15px;
  height: 15px;
}

.admin-products-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.022);
  color: rgba(255, 255, 255, 0.86);
  font-family: "Geist", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}

.admin-products-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-products-checkbox em {
  font-style: normal;
}

.admin-products-checkbox > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--admin-border-strong);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.4);
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.admin-products-checkbox > span svg {
  width: 11px;
  height: 11px;
}

.admin-products-checkbox:has(input:checked) {
  border-color: rgba(169, 40, 255, 0.45);
  background: rgba(169, 40, 255, 0.08);
}

.admin-products-checkbox:has(input:checked) > span {
  background: var(--admin-purple);
  border-color: var(--admin-purple);
  color: #fff;
}

.admin-products-tagbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
}

.admin-products-tagbar-empty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  color: rgba(255, 255, 255, 0.42);
  font-family: "Geist", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-products-tagbar-empty svg {
  width: 13px;
  height: 13px;
}

.admin-products-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 10px;
  border: 1px solid rgba(169, 40, 255, 0.4);
  border-radius: 999px;
  background: rgba(169, 40, 255, 0.16);
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
}

.admin-products-tag button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

.admin-products-tag button svg {
  width: 10px;
  height: 10px;
}

.admin-products-blacklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.admin-products-blacklist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
}

.admin-products-blacklist button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 100, 100, 0.12);
  color: #ff9b9b;
  cursor: pointer;
}

.admin-products-blacklist button svg {
  width: 12px;
  height: 12px;
}

.admin-products-variants {
  border: 1px solid var(--admin-border-strong);
  border-radius: 10px;
  overflow: hidden;
}

.admin-products-variants-head,
.admin-products-variant-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1.2fr) 110px minmax(0, 1fr) 110px 90px 36px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
}

.admin-products-variants-head {
  border-bottom: 1px solid var(--admin-border);
  background: rgba(255, 255, 255, 0.018);
  color: rgba(255, 255, 255, 0.48);
  font-family: "Geist", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-products-variant-row {
  border-top: 1px solid var(--admin-border);
}

.admin-products-variant-row:first-child {
  border-top: 0;
}

.admin-products-drag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.32);
  cursor: grab;
}

.admin-products-drag svg {
  width: 16px;
  height: 16px;
}

.admin-products-money-input {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 8px;
  padding-left: 10px;
  background: rgba(255, 255, 255, 0.022);
}

.admin-products-money-input em {
  color: rgba(255, 255, 255, 0.55);
  font-family: "Geist", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  font-style: normal;
}

.admin-products-money-input .admin-products-input {
  border: 0;
  background: transparent;
  padding: 8px 8px;
  min-height: 32px;
  font-size: 0.84rem;
}

.admin-products-money-input .admin-products-input:focus {
  background: transparent;
}

.admin-products-variant-id {
  min-width: 0;
  color: rgba(255, 255, 255, 0.75);
  font-family: "Geist Mono", "Geist", monospace;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-products-link-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 3px 8px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.022);
  color: rgba(255, 255, 255, 0.78);
  font-family: "Geist", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-products-link-button svg {
  width: 11px;
  height: 11px;
}

.admin-products-link-button:hover {
  border-color: rgba(169, 40, 255, 0.36);
  color: #fff;
}

.admin-products-revenue {
  color: #28e58b;
  font-family: "Geist", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.admin-products-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  border: 1px dashed var(--admin-border-strong);
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-family: "Geist", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.admin-products-add svg {
  width: 14px;
  height: 14px;
}

.admin-products-add:hover {
  background: rgba(169, 40, 255, 0.08);
  border-color: rgba(169, 40, 255, 0.42);
  color: #fff;
}

.admin-products-stock-actions,
.admin-products-stock-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-products-stock-card-actions {
  margin-top: 4px;
}

.admin-products-action-add,
.admin-products-action-edit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-family: "Geist", sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, opacity 120ms ease;
}

.admin-products-action-add:disabled,
.admin-products-action-edit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.admin-products-action-add {
  border: 0;
  background: linear-gradient(135deg, var(--admin-purple), #7c2be8);
  color: #fff;
}

.admin-products-action-add:hover {
  transform: translateY(-1px);
}

.admin-products-action-edit {
  border: 1px solid var(--admin-border-strong);
  background: rgba(255, 255, 255, 0.022);
  color: rgba(255, 255, 255, 0.86);
}

.admin-products-action-edit:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.admin-products-action-add svg,
.admin-products-action-edit svg {
  width: 14px;
  height: 14px;
}

.admin-products-stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.admin-products-stock-table {
  border: 1px solid var(--admin-border-strong);
  border-radius: 10px;
  overflow: hidden;
}

.admin-products-stock-table-head,
.admin-products-stock-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1.2fr) 100px minmax(0, 1fr) 250px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}

.admin-products-stock-table-head {
  border-bottom: 1px solid var(--admin-border);
  background: rgba(255, 255, 255, 0.018);
  color: rgba(255, 255, 255, 0.48);
  font-family: "Geist", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-products-stock-table-head > span:last-child {
  justify-self: center;
}

.admin-products-stock-row {
  border-top: 1px solid var(--admin-border);
}

.admin-products-stock-row:first-child {
  border-top: 0;
}

.admin-products-stock-name {
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-products-stock-count {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.admin-products-stock-count strong {
  color: rgba(169, 40, 255, 0.95);
  font-family: "Geist", sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.admin-products-stock-count.is-instructions strong {
  color: #55cfff;
  font-size: 1.18rem;
  line-height: 1;
}

.admin-products-stock-count.is-instructions small {
  color: rgba(85, 207, 255, 0.7);
}

.admin-products-stock-count.is-infinite strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
  line-height: 1;
}

.admin-products-stock-count.is-infinite small {
  color: rgba(255, 255, 255, 0.45);
}

.admin-products-stock-count small {
  color: rgba(255, 255, 255, 0.42);
  font-family: "Geist", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
}

.admin-products-stock-id {
  color: rgba(255, 255, 255, 0.6);
  font-family: "Geist Mono", "Geist", monospace;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-products-stock-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.admin-products-stock-row-actions .admin-products-action-add,
.admin-products-stock-row-actions .admin-products-action-edit {
  height: 32px;
  padding: 0 12px;
  font-size: 0.78rem;
}

@media (max-width: 980px) {
  .admin-products-stock-table-head {
    display: none;
  }

  .admin-products-stock-row {
    grid-template-columns: 24px minmax(0, 1fr);
    grid-template-areas:
      "drag name"
      ".    stock"
      ".    id"
      ".    actions";
    row-gap: 6px;
  }

  .admin-products-stock-row > .admin-products-drag {
    grid-area: drag;
  }

  .admin-products-stock-row > .admin-products-stock-name {
    grid-area: name;
  }

  .admin-products-stock-row > .admin-products-stock-count {
    grid-area: stock;
  }

  .admin-products-stock-row > .admin-products-stock-id {
    grid-area: id;
  }

  .admin-products-stock-row > .admin-products-stock-row-actions {
    grid-area: actions;
    justify-self: start;
  }
}

.admin-products-stock-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.022);
}

.admin-products-stock-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-products-stock-card strong {
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
}

.admin-products-stock-card header span {
  color: rgba(169, 40, 255, 0.95);
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.admin-products-stock-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
}

.admin-products-feature {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.022);
}

.admin-products-badge-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
}

.admin-products-badge-color {
  width: 44px;
  height: 40px;
  padding: 4px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
  cursor: pointer;
}

.admin-products-badge-color::-webkit-color-swatch-wrapper {
  padding: 0;
}

.admin-products-badge-color::-webkit-color-swatch {
  border: 0;
  border-radius: 5px;
}

.admin-products-feature header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.admin-products-upload {
  display: grid;
  gap: 6px;
  padding: 22px;
  border: 2px dashed var(--admin-border-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
  color: #fff;
  text-align: center;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}

.admin-products-upload svg {
  width: 22px;
  height: 22px;
  justify-self: center;
  color: rgba(169, 40, 255, 0.85);
}

.admin-products-upload strong {
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
}

.admin-products-upload span {
  color: rgba(255, 255, 255, 0.5);
  font-family: "Geist", sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
}

.admin-products-upload:hover {
  border-color: rgba(169, 40, 255, 0.5);
  background: rgba(169, 40, 255, 0.05);
}

.admin-products-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.admin-products-media-tile {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--admin-border-strong);
}

.admin-products-media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-products-media-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
}

.admin-products-media-remove svg {
  width: 12px;
  height: 12px;
}

.admin-products-media-empty {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 30px;
  color: rgba(255, 255, 255, 0.42);
  font-family: "Geist", sans-serif;
}

.admin-products-media-empty svg {
  width: 24px;
  height: 24px;
}

.admin-products-empty-main {
  grid-row: 1 / -1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 40px;
  text-align: center;
}

.admin-products-empty-main strong {
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.admin-products-empty-main p {
  margin: 0;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Geist", sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .admin-products {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-products-sidebar {
    max-height: 320px;
  }

  .admin-products-variants-head,
  .admin-products-variant-row {
    grid-template-columns: 24px minmax(0, 1fr) 100px minmax(0, 1fr) 100px 80px 36px;
  }
}

.admin-profile > span {
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid rgba(169, 40, 255, 0.7);
  background: rgba(169, 40, 255, 0.17);
  color: #fff;
  font-weight: 900;
  overflow: hidden;
}

.admin-profile > span img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-profile strong,
.admin-profile small {
  display: block;
}

.admin-profile strong {
  color: #fff;
  font-size: 0.9rem;
}

.admin-profile small {
  color: var(--admin-muted);
  font-size: 0.76rem;
}

.admin-profile svg {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.62);
}

.admin-content {
  min-height: 0;
  padding: 22px 28px;
  overflow: auto;
}

.admin-content::-webkit-scrollbar {
  width: 10px;
}

.admin-content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.admin-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.admin-page-head h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.admin-page-head p {
  margin: 0.4rem 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.91rem;
}

.admin-page-head p strong {
  color: var(--admin-purple-2);
}

.admin-date {
  position: relative;
}

.admin-date-button {
  min-height: 52px;
  min-width: 280px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 16px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}

.admin-date-button:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.admin-date-button[aria-expanded="true"] {
  border-color: rgba(169, 40, 255, 0.45);
  background: rgba(169, 40, 255, 0.06);
}

.admin-date-button > span {
  flex: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.admin-date-button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.admin-date-button[aria-expanded="true"] > svg:last-child {
  transform: rotate(180deg);
}

.admin-date-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: 540px;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  border: 1px solid var(--admin-border-strong);
  border-radius: 12px;
  background: rgba(10, 10, 12, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  animation: admin-date-menu-in 120ms ease-out;
}

@keyframes admin-date-menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-date-presets {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 12px 10px;
  border-right: 1px solid var(--admin-border);
  background: rgba(255, 255, 255, 0.012);
}

.admin-date-preset {
  width: 100%;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-family: "Geist", sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 100ms ease, color 100ms ease;
}

.admin-date-preset:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.admin-date-preset.is-active {
  background: rgba(169, 40, 255, 0.18);
  color: #fff;
}

.admin-date-calendar {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
}

.admin-date-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-date-field {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--admin-border-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.86);
  font-family: "Geist", sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.admin-date-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.admin-date-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 100ms ease, color 100ms ease;
}

.admin-date-nav button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.admin-date-nav button svg {
  width: 16px;
  height: 16px;
}

.admin-date-title {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.admin-date-title span {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.admin-date-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.4);
  font-family: "Geist", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
}

.admin-date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: 38px;
  gap: 0;
}

.admin-date-day {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Geist", sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: color 100ms ease, background-color 100ms ease;
}

.admin-date-day > span {
  position: relative;
  z-index: 1;
}

.admin-date-day:hover {
  color: #fff;
}

.admin-date-day.is-outside {
  color: rgba(255, 255, 255, 0.22);
}

.admin-date-day:not(.is-in-range):not(.is-range-start):not(.is-range-end):not(.is-selected):hover::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 0;
}

.admin-date-day.is-in-range {
  background-color: rgba(169, 40, 255, 0.14);
}

.admin-date-day.is-range-start,
.admin-date-day.is-range-end,
.admin-date-day.is-selected {
  color: #fff;
  font-weight: 600;
}

.admin-date-day.is-range-start,
.admin-date-day.is-in-range:nth-child(7n + 1) {
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
}

.admin-date-day.is-range-end,
.admin-date-day.is-in-range:nth-child(7n) {
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
}

.admin-date-day.is-range-start {
  background-color: #a928ff;
}

.admin-date-day.is-range-end {
  background-color: #a928ff;
}

.admin-date-day.is-range-start:nth-child(7n) {
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
}

.admin-date-day.is-range-end:nth-child(7n + 1) {
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
}

.admin-date-day.is-selected:not(.is-range-start):not(.is-range-end)::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: #a928ff;
  z-index: 0;
}

.admin-date-day:focus-visible {
  outline: 0;
}

.admin-date-day:focus-visible::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  box-shadow: 0 0 0 1.5px rgba(169, 40, 255, 0.6);
  z-index: 0;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.admin-card {
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.006)),
    var(--admin-panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 1px 0 rgba(0, 0, 0, 0.35);
}

.admin-metric-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 6px;
  padding: 16px 16px 0;
  overflow: hidden;
}

.admin-metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-metric-head span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.admin-metric-head em {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(40, 229, 139, 0.12);
  color: #28e58b;
  font-family: "Geist", sans-serif;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.admin-metric-card > strong {
  display: block;
  margin: 4px 0 0;
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: clamp(1.55rem, 1.85vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.admin-metric-card > small {
  color: rgba(255, 255, 255, 0.5);
  font-family: "Geist", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
}

.admin-metric-chart {
  position: relative;
  width: calc(100% + 32px);
  height: 48px;
  margin: 8px -16px 0;
  color: var(--admin-purple-2);
  cursor: crosshair;
}

.admin-metric-chart svg {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.admin-metric-tooltip {
  --tooltip-left: 50%;
  position: absolute;
  bottom: calc(100% - 4px);
  left: clamp(50px, var(--tooltip-left), calc(100% - 50px));
  transform: translateX(-50%);
  display: grid;
  gap: 2px;
  min-width: 76px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 10, 0.96);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
  z-index: 5;
  animation: admin-metric-tooltip-in 90ms ease-out;
}

.admin-metric-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  margin-top: -3px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 10, 0.96);
  transform: rotate(45deg);
}

.admin-metric-tooltip span {
  color: rgba(255, 255, 255, 0.55);
  font-family: "Geist", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-metric-tooltip strong {
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

@keyframes admin-metric-tooltip-in {
  from {
    opacity: 0;
    transform: translate(-50%, 4px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-orders,
.admin-resellers {
  grid-column: span 2;
}

.admin-hwid {
  grid-column: 1 / -1;
}

.admin-panel {
  min-height: 0;
  padding: 18px 18px 14px;
}

.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-panel-head h2 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.005em;
}

.admin-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.admin-panel-title svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.admin-panel-sub {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
}

.admin-panel-head-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.admin-panel-head button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  transition: background 120ms ease, border-color 120ms ease;
}

.admin-panel-head button:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: "Geist", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.005em;
}

.admin-pill svg {
  width: 13px;
  height: 13px;
}

.admin-pill-warn {
  background: rgba(255, 176, 32, 0.13);
  color: #ffc164;
  border: 1px solid rgba(255, 176, 32, 0.22);
}

.admin-product-list,
.admin-reseller-list,
.admin-feed-list {
  display: grid;
  gap: 0;
}

.admin-product-row {
  min-height: 50px;
  display: grid;
  grid-template-columns: 18px 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
  border-radius: 7px;
  transition: background 120ms ease;
}

.admin-product-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.admin-rank {
  color: rgba(255, 255, 255, 0.55);
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.admin-product-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(169, 40, 255, 0.18);
  border-radius: 7px;
  background: rgba(169, 40, 255, 0.16);
  overflow: hidden;
}

.admin-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-product-thumb svg {
  width: 16px;
  height: 16px;
  color: var(--admin-purple-2);
}

.admin-product-meta,
.admin-product-money {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.admin-product-meta strong,
.admin-product-money strong {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-product-meta small,
.admin-product-money small {
  color: rgba(255, 255, 255, 0.5);
  font-family: "Geist", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
}

.admin-product-money {
  justify-items: end;
  text-align: right;
}

.admin-product-money strong {
  font-variant-numeric: tabular-nums;
}

.admin-table {
  display: grid;
  gap: 0;
}

.admin-table-head,
.admin-table-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1.1fr) minmax(0, 1.3fr) 88px 92px 72px;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
}

.admin-table-head {
  min-height: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-table-row {
  min-height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
  border-radius: 6px;
  transition: background 120ms ease;
}

.admin-table-row:hover {
  background: rgba(255, 255, 255, 0.022);
}

.admin-table-row:last-child {
  border-bottom: 0;
}

.admin-table-row strong {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.admin-table-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reseller-recent-row {
  grid-template-columns: 140px minmax(0, 1.5fr) 110px 110px 110px !important;
  gap: 16px;
}

.admin-panel-head-link {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  font-family: "Geist", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.admin-panel-head-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.admin-feed-modal {
  width: min(720px, 100%);
}

.admin-feed-modal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-feed-modal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-feed-modal-row strong {
  display: block;
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
}

.admin-feed-modal-row p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
}

.admin-feed-modal-row span {
  color: rgba(255, 255, 255, 0.45);
  font-family: "Geist", sans-serif;
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.admin-feed-modal-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
}

.admin-feed-modal-actions {
  display: inline-flex;
  gap: 6px;
}

.admin-feed-modal-actions .admin-action {
  height: 28px;
  padding: 0 10px;
  font-size: 0.74rem;
}

.admin-customers-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.admin-customers-sort svg {
  width: 12px;
  height: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.admin-customers-sort:hover {
  color: #fff;
}

.reseller-recent-order {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reseller-recent-amount {
  font-variant-numeric: tabular-nums;
  color: #fff;
  font-weight: 700;
}

.admin-table-row em {
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(40, 229, 139, 0.12);
  color: #28e58b;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: capitalize;
}

.admin-reseller-head,
.admin-reseller-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1.4fr) 70px 100px 90px;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
}

.admin-reseller-head {
  min-height: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-reseller-row {
  min-height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  border-radius: 6px;
  transition: background 120ms ease;
}

.admin-reseller-row:hover {
  background: rgba(255, 255, 255, 0.022);
}

.admin-reseller-row:last-child {
  border-bottom: 0;
}

.admin-reseller-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-reseller-name strong {
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-avatar {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(169, 40, 255, 0.55), rgba(124, 43, 232, 0.6));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.admin-reseller-row em {
  color: #55cfff;
  font-style: normal;
  font-weight: 700;
}

.admin-feed-list > p {
  min-height: 44px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
}

.admin-feed-list > p:last-child {
  border-bottom: 0;
}

.admin-feed-list > p > svg {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 7px;
  background: rgba(169, 40, 255, 0.12);
  color: var(--admin-purple-2);
}

.admin-feed-list > p > span {
  color: rgba(255, 255, 255, 0.5);
  font-family: "Geist", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
}

.admin-hwid-table {
  display: grid;
  gap: 0;
}

.admin-hwid-head,
.admin-hwid-row {
  display: grid;
  grid-template-columns: 100px minmax(200px, 1.3fr) minmax(180px, 1.2fr) minmax(180px, 1.2fr) 130px 200px;
  align-items: center;
  gap: 14px;
  padding: 0 8px;
}

.admin-hwid-row > span,
.admin-hwid-row > strong,
.admin-hwid-head > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-hwid-head {
  min-height: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-hwid-row {
  min-height: 62px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-family: "Geist", sans-serif;
  font-size: 0.8rem;
  border-radius: 7px;
  transition: background 120ms ease;
}

.admin-hwid-row:hover {
  background: rgba(255, 255, 255, 0.022);
}

.admin-hwid-row:last-child {
  border-bottom: 0;
}

.admin-hwid-row > strong {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.admin-hwid-customer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-hwid-customer > div {
  min-width: 0;
}

.admin-hwid-customer strong {
  display: block;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-hwid-customer small {
  display: block;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.45);
  font-family: "Geist", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-hwid-product {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-hwid-product svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--admin-purple-2);
}

.admin-hwid-reason {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-hwid-time {
  color: rgba(255, 255, 255, 0.55);
  font-family: "Geist", sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.admin-hwid-actions {
  display: inline-flex;
  gap: 8px;
  justify-self: end;
}

.admin-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  font-family: "Geist", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.admin-action svg {
  width: 14px;
  height: 14px;
}

.admin-action-approve {
  background: rgba(40, 229, 139, 0.14);
  border-color: rgba(40, 229, 139, 0.28);
  color: #28e58b;
}

.admin-action-approve:hover {
  background: rgba(40, 229, 139, 0.22);
  border-color: rgba(40, 229, 139, 0.42);
}

.admin-action-deny {
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--admin-border-strong);
  color: rgba(255, 255, 255, 0.82);
}

.admin-action-deny:hover {
  background: rgba(255, 74, 74, 0.14);
  border-color: rgba(255, 74, 74, 0.32);
  color: #ff7878;
}

.admin-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 44px 24px 36px;
  text-align: center;
}

.admin-empty-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.06), transparent 70%),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-empty-state-icon svg {
  width: 26px;
  height: 26px;
  color: rgba(255, 255, 255, 0.38);
}

.admin-empty-state strong {
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.admin-empty-state p {
  max-width: 280px;
  margin: 0;
  color: rgba(255, 255, 255, 0.46);
  font-family: "Geist", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
}

.admin-hwid .admin-empty-state {
  padding: 56px 24px 44px;
}

.admin-hwid .admin-empty-state p {
  max-width: 360px;
}

@media (max-width: 1500px) {
  .admin-hwid-head,
  .admin-hwid-row {
    grid-template-columns: 78px minmax(180px, 1.3fr) minmax(150px, 1fr) minmax(140px, 1fr) 80px 178px;
  }
}

@media (max-width: 1350px) {
  .admin-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-orders,
  .admin-resellers,
  .admin-hwid {
    grid-column: auto;
  }

  .admin-hwid-head {
    display: none;
  }

  .admin-hwid-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 4px;
  }

  .admin-hwid-actions {
    justify-self: stretch;
  }

  .admin-action {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  body:has(.admin-shell) {
    overflow: auto;
  }

  html:has(.admin-shell),
  body:has(.admin-shell) .flex-wrapper,
  body:has(.admin-shell) #app,
  body:has(.admin-shell) .flex-wrapper > div {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .admin-shell {
    min-height: 100vh;
    height: auto;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .admin-sidebar {
    display: none;
  }

  .admin-main {
    height: auto;
    min-height: 100vh;
  }

  .admin-topbar,
  .admin-page-head {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .admin-topbar {
    min-height: auto;
    padding: 14px;
  }

  .admin-search,
  .admin-topbar-actions {
    grid-column: auto;
    justify-self: stretch;
  }

  .admin-content {
    overflow: visible;
    padding: 18px 14px;
  }

  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .admin-date-button {
    min-width: 0;
    width: 100%;
  }
}

.customer-panel {
  max-width: 1560px;
  margin: 0 auto;
}

.customer-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1.5rem;
}

.customer-sidebar-card,
.customer-stat-card,
.customer-feature-card,
.customer-table-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
    rgba(8, 8, 10, 0.96);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.customer-sidebar-card {
  padding: 1.15rem;
}

.customer-sidebar-head {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.customer-sidebar-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #7f19ff 0%, #5a66ff 100%);
  color: #fff;
  font-weight: 700;
}

.customer-sidebar-head h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.customer-sidebar-head p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1.25rem;
}

.customer-sidebar-link,
.customer-sidebar-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 42px;
  padding: 0 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.01);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
}

.customer-sidebar-link:hover,
.customer-sidebar-logout:hover {
  background: rgba(153, 0, 255, 0.06);
  border-color: rgba(153, 0, 255, 0.1);
  color: #fff;
}

.customer-sidebar-link.is-active {
  background: linear-gradient(135deg, rgba(137, 0, 255, 0.94), rgba(95, 96, 238, 0.92));
  color: #fff;
}

.customer-sidebar-logout {
  width: 100%;
  margin-top: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.customer-main-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.customer-stat-grid,
.customer-detail-grid,
.customer-balance-grid {
  display: grid;
  gap: 1rem;
}

.customer-stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.customer-detail-grid {
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.95fr);
}

.customer-balance-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-stat-card,
.customer-feature-card {
  padding: 1.1rem 1.15rem;
}

.customer-stat-card h3,
.customer-feature-card h3,
.customer-section-title {
  margin: 0 0 0.55rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.customer-stat-card strong,
.customer-feature-card strong {
  display: block;
  color: #fff;
  font-size: 1.72rem;
  font-weight: 700;
  line-height: 1.1;
}

.customer-feature-card p {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  line-height: 1.45;
}

.customer-feature-title {
  font-size: 1.28rem !important;
}

.customer-feature-card-large {
  min-height: 0;
}

.customer-table-card {
  padding: 0.95rem 1rem 0;
}

.customer-table-wrap {
  overflow-x: auto;
}

.customer-table {
  width: 100%;
  border-collapse: collapse;
}

.customer-table th,
.customer-table td {
  padding: 0.9rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: top;
}

.customer-table th {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.customer-table td {
  color: rgba(255, 255, 255, 0.9);
}

.customer-table td a {
  color: #6ea8ff;
}

.customer-order-status {
  color: #fff;
  font-weight: 700;
  text-transform: capitalize;
}

.customer-order-date {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.85rem;
}

.customer-table-empty {
  padding: 2rem 1rem !important;
  text-align: center;
  color: rgba(255, 255, 255, 0.58) !important;
}

.customer-panel-block {
  position: relative;
}

.customer-kicker {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 700;
}

.customer-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.customer-inline-link,
.customer-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
}

.customer-inline-link:hover,
.customer-action-link:hover {
  color: #fff;
  border-color: rgba(153, 0, 255, 0.14);
  background: rgba(153, 0, 255, 0.05);
}

.customer-action-link.is-primary {
  background: linear-gradient(135deg, rgba(145, 0, 255, 0.95), rgba(109, 65, 225, 0.92));
  border-color: rgba(173, 112, 255, 0.18);
  color: #fff;
}

.customer-action-link.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.customer-action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.95rem;
}

.customer-balance-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.customer-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0.9rem 0 1rem;
}

.customer-pagination span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.86rem;
  font-weight: 700;
}

.customer-activity-list,
.customer-news-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.customer-activity-item,
.customer-news-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.8rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
}

.customer-news-item {
  grid-template-columns: 1fr;
}

.customer-activity-marker {
  min-width: 2rem;
  padding-top: 0.1rem;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.customer-activity-title {
  font-size: 0.98rem !important;
}

.customer-activity-body p,
.customer-news-item p {
  margin: 0.22rem 0 0;
  font-size: 0.88rem;
}

.customer-activity-meta {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.customer-empty-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.95rem 0;
}

.customer-empty-state strong,
.customer-news-item strong {
  font-size: 0.98rem !important;
}

.customer-news-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (max-width: 1200px) {
  .customer-grid,
  .customer-detail-grid,
  .customer-stat-grid,
  .customer-balance-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .customer-area {
    padding: 5rem 1rem 2.5rem;
  }

  .customer-auth-modal {
    width: 100%;
  }

  .customer-auth-hero {
    padding: 1.5rem 1.25rem;
  }

  .customer-auth-body {
    padding: 1rem;
  }

  .customer-auth-otp {
    width: 2.55rem;
    height: 3.15rem;
    font-size: 1.2rem;
  }

  .customer-panel-header,
  .customer-activity-item {
    grid-template-columns: 1fr;
  }

  .customer-table th,
  .customer-table td {
    padding: 0.85rem 0.65rem;
  }
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-secondary), transparent);
  bottom: -150px;
  left: -100px;
  animation-delay: 10s;
}

.product-container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: fit-content;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--accent-primary);
}

.breadcrumb-icon {
  width: 20px;
  height: 20px;
}

.product-title {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.gallery-section {
  height: fit-content;
}

.main-image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.thumbnail {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
}

.thumbnail:hover {
  border-color: var(--accent-primary);
  transform: scale(1.05);
}

.thumbnail.active {
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px var(--accent-glow);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-info-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.variants-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.variant-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.variant-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, var(--accent-light));
  opacity: 0;
  transition: opacity 0.3s;
}

.variant-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(153, 0, 255, 0.15);
}

.variant-card:hover::before {
  opacity: 1;
}

.variant-card.active {
  background: linear-gradient(135deg, var(--accent-light), transparent);
  border-color: var(--accent-primary);
  box-shadow: 0 5px 20px rgba(153, 0, 255, 0.2);
}

.variant-header {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1;
}

.variant-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.variant-stock {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.variant-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.variant-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.variant-price-slash {
  text-decoration: line-through;
  opacity: 0.5;
  font-size: 1rem;
  color: var(--text-secondary);
}

.purchase-button {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(153, 0, 255, 0.2);
  width: 100%;
}

.purchase-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(153, 0, 255, 0.25);
}

.purchase-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.purchase-button svg {
  width: 20px;
  height: 20px;
}

.requirements-section {
  margin: 4rem 0;
}

.section-header {
  text-align: center;
  position: relative;
  margin-bottom: 3rem;
}

.product-wrapper .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.product-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  background: var(--bg-card);
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) transparent;
}

.tab-button {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-button:hover {
  color: var(--text-primary);
  background: rgba(153, 0, 255, 0.05);
}

.tab-button.active {
  background: var(--accent-primary);
  color: white;
}

.tab-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

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

@media (max-width: 768px) {
  .product-title {
    font-size: 2.5rem;
  }

  .variant-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .variant-footer {
    width: 100%;
    justify-content: space-between;
  }

  .product-info-section > div > div > div:last-child > div:last-child {
    flex-direction: column;
  }

  .product-info-section .purchase-button {
    width: 100%;
  }
}

@media (min-width: 992px) {
  .navbar-container.is-scrolled {
    width: calc(100% - 112px) !important;
    max-width: 1480px !important;
    padding: 0 !important;
  }

  .navbar-content.is-scrolled {
    min-height: 54px !important;
    padding: 0 12px !important;
    gap: 18px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.006)),
      rgba(10, 10, 12, 0.34) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.065),
      0 10px 26px rgba(0, 0, 0, 0.2) !important;
  }

  .navbar-content.is-scrolled::before {
    border-radius: inherit !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.005)),
      rgba(12, 12, 14, 0.34) !important;
    box-shadow: none !important;
  }

  .navbar-content.is-scrolled .navbar-brand {
    display: none !important;
  }

  .navbar-content.is-scrolled .navbar-logo-section {
    gap: 8px !important;
  }

  .navbar-content.is-scrolled .nav-link {
    min-height: 32px !important;
    padding: 0 11px !important;
  }

  .navbar-content.is-scrolled .navbar-search,
  .navbar-content.is-scrolled .cart-button,
  .navbar-content.is-scrolled .btn-login {
    min-height: 38px !important;
    height: 38px !important;
  }
}

@media (min-width: 992px) {
  .hero-section {
    padding-top: 42px !important;
    padding-bottom: 24px !important;
  }

  .hero-wrapper {
    margin-top: -18px !important;
  }

  .marquee-container {
    margin-top: -42px !important;
  }
}

.trust-section {
  width: min(1480px, calc(100% - 96px));
  margin: 2.75rem auto 4.25rem;
  position: relative;
  z-index: 1;
}

.trust-heading {
  margin: 0 auto 20px;
  text-align: center;
}

.trust-heading .trust-kicker {
  margin-bottom: 10px;
}

.trust-heading h2 {
  margin: 0;
  color: #fff;
  font-family: "Oxanium", sans-serif;
  font-size: clamp(1.8rem, 3.12vw, 3.12rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.trust-heading h2 span {
  color: var(--accent-primary);
}

.trust-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(250px, 0.72fr) minmax(310px, 0.86fr);
  grid-template-rows: 270px 270px;
  gap: 14px;
  align-items: stretch;
}

.trust-panel {
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.008)),
    rgba(10, 10, 12, 0.46);
  overflow: hidden;
  position: relative;
  min-width: 0;
}

.trust-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(153, 0, 255, 0.09), transparent 36%),
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.045), transparent 34%);
  opacity: 0.8;
}

.help-panel {
  grid-column: 1;
  grid-row: 1 / 3;
  min-height: 554px;
  background:
    linear-gradient(115deg, rgba(32, 10, 54, 0.82), rgba(8, 8, 10, 0.58) 58%, rgba(153, 0, 255, 0.1)),
    rgba(7, 7, 9, 0.74);
}

.help-panel::before {
  background:
    radial-gradient(circle at 78% 18%, rgba(176, 68, 255, 0.26), transparent 29%),
    linear-gradient(90deg, rgba(153, 0, 255, 0.13), transparent 54%);
}

.help-panel-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(153, 0, 255, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(24, 8, 38, 0.86), rgba(8, 8, 10, 0.86) 62%, rgba(153, 0, 255, 0.08));
  background-size: auto;
  background-position: center;
  opacity: 1;
}

.help-panel-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, #000, transparent 86%);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 86%);
}

.help-panel-brand-art {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
  filter: saturate(1.12) contrast(1.08);
  pointer-events: none;
}

.help-panel-content {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  padding: 26px;
}

.trust-badge {
  width: fit-content;
  border: 1px solid rgba(177, 73, 255, 0.42);
  border-radius: 8px;
  background: rgba(153, 0, 255, 0.18);
  color: rgba(238, 216, 255, 0.94);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  padding: 7px 10px;
}

.help-panel-copy,
.trust-panel-copy {
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.96rem;
  line-height: 1.55;
}

.help-panel-copy {
  max-width: 600px;
}

.help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.trust-action:hover {
  border-color: rgba(177, 73, 255, 0.48);
  background: rgba(153, 0, 255, 0.13);
  color: #fff;
  transform: translateY(-1px);
}

.trust-action-primary {
  border-color: rgba(177, 73, 255, 0.62);
  background: linear-gradient(135deg, var(--accent-primary), #b949ff);
  color: #fff;
}

.payments-panel {
  grid-column: 2 / 4;
  grid-row: 1;
}

.prices-panel {
  grid-column: 2;
  grid-row: 2;
}

.reviews-panel {
  grid-column: 3;
  grid-row: 2;
}

.trust-panel-head {
  position: relative;
  z-index: 3;
  padding: 22px 24px 14px;
}

.trust-panel-head.compact {
  padding-bottom: 12px;
}

.trust-kicker {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trust-panel h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 1.75vw, 1.9rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

.trust-panel h2 span {
  color: var(--accent-primary);
}

.payment-rails {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 14px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.payment-rails::before,
.payment-rails::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 76px;
  z-index: 2;
  pointer-events: none;
}

.payment-rails::before {
  left: 0;
  background: linear-gradient(90deg, rgba(10, 10, 12, 0.94), transparent);
}

.payment-rails::after {
  right: 0;
  background: linear-gradient(-90deg, rgba(10, 10, 12, 0.94), transparent);
}

.payment-track {
  display: flex;
  gap: 12px;
  width: max-content;
  will-change: transform;
}

.payment-track-left {
  animation: payments-left 42s linear infinite;
}

.payment-track-right {
  animation: payments-right 46s linear infinite;
}

.payment-chip {
  width: 118px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.01)),
    rgba(0, 0, 0, 0.38);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.payment-chip img {
  width: 21px;
  height: 21px;
  object-fit: contain;
  filter: invert(1) saturate(0.2) contrast(1.2);
  opacity: 0.92;
}

.payment-chip span {
  white-space: nowrap;
}

.price-compare {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px 20px;
}

.price-token {
  min-width: 80px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.035);
  padding: 10px 12px;
}

.price-token small {
  display: block;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-token strong {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
  margin-top: 4px;
}

.price-token.muted strong {
  color: rgba(255, 255, 255, 0.42);
  text-decoration: line-through;
}

.price-token.active {
  border-color: rgba(34, 255, 143, 0.3);
  background: rgba(34, 255, 143, 0.08);
}

.price-token.active strong {
  color: #22ff8f;
}

.price-arrow {
  color: rgba(255, 255, 255, 0.36);
  font-weight: 900;
}

.price-save {
  position: absolute;
  top: -8px;
  right: 20px;
  border-radius: 8px;
  background: #22ff8f;
  color: #071108;
  padding: 6px 9px;
  font-size: 0.72rem;
  font-weight: 1000;
}

.review-reel {
  position: relative;
  z-index: 1;
  height: 166px;
  overflow: hidden;
  margin: 0 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent 100%);
}

.review-reel::before,
.review-reel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 58px;
  z-index: 2;
  pointer-events: none;
}

.review-reel::before {
  top: 0;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.98), rgba(10, 10, 12, 0));
}

.review-reel::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(10, 10, 12, 0.98), rgba(10, 10, 12, 0));
}

.review-track {
  display: grid;
  gap: 9px;
  padding-top: 10px;
  will-change: transform;
  animation: reviews-up 42s linear infinite;
}

.review-card {
  margin: 0;
  min-height: 84px;
  border-radius: 8px;
  padding: 11px 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.012)),
    rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.065);
}

.review-stars {
  color: #f5c044;
  font-size: 0.78rem;
  line-height: 1;
  margin-bottom: 9px;
}

.review-card blockquote {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  line-height: 1.45;
  max-height: 42px;
  overflow: hidden;
}

.review-card figcaption {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  font-weight: 700;
}

.review-card small {
  color: rgba(255, 255, 255, 0.36);
}

@keyframes payments-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes payments-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes reviews-up {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

.faq-section,
.policy-container,
.feedback-container {
  width: min(1590px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.faq-section {
  padding: 0 0 5rem;
}

.faq-heading,
.page-heading {
  margin-bottom: 20px;
}

.faq-heading {
  text-align: center;
}

.faq-heading h2,
.page-heading h1 {
  margin: 0;
  color: #fff;
  font-family: "Oxanium", sans-serif;
  font-size: clamp(2.2rem, 4.3vw, 4.35rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.faq-heading h2 {
  font-size: clamp(1.85rem, 3.1vw, 3.15rem);
}

.faq-heading h2 span,
.page-heading h1 span {
  color: var(--accent-primary);
}

.page-heading p:not(.trust-kicker) {
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1rem;
  line-height: 1.6;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 960px);
  justify-content: center;
}

.faq-list {
  display: grid;
  gap: 12px;
  width: 100%;
}

.faq-item,
.faq-help-card,
.policy-card,
.feedback-page-card,
.empty-panel,
.page-error {
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.008)),
    rgba(10, 10, 12, 0.5);
}

.faq-item {
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 900;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent-primary);
  font-weight: 900;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  padding: 0 20px 20px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.65;
}

.faq-help-card {
  min-height: 100%;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.faq-help-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 18%, rgba(153, 0, 255, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(153, 0, 255, 0.1), transparent 55%);
}

.faq-help-card > * {
  position: relative;
  z-index: 1;
}

.faq-help-card h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
}

.faq-help-card h3 span {
  color: var(--accent-primary);
}

.faq-help-card p:not(.trust-kicker) {
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
  margin: 0 0 20px;
}

.faq-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.policy-page,
.feedback-page {
  padding: 8rem 0 5rem;
}

.policy-card {
  max-width: 980px;
  padding: 28px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}

.policy-card h1,
.policy-card h2,
.policy-card h3,
.policy-card strong {
  color: #fff;
}

.policy-card a {
  color: var(--accent-primary);
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feedback-page-card {
  margin: 0;
  min-height: 170px;
  padding: 18px;
}

.feedback-page-card blockquote {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.feedback-page-card figcaption {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  font-weight: 800;
}

.feedback-page-card small {
  color: rgba(255, 255, 255, 0.36);
}

.empty-panel,
.page-error {
  padding: 20px;
  color: rgba(255, 255, 255, 0.72);
}

.page-error {
  margin-bottom: 16px;
  border-color: rgba(255, 76, 96, 0.28);
  color: #ff8a99;
}

.page-error span {
  display: block;
  margin-top: 6px;
  font-size: 0.86rem;
  opacity: 0.78;
}

@media (max-width: 991px) {
  .trust-section {
    width: calc(100% - 24px);
    margin: 2.25rem auto 3.5rem;
  }

  .trust-heading {
    margin-bottom: 14px;
  }

  .trust-heading h2 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .trust-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .help-panel,
  .payments-panel,
  .prices-panel,
  .reviews-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .help-panel {
    min-height: 410px;
  }

  .trust-panel {
    min-height: 300px;
  }

  .reviews-panel {
    min-height: 320px;
  }

  .trust-panel-head {
    padding: 22px 20px 16px;
  }

  .help-panel-content {
    padding: 24px 20px;
  }

  .review-reel {
    height: 204px;
    margin: 0 12px 12px;
  }

  .payment-chip {
    width: 104px;
    height: 56px;
  }

  .faq-section,
  .policy-container,
  .feedback-container {
    width: calc(100% - 24px);
  }

  .faq-layout,
  .feedback-grid {
    grid-template-columns: 1fr;
  }

  .policy-page,
  .feedback-page {
    padding-top: 7rem;
  }
}

.reseller-products {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  min-height: 0;
}

.reseller-products-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 4px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.reseller-products-tab {
  height: 44px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-family: "Geist", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.reseller-products-tab:hover {
  color: #fff;
}

.reseller-products-tab.is-active {
  background: rgba(169, 40, 255, 0.18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(169, 40, 255, 0.45);
}

.reseller-products-body {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
  flex: 1 1 auto;
}

.reseller-products-main {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
  padding-right: 6px;
  margin-right: -6px;
}

.reseller-products-main::-webkit-scrollbar {
  width: 8px;
}

.reseller-products-main::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.reseller-products-count {
  color: rgba(255, 255, 255, 0.42);
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.005em;
}

.reseller-products-cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: rgba(12, 12, 13, 0.78);
}

.reseller-products-cat-empty {
  color: rgba(255, 255, 255, 0.5);
  font-family: "Geist", sans-serif;
  font-size: 0.84rem;
  padding: 6px;
}

.reseller-products-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.78);
  font-family: "Geist", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.reseller-products-cat-chip:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.reseller-products-cat-chip.is-active {
  border-color: rgba(169, 40, 255, 0.55);
  background: rgba(169, 40, 255, 0.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(169, 40, 255, 0.35);
}

.reseller-products-detail {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.reseller-products-detail-header {
  padding: 20px 20px 18px;
}

.reseller-products-detail-variants {
  padding: 18px 20px;
}

.reseller-products-detail-purchase {
  padding: 18px 20px 20px;
  background: rgba(255, 255, 255, 0.018);
  border-top: 1px solid var(--admin-border);
}

.reseller-topup-modal {
  width: min(480px, 100%);
}

.reseller-topup-accent {
  background: linear-gradient(135deg, #4f8cff, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reseller-topup-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reseller-topup-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.reseller-topup-method:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.16);
}

.reseller-topup-method.is-active {
  border-color: rgba(169, 40, 255, 0.55);
  background: rgba(169, 40, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(169, 40, 255, 0.3);
}

.reseller-topup-method-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--admin-purple-2);
  flex-shrink: 0;
  overflow: hidden;
}

.reseller-topup-method-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reseller-topup-method-icon svg {
  width: 18px;
  height: 18px;
}

.reseller-topup-method-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.reseller-topup-method-meta strong {
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
}

.reseller-topup-method-meta small {
  color: rgba(255, 255, 255, 0.55);
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
}

.reseller-topup-pay {
  width: 100%;
  height: 42px;
  justify-content: center;
}

.reseller-topup-foot {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.reseller-topup-rounding {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
}

.reseller-topup-rounding strong {
  color: rgba(255, 255, 255, 0.85);
}

.reseller-payments-panel {
  grid-column: 1 / -1;
}

.reseller-payments-row.is-pending > svg {
  background: rgba(255, 200, 70, 0.14);
  color: #ffc846;
}

.reseller-payments-row.is-completed > svg {
  background: rgba(40, 200, 120, 0.14);
  color: #6fdfa3;
}

.reseller-payments-row.is-cancelled > svg {
  background: rgba(255, 80, 80, 0.12);
  color: #ff8a8a;
}

.reseller-payments-pay-link {
  color: rgba(169, 130, 255, 0.95);
  text-decoration: none;
  font-weight: 600;
}

.reseller-payments-pay-link:hover {
  text-decoration: underline;
}

.reseller-payments-empty {
  margin: 0;
  padding: 12px 4px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.reseller-products-detail-header,
.reseller-products-detail-variants,
.reseller-products-detail-purchase {
  padding: 18px;
}

.reseller-products-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.reseller-products-detail-variants {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reseller-products-divider {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--admin-border);
}

.reseller-products-groups {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
  padding-right: 4px;
  margin-right: -4px;
}

.reseller-products-groups::-webkit-scrollbar {
  width: 8px;
}

.reseller-products-groups::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.reseller-products-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reseller-products-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 32px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-family: "Geist", sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.reseller-products-group-head svg {
  width: 13px;
  height: 13px;
  transition: transform 120ms ease;
  color: rgba(255, 255, 255, 0.5);
}

.reseller-products-group-head svg.is-collapsed {
  transform: rotate(-90deg);
}

.reseller-products-group-head strong {
  flex: 1;
  text-align: left;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.05em;
}

.reseller-products-group-head small {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.74rem;
  font-weight: 700;
}

.reseller-products-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.reseller-products-empty-main {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 60px 20px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: rgba(12, 12, 13, 0.78);
  text-align: center;
}

.reseller-products-empty-main svg {
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.35);
}

.reseller-products-empty-main strong {
  font-family: "Geist", sans-serif;
  font-weight: 800;
  color: #fff;
}

.reseller-products-empty-main p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Geist", sans-serif;
  font-size: 0.86rem;
}

.reseller-products-header-left {
  display: flex;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.reseller-products-thumb {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--admin-border-strong);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  flex-shrink: 0;
}

.reseller-products-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reseller-products-thumb svg {
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.6);
}

.reseller-products-header-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

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

.reseller-products-title-row h2 {
  margin: 0;
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.reseller-products-id-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.7);
  font-family: "Geist", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.reseller-products-id-button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.reseller-products-id-button svg {
  width: 12px;
  height: 12px;
}

.reseller-products-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #28e58b;
  font-family: "Geist", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.reseller-products-status-dot {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.reseller-products-status-dot svg {
  width: 14px;
  height: 14px;
}

.reseller-products-status-dot.is-down {
  color: #ef4444;
}

.reseller-products-description {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-family: "Geist", sans-serif;
  font-size: 0.86rem;
  line-height: 1.5;
}

.reseller-products-discount-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(169, 40, 255, 0.07);
  border: 1px solid rgba(169, 40, 255, 0.25);
}

.reseller-products-discount-chip small {
  color: rgba(255, 255, 255, 0.62);
  font-family: "Geist", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.reseller-products-discount-chip strong {
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.reseller-products-detail-variants > header h3,
.reseller-products-purchase-head h3 {
  margin: 0;
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.reseller-products-variant-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reseller-products-variant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--admin-border);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.012);
}

.reseller-products-variant-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.reseller-products-variant-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.reseller-products-variant-title strong {
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
}

.reseller-products-variant-price {
  color: rgba(255, 255, 255, 0.78);
  font-family: "Geist", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.005em;
}

.reseller-products-variant-discount {
  color: var(--admin-purple-2);
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.reseller-products-qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--admin-border-strong);
  border-radius: 8px;
  overflow: hidden;
}

.reseller-products-qty button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(255, 255, 255, 0.025);
  color: #fff;
  cursor: pointer;
  transition: background 120ms ease;
}

.reseller-products-qty button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
}

.reseller-products-qty button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.reseller-products-qty button svg {
  width: 14px;
  height: 14px;
}

.reseller-products-qty input {
  width: 56px;
  height: 34px;
  border: 0;
  border-left: 1px solid var(--admin-border);
  border-right: 1px solid var(--admin-border);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  text-align: center;
  font-family: "Geist", sans-serif;
  font-weight: 700;
  outline: none;
}

.reseller-products-qty input::-webkit-outer-spin-button,
.reseller-products-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.reseller-products-qty input[type="number"] {
  -moz-appearance: textfield;
}

.reseller-products-totals {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--admin-border);
}

.reseller-products-totals > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.62);
  font-family: "Geist", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
}

.reseller-products-totals strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.reseller-products-total-row {
  margin-top: 4px;
  color: #fff !important;
  font-size: 1rem !important;
}

.reseller-products-total-row strong {
  color: #fff !important;
  font-size: 1.1rem;
  font-weight: 900;
}

.reseller-products-purchase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.reseller-products-purchase-actions {
  display: inline-flex;
  gap: 8px;
}

.reseller-products-purchase-actions button,
.reseller-products-purchase-actions a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}

.reseller-products-purchase-actions button:hover,
.reseller-products-purchase-actions a:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
}

.reseller-products-purchase-actions button svg,
.reseller-products-purchase-actions a svg {
  width: 14px;
  height: 14px;
}

.reseller-products-pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.reseller-products-pay-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.012);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.reseller-products-pay-card:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.18);
}

.reseller-products-pay-card.is-selected {
  border-color: rgba(169, 40, 255, 0.6);
  background: rgba(169, 40, 255, 0.1);
  box-shadow:
    inset 0 0 0 1px rgba(169, 40, 255, 0.35),
    0 0 0 1px rgba(169, 40, 255, 0.25);
}

.reseller-products-pay-card > div {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.reseller-products-pay-card svg {
  width: 22px;
  height: 22px;
  color: var(--admin-purple-2);
}

.reseller-products-pay-card strong {
  display: block;
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
}

.reseller-products-pay-card small {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
}

.reseller-products-btc-mark {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(247, 147, 26, 0.15);
  color: #f7931a;
  font-family: "Geist", sans-serif;
  font-size: 0.92rem;
  font-weight: 900;
}

.reseller-products-topup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(169, 40, 255, 0.4);
  border-radius: 8px;
  background: rgba(169, 40, 255, 0.16);
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

.reseller-products-topup:hover {
  background: rgba(169, 40, 255, 0.24);
}

.reseller-products-create-order {
  margin-top: 14px;
  width: 100%;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--admin-purple), #7c2be8);
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: opacity 120ms ease, transform 120ms ease;
}

.reseller-products-create-order:hover:not(:disabled) {
  transform: translateY(-1px);
}

.reseller-products-create-order:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-resellers-password-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.admin-resellers-password-row .admin-products-input {
  flex: 1;
}

.admin-resellers-password-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 0 12px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
  font-family: "Geist", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.admin-resellers-password-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.reseller-products-order-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
  font-family: "Geist", sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
}

.reseller-keys,
.reseller-orders,
.reseller-tx {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.reseller-keys-search {
  width: min(380px, 100%);
}

.reseller-keys-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 40px 28px;
  text-align: center;
}

.reseller-keys-empty-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(169, 40, 255, 0.1);
  color: var(--admin-purple-2);
  margin-bottom: 4px;
}

.reseller-keys-empty-icon svg {
  width: 22px;
  height: 22px;
}

.reseller-keys-empty strong {
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.reseller-keys-empty p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-family: "Geist", sans-serif;
  font-size: 0.86rem;
  max-width: 420px;
}

.reseller-keys-link {
  color: var(--admin-purple-2);
  font-weight: 700;
  text-decoration: underline;
}

.reseller-keys-list {
  display: grid;
  gap: 12px;
}

.reseller-keys-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
}

.reseller-keys-row-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.reseller-keys-thumb {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid var(--admin-border-strong);
  background: rgba(169, 40, 255, 0.1);
  color: var(--admin-purple-2);
  flex-shrink: 0;
}

.reseller-keys-thumb svg {
  width: 18px;
  height: 18px;
}

.reseller-keys-row-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.reseller-keys-row-meta strong {
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
}

.reseller-keys-row-meta small {
  color: rgba(255, 255, 255, 0.55);
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
}

.reseller-keys-status {
  height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-family: "Geist", sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.005em;
  text-transform: capitalize;
}

.reseller-keys-status.is-ok {
  background: rgba(40, 229, 139, 0.14);
  color: #28e58b;
}

.reseller-keys-status.is-pending {
  background: rgba(245, 158, 11, 0.14);
  color: #f5b341;
}

.reseller-keys-row-key {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
}

.reseller-keys-row-key code {
  flex: 1;
  min-width: 0;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  overflow-x: auto;
  white-space: nowrap;
}

.reseller-keys-row-actions {
  display: inline-flex;
  gap: 8px;
  flex-shrink: 0;
}

.reseller-keys-copy,
.reseller-keys-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease;
}

.reseller-keys-copy:hover:not(:disabled),
.reseller-keys-open:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(169, 40, 255, 0.4);
}

.reseller-keys-copy:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.reseller-keys-copy svg,
.reseller-keys-open svg {
  width: 13px;
  height: 13px;
}

.reseller-keys-row-footer {
  color: rgba(255, 255, 255, 0.4);
  font-family: ui-monospace, monospace;
  font-size: 0.74rem;
}

.reseller-orders-card {
  padding: 0;
  overflow: hidden;
}

.reseller-orders-head,
.reseller-orders-row {
  display: grid;
  grid-template-columns: 90px minmax(160px, 1fr) 90px 100px 110px 100px 36px;
  gap: 14px;
  padding: 12px 18px;
  align-items: center;
}

.reseller-orders-head {
  border-bottom: 1px solid var(--admin-border);
  color: rgba(255, 255, 255, 0.55);
  font-family: "Geist", sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reseller-orders-row {
  border-bottom: 1px solid var(--admin-border);
  color: rgba(255, 255, 255, 0.85);
  font-family: "Geist", sans-serif;
  font-size: 0.86rem;
  transition: background 120ms ease;
}

.reseller-orders-row:last-child {
  border-bottom: 0;
}

.reseller-orders-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.reseller-orders-row strong {
  color: #fff;
  font-family: ui-monospace, monospace;
  font-size: 0.84rem;
}

.reseller-orders-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: "Geist", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: capitalize;
  font-style: normal;
}

.reseller-orders-status.is-ok {
  background: rgba(40, 229, 139, 0.14);
  color: #28e58b;
}

.reseller-orders-status.is-pending {
  background: rgba(245, 158, 11, 0.14);
  color: #f5b341;
}

.reseller-orders-status.is-down {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

.reseller-orders-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid var(--admin-border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  transition: background 120ms ease, color 120ms ease;
}

.reseller-orders-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.reseller-orders-link svg {
  width: 14px;
  height: 14px;
}

.reseller-tx-card {
  padding: 0;
}

.reseller-tx-head,
.reseller-tx-row {
  display: grid;
  grid-template-columns: 100px 160px minmax(160px, 1fr) 110px 110px;
  gap: 14px;
  padding: 12px 18px;
  align-items: center;
}

.reseller-tx-head {
  border-bottom: 1px solid var(--admin-border);
  color: rgba(255, 255, 255, 0.55);
  font-family: "Geist", sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reseller-tx-row {
  border-bottom: 1px solid var(--admin-border);
  color: rgba(255, 255, 255, 0.78);
  font-family: "Geist", sans-serif;
  font-size: 0.86rem;
}

.reseller-tx-row:last-child {
  border-bottom: 0;
}

.reseller-tx-row small {
  color: rgba(255, 255, 255, 0.55);
}

.reseller-tx-reason {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
}

.reseller-tx-reason svg {
  width: 16px;
  height: 16px;
}

.reseller-tx-reason svg.is-credit {
  color: #28e58b;
}

.reseller-tx-reason svg.is-debit {
  color: #fca5a5;
}

.reseller-tx-desc {
  color: rgba(255, 255, 255, 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reseller-tx-delta {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.reseller-tx-delta.is-credit {
  color: #28e58b;
}

.reseller-tx-delta.is-debit {
  color: #fca5a5;
}

@media (max-width: 1100px) {
  .reseller-products-body {
    grid-template-columns: 1fr;
  }
  .reseller-products-pay-grid {
    grid-template-columns: 1fr;
  }
}

.admin-products-tool-star {
  position: relative;
}

.admin-products-tool-star.has-featured {
  color: #ffc846;
  border-color: rgba(255, 200, 70, 0.45);
  background: rgba(255, 200, 70, 0.08);
}

.admin-products-tool-star em {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ffc846;
  color: #1c1305;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.admin-products-item.is-featured {
  border-color: rgba(255, 200, 70, 0.32);
  background: linear-gradient(180deg, rgba(255, 200, 70, 0.04), rgba(255, 200, 70, 0.015));
}

.admin-products-item-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.admin-products-item-featured {
  width: 14px;
  height: 14px;
  color: #ffc846;
  fill: currentColor;
}

.admin-featured-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-featured-modal {
  width: min(720px, 100%);
  max-height: min(720px, 90vh);
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid var(--admin-border);
  background: var(--admin-panel);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.admin-featured-modal > header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-featured-modal > header h2 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.admin-featured-modal > header h2 svg {
  width: 18px;
  height: 18px;
  color: #ffc846;
  fill: currentColor;
}

.admin-featured-modal > header p {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.admin-featured-modal > header > div {
  flex: 1;
  min-width: 0;
}

.admin-featured-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-featured-modal-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.admin-featured-modal-close svg {
  width: 16px;
  height: 16px;
}

.admin-featured-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-featured-modal-section h3 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.admin-featured-modal-section h3 em {
  font-style: normal;
  font-size: 0.7rem;
  color: rgba(255, 200, 70, 0.7);
}

.admin-featured-modal-current {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-featured-modal-current-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 200, 70, 0.18);
  background: rgba(255, 200, 70, 0.04);
  cursor: grab;
  transition: background 100ms ease, border-color 100ms ease, opacity 100ms ease;
}

.admin-featured-modal-current-item svg:first-child {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.admin-featured-modal-current-item span {
  flex: 1;
  font-size: 0.84rem;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-featured-modal-current-item.is-over {
  border-color: rgba(255, 200, 70, 0.5);
  background: rgba(255, 200, 70, 0.1);
}

.admin-featured-modal-current-item.is-dragging {
  opacity: 0.5;
}

.admin-featured-modal-remove {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--admin-border);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-featured-modal-remove:hover {
  background: rgba(255, 100, 100, 0.1);
  border-color: rgba(255, 100, 100, 0.4);
  color: #ff6868;
}

.admin-featured-modal-remove svg {
  width: 14px;
  height: 14px;
}

.admin-featured-modal-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.admin-featured-modal-search {
  flex: 1;
  max-width: 260px;
  min-height: 32px;
}

.admin-featured-modal-available {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-featured-modal-add-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  background: rgba(255, 255, 255, 0.015);
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
  cursor: pointer;
  transition: background 100ms ease, border-color 100ms ease;
}

.admin-featured-modal-add-item:hover {
  background: rgba(255, 200, 70, 0.05);
  border-color: rgba(255, 200, 70, 0.3);
  color: #ffc846;
}

.admin-featured-modal-add-item svg {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.admin-featured-modal-add-item:hover svg {
  color: #ffc846;
  fill: currentColor;
}

.admin-featured-modal-add-item span {
  flex: 1;
  font-size: 0.84rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-featured-modal-add-item small {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-pending-topups-panel .admin-panel-head {
  flex-wrap: wrap;
}

.admin-pending-topups-filters {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--admin-border);
  background: rgba(255, 255, 255, 0.02);
}

.admin-pending-topups-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 100ms ease, color 100ms ease;
}

.admin-pending-topups-tab em {
  font-style: normal;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.7);
}

.admin-pending-topups-tab.is-active {
  background: rgba(169, 40, 255, 0.16);
  color: #fff;
  border-color: rgba(169, 40, 255, 0.55);
}

.admin-pending-topups-tab.is-active em {
  background: rgba(169, 40, 255, 0.4);
  color: #fff;
}

.admin-pending-topups-refresh {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--admin-border);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-pending-topups-refresh:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.admin-pending-topups-refresh svg {
  width: 16px;
  height: 16px;
}

.admin-pending-topups-toast {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
}

.admin-pending-topups-toast.is-ok {
  background: rgba(40, 200, 120, 0.1);
  border: 1px solid rgba(40, 200, 120, 0.35);
  color: #6fdfa3;
}

.admin-pending-topups-toast.is-err {
  background: rgba(255, 80, 80, 0.08);
  border: 1px solid rgba(255, 80, 80, 0.35);
  color: #ff7e7e;
}

.admin-pending-topups-table {
  min-height: 240px;
}

.admin-pending-topups-table > .admin-empty-state {
  margin: auto;
  padding: 32px 12px;
}

.admin-table-row.admin-pending-topups-row,
.admin-table-head.admin-pending-topups-row {
  grid-template-columns:
    130px
    minmax(200px, 1.4fr)
    100px
    minmax(150px, 1fr)
    minmax(150px, 1.1fr)
    minmax(220px, auto);
  gap: 14px;
  padding: 0 8px;
}

.admin-table-row.admin-pending-topups-row {
  min-height: 56px;
  animation: admin-order-card-in 320ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--card-index, 0) * 22ms);
}

@media (prefers-reduced-motion: reduce) {
  .admin-table-row.admin-pending-topups-row {
    animation: none;
  }
}

.admin-pending-topups-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
}

.admin-pending-topups-status svg {
  width: 12px;
  height: 12px;
}

.admin-pending-topups-row.is-pending .admin-pending-topups-status {
  background: rgba(255, 200, 70, 0.1);
  color: #ffc846;
  border: 1px solid rgba(255, 200, 70, 0.32);
}

.admin-pending-topups-row.is-completed .admin-pending-topups-status {
  background: rgba(40, 200, 120, 0.1);
  color: #6fdfa3;
  border: 1px solid rgba(40, 200, 120, 0.32);
}

.admin-pending-topups-row.is-cancelled .admin-pending-topups-status {
  background: rgba(160, 160, 160, 0.1);
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(160, 160, 160, 0.28);
}

.admin-pending-topups-email {
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-pending-topups-amount {
  font-weight: 700;
  color: #fff;
}

.admin-pending-topups-invoice a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(169, 130, 255, 0.92);
  text-decoration: none;
  font-size: 0.78rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-pending-topups-invoice svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.admin-pending-topups-age {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
}

.admin-pending-topups-age em {
  font-style: normal;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}

.admin-pending-topups-actions-cell {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-pending-topups-push,
.admin-pending-topups-cancel {
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.admin-pending-topups-push {
  background: rgba(40, 200, 120, 0.15);
  border-color: rgba(40, 200, 120, 0.4);
  color: #6fdfa3;
}

.admin-pending-topups-push:hover:not(:disabled) {
  background: rgba(40, 200, 120, 0.25);
}

.admin-pending-topups-push:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-pending-topups-cancel {
  background: rgba(255, 80, 80, 0.08);
  border-color: rgba(255, 80, 80, 0.3);
  color: #ff8a8a;
}

.admin-pending-topups-cancel:hover:not(:disabled) {
  background: rgba(255, 80, 80, 0.16);
}

.admin-pending-topups-cancel:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.reseller-pending-topups-pills {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.reseller-pending-topups-more {
  align-self: flex-start;
  margin-top: 2px;
  padding: 4px 8px;
  background: transparent;
  border: none;
  color: rgba(169, 130, 255, 0.9);
  font-size: 0.78rem;
  cursor: pointer;
}

.reseller-pending-topups-more:hover {
  text-decoration: underline;
}

.reseller-pending-topups-empty {
  margin: 0;
  padding: 8px 0 4px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
}

.admin-pill-ok {
  background: rgba(40, 200, 120, 0.1);
  color: #6fdfa3;
  border: 1px solid rgba(40, 200, 120, 0.3);
}

.admin-pill-muted {
  background: rgba(160, 160, 160, 0.08);
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(160, 160, 160, 0.25);
}

.reseller-topup-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.reseller-topup-modal {
  width: min(640px, 100%);
  max-height: min(720px, 90vh);
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid var(--admin-border);
  background: var(--admin-panel);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.reseller-topup-modal > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--admin-border);
}

.reseller-topup-modal > header h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
}

.reseller-topup-modal > header button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 1.1rem;
}

.reseller-topup-modal-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reseller-topup-modal-item {
  display: grid;
  grid-template-columns: 120px 90px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  background: rgba(255, 255, 255, 0.015);
}

.reseller-topup-modal-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.reseller-topup-modal-status svg {
  width: 11px;
  height: 11px;
}

.reseller-topup-modal-item.is-pending .reseller-topup-modal-status {
  background: rgba(255, 200, 70, 0.1);
  color: #ffc846;
  border: 1px solid rgba(255, 200, 70, 0.32);
}

.reseller-topup-modal-item.is-completed .reseller-topup-modal-status {
  background: rgba(40, 200, 120, 0.1);
  color: #6fdfa3;
  border: 1px solid rgba(40, 200, 120, 0.32);
}

.reseller-topup-modal-item.is-cancelled .reseller-topup-modal-status {
  background: rgba(160, 160, 160, 0.08);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(160, 160, 160, 0.25);
}

.reseller-topup-modal-amount {
  font-weight: 700;
  color: #fff;
  font-size: 0.92rem;
}

.reseller-topup-modal-time {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reseller-topup-modal-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(255, 153, 30, 0.16);
  color: #ffb366;
  border: 1px solid rgba(255, 153, 30, 0.45);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.reseller-topup-modal-link svg {
  width: 11px;
  height: 11px;
}

.reseller-topup-modal-invoice {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
}

.admin-webhooks-section-head {
  position: relative;
}

.admin-webhooks-section-head > .admin-pending-topups-refresh {
  position: absolute;
  top: 0;
  right: 0;
}

.admin-webhook-logs-table {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  overflow: hidden;
}

.admin-webhook-logs-row {
  display: grid;
  grid-template-columns: 130px 200px 100px 60px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 14px;
  align-items: center;
  border-bottom: 1px solid var(--admin-border);
  font-size: 0.8rem;
}

.admin-webhook-logs-row:last-child {
  border-bottom: none;
}

.admin-webhook-logs-head {
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.admin-webhook-logs-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.admin-webhook-logs-status svg {
  width: 11px;
  height: 11px;
}

.admin-webhook-logs-row.is-delivered .admin-webhook-logs-status {
  background: rgba(40, 200, 120, 0.1);
  color: #6fdfa3;
  border: 1px solid rgba(40, 200, 120, 0.32);
}

.admin-webhook-logs-row.is-failed .admin-webhook-logs-status {
  background: rgba(255, 80, 80, 0.08);
  color: #ff8a8a;
  border: 1px solid rgba(255, 80, 80, 0.3);
}

.admin-webhook-logs-row.is-skipped .admin-webhook-logs-status {
  background: rgba(255, 200, 70, 0.08);
  color: #ffc846;
  border: 1px solid rgba(255, 200, 70, 0.3);
}

.admin-webhook-logs-row.is-queued .admin-webhook-logs-status {
  background: rgba(160, 160, 160, 0.08);
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(160, 160, 160, 0.25);
}

.admin-webhook-logs-event {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-webhook-logs-time {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.76rem;
}

.admin-webhook-logs-http {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.admin-webhook-logs-detail {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.76rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-referrals-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 1080px) {
  .admin-referrals-layout {
    grid-template-columns: 1fr;
  }
}

.admin-referrals-config {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: admin-order-card-in 320ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--card-index, 0) * 22ms);
}

.admin-referrals-config-title {
  margin: 0 0 6px;
  font-family: "Geist", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.01em;
}

.admin-referrals-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.012);
  font-family: "Geist", sans-serif;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}

.admin-referrals-toggle:hover {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.12);
}

.admin-referrals-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-referrals-label {
  font-family: "Geist", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.admin-referrals-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-referrals-input-wrap .admin-products-input {
  width: 100%;
}

.admin-referrals-prefix,
.admin-referrals-suffix {
  position: absolute;
  font-family: "Geist", sans-serif;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

.admin-referrals-prefix {
  left: 12px;
}

.admin-referrals-suffix {
  right: 12px;
}

.admin-referrals-input-prefix {
  padding-left: 26px !important;
}

.admin-referrals-error {
  margin: 0;
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
  color: #ff7676;
}

.admin-referrals-success {
  margin: 0;
  font-family: "Geist", sans-serif;
  font-size: 0.78rem;
  color: #4ade80;
}

.admin-referrals-save {
  margin-top: 4px;
  padding: 11px 16px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--admin-purple-2, #a928ff), #7a1fe0);
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: filter 120ms ease, transform 120ms ease, opacity 120ms ease;
}

.admin-referrals-save:hover:not(:disabled) {
  filter: brightness(1.08);
}

.admin-referrals-save:active:not(:disabled) {
  transform: translateY(1px);
}

.admin-referrals-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.admin-referrals-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.admin-referrals-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.admin-referrals-stat {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: admin-order-card-in 320ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--card-index, 0) * 22ms);
}

.admin-referrals-stat-label {
  font-family: "Geist", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.admin-referrals-stat-value {
  font-family: "Geist", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.admin-referrals-stat-value.is-accent {
  color: var(--admin-purple-2, #a928ff);
}

.admin-referrals-head,
.admin-referrals-row {
  grid-template-columns:
    minmax(180px, 1.4fr)
    minmax(180px, 1.4fr)
    minmax(140px, 1fr)
    110px
    120px
    100px !important;
}

.admin-referrals-head > *,
.admin-referrals-row > * {
  justify-self: center !important;
  text-align: center;
}

.admin-referrals-head > *:first-child,
.admin-referrals-row > *:first-child {
  justify-self: start !important;
  text-align: left;
}

.admin-referrals-codes-head,
.admin-referrals-codes-row {
  grid-template-columns:
    minmax(200px, 1.4fr)
    minmax(140px, 1fr)
    110px
    90px
    110px
    100px
    120px !important;
}

.admin-referrals-codes-head > *,
.admin-referrals-codes-row > * {
  justify-self: center !important;
  text-align: center;
}

.admin-referrals-codes-head > *:first-child,
.admin-referrals-codes-row > *:first-child {
  justify-self: start !important;
  text-align: left;
}

.admin-referrals-view {
  display: inline-flex !important;
  width: fit-content;
}

.admin-referrals-toolbar {
  margin-bottom: 2px;
}

.admin-referrals-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.82);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.76rem;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.admin-referrals-code-pill:hover {
  background: rgba(169, 40, 255, 0.1);
  border-color: rgba(169, 40, 255, 0.3);
  color: #fff;
}

.admin-referrals-code-pill.is-copied {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.35);
  color: #4ade80;
}

.admin-referrals-code-pill svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.admin-referrals-code-pill code {
  background: transparent;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.admin-referrals-rate-display {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Geist", sans-serif;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.admin-referrals-rate-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--admin-purple-2, #a928ff);
  background: rgba(169, 40, 255, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.admin-referrals-rate-edit {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 88px;
}

.admin-referrals-rate-input {
  width: 100%;
  padding-right: 22px;
}

.admin-referrals-rate-suffix {
  position: absolute;
  right: 9px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.76rem;
  pointer-events: none;
}

.admin-referrals-status-pill {
  border: 0;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: "Geist", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: filter 120ms ease, transform 120ms ease;
}

.admin-referrals-status-pill:hover {
  filter: brightness(1.1);
}

.admin-referrals-status-pill.is-on {
  background: rgba(74, 222, 128, 0.14);
  color: #4ade80;
}

.admin-referrals-status-pill.is-off {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.45);
}

.admin-referrals-actions {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.admin-referrals-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.admin-referrals-icon-btn:hover:not(:disabled) {
  background: rgba(169, 40, 255, 0.12);
  border-color: rgba(169, 40, 255, 0.32);
  color: #fff;
}

.admin-referrals-icon-btn.is-primary {
  background: linear-gradient(135deg, var(--admin-purple-2, #a928ff), #7a1fe0);
  border-color: transparent;
  color: #fff;
}

.admin-referrals-icon-btn.is-primary:hover:not(:disabled) {
  filter: brightness(1.08);
}

.admin-referrals-icon-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-referrals-reset {
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
}

.admin-customers-money.is-accent {
  color: var(--admin-purple-2, #a928ff);
}

@media (max-width: 900px) {
  .admin-referrals-stats {
    grid-template-columns: 1fr;
  }
  .admin-referrals-head,
  .admin-referrals-row,
  .admin-referrals-codes-head,
  .admin-referrals-codes-row {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }
  .admin-referrals-head > span,
  .admin-referrals-row > span,
  .admin-referrals-codes-head > span,
  .admin-referrals-codes-row > span {
    justify-self: stretch !important;
  }
}

.admin-referrals-invoice {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 7px;
  border-radius: 5px;
}

.customer-referral-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.customer-referral-rate-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(169, 40, 255, 0.32);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(169, 40, 255, 0.16), rgba(122, 31, 224, 0.08));
  align-self: flex-start;
  width: fit-content;
}

.customer-referral-rate-value {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}

.customer-referral-rate-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.customer-referral-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.customer-referral-url {
  flex: 1;
  min-width: 0;
  padding: 0.625rem 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.88);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-referral-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.customer-referral-copy:hover {
  background: rgba(169, 40, 255, 0.12);
  border-color: rgba(169, 40, 255, 0.32);
}

.customer-referral-copy.is-copied {
  background: rgba(74, 222, 128, 0.16);
  border-color: rgba(74, 222, 128, 0.4);
  color: #4ade80;
}

.customer-referral-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.customer-referral-stat {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.customer-referral-stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.customer-referral-stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.015em;
}

.customer-referral-stat-value.is-accent {
  color: var(--admin-purple-2, #a928ff);
}

.customer-referral-empty {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.5rem 0;
}

.customer-referral-empty-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.1rem 1.2rem;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.012);
}

.customer-referral-empty-icon {
  width: 22px;
  height: 22px;
  color: var(--admin-purple-2, #a928ff);
}

.customer-referral-empty-title {
  margin: 0;
  font-weight: 700;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.92);
}

.customer-referral-empty-sub {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

.customer-referral-generate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--admin-purple-2, #a928ff), #7a1fe0);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  align-self: flex-start;
  transition: filter 120ms ease, transform 120ms ease, opacity 120ms ease;
}

.customer-referral-generate:hover:not(:disabled) {
  filter: brightness(1.08);
}

.customer-referral-generate:active:not(:disabled) {
  transform: translateY(1px);
}

.customer-referral-generate:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.customer-referral-generate svg {
  width: 16px;
  height: 16px;
}

.customer-referral-error {
  margin: 0;
  font-size: 0.82rem;
  color: #ff7676;
}


.ref-consent-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 16px;
}

.ref-consent-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 40px 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: admin-order-card-in 280ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.ref-consent-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(169, 40, 255, 0.12);
  border: 1px solid rgba(169, 40, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.ref-consent-icon {
  width: 24px;
  height: 24px;
  color: #a928ff;
}

.ref-consent-title {
  margin: 0 0 10px;
  font-family: "Geist", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  text-align: center;
}

.ref-consent-body {
  margin: 0 0 24px;
  font-family: "Geist", sans-serif;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  text-align: center;
}

.ref-consent-error {
  margin: 0 0 16px;
  font-family: "Geist", sans-serif;
  font-size: 0.8rem;
  color: #ff7676;
  text-align: center;
}

.ref-consent-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-bottom: 16px;
}

.ref-consent-accept {
  width: 100%;
  padding: 12px 20px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #a928ff, #7a1fe0);
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: filter 120ms ease, transform 120ms ease, opacity 120ms ease;
}

.ref-consent-accept:hover:not(:disabled) {
  filter: brightness(1.1);
}

.ref-consent-accept:active:not(:disabled) {
  transform: translateY(1px);
}

.ref-consent-accept:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ref-consent-decline {
  width: 100%;
  padding: 11px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: "Geist", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
}

.ref-consent-decline:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.04);
}

.ref-consent-hint {
  margin: 0;
  font-family: "Geist", sans-serif;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.28);
  text-align: center;
  line-height: 1.5;
}
