@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Syne:wght@600;700;800&display=swap");@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Syne:wght@600;700;800&display=swap");@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap");@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Syne:wght@600;700;800&display=swap");
/* placeholder - real styles in App.css */
:root {
  --navy: #0f1b2d;
  --navy-border: #1e3b86;
  --teal: #00c9a7;
  --teal-dim: #009e84;
  --teal-bg: rgba(0, 201, 167, 0.1);
  --white: #ffffff;
  --off-white: #f4f6f9;
  --text-primary: #1a2332;
  --text-secondary: #5a6a80;
  --text-muted: #8fa0b5;
  --border: #e2e8f0;
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.08);
  --sidebar-w: 220px;
  --radius: 8px;
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "DM Sans", sans-serif;
  background: var(--off-white);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button {
  cursor: pointer;
  font-family: inherit;
}
input,
textarea,
select {
  font-family: inherit;
}
a {
  text-decoration: none;
  color: inherit;
}
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
/* Layout */
.admin-shell {
  display: flex;
  min-height: 100vh;
}
.main-area {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}
.page-content {
  flex: 1;
  padding: 24px 28px;
}
/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  border-right: 1px solid #dce8ff;
  box-shadow: 2px 0 12px rgba(30, 59, 134, 0.08);
}
.sidebar-logo {
  padding: 16px 18px;
  border-bottom: 1px solid #dce8ff;
  background: #1e3b86;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sidebar-logo .brand {
  font-family: sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  flex: 1;
}
.sidebar-logo .brand span {
  color: #4fd2d0;
}
.collapse-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(79, 210, 208, 0.15);
  border: 1px solid rgba(79, 210, 208, 0.3);
  border-radius: 6px;
  color: #4fd2d0;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.collapse-all-btn:hover {
  background: rgba(79, 210, 208, 0.25);
  border-color: rgba(79, 210, 208, 0.5);
  transform: translateY(-2px);
}
.collapse-all-btn:active {
  transform: translateY(0);
}
.collapse-all-btn svg {
  width: 16px;
  height: 16px;
}
.sidebar-lbl {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #8faadc;
  padding: 14px 18px 4px;
}
.sidebar-nav {
  flex: 1;
  padding: 8px 0;
  background: #ffffff;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  color: #4a5f8a;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.15s;
  user-select: none;
}
.nav-item:hover {
  color: #1e3b86;
  background: #eef3ff;
  border-left-color: #adc3f5;
}
.nav-item.active {
  color: #1e3b86;
  background: #dde8ff;
  border-left-color: #1e3b86;
  font-weight: 600;
}
.nav-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.nav-chev {
  margin-left: auto;
  width: 12px !important;
  height: 12px !important;
  transition: transform 0.2s;
}
.nav-chev.open {
  transform: rotate(90deg);
}
.sub-nav {
  background: #f5f8ff;
  border-left: none;
}
.sub-nav .nav-item {
  padding-left: 42px;
  font-size: 12.5px;
  font-weight: 400;
  color: #6b82b0;
  border-left: none;
}
.sub-nav .nav-item:hover {
  color: #1e3b86;
  background: #e4ecff;
  border-left-color: transparent;
}
.sub-nav .nav-item.active {
  color: #1e3b86;
  background: #dde8ff;
  font-weight: 600;
  border-left: none;
  position: relative;
}
.sub-nav .nav-item.active::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1e3b86;
}
.sidebar-foot {
  padding: 14px 18px;
  border-top: 1px solid #dce8ff;
  background: #ffffff;
}
.logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ef4444;
  font-size: 13px;
  font-weight: 500;
  background: none;
  border: none;
  padding: 4px 0;
  opacity: 0.75;
  transition: opacity 0.15s;
}
.logout-btn:hover {
  opacity: 1;
}
.logout-btn svg {
  width: 14px;
  height: 14px;
}
/* Topbar */
.topbar {
  height: 60px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}
.tb-brand {
  font-family: sans-serif;
  font-size: 25px;
  font-weight: 900;
  color: var(--navy-border);
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
}
.tb-brand span {
  color: var(--teal);
}
.tb-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.tb-search {
  flex: 1;
  max-width: 360px;
  position: relative;
}
.tb-search input {
  width: 100%;
  padding: 7px 14px 7px 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-primary);
  background: var(--off-white);
  outline: none;
  transition: border-color 0.15s;
}
.tb-search input:focus {
  border-color: var(--teal);
}
.tb-search .si {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 14px;
  height: 14px;
}
.tb-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.tb-bell {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 5px;
  border-radius: 6px;
  transition: background 0.15s;
  display: flex;
  align-items: center;
}
.tb-bell:hover {
  background: var(--off-white);
}
.tb-bell svg {
  width: 18px;
  height: 18px;
}
.tb-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.u-info {
  text-align: right;
}
.u-info .uname {
  font-size: 13px;
  font-weight: 600;
}
.u-info .urole {
  font-size: 11px;
  color: var(--text-muted);
}
.u-avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
}
/* Settings card */
.sc {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sc-head {
  background: var(--navy-border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sc-head h3 {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sc-head h3 svg {
  width: 13px;
  height: 13px;
  color: var(--teal);
}
.sc-body {
  padding: 20px;
}
/* Toggle */
.sec-tog {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sec-tog-lbl {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}
.tgl {
  position: relative;
  width: 38px;
  height: 20px;
  cursor: pointer;
}
.tgl input {
  display: none;
}
.tgl-track {
  width: 100%;
  height: 100%;
  background: #8fa8cc;
  border-radius: 10px;
  transition: background 0.2s;
  display: block;
}
.tgl input:checked + .tgl-track {
  background: var(--teal);
}
.tgl-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: left 0.2s;
  pointer-events: none;
}
.tgl input:checked ~ .tgl-thumb {
  left: 20px;
}
/* Forms */
.fg {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.fl {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.fi,
.fta {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-primary);
  background: var(--white);
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  width: 100%;
}
.fi:focus,
.fta:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.1);
}
.fta {
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
}
.g2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.g3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.gap16 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gap12 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.flex1 {
  flex: 1;
}
/* Upload */
.uz {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--off-white);
  min-height: 96px;
}
.uz:hover {
  border-color: var(--teal);
  background: var(--teal-bg);
}
.uz svg {
  color: var(--text-muted);
  width: 22px;
  height: 22px;
}
.uz-lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.uz small {
  font-size: 10.5px;
  color: var(--text-muted);
}
.bg-uz {
  border: 2px dashed var(--border);
  border-radius: 8px;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  background: var(--off-white);
  transition: all 0.2s;
}
.bg-uz:hover {
  border-color: var(--teal);
  background: var(--teal-bg);
}
.bg-uz svg {
  color: var(--text-muted);
  width: 24px;
  height: 24px;
}
.bg-uz span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.bg-uz small {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  padding: 0 12px;
}
/* Cat pills */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.cat-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: var(--off-white);
  gap: 6px;
}
.cat-pill span {
  flex: 1;
}
.cat-del {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.cat-del:hover {
  color: var(--red);
}
.cat-del svg {
  width: 12px;
  height: 12px;
}
.add-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: none;
  border: 1px dashed var(--teal);
  border-radius: 6px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 10px;
}
.add-cat:hover {
  background: var(--teal-bg);
}
.add-cat svg {
  width: 12px;
  height: 12px;
}
/* Product grid */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.prod-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--off-white);
}
.prod-img {
  height: 88px;
  background: #dde4ed;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-img svg {
  color: #a8b8c8;
  width: 26px;
  height: 26px;
}
.prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prod-flds {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pfl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pfi {
  width: 100%;
  padding: 5px 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  background: var(--white);
  outline: none;
  color: var(--text-primary);
}
.pfi.green {
  color: var(--teal);
  font-weight: 600;
}
.pfi:focus {
  border-color: var(--teal);
}
/* Special banner */
.sp-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--teal);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-btn svg {
  color: white;
  width: 20px;
  height: 20px;
}
.badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.new-badge {
  padding: 2px 9px;
  background: var(--teal);
  color: white;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
/* Trust */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.trust-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: var(--off-white);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trust-icon-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal-bg);
  border: 1px solid rgba(0, 201, 167, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-circle svg {
  color: var(--teal);
  width: 15px;
  height: 15px;
}
.trust-title {
  font-size: 13px;
  font-weight: 600;
}
.trust-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.chg-icon {
  font-size: 11px;
  color: var(--teal);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}
.chg-icon:hover {
  text-decoration: underline;
}
.chg-icon svg {
  width: 11px;
  height: 11px;
}
/* Footer */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.footer-col {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}
.fc-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.fl-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.fl-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}
.fl-txt {
  font-size: 12px;
  color: var(--text-secondary);
  flex: 1;
}
.fl-del {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  opacity: 0;
  transition: opacity 0.15s;
  display: flex;
  align-items: center;
}
.fl-item:hover .fl-del {
  opacity: 1;
}
.fl-del:hover {
  color: var(--red);
}
.fl-del svg {
  width: 11px;
  height: 11px;
}
.add-link {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--teal);
  background: none;
  border: none;
  cursor: pointer;
}
.add-link:hover {
  text-decoration: underline;
}
.add-link svg {
  width: 11px;
  height: 11px;
}
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn svg {
  width: 14px;
  height: 14px;
}
.btn-teal {
  background: var(--teal);
  color: white;
}
.btn-teal:hover {
  background: var(--teal-dim);
}
.btn-red-o {
  background: none;
  border: 1px solid var(--red);
  color: var(--red);
}
.btn-red-o:hover {
  background: var(--red-bg);
}
.btn-ghost {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
}
/* Bottom bar */
.bot-bar {
  position: sticky;
  bottom: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 28px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
  z-index: 40;
}
/* Modal */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(2px);
}
.modal {
  background: var(--white);
  border-radius: 10px;
  padding: 24px;
  min-width: 340px;
  max-width: 460px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.modal h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}
.modal-acts {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}
/* Placeholder */
.ph-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 10px;
  color: var(--text-muted);
}
.ph-page h2 {
  font-size: 20px;
  color: var(--text-secondary);
}
.ph-page svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}
/* Spinner */
.spin-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.spin {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: sp 0.7s linear infinite;
}
@keyframes sp {
  to {
    transform: rotate(360deg);
  }
}
/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}
/* Newsletter */
.nl-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nl-row .fi {
  flex: 1;
}
/* Util */
.mt8 {
  margin-top: 8px;
}
.mt12 {
  margin-top: 12px;
}
/* User Menu */
.tb-user-wrapper {
  position: relative;
}
.tb-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.tb-user:hover {
  background: var(--off-white);
}
.u-info {
  text-align: right;
}
.u-info .uname {
  font-size: 13px;
  font-weight: 600;
}
.u-info .urole {
  font-size: 11px;
  color: var(--text-muted);
}
.u-avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
}
.user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  z-index: 100;
  margin-top: 4px;
  overflow: hidden;
}
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-primary);
  text-align: left;
  transition: background 0.15s;
}
.user-menu-item:hover {
  background: var(--off-white);
}
.user-menu-item svg {
  width: 14px;
  height: 14px;
}
.user-menu-item.logout-btn {
  color: var(--red);
}
.user-menu-item.logout-btn:hover {
  background: var(--red-bg);
}
/* Profile Settings */
.profile-settings {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.profile-avatar-display {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
}
.profile-avatar-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-avatar-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.profile-email {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}
.profile-role {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}
.profile-role svg {
  width: 13px;
  height: 13px;
}
.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.password-toggle:hover:not(:disabled) {
  opacity: 0.7;
}
.password-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}


/* ── Page shell ──────────────────────────────────────────────────────────── */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-family: "DM Sans", sans-serif;
}

/* ── Left decorative panel ───────────────────────────────────────────────── */

.auth-left {
  background: linear-gradient(160deg, #1e3b86 0%, #0d2347 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 52px;
  position: relative;
  overflow: hidden;
}

/* Decorative blobs */

.auth-left::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(0, 201, 167, 0.07);
}

.auth-left::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.auth-left__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 400px;
  width: 100%;
}

.auth-left__tagline {
  font-family: "Syne", sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin: 0;
}

.auth-left__tagline span {
  color: #00c9a7;
}

.auth-left__sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin: 0;
}

.auth-left__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-left__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.auth-left__feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00c9a7;
  flex-shrink: 0;
}

.auth-left__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 201, 167, 0.12);
  border: 1px solid rgba(0, 201, 167, 0.25);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 12px;
  color: #00c9a7;
  font-weight: 600;
  width: fit-content;
}

/* ── Right form panel ────────────────────────────────────────────────────── */

.auth-right {
  background: #f4f6f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}

.auth-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(30, 59, 134, 0.08);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── Logo ────────────────────────────────────────────────────────────────── */

.auth-logo {
  display: flex;
  justify-content: center;
}

.auth-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.auth-header {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: center;
}

.auth-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1a2332;
  margin: 0;
  font-family: "Syne", sans-serif;
}

.auth-header p {
  font-size: 13.5px;
  color: #8fa0b5;
  margin: 0;
}

/* ── Divider ─────────────────────────────────────────────────────────────── */

.auth-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0;
}

/* ── Form ────────────────────────────────────────────────────────────────── */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #5a6a80;
}

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

.input-icon {
  position: absolute;
  left: 12px;
  color: #8fa0b5;
  width: 16px;
  height: 16px;
  pointer-events: none;
  flex-shrink: 0;
}

.input-wrapper input,
.auth-select {
  width: 100%;
  padding: 10px 12px 10px 38px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13.5px;
  color: #1a2332;
  font-family: "DM Sans", sans-serif;
  background: #fff;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.input-wrapper input::placeholder {
  color: #b0bec5;
}

.input-wrapper input:focus,
.auth-select:focus {
  border-color: #1e3b86;
  box-shadow: 0 0 0 3px rgba(30, 59, 134, 0.09);
}

.input-wrapper input:disabled,
.auth-select:disabled {
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}

/* Select — no left icon so adjust padding */

.auth-select {
  padding: 10px 12px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238fa0b5' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Password toggle */

.toggle-password {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #8fa0b5;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
  border-radius: 4px;
}

.toggle-password:hover:not(:disabled) {
  color: #1e3b86;
}

.toggle-password:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Submit button */

.auth-button {
  width: 100%;
  padding: 11px;
  background: #1e3b86;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
  transition:
    background 0.18s,
    transform 0.15s;
  margin-top: 4px;
  letter-spacing: 0.3px;
}

.auth-button:hover:not(:disabled) {
  background: #162d6b;
  transform: translateY(-1px);
}

.auth-button:active:not(:disabled) {
  transform: translateY(0);
}

.auth-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Footer */

.auth-footer {
  text-align: center;
}

.auth-footer p {
  font-size: 13px;
  color: #8fa0b5;
  margin: 0;
}

.auth-link {
  color: #1e3b86;
  font-weight: 700;
  text-decoration: none;
}

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

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-left {
    display: none;
  }
  .auth-right {
    padding: 32px 20px;
    min-height: 100vh;
  }
  .auth-card {
    padding: 32px 24px;
  }
}
.page-wrapper {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 4px 0;
}

.page-header p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.btn-primary:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
}

.search-bar input::placeholder {
  color: #999;
}

.loading {
  padding: 48px 24px;
  text-align: center;
  color: #666;
  font-size: 14px;
}

.empty-state {
  padding: 64px 24px;
  text-align: center;
  color: #999;
}

.empty-state svg {
  color: #ddd;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 8px 0;
}

.empty-state p {
  font-size: 14px;
}

.table-wrapper {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}

.data-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table th.actions {
  width: 120px;
  text-align: center;
}

.data-table td {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.data-table tbody tr:hover {
  background: #fafafa;
}

.city-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #333;
}

.city-name svg {
  color: #007bff;
}

.data-table td.actions {
  text-align: center;
  width: 120px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin: 0 4px;
}

.btn-icon.edit {
  background: #e8f1ff;
  color: #007bff;
}

.btn-icon.edit:hover {
  background: #d0e1ff;
}

.btn-icon.delete {
  background: #ffe8e8;
  color: #dc3545;
}

.btn-icon.delete:hover {
  background: #ffd0d0;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: white;
  border-radius: 8px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal h2 {
  margin: 0 0 24px 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  background-color: white;
  cursor: pointer;
}

.form-group select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 32px;
}

.btn-secondary {
  padding: 10px 20px;
  background: #f0f0f0;
  color: #333;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background-color: #e0e0e0;
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.page-wrapper {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 4px 0;
}

.page-header p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.btn-primary:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
}

.search-bar input::placeholder {
  color: #999;
}

.loading {
  padding: 48px 24px;
  text-align: center;
  color: #666;
  font-size: 14px;
}

.empty-state {
  padding: 64px 24px;
  text-align: center;
  color: #999;
}

.empty-state svg {
  color: #ddd;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 8px 0;
}

.empty-state p {
  font-size: 14px;
}

.table-wrapper {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}

.data-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table th.actions {
  width: 120px;
  text-align: center;
}

.data-table td {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.data-table tbody tr:hover {
  background: #fafafa;
}

.plan-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #333;
}

.plan-name svg {
  color: #007bff;
}

.data-table td.actions {
  text-align: center;
  width: 120px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin: 0 4px;
}

.btn-icon.edit {
  background: #e8f1ff;
  color: #007bff;
}

.btn-icon.edit:hover {
  background: #d0e1ff;
}

.btn-icon.delete {
  background: #ffe8e8;
  color: #dc3545;
}

.btn-icon.delete:hover {
  background: #ffd0d0;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: white;
  border-radius: 8px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal h2 {
  margin: 0 0 24px 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #999;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.btn-secondary {
  padding: 10px 20px;
  background: #f0f0f0;
  color: #333;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background-color: #e0e0e0;
}

.sequence-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #e8f1ff;
  color: #007bff;
  border-radius: 50%;
  font-weight: 600;
  font-size: 12px;
}
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 32px;
}

.btn-secondary {
  padding: 10px 20px;
  background: #f0f0f0;
  color: #333;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background-color: #e0e0e0;
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.page-wrapper {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 4px 0;
}

.page-header p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.btn-primary:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
}

.search-bar input::placeholder {
  color: #999;
}

.loading {
  padding: 48px 24px;
  text-align: center;
  color: #666;
  font-size: 14px;
}

.empty-state {
  padding: 64px 24px;
  text-align: center;
  color: #999;
}

.empty-state svg {
  color: #ddd;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 8px 0;
}

.empty-state p {
  font-size: 14px;
}

.table-wrapper {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}

.data-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table th.actions {
  width: 120px;
  text-align: center;
}

.data-table td {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.data-table tbody tr:hover {
  background: #fafafa;
}

.empanelment-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #333;
}

.empanelment-name svg {
  color: #007bff;
}

.data-table td.actions {
  text-align: center;
  width: 120px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin: 0 4px;
}

.btn-icon.edit {
  background: #e8f1ff;
  color: #007bff;
}

.btn-icon.edit:hover {
  background: #d0e1ff;
}

.btn-icon.delete {
  background: #ffe8e8;
  color: #dc3545;
}

.btn-icon.delete:hover {
  background: #ffd0d0;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: white;
  border-radius: 8px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal h2 {
  margin: 0 0 24px 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 32px;
}

.btn-secondary {
  padding: 10px 20px;
  background: #f0f0f0;
  color: #333;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background-color: #e0e0e0;
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* ════════════════════════════════════════════
   VendorsPage Stylesheet
   ════════════════════════════════════════════ */

.vp-page {
  padding: 20px;
  background: #f8f9fa;
  min-height: 100vh;
}

/* ────── Page Header ────── */
.vp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}

.vp-header__text h1 {
  font-size: 28px;
  font-weight: 700;
  color: #0d1f3c;
  margin: 0 0 4px 0;
}

.vp-header__text p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

.vp-refresh {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}

.vp-refresh:hover:not(:disabled) {
  border-color: #10b981;
  color: #10b981;
  background: #f0fdf4;
}

.vp-refresh:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.vp-refresh .vp-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ────── Stats Grid ────── */
.vp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}

.vp-stat {
  padding: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 3px solid #3b82f6;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}

.vp-stat:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.vp-stat--blue {
  border-left-color: #3b82f6;
}
.vp-stat--teal {
  border-left-color: #14b8a6;
}
.vp-stat--amber {
  border-left-color: #f59e0b;
}
.vp-stat--red {
  border-left-color: #ef4444;
}

.vp-stat__value {
  font-size: 24px;
  font-weight: 700;
  color: #0d1f3c;
  line-height: 1;
  margin-bottom: 6px;
}

.vp-stat__label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

/* ────── Toolbar ────── */
.vp-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.vp-toolbar__right {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}

/* Search */
.vp-search {
  flex: 1;
  min-width: 240px;
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0 10px;
  transition: all 0.2s;
}

.vp-search:focus-within {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.vp-search__icon {
  color: #9ca3af;
  flex-shrink: 0;
  margin-right: 8px;
}

.vp-search input {
  flex: 1;
  padding: 8px 0;
  border: none;
  font-size: 13px;
  outline: none;
  background: transparent;
  color: #0d1f3c;
}

.vp-search input::placeholder {
  color: #9ca3af;
}

.vp-search__clear {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  flex-shrink: 0;
}

.vp-search__clear:hover {
  color: #ef4444;
}

/* Filter Select */
.vp-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0 10px;
  color: #9ca3af;
}

.vp-filter select {
  padding: 8px 4px;
  border: none;
  background: transparent;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

.vp-filter select option {
  background: #fff;
  color: #0d1f3c;
}

/* View Toggle */
.vp-view-toggle {
  display: flex;
  gap: 4px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 4px;
}

.vp-view-toggle button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.vp-view-toggle button:hover {
  background: #f3f4f6;
  color: #374151;
}

.vp-view-toggle button.active {
  background: #ecfdf5;
  color: #10b981;
}

/* ────── Results Count ────── */
.vp-count {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 20px;
  font-weight: 500;
}

.vp-count strong {
  color: #0d1f3c;
  font-weight: 700;
}

.vp-count em {
  background: #fef3c7;
  padding: 1px 4px;
  border-radius: 3px;
  font-style: normal;
  font-weight: 600;
  color: #92400e;
}

/* ────── Loading State ────── */
.vp-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 12px;
  color: #6b7280;
  font-size: 14px;
}

.vp-loading .spin {
  width: 36px;
  height: 36px;
  border: 3px solid #e5e7eb;
  border-top-color: #10b981;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ────── Empty State ────── */
.vp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
  text-align: center;
}

.vp-empty__icon {
  width: 64px;
  height: 64px;
  background: #f3f4f6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
}

.vp-empty h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0d1f3c;
  margin: 0;
}

.vp-empty p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  max-width: 360px;
}

.vp-empty__reset {
  margin-top: 8px;
  padding: 8px 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  color: #047857;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.vp-empty__reset:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
}

/* ════════════════════════════════════════════
   Grid View
   ════════════════════════════════════════════ */

.vp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.vp-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}

.vp-card:hover {
  border-color: #10b981;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.vp-card__stripe {
  height: 3px;
  background: linear-gradient(90deg, #10b981, #14b8a6);
}

.vp-card__top {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
}

.vp-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}

.vp-card__avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.vp-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  width: 100%;
  justify-content: center;
}

.vp-status.status--approved {
  background: #d1fae5;
  color: #065f46;
}
.vp-status.status--pending {
  background: #fef3c7;
  color: #92400e;
}
.vp-status.status--rejected {
  background: #fee2e2;
  color: #991b1b;
}
.vp-status.status--suspended {
  background: #f5f3ff;
  color: #5b21b6;
}

.vp-card__body {
  padding: 0 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.vp-card__name {
  font-size: 15px;
  font-weight: 700;
  color: #0d1f3c;
  margin: 0 0 4px 0;
  line-height: 1.3;
  word-break: break-word;
}

.vp-card__person {
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 10px 0;
  word-break: break-word;
}

.vp-card__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vp-card__meta span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #6b7280;
  word-break: break-all;
}

.vp-card__footer {
  padding: 12px 16px;
  border-top: 1px solid #f3f4f6;
  background: #fafbfc;
}

.vp-card__stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.vp-card__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vp-card__stat-val {
  font-size: 14px;
  font-weight: 700;
  color: #0d1f3c;
  line-height: 1;
}

.vp-card__stat-lbl {
  font-size: 10px;
  color: #9ca3af;
  margin-top: 2px;
}

.vp-card__stat-divider {
  width: 1px;
  height: 24px;
  background: #e5e7eb;
}

.vp-card__date {
  font-size: 11px;
  color: #9ca3af;
  margin: 0;
  text-align: center;
}

/* ════════════════════════════════════════════
   List View
   ════════════════════════════════════════════ */

.vp-list-wrap {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow-x: auto;
}

.vp-list {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.vp-list thead {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.vp-list th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vp-list tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.15s;
}

.vp-list tbody tr:hover {
  background: #f9fafb;
}

.vp-list td {
  padding: 12px 16px;
  color: #374151;
}

.vp-list__vendor {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vp-list__avatar {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.vp-list__avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.vp-list__name {
  font-weight: 600;
  color: #0d1f3c;
  margin: 0;
  word-break: break-word;
}

.vp-list__sub {
  font-size: 11px;
  color: #9ca3af;
  margin: 2px 0 0 0;
}

.vp-list__cell {
  color: #6b7280;
  word-break: break-word;
}

.vp-list__cell--center {
  text-align: center;
}

/* ════════════════════════════════════════════
   Responsive Design
   ════════════════════════════════════════════ */

@media (max-width: 900px) {
  .vp-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .vp-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .vp-toolbar {
    flex-direction: column;
  }

  .vp-search {
    min-width: 100%;
  }

  .vp-toolbar__right {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .vp-page {
    padding: 16px;
  }

  .vp-header {
    flex-direction: column;
    gap: 12px;
  }

  .vp-header__text h1 {
    font-size: 22px;
  }

  .vp-stats {
    grid-template-columns: 1fr;
  }

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

  .vp-toolbar {
    flex-direction: column;
  }

  .vp-search {
    min-width: 100%;
  }

  .vp-toolbar__right {
    width: 100%;
    margin-left: 0;
  }

  .vp-list-wrap {
    border-left: none;
    border-right: none;
    border-radius: 0;
    margin: 0 -16px;
  }

  .vp-list {
    font-size: 12px;
  }

  .vp-list th,
  .vp-list td {
    padding: 10px 12px;
  }

  .vp-card__meta span {
    font-size: 10px;
  }
}
.vr-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: "DM Sans", sans-serif;
}

.vr-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 960px;
  width: 100%;
  min-height: 580px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(30, 59, 134, 0.14);
}

/* ── Left panel ── */
.vr-left {
  background: linear-gradient(160deg, #1e3b86 0%, #0d1f4a 100%);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.vr-left::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(0, 201, 167, 0.08);
}

.vr-left::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.vr-left__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  color: #fff;
}

.vr-left__logo svg {
  color: #00c9a7;
}
.vr-left__logo strong {
  color: #00c9a7;
}

.vr-left__title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin-top: 8px;
}

.vr-left__sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.vr-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.vr-benefit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.vr-benefit svg {
  color: #00c9a7;
  flex-shrink: 0;
  margin-top: 2px;
}

.vr-left__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 201, 167, 0.12);
  border: 1px solid rgba(0, 201, 167, 0.25);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11.5px;
  color: #00c9a7;
  font-weight: 600;
  width: fit-content;
}

/* ── Right form panel ── */
.vr-right {
  background: #fff;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vr-form-card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vr-form-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a2332;
  margin-bottom: 4px;
}

.vr-form-header p {
  font-size: 13px;
  color: #8fa0b5;
  margin-bottom: 12px;
}

.vr-step-bar {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}

.vr-step-bar__fill {
  height: 100%;
  background: #00c9a7;
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.vr-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vr-fg {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.vr-fg label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #5a6a80;
}

.vr-fg label span {
  color: #ef4444;
}
.vr-fg label svg {
  color: #8fa0b5;
}

.vr-fg input {
  padding: 9px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  font-size: 13.5px;
  color: #1a2332;
  font-family: inherit;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  background: #fff;
}

.vr-fg input:focus {
  border-color: #1e3b86;
  box-shadow: 0 0 0 3px rgba(30, 59, 134, 0.1);
}

.vr-pass-wrap {
  position: relative;
}

.vr-pass-wrap input {
  width: 100%;
  padding-right: 40px;
}

.vr-pass-wrap button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #8fa0b5;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.vr-pass-wrap button:hover {
  color: #1e3b86;
}

.vr-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #f0f4ff;
  border: 1px solid #dce8ff;
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: #1e3b86;
  line-height: 1.5;
}

.vr-notice svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.vr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
  white-space: nowrap;
}

.vr-btn--primary {
  background: #1e3b86;
  color: #fff;
  width: 100%;
}

.vr-btn--primary:hover:not(:disabled) {
  background: #162d6b;
}
.vr-btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.vr-btn--ghost {
  background: none;
  border: 1px solid #e2e8f0;
  color: #5a6a80;
  flex: 1;
}

.vr-btn--ghost:hover {
  border-color: #1e3b86;
  color: #1e3b86;
}

.vr-form-actions {
  display: flex;
  gap: 10px;
}

.vr-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 7px;
  padding: 9px 13px;
  font-size: 13px;
  color: #dc2626;
}

.vr-login-link {
  font-size: 13px;
  color: #8fa0b5;
  text-align: center;
}

.vr-login-link a {
  color: #1e3b86;
  font-weight: 600;
  text-decoration: none;
}

.vr-login-link a:hover {
  text-decoration: underline;
}

/* ── Success screen ── */
.vr-success {
  background: #fff;
  border-radius: 16px;
  padding: 52px 44px;
  text-align: center;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(30, 59, 134, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.vr-success__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 201, 167, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00c9a7;
}

.vr-success h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a2332;
}
.vr-success p {
  font-size: 14px;
  color: #5a6a80;
  line-height: 1.6;
}

.vr-success__steps {
  display: flex;
  gap: 8px;
  width: 100%;
  margin: 8px 0;
}

.vr-success__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #5a6a80;
  text-align: center;
}

.vr-success__step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1e3b86;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Spinner animation ── */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .vr-layout {
    grid-template-columns: 1fr;
  }
  .vr-left {
    display: none;
  }
  .vr-right {
    padding: 32px 24px;
  }
}
.vl-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: "DM Sans", sans-serif;
}

.vl-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 960px;
  width: 100%;
  min-height: 580px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(30, 59, 134, 0.14);
}

/* ── Left panel ── */
.vl-left {
  background: linear-gradient(160deg, #1e3b86 0%, #0d1f4a 100%);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.vl-left::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(0, 201, 167, 0.08);
}

.vl-left::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.vl-left__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  color: #fff;
}

.vl-left__logo svg {
  color: #00c9a7;
}

.vl-left__logo strong {
  color: #00c9a7;
}

.vl-left__title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin-top: 8px;
}

.vl-left__sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.vl-trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.vl-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.vl-trust-item svg {
  color: #00c9a7;
  flex-shrink: 0;
  margin-top: 2px;
}

.vl-left__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 201, 167, 0.12);
  border: 1px solid rgba(0, 201, 167, 0.25);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11.5px;
  color: #00c9a7;
  font-weight: 600;
  width: fit-content;
}

/* ── Right form panel ── */
.vl-right {
  background: #fff;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vl-form-card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vl-form-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a2332;
  margin-bottom: 4px;
}

.vl-form-header p {
  font-size: 13px;
  color: #8fa0b5;
}

.vl-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vl-fg {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.vl-fg label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #5a6a80;
}

.vl-fg label svg {
  color: #8fa0b5;
}

.vl-fg input {
  padding: 9px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  font-size: 13.5px;
  color: #1a2332;
  font-family: inherit;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.vl-fg input:focus {
  border-color: #1e3b86;
  box-shadow: 0 0 0 3px rgba(30, 59, 134, 0.1);
}

.vl-fg input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.vl-pass-wrap {
  position: relative;
}

.vl-pass-wrap input {
  padding-right: 40px;
}

.vl-pass-wrap button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #8fa0b5;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.vl-pass-wrap button:hover {
  color: #1e3b86;
}

.vl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
  white-space: nowrap;
}

.vl-btn--primary {
  background: #1e3b86;
  color: #fff;
  width: 100%;
}

.vl-btn--primary:hover:not(:disabled) {
  background: #162d6b;
}

.vl-btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.vl-register-link {
  font-size: 13px;
  color: #8fa0b5;
  text-align: center;
  margin: 0;
}

.vl-register-link a {
  color: #00c9a7;
  font-weight: 600;
  text-decoration: none;
}

.vl-register-link a:hover {
  text-decoration: underline;
}

.vl-admin-link {
  font-size: 12px;
  color: #8b7280;
  text-align: center;
  margin: 0;
}

.vl-admin-link a {
  color: #1e3b86;
  text-decoration: none;
}

.vl-admin-link a:hover {
  text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .vl-layout {
    grid-template-columns: 1fr;
  }

  .vl-left {
    display: none;
  }

  .vl-right {
    padding: 32px 24px;
  }
}
/* Vendor Products Page */

.vendor-products-page {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0;
  color: #111827;
}

.page-header p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0.25rem 0 0 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.card-toolbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.search-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #f9fafb;
  flex: 1;
  min-width: 250px;
}

.search-wrapper input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 0.875rem;
  color: #111827;
}

.search-wrapper input::placeholder {
  color: #9ca3af;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 0.5rem;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover:not(:disabled) {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
}

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

.spin {
  animation: spin-animation 1s linear infinite;
}

@keyframes spin-animation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.loading {
  text-align: center;
  padding: 3rem 2rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: #6b7280;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
  margin: 0.5rem 0;
}

.empty-state p {
  font-size: 0.875rem;
  margin: 0.5rem 0 1.5rem 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.product-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.product-image {
  width: 100%;
  height: 150px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.product-image .placeholder {
  font-size: 2rem;
  color: #ddd;
}

.product-info {
  flex: 1;
  padding: 1rem;
}

.product-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.5rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sku {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0.25rem 0;
}

.price {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2563eb;
  margin: 0.5rem 0 0.25rem 0;
}

.stock {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0.25rem 0 0 0;
}

.stock strong {
  color: #10b981;
  font-weight: 600;
}

.commission {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0.25rem 0 0 0;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.btn-edit {
  color: #2563eb;
  flex: 1;
}

.btn-delete {
  color: #dc2626;
  flex: 1;
}

.btn-edit:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.btn-delete:hover {
  background: #fee2e2;
  border-color: #fecaca;
  color: #b91c1c;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.btn-page {
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 0.4rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #374151;
}

.btn-page:hover:not(:disabled) {
  background: #f3f4f6;
  border-color: #d1d5db;
}

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

@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    gap: 1rem;
  }

  .card-toolbar {
    flex-direction: column;
  }

  .search-wrapper {
    min-width: auto;
    width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .product-card {
    padding: 0.75rem;
  }

  .product-image {
    height: 120px;
  }

  .product-info {
    padding: 0.75rem;
  }
}
/* RichTextEditor - Professional Ice White + Cobalt Blue Theme */

.rte-container {
  display: flex;
  flex-direction: column;
  border: 1px solid #ced4da;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Sticky Toolbar */
.rte-toolbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px;
  background-color: #f8f9fa; /* Ice White */
  border-bottom: 1px solid #ced4da;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.rte-toolbar__group {
  display: flex;
  gap: 4px;
  align-items: center;
  border-right: 1px solid #dee2e6;
  padding-right: 8px;
}

.rte-toolbar__group:last-child {
  border-right: none;
  padding-right: 0;
}

/* Toolbar Buttons */
.rte-toolbar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  color: #1d3a85; /* Cobalt Blue */
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.rte-toolbar__btn:hover {
  background-color: #e9ecef;
  border-color: #1d3a85;
  color: #152952; /* Darker cobalt on hover */
  box-shadow: 0 1px 3px rgba(29, 58, 133, 0.15);
}

.rte-toolbar__btn.active {
  background-color: #1d3a85; /* Cobalt Blue */
  color: #ffffff;
  border-color: #1d3a85;
}

.rte-toolbar__btn svg {
  stroke: currentColor;
}

/* Font Size Dropdown */
.rte-toolbar__dropdown-group {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
}

.rte-toolbar__dropdown-icon {
  color: #1d3a85;
  flex-shrink: 0;
}

.rte-toolbar__dropdown {
  padding: 6px 10px;
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  color: #495057;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rte-toolbar__dropdown:hover,
.rte-toolbar__dropdown:focus {
  border-color: #1d3a85;
  outline: none;
  box-shadow: 0 0 0 2px rgba(29, 58, 133, 0.1);
}

/* Color Picker */
.rte-toolbar__color-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
  position: relative;
}

.rte-toolbar__color-icon {
  color: #1d3a85;
  flex-shrink: 0;
  cursor: pointer;
}

.rte-toolbar__color-grid {
  display: none;
  position: absolute;
  top: 36px;
  left: 0;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 8px;
  background-color: #ffffff;
  border: 1px solid #ced4da;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1001;
}

.rte-toolbar__color-picker:hover .rte-toolbar__color-grid {
  display: grid;
}

.rte-toolbar__color-swatch {
  width: 28px;
  height: 28px;
  border: 2px solid #dee2e6;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.rte-toolbar__color-swatch:hover {
  border-color: #1d3a85;
  box-shadow: 0 0 6px rgba(29, 58, 133, 0.3);
  transform: scale(1.1);
}

/* Editor Wrapper */
.rte-editor-wrapper {
  position: relative;
  padding: 0;
  min-height: 300px;
  overflow: hidden;
}

.rte-editor-wrapper .ProseMirror {
  min-height: 300px;
  padding: 16px;
  outline: none;
  background-color: #ffffff;
  color: #212529;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

/* Placeholder */
.rte-placeholder {
  position: absolute;
  top: 16px;
  left: 16px;
  color: #adb5bd;
  font-size: 14px;
  pointer-events: none;
}

.rte-editor-wrapper .ProseMirror p:first-child::before {
  content: attr(data-placeholder);
  float: left;
  color: #adb5bd;
  pointer-events: none;
  height: 0;
}

/* Headings */
.rte-editor-wrapper .ProseMirror h1,
.rte-editor-wrapper .ProseMirror h2,
.rte-editor-wrapper .ProseMirror h3,
.rte-editor-wrapper .ProseMirror h4,
.rte-editor-wrapper .ProseMirror h5,
.rte-editor-wrapper .ProseMirror h6 {
  color: #1d3a85;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 16px;
  margin-bottom: 8px;
}

.rte-editor-wrapper .ProseMirror h1 {
  font-size: 32px;
}

.rte-editor-wrapper .ProseMirror h2 {
  font-size: 28px;
}

.rte-editor-wrapper .ProseMirror h3 {
  font-size: 24px;
}

.rte-editor-wrapper .ProseMirror h4 {
  font-size: 20px;
}

.rte-editor-wrapper .ProseMirror h5 {
  font-size: 16px;
}

.rte-editor-wrapper .ProseMirror h6 {
  font-size: 14px;
}

.rte-editor-wrapper .ProseMirror p {
  margin-bottom: 12px;
}

.rte-editor-wrapper .ProseMirror ul,
.rte-editor-wrapper .ProseMirror ol {
  margin-left: 24px;
  margin-bottom: 12px;
}

.rte-editor-wrapper .ProseMirror li {
  margin-bottom: 4px;
}

/* Tables */
.rte-editor-wrapper table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  background-color: #ffffff;
}

.rte-editor-wrapper table td,
.rte-editor-wrapper table th {
  border: 1px solid #ced4da;
  padding: 12px;
  text-align: left;
  vertical-align: middle;
  min-width: 80px;
}

.rte-editor-wrapper table th {
  background-color: #f8f9fa; /* Ice White */
  color: #1d3a85; /* Cobalt Blue */
  font-weight: 600;
  border-color: #adb5bd;
}

.rte-editor-wrapper table tr:hover {
  background-color: #f8f9fa;
}

.rte-editor-wrapper table td.selectedCell {
  background-color: #e3f2fd;
}

.rte-table {
  width: 100%;
  border-collapse: collapse;
}

.rte-table-row {
  border: 1px solid #ced4da;
}

.rte-table-cell {
  border: 1px solid #ced4da;
  padding: 12px;
  text-align: left;
  vertical-align: middle;
}

.rte-table-header {
  background-color: #f8f9fa;
  color: #1d3a85;
  font-weight: 600;
  border: 1px solid #ced4da;
  padding: 12px;
}

/* Code Block */
.rte-editor-wrapper .ProseMirror pre {
  background-color: #f8f9fa;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 12px;
  overflow-x: auto;
  margin: 12px 0;
}

.rte-editor-wrapper .ProseMirror code {
  background-color: #f8f9fa;
  color: #1d3a85;
  padding: 2px 6px;
  border-radius: 2px;
  font-family: "Monaco", "Courier New", monospace;
  font-size: 12px;
}

.rte-codeblock {
  background-color: #f8f9fa;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 12px;
  margin: 12px 0;
}

/* Blockquote */
.rte-editor-wrapper .ProseMirror blockquote {
  border-left: 4px solid #1d3a85;
  color: #495057;
  font-style: italic;
  padding-left: 12px;
  margin-left: 0;
  margin-right: 0;
  margin-top: 12px;
  margin-bottom: 12px;
}

/* HR */
.rte-editor-wrapper .ProseMirror hr {
  border: none;
  border-top: 2px solid #ced4da;
  margin: 16px 0;
}

/* Selection */
.rte-editor-wrapper .ProseMirror .is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  float: left;
  color: #adb5bd;
  pointer-events: none;
  height: 0;
}

/* Focus State */
.rte-editor-wrapper .ProseMirror:focus {
  outline: 2px solid #1d3a85;
  outline-offset: -2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .rte-toolbar {
    gap: 6px;
    padding: 10px;
  }

  .rte-toolbar__btn {
    width: 32px;
    height: 32px;
  }

  .rte-toolbar__btn svg {
    width: 16px;
    height: 16px;
  }

  .rte-toolbar__group {
    padding-right: 6px;
  }

  .rte-editor-wrapper .ProseMirror {
    min-height: 250px;
    padding: 12px;
    font-size: 13px;
  }

  .rte-editor-wrapper table td,
  .rte-editor-wrapper table th {
    padding: 8px;
    font-size: 12px;
    min-width: 60px;
  }
}

@media (max-width: 480px) {
  .rte-toolbar {
    gap: 4px;
    padding: 8px;
  }

  .rte-toolbar__group {
    border-right: none;
    padding-right: 0;
  }

  .rte-toolbar__group:not(:last-child) {
    border-right: 1px solid #dee2e6;
    padding-right: 4px;
  }

  .rte-editor-wrapper .ProseMirror {
    min-height: 200px;
    padding: 10px;
    font-size: 13px;
  }
}



/* =====================================================
   Vendor Add Product — Refined Merchant Studio Theme
   ===================================================== */
:root {
  --ink: #0d0f12;
  --ink-soft: #3a3f4a;
  --ink-muted: #7c8494;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --surface-3: #eef0f4;
  --border: #e2e5ec;
  --border-strong: #c8cdd9;
  --accent: #2c5fe6;
  --accent-hover: #1e48cc;
  --accent-glow: rgba(44, 95, 230, 0.15);
  --success: #0ea869;
  --success-hover: #0b8f5a;
  --success-glow: rgba(14, 168, 105, 0.15);
  --danger: #e6302c;
  --danger-bg: #fff0f0;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
  --transition: 0.18s ease;
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
}
/* ─── PAGE SHELL ──────────────────────────────────── */
.vendor-add-product-page {
  font-family: var(--font-body);
  color: var(--ink);
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* ─── BACK BUTTON ─────────────────────────────────── */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-muted);
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0;
  letter-spacing: 0.01em;
  transition:
    color var(--transition),
    gap var(--transition);
  width: fit-content;
  margin-bottom: 2rem;
}
.btn-back:hover {
  color: var(--accent);
  gap: 0.6rem;
}
.btn-back svg {
  transition: transform var(--transition);
}
.btn-back:hover svg {
  transform: translateX(-3px);
}
/* ─── PAGE HEADER ─────────────────────────────────── */
.page-header {
  margin-bottom: 2.5rem;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  line-height: 1.1;
}
.page-header p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0;
  font-weight: 300;
}
/* ─── PROGRESS STEPS ──────────────────────────────── */
.progress-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
}
.progress-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}
.progress-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-muted);
  flex-shrink: 0;
  transition: all var(--transition);
}
.progress-step-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
}
.progress-step.active .progress-step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.progress-step.active .progress-step-label {
  color: var(--ink);
}
.progress-step.done .progress-step-num {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.progress-divider {
  height: 1px;
  flex: 1;
  background: var(--border);
  margin: 0 0.5rem;
  max-width: 48px;
}
/* ─── SECTIONS ────────────────────────────────────── */
.form-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.form-section:focus-within {
  box-shadow:
    var(--shadow),
    0 0 0 3px var(--accent-glow);
  border-color: rgba(44, 95, 230, 0.3);
}
.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.section-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.section-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}
.section-subtitle {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin: 0.1rem 0 0;
  font-weight: 300;
}
.section-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
/* ─── FORM ELEMENTS ───────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.label-required {
  color: var(--accent);
  font-size: 0.9em;
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.7rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--ink);
  background: var(--surface);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237c8494' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--surface);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--ink-muted);
  font-weight: 300;
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}
/* input with prefix */
.input-prefix-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-prefix {
  position: absolute;
  left: 0.875rem;
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-weight: 500;
  pointer-events: none;
  user-select: none;
}
.input-prefix-wrapper input {
  padding-left: 1.75rem;
}
/* char counter hint */
.form-hint {
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-weight: 300;
}
/* ─── IMAGE UPLOAD ─────────────────────────────────── */
.image-upload-area {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  transition: all var(--transition);
  overflow: hidden;
}
.image-upload-area:hover {
  border-color: var(--accent);
  background: #f0f4ff;
}
.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2.5rem;
  cursor: pointer;
  color: var(--ink-muted);
}
.upload-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.image-upload-area:hover .upload-icon-wrap {
  box-shadow:
    var(--shadow),
    0 0 0 4px var(--accent-glow);
  border-color: var(--accent);
}
.upload-label-text strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
}
.upload-label-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 0.2rem;
  font-weight: 300;
}
.image-preview-container {
  position: relative;
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.image-preview-img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.image-preview-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.image-preview-meta .img-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.image-preview-meta .img-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.4rem;
  padding: 0.2rem 0.5rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  color: var(--success);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.btn-remove-img {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--ink-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.btn-remove-img:hover {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger);
}
/* ─── VARIANT FORM ─────────────────────────────────── */
.variant-add-panel {
  background: var(--surface-2);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.variant-add-panel .form-row {
  gap: 1rem;
}
.variant-add-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.25rem;
}
.checkbox-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}
.checkbox-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}
.checkbox-toggle span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.btn-add-variant {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-add-variant:hover {
  background: var(--success-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--success-glow);
}
/* ─── VARIANTS LIST ────────────────────────────────── */
.variants-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.variants-list-header {
  display: grid;
  grid-template-columns: 1fr 1fr 90px 90px 72px 44px;
  gap: 0;
  padding: 0.6rem 1rem;
  background: var(--surface-3);
  border-bottom: 1px solid var(--border);
}
.variants-list-header span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}
.variant-row {
  display: grid;
  grid-template-columns: 1fr 1fr 90px 90px 72px 44px;
  gap: 0;
  padding: 0.85rem 1rem;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transition: background var(--transition);
  animation: slideIn 0.2s ease;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.variant-row:last-child {
  border-bottom: none;
}
.variant-row:hover {
  background: var(--surface-2);
}
.variant-cell {
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.variant-city-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
}
.variant-plan-chip {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: #eef3ff;
  border: 1px solid #c7d6ff;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.variant-price {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.variant-sale-price {
  font-size: 0.8125rem;
  color: var(--success);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.variant-dash {
  color: var(--ink-muted);
}
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.availability-badge.yes {
  background: #ecfdf5;
  color: var(--success);
  border: 1px solid #a7f3d0;
}
.availability-badge.no {
  background: #fff7ed;
  color: #c2610b;
  border: 1px solid #fed7aa;
}
.btn-remove-variant {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-remove-variant:hover {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger);
}
.variants-empty {
  text-align: center;
  padding: 2rem;
  color: var(--ink-muted);
  font-size: 0.85rem;
  font-style: italic;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--border);
  margin-top: 0.75rem;
}
.variants-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: auto;
}
/* ─── FORM ACTIONS ─────────────────────────────────── */
.form-actions-bar {
  display: flex;
  gap: 0.875rem;
  margin-top: 1.5rem;
  align-items: center;
  justify-content: flex-end;
}
.btn-cancel {
  padding: 0.7rem 1.5rem;
  background: var(--surface);
  color: var(--ink-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-cancel:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.75rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 60%
  );
  pointer-events: none;
}
/* ─── CATEGORY SELECTION ──────────────────────────── */
.categories-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  max-height: 300px;
  overflow-y: auto;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  cursor: pointer;
  user-select: none;
  transition: color var(--transition);
}
.checkbox-item:hover {
  color: var(--accent);
}
.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
}
.checkbox-label {
  font-size: 0.875rem;
  font-weight: 400;
}
/* ─── SELECTED CATEGORIES PILLS ───────────────────– */
.selected-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0.75rem;
  background: var(--accent-glow);
  border-radius: var(--radius);
  border: 1px solid rgba(44, 95, 230, 0.25);
  min-height: 40px;
  align-items: center;
}
.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}
.category-pill-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition);
}
.category-pill-remove:hover {
  background: rgba(255, 255, 255, 0.3);
}
.no-subcategories {
  padding: 1rem;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.875rem;
}
.btn-submit:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(44, 95, 230, 0.35);
}
.btn-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.btn-submit .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* ─── APPROVAL NOTICE ──────────────────────────────── */
.approval-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1.1rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: #92400e;
  margin-top: 0.5rem;
}
.approval-notice svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: #d97706;
}
/* ─── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 640px) {
  .vendor-add-product-page {
    padding: 1.25rem 1rem 3rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .progress-steps {
    padding: 0.75rem 1rem;
  }

  .progress-step-label {
    display: none;
  }

  .section-body {
    padding: 1.25rem;
  }

  .section-header {
    padding: 1rem 1.25rem;
  }

  .variants-list-header,
  .variant-row {
    grid-template-columns: 1fr 1fr 80px 36px;
  }

  .variants-list-header span:nth-child(3),
  .variant-row .variant-cell:nth-child(3),
  .variants-list-header span:nth-child(4),
  .variant-row .variant-cell:nth-child(4),
  .variants-list-header span:nth-child(5),
  .variant-row .variant-cell:nth-child(5) {
    display: none;
  }

  .form-actions-bar {
    flex-direction: column;
  }

  /* ─── CATEGORY SELECTION ─────────────────────────── */
  .category-section-header {
    margin-bottom: 1rem;
  }

  .category-section-header label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.01em;
    margin-bottom: 0.3rem;
  }

  .selected-categories-wrapper {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f0f4ff;
    border: 1.5px solid rgba(44, 95, 230, 0.2);
    border-radius: var(--radius-lg);
    animation: slideDown 0.3s ease;
  }

  .selected-categories-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
  }

  .badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
  }

  .selected-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(44, 95, 230, 0.25);
    animation: slideDown 0.2s ease;
    transition: all var(--transition);
  }

  .category-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 95, 230, 0.35);
  }

  .pill-content {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pill-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
    margin-left: 0.25rem;
  }

  .pill-remove-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
  }

  /* ─── CATEGORY ACCORDION ──────────────────────────── */
  .categories-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  .accordion-item {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
  }

  .accordion-item:hover {
    border-color: rgba(44, 95, 230, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .accordion-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--surface-2);
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.8875rem;
    font-weight: 500;
    color: var(--ink-soft);
    transition: all var(--transition);
    text-align: left;
  }

  .accordion-header:hover {
    background: #f2f6ff;
    color: var(--accent);
  }

  .accordion-header.expanded {
    background: linear-gradient(135deg, #f0f4ff 0%, #f7f8fa 100%);
    color: var(--accent);
    border-bottom: 1.5px solid rgba(44, 95, 230, 0.2);
  }

  .accordion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform var(--transition);
  }

  .accordion-header.expanded .accordion-icon {
    transform: rotate(90deg);
  }

  .accordion-title {
    font-weight: 600;
    color: inherit;
    flex: 1;
  }

  .subcat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 0.5rem;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
  }

  .accordion-body {
    padding: 1rem 1.25rem;
    background: var(--surface);
    animation: slideDown 0.25s ease;
  }

  .subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
  }

  .checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    user-select: none;
    transition: all var(--transition);
  }

  .checkbox-item:hover {
    background: var(--surface-2);
  }

  .checkbox-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    margin: 0;
  }

  .checkbox-custom {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border-strong);
    border-radius: 4px;
    background: var(--surface);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .checkbox-item input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 2px 6px rgba(44, 95, 230, 0.25);
  }

  .checkbox-item input[type="checkbox"]:checked + .checkbox-custom::after {
    content: "✓";
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
  }

  .checkbox-item input[type="checkbox"]:focus + .checkbox-custom {
    box-shadow: 0 0 0 3px var(--accent-glow);
    border-color: var(--accent);
  }

  .checkbox-label {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--ink-soft);
  }

  .checkbox-item:hover .checkbox-label {
    color: var(--ink);
  }

  .loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: var(--ink-muted);
    font-size: 0.875rem;
  }

  .spinner-mini {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }

  .empty-state,
  .empty-subcategories {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: var(--ink-muted);
    font-size: 0.875rem;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    text-align: center;
  }

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

  .btn-cancel,
  .btn-submit {
    width: 100%;
    justify-content: center;
  }
}
/* Vendor Product Detail Page */

.vendor-product-detail-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #2563eb;
  background: none;
  border: none;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: fit-content;
}

.btn-back:hover {
  color: #1d4ed8;
  transform: translateX(-4px);
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.detail-header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.detail-header .status {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.badge.active {
  background: #dcfce7;
  color: #166534;
}

.badge.inactive {
  background: #f3f4f6;
  color: #374151;
}

.detail-container {
  display: grid;
  gap: 1.5rem;
}

.detail-card,
.form-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 2rem;
}

.detail-card h3,
.form-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1.5rem 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-item label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-item p {
  font-size: 1rem;
  color: #111827;
  margin: 0;
}

.empty-text {
  color: #9ca3af;
  font-size: 0.875rem;
  margin: 0;
}

.variants-table,
.variants-edit-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
}

.variants-table thead,
.variants-edit-table thead {
  background: #f3f4f6;
}

.variants-table th,
.variants-edit-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}

.variants-table td,
.variants-edit-table td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}

.variants-table tbody tr:hover,
.variants-edit-table tbody tr:hover {
  background: #f9fafb;
}

.variants-table tbody tr:last-child td,
.variants-edit-table tbody tr:last-child td {
  border-bottom: none;
}

.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.image-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FORM STYLES */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  color: #111827;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  cursor: pointer;
  font-weight: 400;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}

.variant-form {
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.btn-add-variant {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #10b981;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.2s ease;
}

.btn-add-variant:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.variants-list {
  margin-top: 2rem;
}

.variants-list h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
}

.btn-remove-variant {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-remove-variant:hover {
  background: #fecaca;
  color: #991b1b;
}

.edit-form .form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
  justify-content: flex-end;
}

.btn-secondary {
  padding: 0.75rem 1.5rem;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

.btn-primary {
  padding: 0.75rem 1.5rem;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

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

.loading {
  text-align: center;
  padding: 3rem;
  font-size: 1rem;
  color: #6b7280;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
}

.empty-state h3 {
  font-size: 1.125rem;
  color: #111827;
  margin: 0 0 1rem 0;
}

@media (max-width: 768px) {
  .detail-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-card,
  .form-card {
    padding: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .variants-table,
  .variants-edit-table {
    font-size: 0.75rem;
  }

  .variants-table th,
  .variants-table td,
  .variants-edit-table th,
  .variants-edit-table td {
    padding: 0.5rem;
  }

  .images-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .edit-form .form-actions {
    flex-direction: column;
  }

  .btn-secondary,
  .btn-primary {
    width: 100%;
  }
}

/* HTML Content Rendering - TipTap Editor Output */
.description-content {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.description-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.description-content table td,
.description-content table th {
  border: 1px solid #d1d5db;
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.description-content table th {
  background-color: #f3f4f6;
  color: #1f2937;
  font-weight: 600;
  border-color: #9ca3af;
}

.description-content table tr:nth-child(even) {
  background-color: #f9fafb;
}

.description-content table tr:hover {
  background-color: #f3f4f6;
}

.description-content table p {
  margin: 0;
  padding: 0;
}

.description-content h1,
.description-content h2,
.description-content h3,
.description-content h4,
.description-content h5,
.description-content h6 {
  margin: 12px 0 8px 0;
  color: #1f2937;
  font-weight: 600;
}

.description-content ul,
.description-content ol {
  margin: 12px 0;
  padding-left: 24px;
}

.description-content li {
  margin-bottom: 6px;
}
.vendor-profile-wrapper {
  padding: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.loading,
.empty-state {
  padding: 64px 24px;
  text-align: center;
  color: #666;
  font-size: 16px;
}

/* Profile Header */
.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
}

.header-content h1 {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 4px 0;
}

.header-content p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* Profile Completion Widget */
.completion-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 120px;
}

.completion-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
}

.completion-value {
  font-size: 28px;
  font-weight: bold;
}

.completion-label {
  font-size: 11px;
  color: #999;
  font-weight: 500;
}

.completion-bar {
  width: 120px;
  height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
}

.completion-fill {
  height: 100%;
  transition:
    width 0.3s ease,
    background-color 0.3s ease;
}

/* Profile Content */
.profile-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Profile Section */
.profile-section {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
}

.profile-section h2 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.section-note {
  background: #fff3cd;
  border: 1px solid #ffe69c;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #856404;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Logo Section */
.logo-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo-preview {
  width: 150px;
  height: 150px;
  background: #f9f9f9;
  border: 2px dashed #e0e0e0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-preview svg {
  color: #ccc;
}

.logo-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upload-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
  width: fit-content;
}

.upload-btn:hover {
  background-color: #0056b3;
}

.logo-upload p {
  font-size: 12px;
  color: #999;
  margin: 0;
}

/* Form Groups */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  color: #333;
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: white;
  transition: border-color 0.2s;
}

.input-wrapper svg {
  color: #999;
  flex-shrink: 0;
}

.input-wrapper input,
.input-wrapper textarea {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 0;
  font-size: 14px;
  font-family: inherit;
  background: transparent;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
  color: #333;
}

.input-wrapper:has(input:focus),
.input-wrapper:has(textarea:focus) {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.input-wrapper.disabled-input {
  background: #f9f9f9;
}

.input-wrapper.disabled-input input {
  color: #999;
}

/* Sensitive Field Styling */
.sensitive-field .input-wrapper {
  border-color: #ffe69c;
  background: #fffbf0;
}

.sensitive-field .input-wrapper svg {
  color: #ff9800;
}

.edit-btn {
  padding: 6px 12px;
  background: #ff9800;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.edit-btn:hover {
  background-color: #e68900;
}

/* Approval Edit Mode */
.approval-edit {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.approval-actions {
  display: flex;
  gap: 8px;
}

.btn-submit {
  flex: 1;
  padding: 10px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-submit:hover {
  background-color: #218838;
}

.btn-cancel {
  flex: 1;
  padding: 10px;
  background: #f0f0f0;
  color: #333;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background-color 0.2s;
}

.btn-cancel:hover {
  background-color: #e0e0e0;
}

/* Bio Textarea */
.bio-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s;
}

.bio-textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Tax Section */
.tax-section .tax-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .tax-section .tax-info {
    grid-template-columns: 1fr;
  }

  .profile-header {
    flex-direction: column;
    gap: 16px;
  }

  .logo-container {
    flex-direction: column;
  }
}

/* Status Section */
.status-section {
  background: linear-gradient(135deg, #f8f9ff, #f0f4ff);
  border: 1px solid #dce8ff;
}

.status-display {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-badge {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: 6px;
  align-items: flex-start;
}

.status-badge svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.status-badge strong {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
}

.status-badge p {
  margin: 0;
  font-size: 13px;
}

.status-badge.approved {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.status-badge.approved svg {
  color: #28a745;
}

.status-badge.pending {
  background: #fff3cd;
  border: 1px solid #ffe69c;
  color: #856404;
}

.status-badge.pending svg {
  color: #ff9800;
}

.status-badge.rejected {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.status-badge.rejected svg {
  color: #dc3545;
}

.status-badge.suspended {
  background: #e2e3e5;
  border: 1px solid #d3d6d8;
  color: #383d41;
}

.status-badge.suspended svg {
  color: #6c757d;
}

/* Profile Actions */
.profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}

.btn-save {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-save:hover {
  background-color: #0056b3;
}

.btn-save:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
  .vendor-profile-wrapper {
    padding: 16px;
  }

  .profile-header {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .completion-widget {
    flex-direction: row;
  }

  .profile-section {
    padding: 16px;
  }

  .profile-section h2 {
    font-size: 16px;
  }

  .form-group {
    margin-bottom: 16px;
  }

  .input-wrapper {
    padding: 0 10px;
  }

  .input-wrapper input,
  .input-wrapper textarea {
    padding: 8px 0;
  }
}
/* ═════════════════════════════════════════════════════════════════
   Staff Requests Tab - Styling
   ═════════════════════════════════════════════════════════════════ */

.sr-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 0;
  border-radius: 0.75rem;
  background: #f9fafb;
}

/* ─────────────────────────────────────────────────────────────── */
/* Header section */
/* ─────────────────────────────────────────────────────────────── */

.sr-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

.sr-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.25rem 0;
}

.sr-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.sr-refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0;
  flex-shrink: 0;
}

.sr-refresh:hover:not(:disabled) {
  background: #f3f4f6;
  color: #374151;
  border-color: #d1d5db;
}

.sr-refresh:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sr-refresh .spin {
  animation: spin-animation 1s linear infinite;
}

@keyframes spin-animation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ─────────────────────────────────────────────────────────────── */
/* Status tabs */
/* ─────────────────────────────────────────────────────────────── */

.sr-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  flex-wrap: wrap;
}

.sr-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  position: relative;
  white-space: nowrap;
}

.sr-tab:hover {
  color: #374151;
  background: #f9fafb;
}

.sr-tab--active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.sr-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.25rem;
  margin-left: 0.25rem;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────── */
/* Search area */
/* ─────────────────────────────────────────────────────────────── */

.sr-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #ffffff;
  max-width: 24rem;
  transition: border-color 0.2s ease;
}

.sr-search-wrap:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.sr-search-icon {
  color: #9ca3af;
  flex-shrink: 0;
}

.sr-search {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.875rem;
  color: #111827;
  font-family: inherit;
}

.sr-search::placeholder {
  color: #9ca3af;
}

/* ─────────────────────────────────────────────────────────────── */
/* Loading & Empty states */
/* ─────────────────────────────────────────────────────────────── */

.sr-loading,
.sr-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 2rem;
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  min-height: 300px;
}

.sr-loading svg,
.sr-empty svg {
  color: #d1d5db;
}

.sr-loading p,
.sr-empty p {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.sr-loading span {
  font-size: 0.875rem;
  display: inline-block;
}

/* ─────────────────────────────────────────────────────────────── */
/* Table section */
/* ─────────────────────────────────────────────────────────────── */

.sr-table-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #ffffff;
}

.sr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.sr-table thead {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.sr-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sr-table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s ease;
}

.sr-table tbody tr:hover {
  background: #f9fafb;
}

.sr-table tbody tr:last-child {
  border-bottom: none;
}

.sr-table td {
  padding: 1rem;
  color: #111827;
  vertical-align: middle;
}

/* ─────────────────────────────────────────────────────────────── */
/* Table content cells */
/* ─────────────────────────────────────────────────────────────── */

.sr-person {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sr-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}

.sr-name {
  font-weight: 500;
  color: #111827;
}

.sr-role {
  font-size: 0.75rem;
  color: #9ca3af;
}

.sr-email {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
}

.sr-email svg {
  color: #d1d5db;
  flex-shrink: 0;
}

.sr-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
}

.sr-date svg {
  color: #d1d5db;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────── */
/* Status badges */
/* ─────────────────────────────────────────────────────────────── */

.sr-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--pending {
  background: #fef3c7;
  color: #92400e;
}

.badge--approved {
  background: #dcfce7;
  color: #166534;
}

.badge--rejected {
  background: #fee2e2;
  color: #7f1d1d;
}

.badge--suspended {
  background: #fecaca;
  color: #7f1d1d;
}

/* ─────────────────────────────────────────────────────────────── */
/* Action buttons */
/* ─────────────────────────────────────────────────────────────── */

.sr-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sr-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  background: #ffffff;
}

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

.sr-btn svg {
  flex-shrink: 0;
}

.sr-btn--approve {
  color: #059669;
  border-color: #d1d5db;
  background: #ecfdf5;
}

.sr-btn--approve:hover:not(:disabled) {
  background: #d1fae5;
  border-color: #6ee7b7;
  color: #047857;
}

.sr-btn--reject {
  color: #dc2626;
  border-color: #d1d5db;
  background: #fef2f2;
}

.sr-btn--reject:hover:not(:disabled) {
  background: #fee2e2;
  border-color: #fecaca;
  color: #b91c1c;
}

.sr-btn--suspend {
  color: #f59e0b;
  border-color: #d1d5db;
  background: #fffbeb;
}

.sr-btn--suspend:hover:not(:disabled) {
  background: #fef3c7;
  border-color: #fde68a;
  color: #d97706;
}

/* ─────────────────────────────────────────────────────────────── */
/* Pagination */
/* ─────────────────────────────────────────────────────────────── */

.sr-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
}

.sr-page-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: #ffffff;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sr-page-btn:hover:not(:disabled) {
  background: #f3f4f6;
  border-color: #9ca3af;
}

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

.sr-page-info {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────── */
/* Responsive Design */
/* ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .sr-container {
    gap: 1.5rem;
    padding: 1.5rem 0;
  }

  .sr-header {
    flex-direction: column;
    gap: 1rem;
  }

  .sr-title {
    font-size: 1.5rem;
  }

  .sr-tabs {
    gap: 0.25rem;
  }

  .sr-tab {
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
  }

  .sr-search-wrap {
    max-width: 100%;
  }

  .sr-table {
    font-size: 0.8125rem;
  }

  .sr-table th,
  .sr-table td {
    padding: 0.75rem 0.5rem;
  }

  .sr-person {
    gap: 0.5rem;
  }

  .sr-avatar {
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
  }

  .sr-actions {
    gap: 0.375rem;
  }

  .sr-btn {
    padding: 0.375rem 0.625rem;
    font-size: 0.7rem;
  }

  .sr-pagination {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  /* Hide "Approved On" column on mobile when activeStatus is "approved" */
  .sr-table th:nth-child(5),
  .sr-table td:nth-child(5) {
    display: none;
  }
}

@media (max-width: 640px) {
  .sr-title {
    font-size: 1.25rem;
  }

  .sr-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }

  .sr-tab {
    padding: 0.5rem 0.625rem;
  }

  .sr-table {
    font-size: 0.75rem;
  }

  .sr-table th,
  .sr-table td {
    padding: 0.5rem 0.375rem;
  }

  .sr-tab-badge {
    min-width: 1.125rem;
    height: 1.125rem;
    font-size: 0.65rem;
  }

  .sr-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.65rem;
  }

  .sr-btn svg {
    width: 12px;
    height: 12px;
  }

  .sr-actions {
    flex-direction: column;
  }
}

/* Hide certain columns on smaller displays - adjust as needed */
@media (max-width: 1024px) {
  .sr-email {
    font-size: 0.8125rem;
  }

  .sr-date {
    font-size: 0.8125rem;
  }
}
.admin-product-requests-page {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 30px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 600;
  color: #222;
  margin: 0 0 5px 0;
}

.page-header p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* Controls Section */
.controls-section {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}

.search-bar {
  flex: 1;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.search-bar input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.btn-refresh {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-refresh:hover {
  background: #f5f5f5;
  border-color: #999;
}

/* Loading and Empty State */
.loading,
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.loading p,
.empty-state h3,
.empty-state p {
  color: #666;
  margin: 0;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Products Table */
.products-table-container {
  background: white;
  border-radius: 8px;
  border: 1px solid #ddd;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.products-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.products-table thead {
  background: #f9f9f9;
  border-bottom: 2px solid #eee;
}

.products-table th {
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

.products-table tbody tr {
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

.products-table tbody tr:hover {
  background: #f9f9f9;
}

.products-table td {
  padding: 12px 15px;
}

/* Product Name */
.product-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: #222;
}

.product-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ddd;
}

/* Special Cell Styles */
.products-table .sku {
  font-family: monospace;
  font-size: 13px;
  color: #666;
}

.products-table .price {
  font-weight: 600;
  color: #27ae60;
}

.products-table .stock {
  text-align: center;
  font-weight: 500;
}

.products-table .date {
  color: #999;
  font-size: 13px;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.btn-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

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

.btn-view {
  color: #007bff;
}

.btn-view:hover:not(:disabled) {
  background: #e7f3ff;
  border-color: #007bff;
  color: #0056b3;
}

.btn-approve {
  color: #27ae60;
}

.btn-approve:hover:not(:disabled) {
  background: #e8f5e9;
  border-color: #27ae60;
}

.btn-reject {
  color: #dc3545;
}

.btn-reject:hover:not(:disabled) {
  background: #ffe8e8;
  border-color: #dc3545;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  padding: 15px;
}

.pagination button {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.pagination button:hover:not(:disabled) {
  background: #f5f5f5;
  border-color: #999;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination span {
  color: #666;
  font-size: 14px;
  font-weight: 500;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 8px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #eee;
}

.modal-content h2 {
  padding: 20px 20px 10px;
  margin: 0;
  font-size: 22px;
  color: #222;
  border-bottom: 1px solid #eee;
}

.modal-body {
  padding: 20px;
}

.product-image {
  margin-bottom: 20px;
}

.product-image img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ddd;
}

/* Details Grid */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.detail-item label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.detail-item p {
  font-size: 14px;
  color: #222;
  margin: 0;
  word-break: break-word;
}

.description-section {
  margin-bottom: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 6px;
}

.description-section label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.description-section p {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  margin: 0;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.btn-secondary,
.btn-approve,
.btn-reject {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-secondary {
  background: #f5f5f5;
  color: #333;
}

.btn-secondary:hover {
  background: #eee;
}

.btn-approve {
  background: #27ae60;
  color: white;
}

.btn-approve:hover:not(:disabled) {
  background: #229c54;
}

.btn-approve:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-reject {
  background: #dc3545;
  color: white;
}

.btn-reject:hover:not(:disabled) {
  background: #c82333;
}

.btn-reject:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Variants Section */
.variants-section {
  margin-bottom: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 6px;
}

.variants-section label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.variants-table {
  overflow-x: auto;
}

.variants-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: white;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}

.variants-table thead {
  background: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
}

.variants-table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-right: 1px solid #e0e0e0;
}

.variants-table th:last-child {
  border-right: none;
}

.variants-table td {
  padding: 10px 12px;
  color: #333;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.variants-table td:last-child {
  border-right: none;
}

/* HTML Content Rendering - TipTap Editor Output */
.description-content {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.description-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.description-content table td,
.description-content table th {
  border: 1px solid #d1d5db;
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.description-content table th {
  background-color: #f3f4f6;
  color: #1f2937;
  font-weight: 600;
  border-color: #9ca3af;
}

.description-content table tr:nth-child(even) {
  background-color: #f9fafb;
}

.description-content table tr:hover {
  background-color: #f3f4f6;
}

.description-content table p {
  margin: 0;
  padding: 0;
}

.description-content h1,
.description-content h2,
.description-content h3,
.description-content h4,
.description-content h5,
.description-content h6 {
  margin: 12px 0 8px 0;
  color: #1f2937;
  font-weight: 600;
}

.description-content ul,
.description-content ol {
  margin: 12px 0;
  padding-left: 24px;
}

.description-content li {
  margin-bottom: 6px;
}

.variants-table tbody tr:last-child td {
  border-bottom: none;
}

.variants-table .price-cell {
  font-weight: 500;
  color: #27ae60;
}

.badge-available {
  display: inline-block;
  padding: 4px 8px;
  background: #d4edda;
  color: #155724;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
}

.badge-unavailable {
  display: inline-block;
  padding: 4px 8px;
  background: #f8d7da;
  color: #721c24;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
  .products-table {
    font-size: 13px;
  }

  .products-table th,
  .products-table td {
    padding: 10px;
  }

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

@media (max-width: 768px) {
  .admin-product-requests-page {
    padding: 15px;
  }

  .products-table-container {
    overflow-x: auto;
  }

  .products-table {
    min-width: 700px;
  }

  .action-buttons {
    flex-direction: column;
  }

  .modal-content {
    max-width: 90%;
  }

  .modal-actions {
    flex-direction: column;
  }

  .search-bar input {
    padding: 8px 12px;
    font-size: 13px;
  }
}
.admin-all-products-page {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 30px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 600;
  color: #222;
  margin: 0 0 5px 0;
}

.page-header p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* Controls Section */
.controls-section {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}

.search-bar {
  flex: 1;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.search-bar input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.status-filter {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.status-filter:focus {
  outline: none;
  border-color: #007bff;
}

.btn-refresh {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-refresh:hover {
  background: #f5f5f5;
  border-color: #999;
}

/* Loading and Empty State */
.loading,
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.loading p,
.empty-state h3,
.empty-state p {
  color: #666;
  margin: 0;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Products Table */
.products-table-container {
  background: white;
  border-radius: 8px;
  border: 1px solid #ddd;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.products-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.products-table thead {
  background: #f9f9f9;
  border-bottom: 2px solid #eee;
}

.products-table th {
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

.products-table tbody tr {
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

.products-table tbody tr:hover {
  background: #f9f9f9;
}

.products-table td {
  padding: 12px 15px;
}

/* Product Name */
.product-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: #222;
}

.product-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ddd;
}

/* Special Cell Styles */
.products-table .sku {
  font-family: monospace;
  font-size: 13px;
  color: #666;
}

.products-table .price {
  font-weight: 600;
  color: #27ae60;
}

.products-table .commission {
  font-weight: 500;
  color: #f39c12;
}

/* Status and Featured Badges */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.featured-badge {
  font-size: 13px;
  color: #f39c12;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.btn-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

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

.btn-view {
  color: #007bff;
}

.btn-view:hover:not(:disabled) {
  background: #e7f3ff;
  border-color: #007bff;
  color: #0056b3;
}

.btn-approve {
  color: #27ae60;
}

.btn-approve:hover:not(:disabled) {
  background: #e8f5e9;
  border-color: #27ae60;
}

.btn-reject {
  color: #dc3545;
}

.btn-reject:hover:not(:disabled) {
  background: #ffe8e8;
  border-color: #dc3545;
}

.best-deal-badge {
  font-size: 13px;
  color: #e74c3c;
}

.btn-featured {
  color: #999;
  font-size: 16px;
}

.btn-featured.active {
  color: #f39c12;
}

.btn-featured:hover:not(:disabled) {
  background: #fffbf0;
  border-color: #f39c12;
}

.btn-best-deal {
  color: #999;
  font-size: 16px;
}

.btn-best-deal.active {
  color: #e74c3c;
}

.btn-best-deal:hover:not(:disabled) {
  background: #ffe8e8;
  border-color: #e74c3c;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  padding: 15px;
}

.pagination button {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.pagination button:hover:not(:disabled) {
  background: #f5f5f5;
  border-color: #999;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination span {
  color: #666;
  font-size: 14px;
  font-weight: 500;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #eee;
}

.modal-content h2 {
  padding: 20px 20px 10px;
  margin: 0;
  font-size: 22px;
  color: #222;
  border-bottom: 1px solid #eee;
}

.modal-body {
  padding: 20px;
}

.product-image {
  margin-bottom: 20px;
}

.product-image img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ddd;
}

/* Details Grid */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.detail-item label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.detail-item p {
  font-size: 14px;
  color: #222;
  margin: 0;
  word-break: break-word;
}

.description-section {
  margin-bottom: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 6px;
}

.description-section label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.description-section p {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  margin: 0;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.btn-secondary,
.btn-approve,
.btn-reject {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-secondary {
  background: #f5f5f5;
  color: #333;
}

.btn-secondary:hover {
  background: #eee;
}

.btn-approve {
  background: #27ae60;
  color: white;
}

.btn-approve:hover:not(:disabled) {
  background: #229c54;
}

.btn-approve:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-reject {
  background: #dc3545;
  color: white;
}

.btn-reject:hover:not(:disabled) {
  background: #c82333;
}

.btn-reject:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-edit {
  color: #2196f3;
}

.btn-edit:hover:not(:disabled) {
  background: #e3f2fd;
  border-color: #2196f3;
}

.btn-delete {
  color: #dc3545;
}

.btn-delete:hover:not(:disabled) {
  background: #ffe8e8;
  border-color: #dc3545;
}

/* Delete Confirmation Modal */
.modal-confirm {
  max-width: 400px;
}

.modal-confirm h3 {
  padding: 20px 20px 10px;
  margin: 0;
  font-size: 20px;
  color: #222;
  border-bottom: 1px solid #eee;
}

.modal-confirm p {
  padding: 20px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.modal-confirm-actions {
  display: flex;
  gap: 10px;
  padding: 0 20px 20px;
}

.modal-confirm-actions .btn-secondary,
.modal-confirm-actions .btn-delete {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

/* VARIANTS SECTION */
.variants-section {
  margin-bottom: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 6px;
}

.variants-section h3 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: #666;
}

.variants-detail-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  font-size: 13px;
}

.variants-detail-table thead {
  background: #f0f0f0;
}

.variants-detail-table th {
  padding: 8px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #ddd;
}

.variants-detail-table td {
  padding: 8px;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
}

.variants-detail-table tbody tr:hover {
  background: #fafafa;
}

.empty-text {
  color: #999;
  font-size: 13px;
  margin: 0;
}

/* DELIVERABLES SECTION */
.deliverables-section {
  margin-bottom: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 6px;
}

.deliverables-section h3 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: #666;
}

.deliverables-list {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
}

.deliverables-list li {
  padding: 6px 0;
  color: #333;
  font-size: 13px;
}

/* IMAGES SECTION */
.images-section {
  margin-bottom: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 6px;
}

.images-section h3 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: #666;
}

.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.image-item {
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #ddd;
  background: #fff;
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.image-item:hover img {
  transform: scale(1.05);
}

/* REVIEWS SECTION */
.reviews-section {
  margin-bottom: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 6px;
}

.reviews-section h3 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: #666;
}

.review-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.stat-item {
  padding: 10px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.stat-item label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.stat-item p {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #222;
}

/* Responsive */
@media (max-width: 1024px) {
  .products-table {
    font-size: 13px;
  }

  .products-table th,
  .products-table td {
    padding: 10px;
  }

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

@media (max-width: 768px) {
  .admin-all-products-page {
    padding: 15px;
  }

  .controls-section {
    flex-wrap: wrap;
  }

  .status-filter {
    flex: 1;
    min-width: 150px;
  }

  .products-table-container {
    overflow-x: auto;
  }

  .products-table {
    min-width: 900px;
  }

  .action-buttons {
    flex-direction: column;
  }

  .modal-content {
    max-width: 90%;
  }

  .modal-actions {
    flex-direction: column;
  }

  .search-bar input {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* HTML Content Rendering - TipTap Editor Output */
.description-content {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.description-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.description-content table td,
.description-content table th {
  border: 1px solid #d1d5db;
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.description-content table th {
  background-color: #f3f4f6;
  color: #1f2937;
  font-weight: 600;
  border-color: #9ca3af;
}

.description-content table tr:nth-child(even) {
  background-color: #f9fafb;
}

.description-content table tr:hover {
  background-color: #f3f4f6;
}

.description-content table p {
  margin: 0;
  padding: 0;
}

.description-content h1,
.description-content h2,
.description-content h3,
.description-content h4,
.description-content h5,
.description-content h6 {
  margin: 12px 0 8px 0;
  color: #1f2937;
  font-weight: 600;
}

.description-content ul,
.description-content ol {
  margin: 12px 0;
  padding-left: 24px;
}

.description-content li {
  margin-bottom: 6px;
}
.admin-edit-page {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.header-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  color: #333;
  transition: all 0.3s;
  font-weight: 500;
}

.back-button:hover {
  background: #e0e0e0;
  border-color: #999;
}

.admin-edit-page h1 {
  color: #333;
  margin: 0;
  font-size: 28px;
}

.loading {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 16px;
}

.edit-form {
  background: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-section {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e9ecef;
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h2 {
  color: #333;
  margin: 0 0 20px 0;
  font-size: 18px;
}

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

.form-group {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="number"]:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
}

.form-group.checkbox-group {
  margin-bottom: 20px;
}

.form-group.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  margin-bottom: 0;
  cursor: pointer;
}

.form-group.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}

/* Variant Section */
.variant-form {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.btn-add-variant {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0066cc;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  align-self: flex-end;
  margin-top: 10px;
}

.btn-add-variant:hover {
  background: #0052a3;
}

.variants-table-container {
  overflow-x: auto;
  margin-top: 20px;
}

.variants-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  overflow: hidden;
}

.variants-table thead {
  background: #f8f9fa;
  border-bottom: 2px solid #e9ecef;
}

.variants-table th {
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.variants-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e9ecef;
  font-size: 14px;
  color: #666;
}

.variants-table tr:last-child td {
  border-bottom: none;
}

/* Deliverables Section */
.deliverables-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.deliverables-form input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.deliverables-form input:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.btn-add {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0066cc;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.btn-add:hover {
  background: #0052a3;
}

.deliverables-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.deliverables-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: #f8f9fa;
  border-radius: 4px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
}

.deliverables-list li:last-child {
.deliverables-list li:last-child {
  margin-bottom: 0;
}

/* Images Section */
.images-group {
  margin-bottom: 20px;
}

.images-group h3 {
  color: #333;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 15px 0;
}

.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.image-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f0f0;
  height: 120px;
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-remove-image {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 16px;
  padding: 0;
  line-height: 1;
}

.btn-remove-image:hover {
  background: rgba(220, 53, 69, 1);
}

.image-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px;
  border: 2px dashed #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  background: #f8f9fa;
  color: #666;
  font-weight: 600;
}

.image-upload-label:hover {
  border-color: #0066cc;
  background: #fff;
  color: #0066cc;
}

.image-upload-label:hover {
  border-color: #0066cc;
  background: #fff;
  color: #0066cc;
}

/* Buttons */
.btn-remove {
  background: transparent;
  border: none;
  color: #dc3545;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.btn-remove:hover {
  color: #c82333;
  transform: scale(1.1);
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #e9ecef;
}

.form-actions button {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-cancel {
  background: #e9ecef;
  color: #333;
}

.btn-cancel:hover {
  background: #dee2e6;
}

.btn-submit {
  background: #28a745;
  color: white;
}

.btn-submit:hover {
  background: #218838;
}

.btn-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
  .admin-edit-page {
    padding: 15px;
  }

  .header-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .edit-form {
    padding: 20px;
  }

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

  .images-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .image-item {
    height: 100px;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions button {
    width: 100%;
  }
}

/* ─── CATEGORY SELECTION ─────────────────────────── */
.category-section-header {
  margin-bottom: 1rem;
}

.category-section-header label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.01em;
  margin-bottom: 0.3rem;
}

.form-hint {
  font-size: 0.75rem;
  color: #666;
  font-weight: 300;
}

.selected-categories-wrapper {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f0f4ff;
  border: 1.5px solid rgba(44, 95, 230, 0.2);
  border-radius: 10px;
  animation: slideDown 0.3s ease;
}

.selected-categories-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #2c5fe6;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #2c5fe6;
  color: #fff;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
}

.selected-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: #2c5fe6;
  color: #fff;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(44, 95, 230, 0.25);
  animation: slideDown 0.2s ease;
  transition: all 0.18s ease;
}

.category-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 95, 230, 0.35);
}

.pill-content {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill-remove-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: all 0.18s ease;
  padding: 0;
  margin-left: 0.25rem;
}

.pill-remove-btn:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

/* ─── CATEGORY ACCORDION ──────────────────────────── */
.categories-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-radius: 10px;
  overflow: hidden;
}

.accordion-item {
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.18s ease;
}

.accordion-item:hover {
  border-color: rgba(44, 95, 230, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.accordion-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.25rem;
  background: #f9f9f9;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8875rem;
  font-weight: 500;
  color: #555;
  transition: all 0.18s ease;
  text-align: left;
}

.accordion-header:hover {
  background: #f2f6ff;
  color: #2c5fe6;
}

.accordion-header.expanded {
  background: linear-gradient(135deg, #f0f4ff 0%, #f7f8fa 100%);
  color: #2c5fe6;
  border-bottom: 1.5px solid rgba(44, 95, 230, 0.2);
}

.accordion-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #2c5fe6;
  flex-shrink: 0;
  transition: transform 0.18s ease;
  line-height: 1;
}

.accordion-header.expanded .accordion-icon {
  transform: rotate(90deg);
}

.accordion-title {
  font-weight: 600;
  color: inherit;
  flex: 1;
}

.subcat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 0.5rem;
  background: #2c5fe6;
  color: #fff;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.accordion-body {
  padding: 1rem 1.25rem;
  background: #fff;
  animation: slideDown 0.25s ease;
}

.subcategories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  transition: all 0.18s ease;
}

.checkbox-item:hover {
  background: #f8f8f8;
}

.checkbox-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.checkbox-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
}

.checkbox-custom {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid #ccc;
  border-radius: 4px;
  background: #fff;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-custom {
  background: #2c5fe6;
  border-color: #2c5fe6;
  box-shadow: 0 2px 6px rgba(44, 95, 230, 0.25);
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '✓';
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}

.checkbox-item input[type="checkbox"]:focus + .checkbox-custom {
  box-shadow: 0 0 0 3px rgba(44, 95, 230, 0.15);
  border-color: #2c5fe6;
}

.checkbox-label {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #555;
}

.checkbox-item:hover .checkbox-label {
  color: #333;
}

.empty-state,
.empty-subcategories {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  color: #999;
  font-size: 0.875rem;
  background: #f8f8f8;
  border-radius: 4px;
  text-align: center;
}

.empty-state p,
.empty-subcategories p {
  margin: 0;
}

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

/* HTML Content Rendering - TipTap Editor Output */
.description-content {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.description-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.description-content table td,
.description-content table th {
  border: 1px solid #d1d5db;
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.description-content table th {
  background-color: #f3f4f6;
  color: #1f2937;
  font-weight: 600;
  border-color: #9ca3af;
}

.description-content table tr:nth-child(even) {
  background-color: #f9fafb;
}

.description-content table tr:hover {
  background-color: #f3f4f6;
}

.description-content table p {
  margin: 0;
  padding: 0;
}

.description-content h1,
.description-content h2,
.description-content h3,
.description-content h4,
.description-content h5,
.description-content h6 {
  margin: 12px 0 8px 0;
  color: #1f2937;
  font-weight: 600;
}

.description-content ul,
.description-content ol {
  margin: 12px 0;
  padding-left: 24px;
}

.description-content li {
  margin-bottom: 6px;
}


:root {
  --navy: #0f1b2d;
  --navy-border: #1e3b86;
  --teal: #00c9a7;
  --teal-dim: #009e84;
  --teal-bg: rgba(0, 201, 167, 0.1);
  --white: #ffffff;
  --off-white: #f4f6f9;
  --text-primary: #1a2332;
  --text-secondary: #5a6a80;
  --text-muted: #8fa0b5;
  --border: #e2e8f0;
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.08);
  --sidebar-w: 220px;
  --radius: 8px;
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--off-white);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button {
  cursor: pointer;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* Layout */

.admin-shell {
  display: flex;
  min-height: 100vh;
}

.main-area {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

.page-content {
  flex: 1;
  padding: 24px 28px;
}

/* Sidebar */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  border-right: 1px solid #dce8ff;
  box-shadow: 2px 0 12px rgba(30, 59, 134, 0.08);
}

.sidebar-logo {
  padding: 16px 18px;
  border-bottom: 1px solid #dce8ff;
  background: #1e3b86;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sidebar-logo .brand {
  font-family: sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  flex: 1;
}

.sidebar-logo .brand span {
  color: #4fd2d0;
}

.collapse-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(79, 210, 208, 0.15);
  border: 1px solid rgba(79, 210, 208, 0.3);
  border-radius: 6px;
  color: #4fd2d0;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.collapse-all-btn:hover {
  background: rgba(79, 210, 208, 0.25);
  border-color: rgba(79, 210, 208, 0.5);
  transform: translateY(-2px);
}

.collapse-all-btn:active {
  transform: translateY(0);
}

.collapse-all-btn svg {
  width: 16px;
  height: 16px;
}

.sidebar-lbl {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #8faadc;
  padding: 14px 18px 4px;
}

.sidebar-nav {
  flex: 1;
  padding: 8px 0;
  background: #ffffff;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  color: #4a5f8a;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.15s;
  user-select: none;
}

.nav-item:hover {
  color: #1e3b86;
  background: #eef3ff;
  border-left-color: #adc3f5;
}

.nav-item.active {
  color: #1e3b86;
  background: #dde8ff;
  border-left-color: #1e3b86;
  font-weight: 600;
}

.nav-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.nav-chev {
  margin-left: auto;
  width: 12px !important;
  height: 12px !important;
  transition: transform 0.2s;
}

.nav-chev.open {
  transform: rotate(90deg);
}

.sub-nav {
  background: #f5f8ff;
  border-left: none;
}

.sub-nav .nav-item {
  padding-left: 42px;
  font-size: 12.5px;
  font-weight: 400;
  color: #6b82b0;
  border-left: none;
}

.sub-nav .nav-item:hover {
  color: #1e3b86;
  background: #e4ecff;
  border-left-color: transparent;
}

.sub-nav .nav-item.active {
  color: #1e3b86;
  background: #dde8ff;
  font-weight: 600;
  border-left: none;
  position: relative;
}

.sub-nav .nav-item.active::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1e3b86;
}

.sidebar-foot {
  padding: 14px 18px;
  border-top: 1px solid #dce8ff;
  background: #ffffff;
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ef4444;
  font-size: 13px;
  font-weight: 500;
  background: none;
  border: none;
  padding: 4px 0;
  opacity: 0.75;
  transition: opacity 0.15s;
}

.logout-btn:hover {
  opacity: 1;
}

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

/* Topbar */

.topbar {
  height: 60px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}

.tb-brand {
  font-family: sans-serif;
  font-size: 25px;
  font-weight: 900;
  color: var(--navy-border);
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
}

.tb-brand span {
  color: var(--teal);
}

.tb-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.tb-search {
  flex: 1;
  max-width: 360px;
  position: relative;
}

.tb-search input {
  width: 100%;
  padding: 7px 14px 7px 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-primary);
  background: var(--off-white);
  outline: none;
  transition: border-color 0.15s;
}

.tb-search input:focus {
  border-color: var(--teal);
}

.tb-search .si {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 14px;
  height: 14px;
}

.tb-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.tb-bell {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 5px;
  border-radius: 6px;
  transition: background 0.15s;
  display: flex;
  align-items: center;
}

.tb-bell:hover {
  background: var(--off-white);
}

.tb-bell svg {
  width: 18px;
  height: 18px;
}

.tb-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.u-info {
  text-align: right;
}

.u-info .uname {
  font-size: 13px;
  font-weight: 600;
}

.u-info .urole {
  font-size: 11px;
  color: var(--text-muted);
}

.u-avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
}

/* Settings card */

.sc {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sc-head {
  background: var(--navy-border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sc-head h3 {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sc-head h3 svg {
  width: 13px;
  height: 13px;
  color: var(--teal);
}

.sc-body {
  padding: 20px;
}

/* Toggle */

.sec-tog {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sec-tog-lbl {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}

.tgl {
  position: relative;
  width: 38px;
  height: 20px;
  cursor: pointer;
}

.tgl input {
  display: none;
}

.tgl-track {
  width: 100%;
  height: 100%;
  background: #8fa8cc;
  border-radius: 10px;
  transition: background 0.2s;
  display: block;
}

.tgl input:checked + .tgl-track {
  background: var(--teal);
}

.tgl-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: left 0.2s;
  pointer-events: none;
}

.tgl input:checked ~ .tgl-thumb {
  left: 20px;
}

/* Forms */

.fg {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fl {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.fi,
.fta {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-primary);
  background: var(--white);
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  width: 100%;
}

.fi:focus,
.fta:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.1);
}

.fta {
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
}

.g2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.g3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.gap16 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gap12 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flex1 {
  flex: 1;
}

/* Upload */

.uz {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--off-white);
  min-height: 96px;
}

.uz:hover {
  border-color: var(--teal);
  background: var(--teal-bg);
}

.uz svg {
  color: var(--text-muted);
  width: 22px;
  height: 22px;
}

.uz-lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.uz small {
  font-size: 10.5px;
  color: var(--text-muted);
}

.bg-uz {
  border: 2px dashed var(--border);
  border-radius: 8px;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  background: var(--off-white);
  transition: all 0.2s;
}

.bg-uz:hover {
  border-color: var(--teal);
  background: var(--teal-bg);
}

.bg-uz svg {
  color: var(--text-muted);
  width: 24px;
  height: 24px;
}

.bg-uz span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.bg-uz small {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  padding: 0 12px;
}

/* Cat pills */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.cat-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: var(--off-white);
  gap: 6px;
}

.cat-pill span {
  flex: 1;
}

.cat-del {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.cat-del:hover {
  color: var(--red);
}

.cat-del svg {
  width: 12px;
  height: 12px;
}

.add-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: none;
  border: 1px dashed var(--teal);
  border-radius: 6px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 10px;
}

.add-cat:hover {
  background: var(--teal-bg);
}

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

/* Product grid */

.prod-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.prod-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--off-white);
}

.prod-img {
  height: 88px;
  background: #dde4ed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prod-img svg {
  color: #a8b8c8;
  width: 26px;
  height: 26px;
}

.prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prod-flds {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pfl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pfi {
  width: 100%;
  padding: 5px 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  background: var(--white);
  outline: none;
  color: var(--text-primary);
}

.pfi.green {
  color: var(--teal);
  font-weight: 600;
}

.pfi:focus {
  border-color: var(--teal);
}

/* Special banner */

.sp-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--teal);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-btn svg {
  color: white;
  width: 20px;
  height: 20px;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.new-badge {
  padding: 2px 9px;
  background: var(--teal);
  color: white;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Trust */

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

.trust-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: var(--off-white);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trust-icon-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal-bg);
  border: 1px solid rgba(0, 201, 167, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-circle svg {
  color: var(--teal);
  width: 15px;
  height: 15px;
}

.trust-title {
  font-size: 13px;
  font-weight: 600;
}

.trust-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.chg-icon {
  font-size: 11px;
  color: var(--teal);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.chg-icon:hover {
  text-decoration: underline;
}

.chg-icon svg {
  width: 11px;
  height: 11px;
}

/* Footer */

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.footer-col {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

.fc-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.fl-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.fl-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.fl-txt {
  font-size: 12px;
  color: var(--text-secondary);
  flex: 1;
}

.fl-del {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  opacity: 0;
  transition: opacity 0.15s;
  display: flex;
  align-items: center;
}

.fl-item:hover .fl-del {
  opacity: 1;
}

.fl-del:hover {
  color: var(--red);
}

.fl-del svg {
  width: 11px;
  height: 11px;
}

.add-link {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--teal);
  background: none;
  border: none;
  cursor: pointer;
}

.add-link:hover {
  text-decoration: underline;
}

.add-link svg {
  width: 11px;
  height: 11px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

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

.btn-teal {
  background: var(--teal);
  color: white;
}

.btn-teal:hover {
  background: var(--teal-dim);
}

.btn-red-o {
  background: none;
  border: 1px solid var(--red);
  color: var(--red);
}

.btn-red-o:hover {
  background: var(--red-bg);
}

.btn-ghost {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
}

/* Bottom bar */

.bot-bar {
  position: sticky;
  bottom: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 28px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
  z-index: 40;
}

/* Modal */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(2px);
}

.modal {
  background: var(--white);
  border-radius: 10px;
  padding: 24px;
  min-width: 340px;
  max-width: 460px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.modal-acts {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}

/* Placeholder */

.ph-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 10px;
  color: var(--text-muted);
}

.ph-page h2 {
  font-size: 20px;
  color: var(--text-secondary);
}

.ph-page svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

/* Spinner */

.spin-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.spin {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: sp 0.7s linear infinite;
}

@keyframes sp {
  to {
    transform: rotate(360deg);
  }
}

/* Divider */

.divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

/* Newsletter */

.nl-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nl-row .fi {
  flex: 1;
}

/* Util */

.mt8 {
  margin-top: 8px;
}

.mt12 {
  margin-top: 12px;
}

/* User Menu */

.tb-user-wrapper {
  position: relative;
}

.tb-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}

.tb-user:hover {
  background: var(--off-white);
}

.u-info {
  text-align: right;
}

.u-info .uname {
  font-size: 13px;
  font-weight: 600;
}

.u-info .urole {
  font-size: 11px;
  color: var(--text-muted);
}

.u-avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
}

.user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  z-index: 100;
  margin-top: 4px;
  overflow: hidden;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-primary);
  text-align: left;
  transition: background 0.15s;
}

.user-menu-item:hover {
  background: var(--off-white);
}

.user-menu-item svg {
  width: 14px;
  height: 14px;
}

.user-menu-item.logout-btn {
  color: var(--red);
}

.user-menu-item.logout-btn:hover {
  background: var(--red-bg);
}

/* Profile Settings */

.profile-settings {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.profile-avatar-display {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
}

.profile-avatar-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-email {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.profile-role {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}

.profile-role svg {
  width: 13px;
  height: 13px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.password-toggle:hover:not(:disabled) {
  opacity: 0.7;
}

.password-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
