/* ZevStore — Component Styles (Ecommerce Light Palette) */

/* 1. BUTTONS */
.zs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--zs-sp-2);
  padding: 0.55rem 1.15rem;
  font-family: var(--zs-font-sans);
  font-size: var(--zs-fs-sm);
  font-weight: 600;
  line-height: 1.25;
  border-radius: var(--zs-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--zs-dur-fast) var(--zs-ease),
              border-color var(--zs-dur-fast) var(--zs-ease),
              color var(--zs-dur-fast) var(--zs-ease),
              box-shadow var(--zs-dur-fast) var(--zs-ease),
              transform var(--zs-dur-fast) var(--zs-ease);
  user-select: none;
  white-space: nowrap;
}

.zs-btn:focus-visible {
  outline: 2px solid var(--zs-purple);
  outline-offset: 2px;
}

.zs-btn:active {
  transform: scale(0.98);
}

.zs-btn-primary {
  background: var(--zs-purple);
  color: #FFFFFF;
  border-color: var(--zs-purple);
  box-shadow: 0 1px 3px rgba(124, 58, 237, 0.2);
}

.zs-btn-primary:hover {
  background: var(--zs-purple-hover);
  border-color: var(--zs-purple-hover);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.zs-btn-secondary {
  background: var(--zs-surface-2);
  color: var(--zs-text-primary);
  border-color: var(--zs-border-subtle);
}

.zs-btn-secondary:hover {
  background: var(--zs-surface-3);
  border-color: var(--zs-border-strong);
}

.zs-btn-ghost {
  background: transparent;
  color: var(--zs-text-secondary);
  border-color: var(--zs-border-subtle);
}

.zs-btn-ghost:hover {
  background: var(--zs-surface-2);
  color: var(--zs-text-primary);
}

.zs-btn-danger-outline {
  background: transparent;
  color: var(--zs-error);
  border-color: rgba(220, 38, 38, 0.3);
}

.zs-btn-danger-outline:hover {
  background: var(--zs-error-bg);
  border-color: var(--zs-error);
}

.zs-btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: var(--zs-fs-xs);
  border-radius: var(--zs-radius-sm);
}

.zs-btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: var(--zs-fs-base);
  border-radius: var(--zs-radius-md);
}

.zs-btn-block {
  width: 100%;
}

.zs-btn-flex-1 {
  flex: 1;
}

.zs-btn:disabled,
.zs-btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* 2. BADGES & TAGS */
.zs-badge,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--zs-radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.zs-badge-purple,
.badge-purple {
  background: var(--zs-lavender-subtle);
  color: var(--zs-purple);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.zs-badge-neutral {
  background: var(--zs-surface-2);
  color: var(--zs-text-muted);
  border: 1px solid var(--zs-border-subtle);
}

.zs-badge-hot,
.badge-danger {
  background: var(--zs-error-bg);
  color: var(--zs-error);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.zs-badge-new,
.badge-success {
  background: var(--zs-success-bg);
  color: var(--zs-success);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.badge-warning {
  background: var(--zs-warning-bg);
  color: var(--zs-warning);
  border: 1px solid rgba(217, 119, 6, 0.25);
}

/* 3. FORM CONTROLS & TEXT HELPERS */
.zs-input,
.zs-select,
.zs-textarea {
  width: 100%;
  padding: 0.55rem 0.85rem;
  font-family: var(--zs-font-sans);
  font-size: var(--zs-fs-sm);
  color: var(--zs-text-primary);
  background: #FFFFFF;
  border: 1px solid var(--zs-border-subtle);
  border-radius: var(--zs-radius-sm);
  outline: none;
  transition: border-color var(--zs-dur-fast) var(--zs-ease),
              box-shadow var(--zs-dur-fast) var(--zs-ease);
}

.zs-input:focus,
.zs-select:focus,
.zs-textarea:focus {
  border-color: var(--zs-purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.zs-input::placeholder,
.zs-textarea::placeholder {
  color: var(--zs-text-dim);
}

.zs-label {
  display: block;
  font-size: var(--zs-fs-xs);
  font-weight: 600;
  color: var(--zs-text-secondary);
  margin-bottom: var(--zs-sp-1);
}

.zs-label-caps {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--zs-purple);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.zs-input-group {
  margin-bottom: 14px;
}

.zs-input-group-lg {
  margin-bottom: 20px;
}

.zs-form-hint {
  margin: 0 0 12px;
  font-size: var(--zs-fs-xs);
  color: var(--zs-text-muted);
  line-height: 1.5;
}

.text-muted,
.zs-text-muted {
  color: var(--zs-text-muted);
}

.zs-text-primary {
  color: var(--zs-text-primary);
}

.zs-text-purple {
  color: var(--zs-purple);
}

.zs-text-success {
  color: var(--zs-success);
}

.zs-text-warning {
  color: var(--zs-warning);
}

.zs-text-danger {
  color: var(--zs-error);
}

/* 4. PRODUCT CARDS */
.zs-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--zs-border-subtle);
  border-radius: var(--zs-radius-md);
  overflow: hidden;
  box-shadow: var(--zs-shadow-sm);
  transition: transform var(--zs-dur-fast) var(--zs-ease),
              box-shadow var(--zs-dur-fast) var(--zs-ease),
              border-color var(--zs-dur-fast) var(--zs-ease);
}

.zs-product-card:hover {
  transform: translateY(-2px);
  border-color: var(--zs-border-strong);
  box-shadow: var(--zs-shadow-md);
}

.zs-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--zs-surface-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zs-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--zs-dur-base) var(--zs-ease);
}

.zs-product-card:hover .zs-card-image {
  transform: scale(1.02);
}

.zs-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--zs-surface-2);
}

.zs-thumb-fallback .icon {
  width: 44px;
  height: 44px;
  opacity: 0.8;
}

.zs-card-platform {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.75);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.04em;
  z-index: 2;
}

.zs-card-body {
  padding: 12px 14px 4px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.zs-card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.zs-card-meta-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--zs-purple);
}

.zs-card-meta-version {
  font-size: 11px;
  color: var(--zs-text-muted);
}

.zs-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--zs-deep);
  margin: 0 0 6px;
  line-height: 1.35;
}

.zs-card-desc {
  font-size: 12px;
  color: var(--zs-text-secondary);
  line-height: 1.45;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zs-card-footer {
  padding: 10px 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--zs-surface-2);
}

.zs-card-price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.zs-card-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--zs-purple);
}

.zs-card-actions {
  display: flex;
  gap: 6px;
}

/* 5. MODAL DIALOGS */
.zs-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--zs-sp-4);
  overflow-y: auto;
}

.zs-modal-backdrop[data-open="true"] {
  display: flex;
}

.zs-modal {
  position: fixed;
  inset: 0;
  z-index: 1010;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--zs-sp-4);
  overflow-y: auto;
}

.zs-modal[data-open="true"] {
  display: flex;
}

.zs-modal-panel,
.zs-modal-container {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: #FFFFFF;
  border: 1px solid var(--zs-border-subtle);
  border-radius: var(--zs-radius-lg);
  box-shadow: var(--zs-shadow-lg);
  color: var(--zs-text-primary);
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.zs-modal-sm {
  max-width: 440px;
}

.zs-modal-md {
  max-width: 520px;
}

.zs-modal-lg {
  max-width: 680px;
}

.zs-modal-xl {
  max-width: 900px;
}

.zs-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--zs-sp-3);
  padding: var(--zs-sp-4) var(--zs-sp-6);
  border-bottom: 1px solid var(--zs-border-subtle);
  background: var(--zs-surface-1);
}

.zs-modal-header-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.zs-modal-title {
  margin: 0;
  font-size: var(--zs-fs-lg);
  font-weight: 750;
  color: var(--zs-deep);
}

.zs-modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--zs-text-muted);
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
  border-radius: var(--zs-radius-sm);
  transition: color var(--zs-dur-fast) var(--zs-ease),
              background-color var(--zs-dur-fast) var(--zs-ease);
}

.zs-modal-close:hover {
  color: var(--zs-text-primary);
  background: var(--zs-surface-2);
}

.zs-modal-close:focus-visible {
  outline: 2px solid var(--zs-purple);
  outline-offset: 2px;
}

.zs-modal-body {
  padding: var(--zs-sp-5) var(--zs-sp-6);
  overflow-y: auto;
  flex: 1;
}

/* 6. PRODUCT DETAIL MODAL SPECIFICS */
.zs-detail-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.zs-detail-header-block {
  display: flex;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--zs-border-subtle);
  padding-bottom: 16px;
}

.zs-detail-media-wrap {
  width: 90px;
  height: 90px;
  border-radius: var(--zs-radius-sm);
  overflow: hidden;
  border: 1px solid var(--zs-border-subtle);
  flex-shrink: 0;
  background: var(--zs-surface-2);
  display: grid;
  place-items: center;
}

.zs-detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zs-detail-headline {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.zs-detail-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.zs-detail-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--zs-deep);
}

.zs-detail-price-row {
  margin-top: 2px;
}

.zs-detail-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--zs-purple);
}

.zs-detail-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--zs-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 6px;
}

.zs-detail-desc {
  font-size: 13px;
  color: var(--zs-text-secondary);
  line-height: 1.55;
  margin: 0;
}

.zs-detail-features-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--zs-text-secondary);
  line-height: 1.6;
}

.zs-detail-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--zs-surface-2);
  padding: 12px 14px;
  border-radius: var(--zs-radius-sm);
  font-size: 12px;
  color: var(--zs-text-secondary);
}

.zs-detail-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.zs-detail-actions-row .zs-btn {
  flex: 1;
}

/* 7. CART DRAWER & MOBILE NAV DRAWER */
.zs-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 380px;
  background: #FFFFFF;
  border-left: 1px solid var(--zs-border-subtle);
  box-shadow: var(--zs-shadow-lg);
  z-index: 1020;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--zs-dur-base) var(--zs-ease);
}

.zs-cart-drawer[data-open="true"] {
  transform: translateX(0);
}

.zs-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--zs-sp-4);
  border-bottom: 1px solid var(--zs-border-subtle);
}

.zs-cart-header-title {
  margin: 0;
  font-size: var(--zs-fs-lg);
  font-weight: 800;
  color: var(--zs-deep);
}

.zs-cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: var(--zs-sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--zs-sp-3);
}

.zs-cart-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--zs-text-muted);
}

.zs-cart-empty-icon {
  display: block;
  margin: 0 auto 12px;
  opacity: 0.45;
  color: var(--zs-purple);
}

.zs-cart-empty-text {
  margin: 0;
  font-size: var(--zs-fs-sm);
}

.zs-cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--zs-radius-sm);
  background: var(--zs-surface-2);
  border: 1px solid var(--zs-border-subtle);
}

.zs-cart-item-info {
  flex: 1;
  min-width: 0;
}

.zs-cart-item-title {
  font-weight: 700;
  font-size: var(--zs-fs-sm);
  color: var(--zs-deep);
  margin-bottom: 4px;
}

.zs-cart-item-price {
  color: var(--zs-purple);
  font-weight: 700;
  font-size: var(--zs-fs-xs);
}

.zs-cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.zs-cart-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--zs-border-subtle);
  background: #FFFFFF;
  color: var(--zs-text-primary);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--zs-dur-fast) var(--zs-ease),
              background-color var(--zs-dur-fast) var(--zs-ease);
}

.zs-cart-qty-btn:hover {
  border-color: var(--zs-purple);
  background: var(--zs-lavender-subtle);
}

.zs-cart-qty-val {
  min-width: 20px;
  text-align: center;
  font-size: var(--zs-fs-sm);
  font-weight: 700;
  color: var(--zs-deep);
}

.zs-cart-remove-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--zs-error);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  transition: background-color var(--zs-dur-fast) var(--zs-ease);
}

.zs-cart-remove-btn:hover {
  background: var(--zs-error-bg);
}

.zs-cart-footer {
  padding: var(--zs-sp-4);
  border-top: 1px solid var(--zs-border-subtle);
  background: #FFFFFF;
}

.zs-cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--zs-sp-3);
}

.zs-cart-total-label {
  font-size: var(--zs-fs-sm);
  font-weight: 600;
  color: var(--zs-text-secondary);
}

.zs-cart-total-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--zs-purple);
}

.zs-mobile-nav-list {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zs-mobile-nav-link {
  font-size: 1rem;
  padding-block: 8px;
  color: var(--zs-text-secondary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--zs-surface-2);
  transition: color var(--zs-dur-fast) var(--zs-ease);
}

.zs-mobile-nav-link:hover {
  color: var(--zs-purple);
}

.zs-mobile-nav-auth {
  color: var(--zs-purple);
  font-weight: 700;
}

/* 8. WALLET & AUTH PILLS */
.zs-wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--zs-surface-2);
  border: 1px solid var(--zs-border-subtle);
  border-radius: var(--zs-radius-sm);
  cursor: pointer;
  user-select: none;
  transition: background-color var(--zs-dur-fast) var(--zs-ease),
              border-color var(--zs-dur-fast) var(--zs-ease);
}

.zs-wallet-pill:hover {
  background: var(--zs-surface-3);
  border-color: var(--zs-border-strong);
}

.zs-wallet-pill:focus-visible {
  outline: 2px solid var(--zs-purple);
  outline-offset: 2px;
}

.zs-wallet-icon {
  color: var(--zs-purple);
  display: grid;
  place-items: center;
}

.zs-wallet-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.zs-wallet-label {
  font-size: 10px;
  color: var(--zs-text-muted);
}

.zs-wallet-balance {
  font-size: 12px;
  font-weight: 700;
  color: var(--zs-deep);
}

.zs-btn-quick-deposit {
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  background: var(--zs-purple);
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color var(--zs-dur-fast) var(--zs-ease);
}

.zs-btn-quick-deposit:hover {
  background: var(--zs-purple-hover);
}

.zs-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: transparent;
  border: 1px solid var(--zs-border-subtle);
  border-radius: var(--zs-radius-sm);
  color: var(--zs-text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--zs-dur-fast) var(--zs-ease),
              border-color var(--zs-dur-fast) var(--zs-ease),
              color var(--zs-dur-fast) var(--zs-ease);
}

.zs-auth-btn:hover {
  background: var(--zs-surface-2);
  color: var(--zs-text-primary);
  border-color: var(--zs-border-strong);
}

.zs-auth-btn:focus-visible {
  outline: 2px solid var(--zs-purple);
  outline-offset: 2px;
}

.zs-auth-btn.is-authenticated {
  background: var(--zs-lavender-subtle);
  color: var(--zs-purple);
  border-color: rgba(124, 58, 237, 0.25);
}

/* 8.5 CUSTOMER AUTH MODAL */
.auth-tabs-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--zs-surface-2);
  padding: 4px;
  border-radius: var(--zs-radius-sm);
  margin-bottom: 18px;
}

.auth-tab-btn {
  padding: 8px 12px;
  font-family: var(--zs-font-sans);
  font-size: var(--zs-fs-xs);
  font-weight: 700;
  color: var(--zs-text-secondary);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color var(--zs-dur-fast) var(--zs-ease),
              color var(--zs-dur-fast) var(--zs-ease),
              box-shadow var(--zs-dur-fast) var(--zs-ease);
}

.auth-tab-btn.active {
  background: #FFFFFF;
  color: var(--zs-purple);
  box-shadow: var(--zs-shadow-sm);
}

.auth-error-box {
  display: none;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: var(--zs-radius-sm);
  background: var(--zs-error-bg);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: var(--zs-error);
  font-size: var(--zs-fs-xs);
  font-weight: 600;
}

.auth-error-box.visible {
  display: block;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper .zs-input {
  padding-right: 56px;
}

.password-toggle-btn {
  position: absolute;
  right: 8px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--zs-purple);
  background: var(--zs-lavender-subtle);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.auth-switch-text {
  margin-top: 14px;
  text-align: center;
  font-size: var(--zs-fs-xs);
  color: var(--zs-text-secondary);
}

.auth-switch-link {
  color: var(--zs-purple);
  font-weight: 700;
  text-decoration: none;
}

.auth-switch-link:hover {
  text-decoration: underline;
}

/* 9. WALLET OVERVIEW, LEDGER & ORDER HISTORY */
.wallet-user-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  background: var(--zs-surface-2);
  border: 1px solid var(--zs-border-subtle);
  border-radius: var(--zs-radius-sm);
}

.wallet-user-title {
  font-size: var(--zs-fs-sm);
  font-weight: 700;
  color: var(--zs-deep);
}

.wallet-user-subtitle {
  font-size: var(--zs-fs-xs);
  color: var(--zs-text-muted);
}

.wallet-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.wallet-metric-card {
  padding: 12px 14px;
  border-radius: var(--zs-radius-sm);
  background: var(--zs-surface-2);
  border: 1px solid var(--zs-border-subtle);
}

.wallet-metric-card.primary {
  background: var(--zs-lavender-subtle);
  border-color: rgba(124, 58, 237, 0.25);
}

.wallet-metric-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--zs-text-muted);
  margin-bottom: 4px;
}

.wallet-metric-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--zs-deep);
}

.wallet-metric-card.primary .wallet-metric-value {
  color: var(--zs-purple);
}

.wallet-actions-bar {
  margin-bottom: 16px;
  display: flex;
  justify-content: flex-end;
}

.wallet-tabs-bar {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--zs-border-subtle);
  margin-bottom: 14px;
  overflow-x: auto;
}

.wallet-tab-btn,
.admin-tab-btn {
  padding: 8px 12px;
  font-family: var(--zs-font-sans);
  font-size: var(--zs-fs-xs);
  font-weight: 700;
  color: var(--zs-text-secondary);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--zs-dur-fast) var(--zs-ease),
              border-color var(--zs-dur-fast) var(--zs-ease);
}

.wallet-tab-btn.active,
.admin-tab-btn.active {
  color: var(--zs-purple);
  border-bottom-color: var(--zs-purple);
}

.ledger-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.ledger-empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--zs-text-muted);
  font-size: var(--zs-fs-xs);
  background: var(--zs-surface-1);
  border: 1px dashed var(--zs-border-subtle);
  border-radius: var(--zs-radius-sm);
}

.ledger-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--zs-surface-1);
  border: 1px solid var(--zs-border-subtle);
  border-radius: var(--zs-radius-sm);
}

.ledger-item-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ledger-item-title {
  font-size: var(--zs-fs-xs);
  font-weight: 700;
  color: var(--zs-deep);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ledger-item-meta {
  font-size: 11px;
  color: var(--zs-text-muted);
}

.ledger-item-right {
  text-align: right;
  flex-shrink: 0;
}

.ledger-item-amount {
  font-size: var(--zs-fs-sm);
  font-weight: 800;
}

.ledger-item-amount.positive {
  color: var(--zs-success);
}

.ledger-item-amount.negative {
  color: var(--zs-error);
}

.ledger-item-balance {
  font-size: 11px;
  color: var(--zs-text-muted);
}

.order-history-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: var(--zs-surface-1);
  border: 1px solid var(--zs-border-subtle);
  border-radius: var(--zs-radius-sm);
}

.order-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.order-history-code {
  font-weight: 800;
  font-size: var(--zs-fs-xs);
  color: var(--zs-deep);
}

.order-history-date {
  font-size: 11px;
  color: var(--zs-text-muted);
}

.order-history-items {
  font-size: var(--zs-fs-xs);
  color: var(--zs-text-secondary);
}

.order-history-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--zs-surface-2);
}

.order-history-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.order-history-total {
  font-weight: 800;
  font-size: var(--zs-fs-sm);
  color: var(--zs-purple);
}

/* 10. DEPOSIT MODAL */
.preset-amounts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.preset-amount-btn {
  padding: 10px 8px;
  font-family: var(--zs-font-sans);
  font-size: var(--zs-fs-xs);
  font-weight: 700;
  color: var(--zs-text-primary);
  background: var(--zs-surface-2);
  border: 1px solid var(--zs-border-subtle);
  border-radius: var(--zs-radius-sm);
  cursor: pointer;
  transition: background-color var(--zs-dur-fast) var(--zs-ease),
              border-color var(--zs-dur-fast) var(--zs-ease),
              color var(--zs-dur-fast) var(--zs-ease);
}

.preset-amount-btn:hover {
  border-color: var(--zs-purple);
}

.preset-amount-btn.active {
  background: var(--zs-purple);
  color: #FFFFFF;
  border-color: var(--zs-purple);
}

.deposit-custom-box {
  margin-top: 12px;
}

.deposit-submit-btn {
  margin-top: 16px;
}

.deposit-status-banner {
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: var(--zs-radius-sm);
  background: var(--zs-lavender-subtle);
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.deposit-status-title {
  margin: 0 0 6px;
  font-size: var(--zs-fs-sm);
  font-weight: 750;
  color: var(--zs-deep);
}

.deposit-status-desc {
  margin: 0;
  font-size: var(--zs-fs-xs);
  color: var(--zs-text-secondary);
  line-height: 1.55;
}

.deposit-support-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.deposit-step-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.countdown-box {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--zs-radius-full);
  background: var(--zs-warning-bg);
  color: var(--zs-warning);
  font-size: 11px;
  font-weight: 700;
}

.bank-details-card {
  background: var(--zs-surface-2);
  border: 1px solid var(--zs-border-subtle);
  border-radius: var(--zs-radius-sm);
  padding: 12px 14px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bank-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: var(--zs-fs-xs);
}

.bank-detail-label {
  color: var(--zs-text-muted);
}

.bank-detail-val {
  font-weight: 700;
  color: var(--zs-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-copy-chip {
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--zs-purple);
  background: #FFFFFF;
  border: 1px solid var(--zs-border-subtle);
  border-radius: 4px;
  cursor: pointer;
}

/* 11. PURCHASE CONFIRMATION & RECEIPT MODALS */
.purchase-items-list {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.purchase-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--zs-surface-2);
  border: 1px solid var(--zs-border-subtle);
  border-radius: var(--zs-radius-sm);
}

.purchase-item-name {
  font-weight: 700;
  font-size: var(--zs-fs-xs);
  color: var(--zs-deep);
}

.purchase-item-meta {
  font-size: 11px;
  color: var(--zs-text-muted);
}

.purchase-item-price {
  font-weight: 800;
  font-size: var(--zs-fs-xs);
  color: var(--zs-purple);
}

.purchase-balance-box {
  background: var(--zs-surface-2);
  border: 1px solid var(--zs-border-subtle);
  border-radius: var(--zs-radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.purchase-calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--zs-fs-xs);
  color: var(--zs-text-secondary);
}

.purchase-calc-row.highlight {
  padding-top: 6px;
  border-top: 1px solid var(--zs-border-subtle);
  font-weight: 700;
  color: var(--zs-deep);
}

.insufficient-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--zs-radius-sm);
  background: var(--zs-error-bg);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: var(--zs-error);
  font-size: var(--zs-fs-xs);
}

.insufficient-shortfall {
  font-size: 11px;
}

.purchase-email-box {
  margin-block: 14px;
}

.purchase-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.receipt-summary-card {
  background: var(--zs-surface-2);
  border: 1px solid var(--zs-border-subtle);
  border-radius: var(--zs-radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: var(--zs-fs-xs);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.receipt-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.receipt-grant-card {
  padding: 12px 14px;
  margin-bottom: 10px;
  background: var(--zs-surface-1);
  border: 1px solid var(--zs-border-subtle);
  border-radius: var(--zs-radius-sm);
}

.receipt-grant-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.receipt-grant-title {
  font-weight: 700;
  font-size: var(--zs-fs-sm);
  color: var(--zs-deep);
}

.receipt-grant-meta {
  font-size: 11px;
  color: var(--zs-text-muted);
}

.receipt-grant-note {
  margin: 0 0 10px;
  font-size: var(--zs-fs-xs);
  color: var(--zs-text-secondary);
  line-height: 1.5;
}

.receipt-grant-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* 12. ADMIN DASHBOARD MODAL */
.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.admin-metric-card {
  padding: 12px 14px;
  background: var(--zs-surface-2);
  border: 1px solid var(--zs-border-subtle);
  border-radius: var(--zs-radius-sm);
}

.admin-metric-card .title {
  font-size: 11px;
  font-weight: 600;
  color: var(--zs-text-muted);
  margin-bottom: 4px;
}

.admin-metric-card .val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--zs-deep);
}

.admin-table-container {
  overflow-x: auto;
  border: 1px solid var(--zs-border-subtle);
  border-radius: var(--zs-radius-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--zs-fs-xs);
}

.admin-table th,
.admin-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--zs-border-subtle);
}

.admin-table th {
  background: var(--zs-surface-2);
  color: var(--zs-text-secondary);
  font-weight: 700;
}

.admin-cell-mono {
  font-family: var(--zs-font-mono);
  font-weight: 700;
  color: var(--zs-purple);
}

.admin-cell-bold {
  font-weight: 700;
}

.admin-cell-primary {
  font-weight: 700;
  color: var(--zs-deep);
}

.admin-cell-positive {
  font-weight: 700;
  color: var(--zs-success);
}

.admin-cell-negative {
  font-weight: 700;
  color: var(--zs-error);
}

.admin-cell-muted {
  font-size: 11px;
  color: var(--zs-text-muted);
}

.admin-cell-sub {
  font-size: 11px;
  color: var(--zs-text-secondary);
}

.admin-empty-cell {
  text-align: center !important;
  color: var(--zs-text-muted);
  padding: 20px !important;
}

.admin-adj-form {
  max-width: 480px;
  margin-inline: auto;
}

.admin-footer-bar {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--zs-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-footer-note {
  font-size: 11px;
  color: var(--zs-text-dim);
}

/* Product Catalog Management UI */
.admin-products-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.admin-product-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 280px;
}

.admin-product-search-bar .zs-input {
  flex: 1;
}

.admin-product-search-bar .zs-select {
  width: auto;
  min-width: 150px;
}

.admin-subcard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.admin-product-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.admin-product-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

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

.admin-product-thumb {
  width: 36px;
  height: 36px;
  border-radius: var(--zs-radius-sm);
  background: var(--zs-surface-2);
  border: 1px solid var(--zs-border-subtle);
  object-fit: cover;
  flex-shrink: 0;
}

.admin-product-info {
  display: flex;
  flex-direction: column;
}

.admin-product-title {
  font-weight: 700;
  color: var(--zs-deep);
}

.admin-product-meta {
  font-size: 11px;
  font-family: var(--zs-font-mono);
  color: var(--zs-text-muted);
}

.admin-action-btn-group {
  display: inline-flex;
  gap: 6px;
}

.admin-asset-current-info {
  margin-top: 8px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: var(--zs-surface-2);
  border-radius: var(--zs-radius-sm);
  font-size: var(--zs-fs-xs);
  border: 1px solid var(--zs-border-subtle);
  color: var(--zs-deep);
}

/* 13. FLOATING SUPPORT WIDGET */
.zs-floating-support {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 850;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

.zs-floating-support * {
  pointer-events: auto;
}

.zs-support-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--zs-purple);
  color: #FFFFFF;
  border: none;
  border-radius: var(--zs-radius-full);
  padding: 9px 16px 9px 12px;
  font-family: var(--zs-font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
  transition: background-color var(--zs-dur-fast) var(--zs-ease),
              transform var(--zs-dur-fast) var(--zs-ease),
              box-shadow var(--zs-dur-fast) var(--zs-ease);
}

.zs-support-toggle-btn:hover {
  background: var(--zs-purple-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.45);
}

.zs-support-toggle-btn:focus-visible {
  outline: 2px solid var(--zs-purple);
  outline-offset: 2px;
}

/* Strict Icon State Visibility */
.zs-support-toggle-btn .zs-support-icon.close {
  display: none !important;
}

.zs-support-toggle-btn .zs-support-icon.default {
  display: block !important;
}

.zs-support-toggle-btn[aria-expanded="true"] .zs-support-icon.default {
  display: none !important;
}

.zs-support-toggle-btn[aria-expanded="true"] .zs-support-icon.close {
  display: block !important;
}

.zs-support-popover {
  display: none;
  width: 290px;
  background: #FFFFFF;
  border: 1px solid var(--zs-border-subtle);
  border-radius: var(--zs-radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  margin-bottom: 10px;
  overflow: hidden;
  animation: zs-popover-in var(--zs-dur-fast) var(--zs-ease);
}

.zs-support-popover[data-open="true"] {
  display: block;
}

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

.zs-support-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--zs-surface-2);
  border-bottom: 1px solid var(--zs-border-subtle);
}

.zs-support-popover-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--zs-deep);
}

.zs-support-popover-close {
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--zs-text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.zs-support-popover-body {
  padding: 14px;
}

.zs-support-popover-desc {
  font-size: 12px;
  color: var(--zs-text-secondary);
  margin: 0 0 12px;
  line-height: 1.45;
}

.zs-support-channels {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zs-support-channel-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--zs-radius-sm);
  text-decoration: none;
  border: 1px solid var(--zs-border-subtle);
  background: var(--zs-surface-2);
  transition: background-color var(--zs-dur-fast) var(--zs-ease),
              border-color var(--zs-dur-fast) var(--zs-ease);
}

.zs-support-channel-btn:hover {
  background: var(--zs-surface-3);
  border-color: var(--zs-purple);
}

.zs-support-channel-btn .channel-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.zs-support-channel-btn .channel-content {
  display: flex;
  flex-direction: column;
}

.zs-support-channel-btn .channel-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--zs-deep);
}

.zs-support-channel-btn .channel-sub {
  font-size: 11px;
  color: var(--zs-text-muted);
}

/* 14. FAQ ACCORDION */
.zs-accordion,
.zs-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zs-accordion-item,
.zs-faq-item {
  border: 1px solid var(--zs-border-subtle);
  border-radius: var(--zs-radius-md);
  background: #FFFFFF;
  overflow: hidden;
  box-shadow: var(--zs-shadow-sm);
}

.zs-accordion-trigger,
.zs-faq-trigger {
  width: 100%;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: none;
  font-family: var(--zs-font-sans);
  font-size: var(--zs-fs-base);
  font-weight: 700;
  color: var(--zs-deep);
  cursor: pointer;
  text-align: left;
  list-style: none;
}

.zs-accordion-trigger::-webkit-details-marker {
  display: none;
}

.zs-accordion-chevron {
  width: 18px;
  height: 18px;
  color: var(--zs-purple);
  flex-shrink: 0;
  transition: transform var(--zs-dur-fast) var(--zs-ease);
}

.zs-accordion-item[open] .zs-accordion-chevron {
  transform: rotate(180deg);
}

.zs-accordion-content,
.zs-faq-content {
  padding: 0 18px 16px;
  font-size: var(--zs-fs-sm);
  color: var(--zs-text-secondary);
  line-height: 1.6;
}

/* 15. TOAST NOTIFICATIONS */
.zs-toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.zs-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--zs-radius-sm);
  background: var(--zs-deep);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--zs-shadow-md);
  animation: zs-toast-in var(--zs-dur-fast) var(--zs-ease);
}

.zs-toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: var(--zs-radius-full);
  background: rgba(255, 255, 255, 0.15);
  font-size: 11px;
  flex-shrink: 0;
}

.zs-toast-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}

@keyframes zs-toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 15.5 HARDENED CATALOG, ORDER ENTITLEMENT & ADMIN PORTAL CONTROLS */
.zs-card-status-row {
  margin-top: auto;
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.order-item-entitlement-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-block: 4px;
  flex-wrap: wrap;
}

.admin-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: var(--zs-radius-sm);
  background: var(--zs-error-bg);
  border: 1px solid rgba(185, 28, 28, 0.28);
  color: var(--zs-error);
  font-size: var(--zs-fs-xs);
  font-weight: 600;
}

.admin-section-heading {
  margin: 14px 0 8px;
  font-size: var(--zs-fs-xs);
  font-weight: 700;
  color: var(--zs-deep);
}

.admin-subcard {
  margin: 12px 0 16px;
  padding: 14px 16px;
  background: var(--zs-surface-2);
  border: 1px solid var(--zs-border-subtle);
  border-radius: var(--zs-radius-sm);
}

.admin-pager-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.admin-pager-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-user-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-user-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  max-height: 200px;
  overflow-y: auto;
}

.admin-user-pick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: var(--zs-surface-1);
  border: 1px solid var(--zs-border-subtle);
  border-radius: var(--zs-radius-sm);
}

.admin-user-pick-row.selected {
  background: var(--zs-lavender-subtle);
  border-color: rgba(124, 58, 237, 0.35);
}

.admin-target-box {
  margin-bottom: 14px;
}

.admin-target-placeholder {
  padding: 10px 12px;
  border-radius: var(--zs-radius-sm);
  background: var(--zs-warning-bg);
  border: 1px dashed rgba(180, 83, 9, 0.35);
  color: var(--zs-warning);
  font-size: var(--zs-fs-xs);
  font-weight: 600;
}

.admin-target-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--zs-radius-sm);
  background: var(--zs-lavender-subtle);
  border: 1px solid rgba(124, 58, 237, 0.35);
  font-size: var(--zs-fs-xs);
  flex-wrap: wrap;
}

.admin-confirm-check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
  font-size: var(--zs-fs-xs);
  color: var(--zs-text-secondary);
  cursor: pointer;
}

.admin-confirm-check-row input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--zs-purple);
}

@media (max-width: 640px) {
  .zs-admin-btn-label {
    display: none;
  }
}

.admin-image-picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.admin-image-preview-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--zs-radius-sm);
  background: var(--zs-surface-2);
  border: 1px solid var(--zs-border-subtle);
  object-fit: cover;
  flex-shrink: 0;
}

.admin-image-picker-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.admin-btn-file-label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
}

.zs-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.zs-input-sm {
  padding: 6px 10px;
  font-size: var(--zs-fs-xs);
}

/* Enhanced Storefront Animations & Micro-Interactions */
@keyframes cardEntrance {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.zs-product-card {
  animation: cardEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.zs-product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 14px 28px -6px rgba(124, 58, 237, 0.16), 0 6px 12px -2px rgba(0, 0, 0, 0.05);
}

.zs-product-card:hover .zs-card-image {
  transform: scale(1.05);
}

@keyframes readyPulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.35);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
  }
}

.badge-success {
  animation: readyPulseGlow 3s infinite ease-in-out;
}

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

.zs-filter-btn {
  transition: background-color 0.2s ease,
              color 0.2s ease,
              border-color 0.2s ease,
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.zs-filter-btn[data-active="true"] {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.28);
}

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