﻿/* Super Admin portal â€” colorful modern dashboard */
:root {
  --adm-violet: #7c3aed;
  --adm-indigo: #6366f1;
  --adm-blue: #3b82f6;
  --adm-cyan: #06b6d4;
  --adm-mint: #10b981;
  --adm-amber: #f59e0b;
  --adm-rose: #f43f5e;
  --adm-pink: #ec4899;
  --adm-side-bg: linear-gradient(180deg, #1e1b4b 0%, #312e81 45%, #3730a3 100%);
  --adm-top-bg: linear-gradient(90deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
}

.adm-portal-body {
  margin: 0;
  background: #f0f4ff;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: #1e293b;
  min-height: 100vh;
}

.adm-portal {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* â”€â”€ Top header â”€â”€ */
.adm-portal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: var(--adm-top-bg);
  color: #fff;
  box-shadow: 0 4px 24px rgba(79, 70, 229, 0.35);
  position: relative;
  z-index: 10;
}

.adm-portal-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.adm-portal-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.adm-portal-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.adm-portal-brand-text strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.adm-portal-brand-text em {
  font-size: 0.72rem;
  font-style: normal;
  opacity: 0.85;
  font-weight: 500;
}

.adm-portal-top-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.adm-portal-user-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.adm-portal-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
}

.adm-portal-user {
  font-weight: 600;
}

.adm-portal-pill-link {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background 0.2s, transform 0.15s;
}

.adm-portal-pill-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.adm-portal-logout-btn,
a.adm-portal-logout-btn {
  padding: 0.4rem 0.85rem !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  color: #7c3aed !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  border: none !important;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

.adm-portal-logout-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* â”€â”€ Layout â”€â”€ */
.adm-portal-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 252px 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 0;
}

/* â”€â”€ Colorful sidebar â”€â”€ */
.adm-portal-side {
  background: var(--adm-side-bg);
  padding: 1.25rem 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(30, 27, 75, 0.2);
  min-height: 0;
  overflow-y: auto;
}

.adm-portal-nav-label {
  margin: 0.65rem 0.5rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.adm-portal-nav-label:first-child {
  margin-top: 0;
}

.adm-portal-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0.15rem;
  margin-bottom: 0.35rem;
}

.adm-portal-nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  position: relative;
}

.adm-portal-nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateX(3px);
}

.adm-portal-nav-item.is-active {
  background: rgba(255, 255, 255, 0.95);
  color: #312e81;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.adm-nav-ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.adm-nav-ico img {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.adm-portal-nav-item.is-active .adm-nav-ico img {
  filter: none;
  opacity: 1;
}

.adm-nav-ico--dash { background: linear-gradient(135deg, #818cf8, #6366f1); }
.adm-nav-ico--subs { background: linear-gradient(135deg, #38bdf8, #0ea5e9); }
.adm-nav-ico--approve { background: linear-gradient(135deg, #fb923c, #f97316); }
.adm-nav-ico--products { background: linear-gradient(135deg, #f472b6, #ec4899); }
.adm-nav-ico--wallets { background: linear-gradient(135deg, #34d399, #10b981); }
.adm-nav-ico--settings { background: linear-gradient(135deg, #c084fc, #a855f7); }

.adm-portal-nav-item.is-active .adm-nav-ico--dash { background: linear-gradient(135deg, #eef2ff, #e0e7ff); }
.adm-portal-nav-item.is-active .adm-nav-ico--subs { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }
.adm-portal-nav-item.is-active .adm-nav-ico--approve { background: linear-gradient(135deg, #ffedd5, #fed7aa); }
.adm-portal-nav-item.is-active .adm-nav-ico--products { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.adm-portal-nav-item.is-active .adm-nav-ico--wallets { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.adm-portal-nav-item.is-active .adm-nav-ico--settings { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); }

.adm-nav-badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.5);
}

.adm-portal-nav-item.is-active .adm-nav-badge {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.adm-portal-side-promo {
  margin-top: auto;
  padding: 0.85rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(124, 58, 237, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.adm-portal-side-promo strong {
  font-size: 0.78rem;
  color: #fff;
}

.adm-portal-side-promo span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.35;
}

/* â”€â”€ Main content area â”€â”€ */
.adm-portal-main {
  padding: 1.5rem 1.75rem 2rem;
  overflow: auto;
  min-height: 0;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(124, 58, 237, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(59, 130, 246, 0.08), transparent),
    #f0f4ff;
}

.adm-portal-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  font-size: 0.78rem;
  color: #64748b;
}

.adm-portal-foot-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.adm-foot-tag {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
}

.adm-foot-tag--violet { background: #ede9fe; color: #6d28d9; }
.adm-foot-tag--blue { background: #dbeafe; color: #1d4ed8; }
.adm-foot-tag--mint { background: #d1fae5; color: #047857; }

/* â”€â”€ Page header â”€â”€ */
.adm-page-head {
  margin-bottom: 1.35rem;
  padding: 1.15rem 1.35rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
  border-left: 4px solid var(--adm-violet);
}

.adm-page-head h1 {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 800;
  background: linear-gradient(90deg, #4f46e5, #7c3aed, #db2777);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.adm-page-head p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

/* â”€â”€ Colorful stat cards (portal override) â”€â”€ */
.adm-portal-main .adm-stats {
  gap: 1rem;
}

.adm-portal-main .adm-stat {
  border: none;
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.adm-portal-main .adm-stat::after {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.adm-portal-main .adm-stat-warn {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
  border-left: none;
}

.adm-portal-main .adm-stat-info {
  background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 50%, #6366f1 100%);
  border-left: none;
}

.adm-portal-main .adm-stat-ok {
  background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
  border-left: none;
}

.adm-portal-main .adm-stat:not(.adm-stat-warn):not(.adm-stat-info):not(.adm-stat-ok) {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 50%, #9333ea 100%);
}

.adm-portal-main .adm-stat-val {
  color: #fff;
  font-size: 1.75rem;
}

.adm-portal-main .adm-stat-lbl {
  color: rgba(255, 255, 255, 0.88);
}

/* â”€â”€ Panels & tables â”€â”€ */
.adm-portal-main .adm-panel {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.06);
  overflow: hidden;
}

.adm-portal-main .adm-panel-head {
  background: linear-gradient(90deg, #f8fafc, #f1f5f9);
  border-bottom: 1px solid #e2e8f0;
}

.adm-portal-main .adm-panel-head h2 {
  color: #312e81;
  font-weight: 700;
}

.adm-portal-main .adm-panel-head a {
  color: var(--adm-violet);
  font-weight: 600;
  text-decoration: none;
}

.adm-portal-main .adm-panel-head a:hover {
  text-decoration: underline;
}

.adm-portal-main .grid thead {
  background: linear-gradient(90deg, #eef2ff, #f5f3ff);
}

.adm-portal-main .grid th {
  color: #4338ca;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.adm-portal-main .grid tbody tr:hover {
  background: #faf5ff;
}

/* â”€â”€ Pills (brighter) â”€â”€ */
.adm-portal-main .adm-pill-warn {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #b45309;
  font-weight: 600;
}

.adm-portal-main .adm-pill-info {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1d4ed8;
  font-weight: 600;
}

.adm-portal-main .adm-pill-ok {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #047857;
  font-weight: 600;
}

/* â”€â”€ Toolbar â”€â”€ */
.adm-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.06);
}

.adm-toolbar select,
.adm-toolbar input[type="text"],
.adm-toolbar input[type="search"] {
  padding: 0.5rem 0.75rem;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  font-size: 0.875rem;
  min-width: 180px;
  background: #fafbff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.adm-toolbar select:focus,
.adm-toolbar input:focus {
  outline: none;
  border-color: var(--adm-indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.adm-filter-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--adm-violet);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Single-row filter toolbar (User-wise products) */
.adm-toolbar-inline { flex-wrap: nowrap; }
.adm-toolbar-inline .adm-filter-label { white-space: nowrap; }
.adm-toolbar-inline select {
  min-width: 140px;
  flex: 0 1 auto;
}
.adm-toolbar-inline input[type="text"],
.adm-toolbar-inline input[type="search"] {
  min-width: 0;
  flex: 1 1 auto;
}
.adm-toolbar-inline .adm-btn { flex: 0 0 auto; white-space: nowrap; }

@media (max-width: 760px) {
  .adm-toolbar-inline { flex-wrap: wrap; }
  .adm-toolbar-inline input[type="text"],
  .adm-toolbar-inline input[type="search"] { flex: 1 1 100%; }
}

/* â”€â”€ Buttons â”€â”€ */
.adm-btn {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
}

.adm-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.adm-btn-primary {
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.adm-btn-ok {
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.adm-btn-danger {
  background: linear-gradient(135deg, #fb7185, #f43f5e);
  color: #fff;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

.adm-btn-ghost {
  background: #fff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

.adm-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

.adm-action-group {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

/* â”€â”€ List items â”€â”€ */
.adm-portal-main .adm-list li {
  border-bottom-color: #ede9fe;
}

.adm-portal-main .adm-list-main {
  color: #4338ca;
}

.adm-portal-main .adm-list-meta {
  color: #7c3aed;
  font-weight: 600;
}

/* â”€â”€ Login page â”€â”€ */
.adm-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.4), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.35), transparent 40%),
    linear-gradient(135deg, #1e1b4b 0%, #4f46e5 50%, #7c3aed 100%);
}

.adm-login-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.adm-login-head {
  padding: 2rem 1.75rem 1rem;
  text-align: center;
  background: linear-gradient(180deg, #f5f3ff 0%, #fff 100%);
}

.adm-login-head img {
  margin-bottom: 0.75rem;
}

.adm-login-head h1 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.adm-login-head p {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

.adm-login-form {
  padding: 0 1.75rem 1.75rem;
}

.adm-login-field {
  margin-bottom: 0.85rem;
}

.adm-login-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4338ca;
  margin-bottom: 0.3rem;
}

.adm-login-field input,
.adm-login-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.8rem;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  font-size: 0.9rem;
  background: #fafbff;
}

.adm-login-field input:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.adm-login-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.7rem;
  background: linear-gradient(135deg, #6366f1, #7c3aed, #db2777);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
  transition: transform 0.15s, box-shadow 0.2s;
}

.adm-login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.45);
}

.adm-login-foot {
  padding: 0.85rem 1.75rem;
  background: linear-gradient(90deg, #f5f3ff, #ede9fe);
  border-top: 1px solid #e9d5ff;
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
}

.adm-login-foot a {
  color: #7c3aed;
  font-weight: 600;
}

.adm-login-error {
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.75rem;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #b91c1c;
  border-radius: 8px;
  font-size: 0.82rem;
  border: 1px solid #fecaca;
}

@media (max-width: 768px) {
  .adm-portal {
    height: auto;
    overflow: visible;
  }

  .adm-portal-layout {
    grid-template-columns: 1fr;
  }

  .adm-portal-side {
    padding-bottom: 0.75rem;
    overflow-y: visible;
  }

  .adm-portal-main {
    overflow: visible;
  }

  .adm-portal-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .adm-portal-nav-item {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .adm-portal-side-promo {
    display: none;
  }

  .adm-portal-top-right {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

.ua-admin-plans .ua-admin-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 0 1rem 1rem;
}

.ua-admin-plans .adm-login-field input {
  width: 100%;
  box-sizing: border-box;
}

.ua-admin-plans .adm-btn {
  margin: 0 1rem 1rem;
}

@media (max-width: 900px) {
  .ua-admin-plans .ua-admin-plan-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* â”€â”€ Subscriptions page (compact toolbar + table) â”€â”€ */
.adm-page-head--compact {
  margin-bottom: 0.85rem;
}

.adm-page-head--compact p {
  margin-bottom: 0;
}

.adm-subs-page {
  margin-top: 0;
}

.adm-subs-flash {
  display: block;
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-size: 0.875rem;
}

.adm-subs-flash.shop-flash.ok,
.adm-subs-flash.adm-login-error {
  margin-bottom: 0.75rem;
}

.adm-subs-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.7rem 1rem;
  background: linear-gradient(90deg, #f8fafc, #f1f5f9);
  border-bottom: 1px solid #e2e8f0;
}

.adm-subs-top-title h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #312e81;
}

.adm-subs-filter {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.adm-subs-filter label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.adm-subs-select,
.adm-subs-input {
  padding: 0.38rem 0.6rem;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  font-size: 0.85rem;
  background: #fff;
  color: #1e293b;
  line-height: 1.35;
  box-sizing: border-box;
}

.adm-subs-select {
  min-width: 148px;
  max-width: 200px;
}

.adm-subs-input {
  width: 72px;
  min-width: 72px;
}

.adm-subs-field--plan .adm-subs-select {
  min-width: 200px;
  max-width: 260px;
}

.adm-subs-select:focus,
.adm-subs-input:focus {
  outline: none;
  border-color: var(--adm-indigo);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
}

.adm-subs-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 0.75rem;
  padding: 0.55rem 1rem;
  background: #fafbff;
  border-bottom: 1px solid #e8ecf4;
}

.adm-subs-hint {
  flex: 1 1 100%;
  margin: 0 0 0.15rem;
  font-size: 0.78rem;
  color: #64748b;
}

.adm-subs-id {
  display: inline-block;
  min-width: 1.5rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: #eef2ff;
  color: #4338ca;
  font-weight: 700;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.adm-subs-use-btn {
  padding: 0.25rem 0.55rem !important;
  font-size: 0.75rem !important;
}

.adm-subs-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.adm-subs-field label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.adm-subs-field--btn {
  padding-bottom: 1px;
}

.adm-subs-field--btn .adm-btn {
  margin: 0;
  white-space: nowrap;
}

.adm-btn-sm {
  padding: 0.38rem 0.75rem;
  font-size: 0.8rem;
}

.adm-pay-method-list label {
  display: block;
  margin: 0.5rem 0;
  font-weight: 500;
}

.adm-pay-method-list input {
  margin-right: 0.5rem;
}

.adm-subs-divider {
  width: 1px;
  align-self: stretch;
  min-height: 2rem;
  margin: 0 0.15rem;
  background: #e2e8f0;
}

.adm-subs-table-wrap {
  overflow-x: auto;
}

.adm-subs-table-wrap .grid.adm-table {
  margin: 0;
  border: none;
  border-radius: 0;
  width: 100%;
}

.adm-subs-table-wrap .grid.adm-table th,
.adm-subs-table-wrap .grid.adm-table td {
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

.adm-subs-table-wrap .grid.adm-table td:first-child,
.adm-subs-table-wrap .grid.adm-table th:first-child {
  padding-left: 1rem;
}

.adm-subs-table-wrap .grid.adm-table td:last-child,
.adm-subs-table-wrap .grid.adm-table th:last-child {
  padding-right: 1rem;
}

@media (max-width: 768px) {
  .adm-subs-top {
    flex-direction: column;
    align-items: stretch;
  }

  .adm-subs-filter {
    margin-left: 0;
  }

  .adm-subs-filter .adm-subs-select {
    flex: 1;
    max-width: none;
  }

  .adm-subs-divider {
    display: none;
  }

  .adm-subs-field--plan .adm-subs-select {
    max-width: none;
    width: 100%;
  }
}

/* Category product fields master */
.adm-catfm-page { padding-top: 0.25rem; }

.adm-catfm-flash {
  display: block;
  margin: 0 0 1rem;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.adm-catfm-flash--ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.adm-catfm-flash--err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.adm-catfm-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, #f5f3ff, #eef2ff);
  border: 1px solid #e0e7ff;
  border-radius: 14px;
}

.adm-catfm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.adm-catfm-field label,
.adm-catfm-lbl {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 0.3rem;
}

.adm-catfm-lbl-hint {
  font-weight: 500;
  color: #94a3b8;
  font-size: 0.72rem;
}

.adm-catfm-field--category { min-width: 260px; }

.adm-catfm-select,
.adm-catfm-input,
.adm-catfm-textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font-size: 0.9rem;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.adm-catfm-select:focus,
.adm-catfm-input:focus,
.adm-catfm-textarea:focus {
  outline: none;
  border-color: var(--adm-indigo, #6366f1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.adm-catfm-textarea { resize: vertical; min-height: 5rem; font-family: inherit; }

.adm-catfm-loading {
  padding: 2rem;
  text-align: center;
  color: #64748b;
}

/* Section header card */
.adm-catfm-section-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.5rem;
}
.adm-catfm-section-label span {
  font-weight: 500;
  font-size: 0.8rem;
  color: #94a3b8;
}

.adm-catfm-meta {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.1rem;
  background: #fbfcff;
  border: 1px solid #eef2f9;
  border-radius: 14px;
}

.adm-catfm-fields-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.adm-catfm-fields-head h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e293b;
}

.adm-catfm-tip {
  margin: 0 0 1.1rem;
  font-size: 0.85rem;
  color: #64748b;
}

.adm-catfm-fields-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.adm-catfm-card {
  border: 1px solid #e6e9f2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  transition: box-shadow 0.18s, border-color 0.18s;
}

.adm-catfm-card:hover {
  box-shadow: 0 10px 26px rgba(99, 102, 241, 0.10);
  border-color: #c7d2fe;
}

.adm-catfm-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: linear-gradient(135deg, #f8fafc, #f1f5ff);
  border-bottom: 1px solid #eef2f9;
}

.adm-catfm-card-no {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #334155;
}

.adm-catfm-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--adm-indigo, #6366f1);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.adm-catfm-card-type {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6d28d9;
  background: #ede9fe;
  border-radius: 999px;
  padding: 2px 9px;
}

.adm-catfm-card-body { padding: 1rem; }

.adm-catfm-row {
  display: grid;
  gap: 0.75rem 0.9rem;
  margin-bottom: 0.85rem;
}
.adm-catfm-row-3 { grid-template-columns: repeat(3, 1fr); }
.adm-catfm-row-2 { grid-template-columns: repeat(2, 1fr); }

.adm-catfm-options-wrap { margin-bottom: 0.85rem; }
.adm-catfm-options-wrap.is-hidden { display: none; }

/* Required toggle switch */
.adm-catfm-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}
.adm-catfm-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.adm-catfm-toggle-track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.18s;
  flex: 0 0 auto;
}
.adm-catfm-toggle-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.18s;
}
.adm-catfm-toggle input:checked + .adm-catfm-toggle-track { background: var(--adm-indigo, #6366f1); }
.adm-catfm-toggle input:checked + .adm-catfm-toggle-track::after { transform: translateX(18px); }
.adm-catfm-toggle input:focus-visible + .adm-catfm-toggle-track { box-shadow: 0 0 0 3px rgba(99,102,241,0.25); }

.adm-btn-xs {
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .adm-catfm-meta,
  .adm-catfm-row-3,
  .adm-catfm-row-2 {
    grid-template-columns: 1fr;
  }
}

.adm-approval-thumb {
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  display: block;
}

.adm-review-link {
  font-size: 0.8rem;
  font-weight: 600;
}

.adm-review-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1rem;
  align-items: start;
}

.adm-review-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1rem;
  margin: 1rem 0;
}

.adm-review-meta dt {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
}

.adm-review-meta dd {
  margin: 0;
  font-weight: 600;
}

.adm-review-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.75rem 0 1rem;
}

.adm-review-img-card {
  width: 120px;
}

.adm-review-img-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  display: block;
  margin-bottom: 0.35rem;
}

.adm-review-upload-zone {
  display: block;
  padding: 1rem;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.adm-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  align-items: center;
}

.adm-review-reject-input {
  flex: 1;
  min-width: 140px;
  padding: 0.4rem 0.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.pdp-thumb-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pdp-thumb-btn {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: none;
  cursor: pointer;
}

.pdp-thumb-btn img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.pdp-thumb-btn:hover {
  border-color: #14b8a6;
}

@media (max-width: 900px) {
  .adm-review-layout {
    grid-template-columns: 1fr;
  }
}

/* Seller identity cell (User-wise products) */
.adm-seller-cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.3;
}
.adm-seller-cell strong { font-weight: 700; color: #1e293b; }
.adm-seller-sub { font-size: 0.78rem; color: #64748b; }
.adm-seller-id {
  display: inline-block;
  align-self: flex-start;
  margin-top: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #6d28d9;
  background: #ede9fe;
  border-radius: 999px;
  padding: 1px 8px;
}


.adm-table-scroll { overflow-x: auto; }

/* Compact seller OrderView */
.ua-ov { max-width: 1080px; }
.ua-ov-top { margin-bottom: 14px; }
.ua-ov-back {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f766e;
  text-decoration: none;
  margin-bottom: 8px;
}
.ua-ov-back:hover { text-decoration: underline; }
.ua-ov-top-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ua-ov-top-main h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.ua-ov-sub {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: #64748b;
}
.ua-ov-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.75fr);
  gap: 14px;
  align-items: start;
}
@media (max-width: 900px) {
  .ua-ov-layout { grid-template-columns: 1fr; }
}
.ua-ov-main, .ua-ov-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.ua-ov-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.ua-ov-card h2 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.ua-ov-help {
  margin: -4px 0 12px;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
}
.ua-ov-help em { font-style: normal; color: #94a3b8; font-weight: 600; }
.ua-ov-muted { color: #94a3b8; font-size: 0.84rem; }
.ua-ov-strong {
  margin: 0 0 4px !important;
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
}
.ua-ov-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 6px;
}
.ua-ov-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 640px) {
  .ua-ov-split { grid-template-columns: 1fr; }
}
.ua-ov-split > div {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}
.ua-ov-split p { margin: 0 0 3px; font-size: 0.88rem; line-height: 1.4; color: #334155; }

.ua-ov-items { display: flex; flex-direction: column; gap: 0; }
.ua-ov-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}
.ua-ov-item:last-child { border-bottom: 0; padding-bottom: 0; }
.ua-ov-item:first-child { padding-top: 0; }
.ua-ov-thumb {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px;
  max-height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.ua-ov-thumb img {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  object-fit: cover !important;
  display: block;
}
.ua-ov-item-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #0f172a;
  line-height: 1.3;
}
.ua-ov-item-meta {
  margin-top: 2px;
  font-size: 0.78rem;
  color: #64748b;
}
.ua-ov-item-amt {
  font-weight: 800;
  color: #0f766e;
  font-size: 0.92rem;
  white-space: nowrap;
}

.ua-ov-form { display: flex; flex-direction: column; gap: 10px; }
.ua-ov-field { display: block; margin: 0; }
.ua-ov-label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.ua-ov-label em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  color: #94a3b8;
}
.ua-ov-control,
.ua-ov select.ua-ov-control,
.ua-ov input.ua-ov-control,
.ua-ov textarea.ua-ov-control {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 0.55rem 0.75rem !important;
  font-size: 0.9rem !important;
  color: #0f172a !important;
  background: #fff !important;
  min-height: 40px;
}
.ua-ov-textarea {
  min-height: 84px !important;
  resize: vertical;
  line-height: 1.45 !important;
  font-family: inherit !important;
}
.ua-ov-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}
.ua-ov-cancel-btn { color: #b91c1c !important; border-color: #fecaca !important; }

.ua-ov-pay-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ua-ov-pay-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
}
.ua-ov-pay-rows span { color: #64748b; }
.ua-ov-pay-rows strong { color: #0f172a; font-weight: 700; }
.ua-ov-pay-rows .is-total {
  padding-top: 8px;
  margin-top: 2px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.95rem;
}
.ua-ov-pay-rows .is-total strong { color: #0f766e; font-weight: 800; }

.ua-ov-update {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
  border-color: #99f6e4;
}
