/* Final visual polish — loaded after the legacy styles. */
:root {
  --uy-radius-card: 26px;
  --uy-radius-inner: 17px;
  --uy-transition: 180ms cubic-bezier(.2, .75, .25, 1);
}

html {
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
h1 em,
h2 em,
h3 em {
  font-family: "Montserrat", system-ui, sans-serif;
}

.hero-content h1 em,
.auth-aside h1 em,
.deposit-intro h1 em,
.reseller-hero-new h1 em,
.utility-copy h1 em,
.utility-hero h1 em,
.manual-deposit-heading h1 em,
.success-card h1 em,
.reference-hero h1 em {
  font-family: "Montserrat", system-ui, sans-serif;
}

button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

.site-nav,
.reference-product-card,
.stats-grid article,
.service-grid article,
.testimonial-card,
.reference-faq-list details,
.contact-grid article,
.php-card,
.checkout-card,
.checkout-product-head,
.setup-status,
.setup-panel,
.setup-warning,
.admin-summary article,
.qris-box,
.delivery-ready {
  backface-visibility: hidden;
}

.reference-product-card,
.stats-grid article,
.service-grid article,
.testimonial-card,
.reference-faq-list details,
.contact-grid article,
.php-card,
.checkout-card,
.checkout-product-head {
  border-radius: var(--uy-radius-card);
}

.reference-product-card,
.service-grid article,
.testimonial-card,
.reference-faq-list details,
.contact-grid article,
.php-card,
.checkout-card,
.checkout-product-head,
.setup-status,
.setup-panel,
.setup-warning,
.admin-summary article {
  transition: border-color var(--uy-transition), box-shadow var(--uy-transition), transform var(--uy-transition), background-color var(--uy-transition);
}

@media (hover: hover) and (pointer: fine) {
  .reference-product-card:hover,
  .service-grid article:hover,
  .testimonial-card:hover,
  .contact-grid article:hover {
    border-color: color-mix(in srgb, var(--pink) 52%, var(--line));
    box-shadow: 0 20px 50px rgba(27, 20, 35, .1);
    transform: translateY(-4px);
  }
}

.reference-product-logo,
.service-icon,
.contact-icon,
.checkout-product-logo,
.home-checkout-logo,
.cart-row-media {
  border-radius: var(--uy-radius-inner);
}

.button,
.php-card-button,
.reference-product-bottom button,
.checkout-step-actions .button {
  min-height: 44px;
  border-radius: 14px;
}

.reference-hero-actions .button,
.php-card-button {
  padding-inline: 20px;
}

input,
select,
textarea,
.checkout-select {
  border-radius: 14px;
  transition: border-color var(--uy-transition), box-shadow var(--uy-transition), background-color var(--uy-transition);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #df5a99 !important;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(223, 90, 153, .12);
}

.product-receipt,
.delivery-text,
.invoice-card-title h2 {
  font-family: "Montserrat", system-ui, sans-serif;
}

.product-receipt {
  min-height: 330px;
  border-radius: 17px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.reference-faq-list details[open] {
  border-color: color-mix(in srgb, var(--pink) 48%, var(--line));
  box-shadow: 0 14px 34px rgba(31, 23, 39, .07);
}

.qris-box,
.delivery-ready,
.setup-status,
.setup-panel,
.setup-warning {
  border-radius: 22px;
}

.php-table-wrap {
  border-radius: 16px;
  scrollbar-width: thin;
}

@media (max-width: 760px) {
  :root {
    --uy-radius-card: 22px;
    --uy-radius-inner: 15px;
  }

  .home-shell,
  .narrow-shell,
  .php-shell,
  .checkout-shell,
  .setup-shell {
    width: calc(100% - 24px);
  }

  .reference-hero-content {
    min-height: 390px;
    padding: 48px 0 54px;
  }

  .reference-hero h1 {
    margin-top: 16px;
    font-size: clamp(2rem, 10.5vw, 3rem);
    line-height: 1.08;
  }

  .reference-hero-content > p {
    max-width: 34rem;
    font-size: .79rem;
  }

  .reference-hero-actions .button {
    width: 100%;
  }

  .reference-section {
    padding: 50px 0;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .reference-product-card {
    min-height: 0;
    padding: 19px;
  }

  .reference-product-bottom {
    align-items: center;
    margin-top: 18px;
  }

  .reference-product-bottom button {
    min-width: 112px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stats-grid article {
    padding: 19px 10px;
  }

  .stats-grid article:last-child {
    grid-column: 1 / -1;
  }

  .service-grid article,
  .testimonial-card,
  .reference-faq-list details,
  .contact-grid article {
    padding: 19px;
  }

  .contact-grid article,
  .contact-grid .contact-wide {
    min-height: 230px;
  }

  .php-main {
    padding: 30px 12px 54px;
  }

  .php-card,
  .checkout-step,
  .setup-status,
  .setup-panel,
  .setup-warning {
    padding: 19px;
  }

  .invoice-lines > div {
    align-items: flex-start;
  }

  .invoice-lines > div > :last-child {
    max-width: 58%;
    overflow-wrap: anywhere;
    text-align: right;
  }

  .product-receipt {
    min-height: 300px;
    padding: 14px;
    font-size: 11px;
    line-height: 1.65;
  }

  .setup-progress {
    gap: 7px;
  }

  .setup-progress li {
    min-width: 0;
    padding: 10px 7px;
    font-size: .76rem;
  }
}

@media (max-width: 430px) {
  .site-mobile-tabs {
    overscroll-behavior-x: contain;
  }

  .reference-badge {
    max-width: 100%;
    line-height: 1.45;
    text-align: center;
  }

  .reference-product-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .reference-product-bottom button {
    width: 100%;
  }

  .stats-grid strong {
    font-size: 1.35rem;
  }

  .checkout-product-identity {
    align-items: flex-start;
  }

  .checkout-product-logo {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .invoice-lines > div {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }

  .invoice-lines > div > :last-child {
    max-width: 100%;
    text-align: left;
  }

  .setup-progress {
    grid-template-columns: 1fr;
  }
}

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

  .stats-grid article:last-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Brand artwork and a quiet, viewport-centred wordmark. */
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 8% 12%, color-mix(in srgb, var(--pink) 11%, transparent), transparent 28rem),
    radial-gradient(circle at 92% 72%, color-mix(in srgb, var(--blue) 8%, transparent), transparent 30rem);
  background-repeat: no-repeat;
  background-position: left top, right bottom;
  background-size: auto, auto;
  background-attachment: fixed;
  background-blend-mode: normal, normal;
}

body::before {
  content: "";
  position: fixed;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: min(82vw, 1040px);
  aspect-ratio: 1199 / 520;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: url("/public/assets/uyinstor-wordmark.webp") center / contain no-repeat;
}

body > header,
body > main,
body > footer {
  position: relative;
  z-index: 1;
}

.php-main {
  background: radial-gradient(circle at 20% 0, rgba(243, 154, 199, .1), transparent 34%);
}

.checkout-page {
  background: linear-gradient(180deg, color-mix(in srgb, var(--pink) 7%, transparent), transparent 280px);
}

.site-brand-mark {
  border-color: color-mix(in srgb, var(--pink) 42%, var(--line));
  background: color-mix(in srgb, var(--pink-soft) 55%, var(--surface));
}

.site-brand-mark img,
.site-footer-brand img {
  object-fit: contain;
  padding: 5px;
}

.site-footer-brand img {
  border: 1px solid color-mix(in srgb, var(--pink) 42%, var(--line));
  background: color-mix(in srgb, var(--pink-soft) 55%, var(--surface));
}

/* Every outer surface clips its own layers; every inner surface keeps a softer radius. */
.reference-product-card,
.stats-grid article,
.service-grid article,
.testimonial-card,
.reference-faq-list details,
.contact-grid article,
.php-card,
.checkout-card,
.checkout-variant,
.payment-option,
.home-checkout-product,
.home-payment-option,
.home-checkout-total,
.checkout-summary,
.checkout-assurance article,
.quick-auth-tabs,
.quick-deposit-total,
.quick-history-item,
.setup-status,
.setup-panel,
.setup-warning,
.setup-choices label,
.admin-summary article,
.qris-box,
.delivery-ready,
.php-notice,
.modal-card,
.cart-row {
  min-width: 0;
  overflow: hidden;
}

.button,
.php-card-button,
.php-admin-nav button {
  max-width: 100%;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

.reference-product-copy,
.reference-product-copy > *,
.checkout-product-identity,
.checkout-product-identity > div:last-child,
.variant-main,
.payment-option > div,
.php-card form,
.php-card label,
.setup-panel form,
.setup-choices span {
  min-width: 0;
}

.reference-product-copy ul {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--uy-radius-inner);
  background: color-mix(in srgb, var(--bg-alt) 78%, transparent);
}

.reference-product-bottom {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--uy-radius-inner);
  background: color-mix(in srgb, var(--bg-alt) 82%, transparent);
}

.reference-product-bottom strong,
.checkout-product-identity h1,
.variant-main strong,
.payment-option strong,
.invoice-title h1,
.admin-title h2,
.setup-choices strong {
  overflow-wrap: anywhere;
}

.service-grid article,
.testimonial-card,
.reference-faq-list details,
.contact-grid article {
  isolation: isolate;
}

.reference-faq-list summary {
  padding: 1px;
}

.reference-faq-list details > p {
  border-radius: 0 0 14px 14px;
}

/* Checkout: the old form had no inner padding, so its content touched the card edges. */
.checkout-card {
  border-radius: 28px;
  box-shadow: 0 24px 68px rgba(0, 0, 0, .18);
}

.checkout-form {
  --checkout-pad: clamp(22px, 4vw, 34px);
  min-width: 0;
  padding: var(--checkout-pad);
}

.checkout-step-head {
  margin-bottom: 24px;
}

.checkout-variant-grid {
  gap: 12px;
}

.checkout-variant {
  min-height: 84px;
  padding: 15px;
  border-radius: 18px;
}

.checkout-variant.is-selected,
.payment-option.is-selected {
  box-shadow: inset 0 0 0 1px rgba(239, 100, 168, .28), 0 8px 24px rgba(130, 43, 86, .08);
}

.checkout-fields {
  gap: 14px;
  margin: 26px 0;
}

.checkout-fields input,
.checkout-fields select,
.checkout-fields textarea {
  min-width: 0;
  min-height: 48px;
  border-radius: 16px;
}

.checkout-payment-options {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  margin: 24px 0 0;
}

.payment-option {
  min-height: 80px;
  padding: 14px;
  border-radius: 18px;
}

.payment-option > span {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.checkout-step-actions {
  margin: 28px calc(-1 * var(--checkout-pad)) calc(-1 * var(--checkout-pad));
  padding: 17px var(--checkout-pad);
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-alt) 76%, var(--surface));
}

.checkout-shell > .php-notice {
  margin: 0 0 14px;
}

.checkout-product-head {
  border-radius: 26px;
}

.checkout-product-logo {
  overflow: hidden;
}

.checkout-product-logo img {
  border-radius: inherit;
}

/* Forms, account pages, invoice, setup and admin use the same nested geometry. */
.php-card {
  border-radius: 26px;
}

.php-card > h1:first-child,
.php-card > h2:first-child,
.php-card > .section-label:first-child {
  position: relative;
  z-index: 1;
}

.php-card input,
.php-card select,
.php-card textarea,
.setup-panel input,
.setup-panel select,
.setup-panel textarea,
.admin-php input,
.admin-php select,
.admin-php textarea,
.php-inline-form input,
.php-inline-form select,
.php-inline-form textarea {
  min-width: 0;
  min-height: 47px;
  border-radius: 15px;
}

.php-card textarea,
.setup-panel textarea,
.admin-php textarea {
  padding-block: 12px;
}

.php-notice {
  border-radius: 16px;
  overflow-wrap: anywhere;
}

.invoice-title {
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--php-line);
}

.invoice-title h1 {
  margin-bottom: 0;
}

.invoice-lines {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--php-line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--php-card) 80%, transparent);
}

.invoice-lines > div {
  margin: 0;
  padding: 14px 16px;
}

.invoice-lines > div:last-child {
  border-bottom: 0;
}

.invoice-lines .invoice-total {
  padding: 17px 16px;
  background: color-mix(in srgb, var(--php-pink) 12%, var(--php-card));
}

.qris-box {
  border: 1px solid rgba(23, 19, 27, .1);
  border-radius: 22px;
  box-shadow: inset 0 0 0 7px rgba(23, 19, 27, .025);
}

.qris-box canvas {
  border-radius: 12px;
}

.delivery-ready {
  border-radius: 22px;
}

.product-receipt {
  max-width: 100%;
  border-radius: 17px;
}

.invoice-actions,
.php-actions {
  align-items: center;
}

.php-table-wrap {
  margin-top: 16px;
  overflow: auto;
  border: 1px solid var(--php-line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--php-card) 84%, transparent);
}

.php-table-wrap table {
  margin: 0;
}

.php-table-wrap th,
.php-table-wrap td {
  vertical-align: middle;
}

.php-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.admin-summary article,
.setup-status,
.setup-panel,
.setup-warning {
  border-radius: 22px;
}

.admin-title {
  flex-wrap: wrap;
  gap: 12px;
}

.admin-form-grid > label,
.admin-stock-form > label {
  min-width: 0;
}

.admin-php button:not(.button),
.setup-reset button {
  min-height: 36px;
  border-radius: 11px;
}

.setup-progress li {
  overflow: hidden;
  border-radius: 13px;
}

.setup-choices label {
  margin: 0;
  border-radius: 16px;
}

.setup-panel .button {
  margin-top: 8px;
}

/* Dialog, drawer and quick actions also follow the same inner/outer radius scale. */
.modal-card {
  border-radius: 26px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-variant-list button,
.home-checkout-product,
.home-payment-option,
.home-checkout-total,
.quick-history-item,
.cart-row {
  border-radius: 17px;
}

.modal-variant-note,
.checkout-note,
.checkout-info-box,
.checkout-stock-empty,
.home-checkout-warning,
.quick-deposit-total,
.quick-history-empty {
  overflow: hidden;
  border-radius: 15px;
}

.cart-sheet {
  overflow: hidden;
}

.cart-sheet-body {
  overscroll-behavior: contain;
}

@media (max-width: 760px) {
  body {
    background-attachment: scroll;
    background-position: left top, right bottom;
    background-size: auto, auto;
  }

  body::before {
    width: 92vw;
  }

  .checkout-product-head {
    padding: 18px;
    border-radius: 22px;
  }

  .checkout-form {
    --checkout-pad: 17px;
  }

  .checkout-variant,
  .payment-option {
    padding: 13px;
    border-radius: 16px;
  }

  .checkout-step-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    gap: 9px;
  }

  .checkout-step-actions .button,
  .invoice-actions .button,
  .php-actions .button {
    width: 100%;
  }

  .checkout-fields {
    gap: 12px;
    margin: 22px 0;
  }

  .php-card {
    padding: 19px;
    border-radius: 22px;
  }

  .invoice-title {
    align-items: flex-start;
  }

  .invoice-lines {
    border-radius: 16px;
  }

  .invoice-lines > div,
  .invoice-lines .invoice-total {
    padding-inline: 13px;
  }

  .invoice-actions,
  .php-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .php-table-wrap {
    width: 100%;
    border-radius: 16px;
  }

  .admin-title {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-title .button {
    width: 100%;
  }

  .modal-card {
    max-height: calc(100dvh - 24px);
    border-radius: 22px;
  }

  .cart-sheet {
    top: 10px;
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
    border: 1px solid var(--line);
    border-radius: 22px;
  }
}

@media (max-width: 430px) {
  .checkout-product-identity {
    gap: 11px;
  }

  .checkout-variant {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .checkout-variant > b {
    grid-column: 2;
    justify-self: start;
    white-space: normal;
  }

  .payment-option {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .qris-box {
    padding: 14px;
  }

  .receipt-head {
    gap: 10px;
  }

  .setup-status,
  .setup-panel,
  .setup-warning {
    padding: 17px;
    border-radius: 19px;
  }
}

/* Shared icon geometry. */
.ui-icon {
  display: block;
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
}

.button .ui-icon,
.service-icon .ui-icon {
  width: 19px;
  height: 19px;
}

.service-icon .ui-icon {
  stroke-width: 2.2;
}

/* Testimonial cards and verified post-purchase invitation. */
.testimonial-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.testimonial-origin {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 800;
}

.testimonial-origin.is-real {
  border-color: color-mix(in srgb, var(--green) 54%, var(--line));
  background: color-mix(in srgb, var(--green) 18%, var(--surface));
  color: color-mix(in srgb, #2c8e5c 84%, var(--text));
}

.testimonial-origin.is-demo {
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-soft) 84%, transparent);
}

.testimonial-form-panel {
  overflow: hidden;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow-sm);
}

.testimonial-form-panel.is-order-review {
  border-color: color-mix(in srgb, var(--green) 55%, var(--line));
}

.testimonial-order-note {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--green) 50%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--green) 14%, var(--surface));
  overflow: hidden;
}

.testimonial-order-note > .ui-icon {
  width: 20px;
  height: 20px;
  color: #43ad72;
}

.testimonial-order-note span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.testimonial-order-note small {
  overflow-wrap: anywhere;
  color: var(--muted);
}

.public-leaderboard-section {
  scroll-margin-top: 92px;
  padding-top: clamp(26px, 4vw, 48px);
}

.public-leaderboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  text-align: left;
}

.public-leaderboard-heading h2 {
  margin-bottom: 7px;
}

.public-leaderboard-heading p {
  margin: 0;
  color: var(--muted);
}

.public-period-filter {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.public-period-filter a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--muted);
  font-size: .61rem;
  font-weight: 800;
  text-decoration: none;
  transition: border-color var(--uy-transition), background-color var(--uy-transition), color var(--uy-transition), transform var(--uy-transition);
}

.public-period-filter a:hover {
  transform: translateY(-1px);
}

.public-period-filter a.is-active {
  border-color: color-mix(in srgb, var(--pink) 55%, var(--line));
  background: color-mix(in srgb, var(--pink) 16%, var(--surface));
  color: var(--text);
}

.public-leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.public-leaderboard-card {
  min-width: 0;
  overflow: hidden;
  padding: clamp(17px, 2.5vw, 24px);
  border: 1px solid var(--line);
  border-radius: 25px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--leader-accent) 12%, transparent), transparent 42%),
    color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-sm);
}

.public-leaderboard-card.is-guest {
  --leader-accent: var(--blue);
}

.public-leaderboard-card.is-reseller {
  --leader-accent: var(--pink);
}

.public-leaderboard-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
}

.public-leaderboard-card > header div {
  min-width: 0;
}

.public-leaderboard-card > header span {
  color: var(--leader-accent);
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.public-leaderboard-card > header h3 {
  margin: 5px 0 4px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  letter-spacing: -.03em;
}

.public-leaderboard-card > header p {
  margin: 0;
  color: var(--muted);
  font-size: .67rem;
  line-height: 1.55;
}

.public-leaderboard-card > header b {
  display: inline-flex;
  min-height: 27px;
  flex: 0 0 auto;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--leader-accent) 42%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--leader-accent) 10%, var(--surface));
  color: var(--leader-accent);
  font-size: .56rem;
  font-weight: 850;
}

.public-rank-list {
  display: grid;
  gap: 9px;
}

.public-rank-row {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 12px 12px 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: color-mix(in srgb, var(--bg-alt) 72%, var(--surface));
}

.public-rank-row.rank-1 {
  border-color: color-mix(in srgb, #e7bd48 45%, var(--line));
  background: color-mix(in srgb, #e7bd48 7%, var(--surface));
}

.public-rank-number {
  display: inline-grid;
  width: 39px;
  height: 31px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--leader-accent) 35%, var(--line));
  border-radius: 10px;
  color: var(--leader-accent);
  font-size: .66rem;
  font-weight: 900;
}

.public-rank-row.rank-1 .public-rank-number {
  border-color: rgba(231, 189, 72, .48);
  background: rgba(231, 189, 72, .12);
  color: #d4a91f;
}

.public-rank-person {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.public-rank-person strong {
  overflow: hidden;
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-rank-person small {
  color: var(--muted);
  font-size: .57rem;
}

.public-rank-spend {
  color: var(--text);
  font-size: .71rem;
  white-space: nowrap;
}

.public-rank-row > i {
  position: relative;
  grid-column: 1 / -1;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 78%, transparent);
}

.public-rank-row > i::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--leader-progress);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--leader-accent), color-mix(in srgb, var(--leader-accent) 45%, white));
  content: "";
}

.public-rank-empty {
  display: grid;
  min-height: 112px;
  place-items: center;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 15px;
  color: var(--muted);
  font-size: .68rem;
  text-align: center;
}

.copy-receipt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.delivery-review-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--php-pink) 42%, var(--php-line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--php-pink) 10%, var(--php-card));
  text-align: left;
}

.delivery-review-cta > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--php-pink);
  color: #2a1822;
}

.delivery-review-cta > span .ui-icon {
  width: 21px;
  height: 21px;
}

.delivery-review-cta strong,
.delivery-review-cta p {
  display: block;
  margin: 0;
}

.delivery-review-cta p {
  margin-top: 3px;
  font-size: .78rem;
}

/* Reseller page: nested panels keep one radius scale from desktop to phone. */
.reseller-shell {
  display: grid;
  gap: 18px;
}

.reseller-hero-card,
.reseller-benefit-grid article {
  overflow: hidden;
  border: 1px solid var(--php-line);
  background: color-mix(in srgb, var(--php-card) 92%, transparent);
  box-shadow: 0 22px 62px rgba(0, 0, 0, .13);
}

.reseller-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(190px, .4fr);
  align-items: center;
  gap: 28px;
  padding: clamp(26px, 5vw, 52px);
  border-radius: 30px;
  isolation: isolate;
}

.reseller-hero-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -80px;
  bottom: -110px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--php-pink) 22%, transparent);
  filter: blur(8px);
}

.reseller-hero-card h1 {
  max-width: 760px;
  margin: 13px 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.055em;
}

.reseller-hero-card p {
  max-width: 690px;
  color: var(--php-muted);
  line-height: 1.75;
}

.reseller-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 24px;
}

.reseller-hero-card aside {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 26px 18px;
  border: 1px solid color-mix(in srgb, var(--php-yellow) 35%, var(--php-line));
  border-radius: 24px;
  background: color-mix(in srgb, var(--php-yellow) 9%, var(--php-card));
  text-align: center;
}

.reseller-hero-card aside > span,
.reseller-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
}

.reseller-hero-card aside > span {
  background: var(--php-yellow);
  color: #342b16;
}

.reseller-hero-card aside strong {
  margin-top: 15px;
  font-size: 2rem;
}

.reseller-hero-card aside small {
  color: var(--php-muted);
}

.reseller-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.reseller-benefit-grid article {
  padding: 22px;
  border-radius: 22px;
}

.reseller-benefit-grid h2 {
  margin: 15px 0 7px;
  font-size: 1rem;
}

.reseller-benefit-grid p {
  margin: 0;
  color: var(--php-muted);
  font-size: .82rem;
  line-height: 1.65;
}

.tone-pink { background: color-mix(in srgb, var(--php-pink) 82%, white); color: #3c2030; }
.tone-blue { background: color-mix(in srgb, var(--php-blue) 82%, white); color: #18313a; }
.tone-green { background: color-mix(in srgb, var(--php-green) 82%, white); color: #183326; }
.tone-yellow { background: color-mix(in srgb, var(--php-yellow) 82%, white); color: #342c17; }

.reseller-content-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 18px;
  scroll-margin-top: 110px;
}

.reseller-content-grid > .php-card {
  height: 100%;
  margin: 0;
}

.reseller-steps ol {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.reseller-steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 13px;
  border: 1px solid var(--php-line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--php-card) 80%, transparent);
}

.reseller-steps li > i {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: color-mix(in srgb, var(--php-blue) 72%, white);
  color: #19323a;
  font-style: normal;
  font-weight: 900;
}

.reseller-steps li span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.reseller-steps li small {
  color: var(--php-muted);
  line-height: 1.55;
}

.reseller-community-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.reseller-community-links a {
  padding: 12px;
  border: 1px solid var(--php-line);
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
}

.reseller-form-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--php-line);
}

.reseller-form-head h2 {
  margin-bottom: 0;
}

.reseller-apply-form label {
  min-width: 0;
}

.reseller-check {
  align-items: flex-start;
  padding: 13px;
  border: 1px solid var(--php-line);
  border-radius: 15px;
  background: color-mix(in srgb, var(--php-card) 80%, transparent);
  font-size: .8rem;
  line-height: 1.55;
}

.reseller-status-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--php-line);
  border-radius: 18px;
  overflow: hidden;
}

.reseller-status-card > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
}

.reseller-status-card.is-active { border-color: rgba(77, 196, 130, .4); background: rgba(77, 196, 130, .09); }
.reseller-status-card.is-active > span { background: var(--php-green); color: #173123; }
.reseller-status-card.is-pending { border-color: rgba(240, 204, 104, .4); background: rgba(240, 204, 104, .08); }
.reseller-status-card.is-pending > span { background: var(--php-yellow); color: #312a18; }
.reseller-status-card.is-blocked { border-color: rgba(239, 91, 120, .42); background: rgba(239, 91, 120, .08); }
.reseller-status-card.is-blocked > span { background: #f06d87; color: #2c1117; }

.reseller-status-card p,
.reseller-status-detail {
  margin: 4px 0 0;
  color: var(--php-muted);
  line-height: 1.55;
}

.reseller-status-detail {
  padding: 14px;
  border: 1px solid var(--php-line);
  border-radius: 15px;
}

/* Full admin control center. */
.admin-php {
  --admin-sidebar: 264px;
  min-height: 100vh;
  background: var(--php-bg);
}

.admin-php::before {
  display: none;
}

.admin-app {
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

.admin-sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--admin-sidebar);
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-right: 1px solid var(--php-line);
  background: color-mix(in srgb, var(--php-card) 96%, #0d0a10);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 15px 19px;
  border-bottom: 1px solid var(--php-line);
  color: var(--php-text);
  text-decoration: none;
}

.admin-brand img {
  width: 46px;
  height: 46px;
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--php-pink) 42%, var(--php-line));
  border-radius: 15px;
  background: color-mix(in srgb, var(--php-pink) 12%, var(--php-card));
  object-fit: contain;
}

.admin-brand span,
.admin-brand strong,
.admin-brand small {
  display: block;
}

.admin-brand strong {
  font-size: 1rem;
  letter-spacing: -.02em;
}

.admin-brand small {
  margin-top: 2px;
  color: var(--php-muted);
  font-size: .68rem;
}

.admin-nav {
  display: grid;
  gap: 7px;
  padding: 18px 13px;
}

.admin-nav-item,
.admin-side-link {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--php-muted);
  font: inherit;
  font-size: .79rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: var(--uy-transition);
}

.admin-nav-item:hover,
.admin-side-link:hover {
  border-color: var(--php-line);
  background: color-mix(in srgb, var(--php-card) 70%, white 3%);
  color: var(--php-text);
}

.admin-nav-item.is-active {
  border-color: color-mix(in srgb, var(--php-blue) 36%, var(--php-line));
  background: color-mix(in srgb, var(--php-blue) 13%, var(--php-card));
  color: var(--php-blue);
}

.admin-nav-item .ui-icon,
.admin-side-link .ui-icon {
  width: 18px;
  height: 18px;
}

.admin-sidebar-foot {
  display: grid;
  gap: 5px;
  padding: 13px;
  border-top: 1px solid var(--php-line);
}

.admin-workspace {
  min-width: 0;
  margin-left: var(--admin-sidebar);
}

.admin-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px clamp(17px, 3vw, 34px);
  border-bottom: 1px solid var(--php-line);
  background: color-mix(in srgb, var(--php-bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.admin-topbar > div,
.admin-top-actions,
.admin-top-actions a,
.admin-live-dot {
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-topbar > div > span,
.admin-topbar > div > i {
  color: var(--php-muted);
  font-size: .75rem;
  font-style: normal;
}

.admin-topbar strong {
  font-size: .79rem;
}

.admin-top-actions a,
.admin-live-dot {
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid var(--php-line);
  border-radius: 12px;
  color: var(--php-text);
  font-size: .72rem;
  font-weight: 750;
  text-decoration: none;
}

.admin-live-dot i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #56d68b;
  box-shadow: 0 0 0 4px rgba(86, 214, 139, .12);
}

.admin-mobile-menu {
  display: none;
}

.admin-main {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px);
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 22px;
}

.admin-summary-grid article {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
  overflow: hidden;
  padding: 17px;
  border: 1px solid var(--php-line);
  border-radius: 20px;
  background: var(--php-card);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .09);
}

.admin-summary-grid article > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.admin-summary-grid small,
.admin-summary-grid span {
  color: var(--php-muted);
  font-size: .66rem;
}

.admin-summary-grid strong {
  overflow-wrap: anywhere;
  font-size: 1.08rem;
}

.admin-metric-icon {
  display: grid;
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  place-items: center;
  border-radius: 15px;
}

.admin-metric-icon .ui-icon {
  width: 20px;
  height: 20px;
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: grid;
  gap: 18px;
  animation: admin-panel-in .2s ease both;
}

@keyframes admin-panel-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.admin-section-head,
.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-section-head {
  min-height: 88px;
}

.admin-section-head h1 {
  margin: 8px 0 4px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  letter-spacing: -.04em;
}

.admin-section-head p,
.admin-card-head p,
.admin-card > p {
  margin: 0;
  color: var(--php-muted);
  font-size: .77rem;
  line-height: 1.6;
}

.admin-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.admin-card,
.admin-review-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--php-line);
  border-radius: 22px;
  background: var(--php-card);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .1);
}

.admin-card {
  padding: 20px;
}

.admin-card-head {
  padding-bottom: 16px;
}

.admin-card-head h2,
.admin-settings-grid h2 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.admin-search {
  display: flex;
  width: min(280px, 100%);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--php-line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--php-bg) 52%, var(--php-card));
}

.admin-search .ui-icon {
  width: 16px;
  height: 16px;
  color: var(--php-muted);
}

.admin-search input {
  min-height: 40px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.admin-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--php-line);
  border-radius: 17px;
  scrollbar-width: thin;
}

.admin-table-wrap table {
  min-width: 820px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .74rem;
}

.admin-table-wrap th {
  background: color-mix(in srgb, var(--php-bg) 62%, var(--php-card));
  color: var(--php-muted);
  font-size: .62rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-table-wrap th,
.admin-table-wrap td {
  padding: 12px;
}

.admin-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table-wrap tbody tr:hover td {
  background: color-mix(in srgb, var(--php-blue) 4%, var(--php-card));
}

.admin-top-buyers-card {
  position: relative;
}

.admin-top-buyers-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffd66b, var(--php-pink), var(--php-blue));
  content: "";
}

.admin-ranking-period {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid color-mix(in srgb, var(--php-pink) 38%, var(--php-line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--php-pink) 10%, var(--php-card));
  color: var(--php-pink);
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-leaderboard-controls,
.admin-leaderboard-controls form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-leaderboard-controls form {
  padding: 5px;
  border: 1px solid var(--php-line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--php-bg) 52%, var(--php-card));
}

.admin-leaderboard-controls label {
  display: grid;
  gap: 1px;
}

.admin-leaderboard-controls label > span {
  padding-left: 10px;
  color: var(--php-muted);
  font-size: .52rem;
  font-weight: 750;
  text-transform: uppercase;
}

.admin-leaderboard-controls select {
  min-width: 155px;
  min-height: 30px;
  padding: 2px 28px 2px 10px;
  border: 0;
  background-color: transparent;
  box-shadow: none;
  font-size: .68rem;
  font-weight: 800;
}

.admin-leaderboard-controls .button {
  min-height: 36px;
  padding: 8px 12px;
  font-size: .64rem;
}

.admin-top-buyers-table table {
  min-width: 1160px;
}

.admin-top-buyers-table th:first-child,
.admin-top-buyers-table td:first-child {
  width: 86px;
  text-align: center;
}

.admin-top-buyers-table tbody tr:first-child td {
  background: color-mix(in srgb, #ffd66b 6%, var(--php-card));
}

.admin-top-buyers-table tbody tr:first-child:hover td {
  background: color-mix(in srgb, #ffd66b 9%, var(--php-card));
}

.admin-rank-badge {
  display: inline-grid;
  min-width: 42px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--php-line);
  border-radius: 11px;
  background: color-mix(in srgb, var(--php-bg) 54%, var(--php-card));
  font-size: .68rem;
  font-weight: 900;
}

.admin-rank-badge.rank-1 {
  border-color: rgba(255, 214, 107, .5);
  background: rgba(255, 214, 107, .14);
  color: #ffd66b;
}

.admin-rank-badge.rank-2 {
  border-color: color-mix(in srgb, var(--php-blue) 45%, var(--php-line));
  background: color-mix(in srgb, var(--php-blue) 12%, var(--php-card));
  color: var(--php-blue);
}

.admin-rank-badge.rank-3 {
  border-color: rgba(221, 145, 98, .46);
  background: rgba(221, 145, 98, .13);
  color: #dd9162;
}

.admin-buyer-cell {
  display: grid;
  min-width: 190px;
  gap: 3px;
}

.admin-buyer-cell strong,
.admin-buyer-cell small {
  overflow-wrap: anywhere;
}

.admin-buyer-cell small {
  color: var(--php-muted);
}

.admin-buyer-type {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border: 1px solid var(--php-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--php-bg) 55%, var(--php-card));
  font-size: .6rem;
  font-weight: 800;
}

.admin-buyer-type.type-reseller {
  border-color: rgba(77, 196, 130, .35);
  background: rgba(77, 196, 130, .1);
  color: #7bdaa5;
}

.admin-buyer-type.type-tamu {
  color: var(--php-muted);
}

.admin-success-count {
  color: var(--php-blue);
  font-size: .82rem;
}

.admin-spend-total {
  color: var(--php-pink);
  white-space: nowrap;
}

.admin-internal-action button {
  border-color: rgba(239, 91, 120, .36) !important;
  color: #ff9cb0 !important;
  white-space: nowrap;
}

.admin-internal-accounts-card {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--php-blue) 5%, transparent), transparent 45%),
    var(--php-card);
}

.admin-internal-count {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--php-line);
  border-radius: 999px;
  color: var(--php-muted);
  font-size: .61rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-internal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-internal-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--php-line);
  border-radius: 15px;
  background: color-mix(in srgb, var(--php-bg) 45%, var(--php-card));
}

.admin-internal-list article > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.admin-internal-list article strong,
.admin-internal-list article small {
  overflow-wrap: anywhere;
}

.admin-internal-list article small {
  color: var(--php-muted);
  font-size: .63rem;
}

.admin-internal-list form {
  margin: 0;
}

.admin-internal-list button {
  min-height: 33px;
  padding: 7px 9px;
  border: 1px solid var(--php-line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--php-card) 72%, white 4%);
  color: var(--php-text);
  font: inherit;
  font-size: .61rem;
  font-weight: 800;
}

.admin-internal-empty {
  min-height: 70px;
  border: 1px dashed var(--php-line);
  border-radius: 15px;
}

.admin-product-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.admin-product-icon {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--php-line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--php-pink) 12%, var(--php-card));
  font-weight: 900;
}

.admin-product-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 5px 9px;
  border: 1px solid var(--php-line);
  border-radius: 999px;
  font-size: .61rem;
  font-weight: 850;
  white-space: nowrap;
}

.admin-state.is-live,
.admin-state.status-active {
  border-color: rgba(77, 196, 130, .38);
  background: rgba(77, 196, 130, .12);
  color: #8ce5b3;
}

html[data-theme="light"] .admin-state.is-live,
html[data-theme="light"] .admin-state.status-active { color: #247e50; }

.admin-state.is-off,
.admin-state.status-rejected,
.admin-state.status-suspended {
  border-color: rgba(239, 91, 120, .34);
  background: rgba(239, 91, 120, .1);
  color: #ff9cb0;
}

.admin-state.status-pending {
  border-color: rgba(240, 204, 104, .35);
  background: rgba(240, 204, 104, .11);
  color: #f0d47f;
}

.admin-row-actions,
.admin-inline-action,
.admin-balance-action,
.admin-secret {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-row-actions form {
  margin: 0;
}

.admin-product-order {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  white-space: nowrap;
}

.admin-product-order label {
  display: flex;
  align-items: center;
  width: 86px;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--php-line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--php-card) 72%, white 4%);
}

.admin-product-order b {
  color: var(--php-muted);
  font-size: .68rem;
}

.admin-product-order input {
  width: 58px;
  min-height: 30px;
  padding: 3px 4px;
  border: 0 !important;
  background: transparent !important;
  color: var(--php-text);
  font: inherit;
  font-size: .68rem;
  font-weight: 850;
  text-align: center;
  box-shadow: none !important;
}

.admin-product-order button {
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, var(--php-blue) 40%, var(--php-line)) !important;
  border-radius: 10px !important;
  background: color-mix(in srgb, var(--php-blue) 10%, var(--php-card));
  color: var(--php-text);
  font: inherit;
  font-size: .61rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-row-actions button,
.admin-table-wrap td > form button,
.admin-inline-action button,
.admin-balance-action button,
.admin-review-card button,
.admin-secret button {
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--php-line) !important;
  border-radius: 10px !important;
  background: color-mix(in srgb, var(--php-card) 72%, white 4%);
  color: var(--php-text);
  font: inherit;
  font-size: .63rem;
  font-weight: 750;
}

.admin-row-actions .ui-icon,
.admin-secret .ui-icon {
  width: 15px;
  height: 15px;
}

.admin-danger {
  border-color: rgba(239, 91, 120, .4) !important;
  color: #ff92a8 !important;
}

.admin-text-link,
.admin-wa {
  color: var(--php-pink);
  font-weight: 750;
  text-decoration: none;
}

.admin-order-product-data {
  display: grid;
  gap: 5px;
  min-width: 205px;
  margin-top: 8px;
  padding: 8px 9px;
  border: 1px solid color-mix(in srgb, var(--php-blue) 20%, var(--php-line));
  border-radius: 11px;
  background: color-mix(in srgb, var(--php-blue) 5%, var(--php-card));
}

.admin-order-product-data > div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.admin-order-product-data > div > span {
  color: var(--php-muted);
  font-size: .56rem;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.admin-order-product-data code {
  min-width: 0;
  overflow: hidden;
  color: var(--php-text);
  font-size: .64rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-order-secret {
  min-width: 0;
  gap: 4px;
}

.admin-order-secret code {
  flex: 1 1 auto;
}

.admin-order-product-data .admin-order-secret button {
  width: 26px;
  min-width: 26px;
  min-height: 26px;
  padding: 4px !important;
  border-radius: 8px !important;
}

.admin-order-product-data .admin-order-secret .ui-icon {
  width: 13px;
  height: 13px;
}

.admin-access-text {
  display: block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-muted {
  color: var(--php-muted);
  font-size: .65rem;
}

.admin-empty {
  display: grid;
  min-height: 90px;
  place-items: center;
  color: var(--php-muted);
  text-align: center;
}

.admin-two-col,
.admin-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 18px;
}

.admin-stack-form {
  display: grid;
  gap: 13px;
}

.admin-stack-form label,
.admin-modal-form > label,
.admin-modal-form .admin-form-grid label,
.admin-upload-row label {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: var(--php-text);
  font-size: .7rem;
  font-weight: 750;
}

.admin-form-note {
  padding: 11px 13px;
  border: 1px solid var(--php-line);
  border-radius: 13px;
  color: var(--php-muted);
  font-size: .67rem;
  line-height: 1.55;
}

.admin-stock-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.admin-stock-summary > strong {
  margin: 12px 0 5px;
  font-size: 2.5rem;
}

.admin-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-review-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: space-between;
  padding: 19px;
}

.admin-review-card > div,
.admin-review-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-review-card blockquote {
  margin: 20px 0;
  font-size: .78rem;
  line-height: 1.7;
}

.admin-review-card footer {
  padding-top: 13px;
  border-top: 1px solid var(--php-line);
}

.admin-review-card footer > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.admin-review-card footer small {
  color: var(--php-muted);
  font-size: .62rem;
}

.admin-settings-grid .admin-card {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 13px;
}

.admin-inline-action select,
.admin-balance-action select,
.admin-balance-action input {
  width: auto;
  min-height: 35px;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: .63rem;
}

.admin-balance-action input {
  width: 105px;
}

.admin-backdrop {
  display: none;
}

.admin-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  place-items: center;
  padding: 18px;
}

.admin-modal.is-open {
  display: grid;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0 !important;
  background: rgba(8, 6, 10, .72);
  backdrop-filter: blur(6px);
}

.admin-modal-card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  border: 1px solid var(--php-line);
  border-radius: 26px;
  background: var(--php-card);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .42);
  overscroll-behavior: contain;
}

.admin-modal-card > header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid var(--php-line);
  background: color-mix(in srgb, var(--php-card) 93%, transparent);
  backdrop-filter: blur(14px);
}

.admin-modal-card > header h2 {
  margin: 7px 0 0;
}

.admin-modal-card > header > button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--php-line);
  border-radius: 13px;
  background: transparent;
  color: var(--php-text);
}

.admin-modal-form {
  display: grid;
  gap: 15px;
  padding: 20px;
}

.admin-modal-form .admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.admin-modal-form input,
.admin-modal-form select,
.admin-modal-form textarea,
.admin-stack-form input,
.admin-stack-form select,
.admin-stack-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--php-line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--php-bg) 52%, var(--php-card));
  color: var(--php-text);
  font: inherit;
}

.admin-modal-form textarea,
.admin-stack-form textarea {
  resize: vertical;
}

.admin-modal-form footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--php-line);
}

.admin-upload-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--php-line);
  border-radius: 17px;
}

.admin-upload-preview {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed var(--php-line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--php-pink) 10%, var(--php-card));
  color: var(--php-muted);
}

.admin-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-upload-row small {
  color: var(--php-muted);
  font-weight: 500;
}

.admin-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
  padding: 13px;
  border: 1px solid var(--php-line);
  border-radius: 14px;
}

.admin-check input {
  width: auto;
  min-height: 0;
}

body.admin-modal-open {
  overflow: hidden;
}

body.admin-menu-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .admin-php {
    --admin-sidebar: 270px;
  }

  .admin-sidebar {
    transform: translateX(-104%);
    box-shadow: 25px 0 70px rgba(0, 0, 0, .32);
    transition: transform var(--uy-transition);
  }

  .admin-sidebar.is-open {
    transform: none;
  }

  .admin-workspace {
    margin-left: 0;
  }

  .admin-mobile-menu {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--php-line);
    border-radius: 13px;
    background: var(--php-card);
    color: var(--php-text);
  }

  .admin-backdrop {
    position: fixed;
    z-index: 35;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0 !important;
    background: rgba(5, 4, 7, .58);
  }

  .admin-menu-open .admin-backdrop {
    display: block;
  }

  .admin-two-col,
  .admin-settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .public-leaderboard-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .public-period-filter {
    justify-content: flex-start;
  }

  .public-leaderboard-grid {
    grid-template-columns: 1fr;
  }

  .delivery-review-cta {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .delivery-review-cta .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .reseller-hero-card,
  .reseller-content-grid {
    grid-template-columns: 1fr;
  }

  .reseller-hero-card {
    padding: 26px 20px;
    border-radius: 24px;
  }

  .reseller-hero-card aside {
    grid-template-columns: auto auto 1fr;
    justify-items: start;
    gap: 12px;
    padding: 16px;
    text-align: left;
  }

  .reseller-hero-card aside strong {
    margin: 0;
  }

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

  .reseller-community-links {
    grid-template-columns: 1fr;
  }

  .admin-main {
    padding: 18px 12px 42px;
  }

  .admin-topbar {
    padding-inline: 12px;
  }

  .admin-topbar > div > span,
  .admin-topbar > div > i,
  .admin-top-actions .admin-live-dot {
    display: none;
  }

  .admin-top-actions a span {
    display: none;
  }

  .admin-top-actions a {
    width: 40px;
    justify-content: center;
    padding-inline: 0;
  }

  .admin-summary-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .admin-summary-grid article {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
    border-radius: 17px;
  }

  .admin-metric-icon {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
    border-radius: 13px;
  }

  .admin-section-head,
  .admin-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-head-actions,
  .admin-head-actions .button,
  .admin-section-head > form .button,
  .admin-search {
    width: 100%;
  }

  .admin-leaderboard-controls,
  .admin-leaderboard-controls form {
    width: 100%;
  }

  .admin-leaderboard-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-leaderboard-controls form label {
    flex: 1 1 auto;
  }

  .admin-leaderboard-controls select {
    width: 100%;
  }

  .admin-internal-list {
    grid-template-columns: 1fr;
  }

  .admin-internal-list article {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-internal-list article form {
    grid-column: 1 / -1;
  }

  .admin-internal-list article button {
    width: 100%;
  }

  .admin-card {
    padding: 14px;
    border-radius: 19px;
  }

  .admin-review-grid {
    grid-template-columns: 1fr;
  }

  .admin-modal {
    padding: 8px;
  }

  .admin-modal-card {
    max-height: calc(100dvh - 16px);
    border-radius: 21px;
  }

  .admin-modal-card > header,
  .admin-modal-form {
    padding: 16px;
  }

  .admin-modal-form .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-modal-form footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .admin-modal-form footer .button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .testimonial-form-panel {
    grid-template-columns: 1fr;
    padding: 16px;
    border-radius: 20px;
  }

  .testimonial-form-panel > * {
    grid-column: 1 !important;
  }

  .reseller-hero-actions,
  .reseller-hero-actions .button {
    width: 100%;
  }

  .reseller-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .reseller-hero-card aside {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .reseller-hero-card aside small {
    grid-column: 2;
  }

  .admin-summary-grid {
    grid-template-columns: 1fr;
  }

  .admin-upload-row {
    grid-template-columns: 1fr;
  }

  .admin-upload-preview {
    width: 72px;
    height: 72px;
  }
}

.admin-bulk-toolbar {
  display: grid;
  grid-template-columns: auto auto minmax(85px, 1fr) minmax(170px, auto) auto auto;
  align-items: end;
  gap: 9px;
  margin-bottom: 12px;
  padding: 11px 12px;
  border: 1px solid var(--php-line);
  border-radius: 15px;
  background: color-mix(in srgb, var(--php-blue) 5%, var(--php-bg));
}

.admin-bulk-select-all,
.admin-bulk-operation,
.admin-bulk-amount,
.admin-page-size {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 !important;
  color: var(--php-muted);
  font-size: .62rem;
  font-weight: 800;
}

.admin-bulk-operation,
.admin-bulk-amount,
.admin-page-size {
  display: grid;
  gap: 4px;
}

.admin-bulk-select-all input,
.admin-list-checkbox {
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  flex: 0 0 18px;
  margin: 0;
  padding: 0 !important;
  border-radius: 6px !important;
  accent-color: var(--php-pink);
  cursor: pointer;
}

.admin-bulk-clear {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--php-line) !important;
  border-radius: 10px !important;
  background: var(--php-card) !important;
  color: var(--php-muted) !important;
  font-size: .61rem !important;
  font-weight: 800 !important;
}

.admin-bulk-toolbar > strong {
  align-self: center;
  color: var(--php-text);
  font-size: .67rem;
}

.admin-bulk-operation select,
.admin-bulk-amount input,
.admin-page-size select {
  min-height: 36px;
  padding: 6px 9px;
  border: 1px solid var(--php-line);
  border-radius: 10px;
  background: var(--php-card);
  color: var(--php-text);
  font-size: .64rem;
  font-weight: 750;
}

.admin-bulk-amount input { width: 130px; }
.admin-bulk-toolbar .button { min-height: 36px; padding: 8px 12px; font-size: .63rem; }
.admin-bulk-toolbar .button:disabled { opacity: .45; cursor: not-allowed; filter: saturate(.3); }

.admin-list-controls,
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-list-controls { margin: 0 0 11px; }
.admin-list-controls:has(.admin-list-search) { justify-content: flex-end; }
.admin-list-controls .admin-list-search { margin-right: auto; }
.admin-pagination {
  margin-top: 11px;
  color: var(--php-muted);
  font-size: .62rem;
  font-weight: 750;
}

.admin-pagination > div { display: flex; align-items: center; gap: 7px; }
.admin-pagination button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--php-line) !important;
  border-radius: 10px !important;
  background: var(--php-card) !important;
  color: var(--php-text) !important;
  font-size: .59rem !important;
  font-weight: 800 !important;
}
.admin-pagination button:disabled { opacity: .4; cursor: not-allowed; }
.admin-pagination strong { min-width: 84px; color: var(--php-text); text-align: center; }

.admin-review-checkbox { display: block; margin: 0 0 12px; }
.admin-internal-list article { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.admin-top-buyers-table th:first-child,
.admin-top-buyers-table td:first-child { width: 46px; }
.admin-top-buyers-table th:nth-child(2),
.admin-top-buyers-table td:nth-child(2) { width: 86px; text-align: center; }

@media (max-width: 900px) {
  .admin-bulk-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .admin-bulk-toolbar > strong { align-self: center; text-align: right; }
  .admin-bulk-operation,
  .admin-bulk-amount { min-width: 0; }
  .admin-bulk-operation select,
  .admin-bulk-amount input,
  .admin-bulk-toolbar .button { width: 100%; }
}

@media (max-width: 600px) {
  .admin-bulk-toolbar { grid-template-columns: 1fr; }
  .admin-bulk-toolbar > strong { text-align: left; }
  .admin-list-controls,
  .admin-pagination { align-items: stretch; flex-direction: column; }
  .admin-list-controls .admin-search,
  .admin-list-controls .admin-page-size,
  .admin-list-controls .admin-page-size select { width: 100%; }
  .admin-pagination > div { display: grid; grid-template-columns: 1fr auto 1fr; }
  .admin-pagination button { width: 100%; }
  .admin-internal-list article { grid-template-columns: auto minmax(0, 1fr) auto; }
  .admin-internal-list article form { grid-column: 1 / -1; }
}
