/* Royal Textile — Figma Admin Panel (MCP) */
:root {
  --rtm-bg: #f8f9fc;
  --rtm-surface: #ffffff;
  --rtm-text: #333333;
  --rtm-muted: #64748b;
  --rtm-border: #e8ebf1;
  --rtm-green: #218561;
  --rtm-danger: #dc2626;
  --rtm-pending-bg: #fff5e3;
  --rtm-pending-text: #a9701a;
  --rtm-purple-soft: #f6edf7;
  --rtm-purple-accent: #8c2487;
  --rtm-gradient: linear-gradient(-88.97deg, #672c85 0.71%, #a41a86 67.44%, #6e2a81 134.18%);
  --login-w: 1440;
  --login-h: 952;
  --rtm-sidebar-w: 280px;
  --font: "Manrope", system-ui, sans-serif;
  --rtm-radius-sm: 8px;
  --rtm-radius-md: 12px;
  --rtm-radius-lg: 16px;
  --rtm-shadow-panel: 0 2px 14px rgba(0, 0, 0, 0.06);
  --rtm-focus-ring: 0 0 0 3px color-mix(in srgb, var(--rtm-purple-accent) 20%, transparent);
  --rtm-control-h: 48px;
  --rtm-space-page: 24px;
  --rtm-space-section: 20px;
  --rtm-table-min: 960px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--rtm-text); background: var(--rtm-bg); }

body.figma-admin {
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.figma-admin ::selection {
  background: color-mix(in srgb, var(--rtm-purple-accent) 24%, transparent);
  color: var(--rtm-text);
}

body.figma-admin.figma-nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

/* ——— Login (Figma 65:307 · frame 1440×952) ——— */
.figma-login {
  margin: 0;
  height: 100dvh;
  max-height: 100dvh;
  background: #ffffff;
  overflow: hidden;
}

.figma-login__viewport {
  height: 100dvh;
  max-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}

/* Figma 1440×952 — centered, scales down to fit screen (no scroll) */
.figma-login__frame {
  position: relative;
  width: 1440px;
  height: 952px;
  flex-shrink: 0;
  transform: scale(min(1, calc(100vw / 1440), calc(100dvh / 952)));
  transform-origin: center center;
}

/* Figma image 2 @ (-73,-20) 1585×992 */
.figma-login__bg {
  position: absolute;
  left: calc(-73 / var(--login-w) * 100%);
  top: calc(-20 / var(--login-h) * 100%);
  width: calc(1585 / var(--login-w) * 100%);
  height: calc(992 / var(--login-h) * 100%);
  max-width: none;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

/* Figma image 3 @ (90,118) 206×167 */
.figma-login__brand-logo {
  position: absolute;
  left: calc(90 / var(--login-w) * 100%);
  top: calc(118 / var(--login-h) * 100%);
  width: calc(206 / var(--login-w) * 100%);
  height: calc(167 / var(--login-h) * 100%);
  object-fit: contain;
  object-position: left top;
  z-index: 2;
  pointer-events: none;
}

/* Figma Mobile Login @ (767,195) 613×544 */
.figma-login__card {
  position: absolute;
  left: calc(767 / var(--login-w) * 100%);
  top: calc(195 / var(--login-h) * 100%);
  width: calc(613 / var(--login-w) * 100%);
  height: calc(544 / var(--login-h) * 100%);
  min-height: calc(544 / var(--login-h) * 100%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14.4px rgba(0, 0, 0, 0.16);
  padding: 48px 28px 32px;
  z-index: 3;
  box-sizing: border-box;
  overflow: hidden;
}

.figma-login__form {
  width: 100%;
  max-width: 557px;
  margin: 0 auto;
}

.figma-input--password { position: relative; padding-right: 44px; }
.figma-input__toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  border: 0;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  line-height: 0;
}
.figma-input__toggle img { width: 20px; height: 20px; opacity: 0.55; display: block; }
.figma-input__toggle:hover img { opacity: 0.75; }

.figma-login__head h1 {
  margin: 0 0 4px;
  font-size: 32px;
  font-weight: 700;
  line-height: 38px;
  height: 38px;
  text-align: center;
  color: #333333;
  letter-spacing: -0.02em;
}

.figma-login__head p {
  margin: 0 0 28px;
  text-align: center;
  color: var(--rtm-muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 23px;
}

.figma-login .figma-field {
  margin: 0 0 0;
}

.figma-login .figma-field + .figma-field {
  margin-top: 10px;
}

.figma-login .figma-field label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  margin-bottom: 4px;
  color: #333333;
}

.figma-login .figma-input {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.26px solid var(--rtm-border);
  border-radius: 15px;
  padding: 0 16px 0 20px;
  min-height: 58px;
  height: 58px;
  background: #fff;
}

.figma-login .figma-input--password {
  position: relative;
  padding-left: 16px;
  padding-right: 44px;
}

.figma-input img { width: 18px; height: 18px; flex-shrink: 0; }
.figma-input input {
  border: 0;
  outline: none;
  width: 100%;
  font-size: 14px;
  color: var(--rtm-muted);
  background: transparent;
}

.figma-login__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 22px;
  margin: 10px 0 30px;
  font-size: 14px;
}

.figma-input--password,
.figma-input--username {
  border-radius: 15px;
  min-height: 58px;
}

.figma-check { display: flex; align-items: center; gap: 4px; cursor: pointer; font-weight: 500; font-size: 14px; color: #333; position: relative; padding-left: 22px; min-height: 44px; }
.figma-check__box { width: 14px; height: 14px; flex-shrink: 0; pointer-events: none; position: absolute; left: 2px; top: 50%; transform: translateY(-50%); }
.figma-check__input { position: absolute; left: -6px; top: 50%; transform: translateY(-50%); opacity: 0; width: 44px; height: 44px; margin: 0; cursor: pointer; z-index: 2; }
.figma-login .figma-input:focus-within {
  border-color: var(--rtm-purple-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rtm-purple-accent) 22%, transparent);
}
.figma-login .figma-input:has([aria-invalid="true"]) {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px color-mix(in srgb, #dc2626 18%, transparent);
}
.figma-login .figma-input__toggle:focus-visible {
  outline: 2px solid var(--rtm-purple-accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.figma-login .figma-btn--primary:focus-visible {
  outline: 2px solid var(--rtm-purple-accent);
  outline-offset: 3px;
}
.figma-login .figma-check:has(.figma-check__input:focus-visible) .figma-check__box {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rtm-purple-accent) 22%, transparent);
  border-radius: 2px;
}
.figma-login .figma-link-muted:focus-visible {
  outline: 2px solid var(--rtm-purple-accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.figma-login .figma-check.is-checked .figma-check__box { opacity: 1; }

.figma-login__back {
  position: absolute;
  left: calc(767 / var(--login-w) * 100%);
  top: calc(147 / var(--login-h) * 100%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  text-decoration: none;
}
.figma-login__back-icon {
  width: 24px;
  height: 24px;
  transform: rotate(180deg);
  filter: none;
  opacity: 0.85;
}
.figma-login__card--forgot {
  top: calc(249 / var(--login-h) * 100%);
  min-height: calc(455 / var(--login-h) * 100%);
}
.figma-login__head--forgot h1 { height: auto; margin-bottom: 8px; }
.figma-login__head--forgot p {
  margin-bottom: 28px;
  line-height: 1.45;
  max-width: 452px;
  margin-left: auto;
  margin-right: auto;
}
.figma-login__divider--signin p { font-size: 14px; }
.figma-login__divider--signin a {
  color: var(--rtm-purple-accent);
  font-weight: 600;
  text-decoration: none;
}
.figma-login .flash.ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13px;
}

.figma-login__divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  color: #74777f;
  font-size: 14px;
}
.figma-login__divider img { width: 103px; height: 1px; flex: 1; max-width: 103px; }
.figma-login__divider p { margin: 0; white-space: nowrap; font-weight: 500; }
.figma-link-muted {
  background: var(--rtm-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}
a.figma-link-muted:hover { opacity: 0.85; }

.figma-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  border-radius: 12px;
  background: var(--rtm-gradient);
  color: #fff;
  text-decoration: none;
}

.figma-login .figma-btn--primary {
  width: 100%;
  min-height: 60.55px;
  height: 60.55px;
  font-size: 18px;
  line-height: 22px;
  font-weight: 600;
}

.figma-btn--primary img { width: 24px; height: 24px; filter: brightness(0) invert(1); }
.figma-btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; white-space: nowrap; }

.figma-btn:disabled,
.figma-btn.is-loading {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

.figma-btn-outline:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}


.demo {
  margin-top: 16px;
  padding: 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--rtm-border);
  font-size: 11px;
  color: var(--rtm-muted);
  line-height: 1.6;
}

/* ——— Admin shell (Figma 210:1231) ——— */
.figma-shell { display: flex; min-height: 100vh; }

.figma-sidebar {
  width: var(--rtm-sidebar-w);
  background: #fff;
  border-right: 4px solid rgba(227, 227, 227, 0.18);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  transition: transform 0.25s ease;
}

.figma-sidebar__top {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}

.figma-sidebar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 24px 15px;
  height: 80px;
  box-sizing: border-box;
}

.figma-sidebar__logo img {
  width: 81px;
  height: 66px;
  object-fit: contain;
  object-position: left center;
}

.figma-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0 20px;
}

.figma-nav__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.figma-nav__item {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: calc(100% - 32px);
  margin: 0 16px;
  padding: 12px 16px;
  min-height: 44px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--rtm-muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.figma-nav__item--plain { justify-content: flex-start; }
.figma-nav__item--badge { justify-content: space-between; gap: 8px; }

.figma-nav__item--lead {
  min-height: 42px;
  justify-content: flex-start;
}

.figma-nav__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.figma-nav__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.figma-nav__left img { width: 20px; height: 20px; flex-shrink: 0; }
.figma-nav__item--lead .figma-nav__left img { width: 18px; height: 18px; }

.figma-nav__item:not(.is-active):hover {
  background: #f8f9fc;
}

.figma-nav__item.is-active {
  background: var(--rtm-gradient);
  color: #fff;
}

.figma-nav__item.is-active .figma-nav__left img { filter: brightness(0) invert(1); }

.figma-nav__badge {
  flex-shrink: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 52px;
  background: var(--rtm-gradient);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

.figma-nav__item.is-active .figma-nav__badge {
  background: #fff;
  color: var(--rtm-purple-accent);
  font-weight: 700;
}

.figma-sidebar__bottom {
  flex-shrink: 0;
  background: #f5f5f5;
  padding: 16px;
  border-top: 1px solid rgba(227, 227, 227, 0.35);
}

.figma-logout {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fb2c36;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 14px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
}
.figma-logout img { width: 20px; height: 20px; }

.figma-main {
  margin-left: var(--rtm-sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--rtm-bg);
}

.figma-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-height: 72px;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid var(--rtm-border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.figma-header__title {
  margin: 0 auto 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--rtm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(480px, 42vw);
}

@media (max-width: 900px) {
  .figma-header {
    justify-content: space-between;
  }

  .figma-header__title {
    order: 2;
    flex: 1;
    max-width: none;
    text-align: left;
    padding-left: 4px;
  }

  .figma-menu { display: inline-flex; order: 1; }
  .figma-user { order: 3; }
  .figma-user__meta { display: none; }
  .figma-user__chev { display: none; }
}

.figma-user {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  padding: 4px 6px 4px 4px;
  transition: background 0.15s ease;
}

.figma-user:hover { background: #f8fafc; }

.figma-user__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rtm-purple-soft);
  color: var(--rtm-purple-accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

.figma-user__avatar--photo {
  object-fit: cover;
  display: block;
  background: #eef1f6;
}

.figma-profile-panel { max-width: 720px; }

.figma-profile-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rtm-border);
}

.figma-profile-preview__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--rtm-purple-soft);
  color: var(--rtm-purple-accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
  overflow: hidden;
  flex-shrink: 0;
}

.figma-profile-preview__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figma-profile-preview h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
}

.figma-profile-preview p {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--rtm-muted);
}

.figma-user__meta b { display: block; font-size: 12px; font-weight: 800; color: #333; }
.figma-user__meta small { color: var(--rtm-muted); font-size: 10px; font-weight: 400; }
.figma-user__chev { width: 14px; height: 14px; opacity: 0.7; }

.figma-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(15, 23, 42, 0.42);
}

.figma-sidebar-backdrop.is-visible { display: block; }

.figma-menu {
  display: none;
  margin-right: auto;
  border: 0;
  background: #f8f9fc;
  cursor: pointer;
  color: var(--rtm-muted);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  padding: 0;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.figma-menu__icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
}

.figma-menu__icon span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: #475569;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.figma-menu[aria-expanded="true"] .figma-menu__icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.figma-menu[aria-expanded="true"] .figma-menu__icon span:nth-child(2) {
  opacity: 0;
}

.figma-menu[aria-expanded="true"] .figma-menu__icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.figma-menu:focus-visible {
  outline: 2px solid var(--rtm-purple-accent);
  outline-offset: 2px;
}

@media (min-width: 901px) {
  .figma-menu { display: none !important; }
}

.figma-content {
  flex: 1;
  padding: var(--rtm-space-page);
  display: flex;
  flex-direction: column;
  gap: var(--rtm-space-section);
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.figma-footer {
  display: flex;
  justify-content: space-between;
  padding: 14px 24px;
  font-size: 12px;
  color: var(--rtm-muted);
  border-top: 1px solid var(--rtm-border);
  background: #fff;
}

/* ——— Dashboard ——— */
.figma-welcome {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
}

.figma-welcome h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  line-height: 34px;
}

.figma-welcome p { margin: 0; color: var(--rtm-muted); font-size: 14px; font-weight: 400; line-height: 1.45; max-width: 72ch; }
.figma-page-header__copy { min-width: 0; flex: 1; }

.figma-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--rtm-border);
  background: #fff;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  cursor: default;
  white-space: nowrap;
}

.figma-date-chip img { width: 18px; height: 18px; }

.figma-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.figma-metrics--overview { gap: 16px; }

.figma-metric--overview {
  background: #fff;
  border: 1px solid var(--rtm-border);
  border-radius: 16px;
  padding: 16px;
  min-height: 124px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.figma-metric--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.figma-metric--link:hover {
  border-color: rgba(128, 32, 128, 0.35);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.figma-metric--link.is-active {
  border-color: var(--rtm-purple-accent);
  box-shadow: 0 0 0 1px rgba(128, 32, 128, 0.12);
  background: #fffbff;
}

.figma-metric--link:focus-visible {
  outline: 2px solid var(--rtm-purple-accent);
  outline-offset: 2px;
}

.figma-metric--overview__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.figma-metric--overview__top small {
  color: var(--rtm-muted);
  font-size: 12px;
  font-weight: 600;
}

.figma-metric--overview__icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--rtm-purple-soft);
  display: grid;
  place-items: center;
}

.figma-metric--overview__icon img { width: 15px; height: 15px; }

.figma-metric--overview strong {
  font-size: 28px;
  font-weight: 800;
  line-height: 32px;
  color: #333;
}

.figma-metric__trend { font-size: 11px; font-weight: 500; }
.figma-metric__trend--up { color: var(--rtm-green); }
.figma-metric__trend--muted { color: var(--rtm-muted); }

.figma-metric {
  background: #fff;
  border: 1px solid var(--rtm-border);
  border-radius: 16px;
  padding: 18px 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.figma-metric__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--rtm-purple-soft);
  display: grid;
  place-items: center;
}

.figma-metric__icon img { width: 22px; height: 22px; }
.figma-metric small { display: block; color: var(--rtm-muted); font-size: 12px; margin-bottom: 4px; }
.figma-metric strong { display: block; font-size: 24px; line-height: 1.1; margin-bottom: 4px; }

.figma-banner-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border-radius: 16px;
  background: var(--rtm-purple-soft);
  border: 1px solid #ebddef;
  flex-wrap: wrap;
}

.figma-banner-cta__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #a41a86;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.figma-banner-cta__icon img { width: 18px; height: 18px; filter: brightness(0) invert(1); }

.figma-banner-cta__text { flex: 1; min-width: 200px; }
.figma-banner-cta b {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  background: var(--rtm-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.figma-banner-cta p { margin: 0; font-size: 12px; color: #333; font-weight: 400; }

.figma-link-gradient {
  font-size: 12px;
  font-weight: 700;
  background: var(--rtm-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.figma-grid-2 {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
}

.figma-grid-2--dashboard {
  grid-template-columns: minmax(0, 1fr) 447px;
  align-items: start;
}

.figma-order-list {
  overflow-x: auto;
  min-width: 0;
}

.figma-order-list__head,
.figma-order-list__row {
  display: grid;
  grid-template-columns: 108px 100px minmax(140px, 1fr) 52px 72px 92px 16px;
  gap: 10px;
  align-items: center;
  padding: 0 20px;
  min-width: 720px;
  color: #333;
  text-decoration: none;
}

.figma-order-list__head {
  background: var(--rtm-bg);
  min-height: 30px;
  font-size: 11px;
  font-weight: 600;
  color: var(--rtm-muted);
}

.figma-order-list__row {
  min-height: 46px;
  border-bottom: 1px solid var(--rtm-border);
  font-size: 12px;
  color: #333;
  font-weight: 500;
}

.figma-order-list .figma-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 5px 9px;
}

.figma-order-list__row:hover { background: #fafbfc; }
.figma-order-list__customer { font-weight: 700; }
.figma-order-list__product { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.figma-order-list__row:hover { color: #333; }
.figma-order-list__id { font-weight: 600; }
.figma-order-list__chev img { width: 14px; height: 14px; justify-self: end; opacity: 0.45; }
.figma-order-list__row:hover .figma-order-list__chev img { opacity: 0.85; }

.figma-panel--orders { min-width: 0; }
.figma-grid-2--dashboard > * { min-width: 0; }

.figma-activity__icon--green img { filter: none; }
.figma-activity__icon--purple img { filter: none; }

.figma-pill--pending {
  background: var(--rtm-pending-bg);
  color: var(--rtm-pending-text);
  font-size: 10px;
  font-weight: 700;
  padding: 5px 9px;
}

.figma-pill--progress {
  background: #dbeafe;
  color: #1e40af;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 9px;
}

.figma-panel__head--tight { padding: 16px 20px; }
.figma-panel__head--tight h3 { font-size: 16px; font-weight: 800; }
.figma-panel--orders .figma-panel__head--tight { border-bottom: 0; }

.figma-panel__foot--orders {
  padding: 12px 20px;
  font-size: 10px;
  color: var(--rtm-muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.figma-warn-text {
  color: var(--rtm-pending-text);
  font-weight: 700;
  font-size: 10px;
  text-decoration: none;
}
.figma-warn-text:hover { text-decoration: underline; }

.figma-panel--activity { padding: 20px; }
.figma-panel--activity .figma-panel__head { padding: 0 0 16px; border: 0; }
.figma-panel--activity .figma-activity { padding: 0; }

.figma-activity li {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 0;
  border: 0;
  margin-bottom: 13px;
}

.figma-activity li:last-child { margin-bottom: 0; }

.figma-activity__icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
}

.figma-activity__icon img { width: 15px; height: 15px; }
.figma-activity__icon--green { background: #eaf7f0; }
.figma-activity__icon--purple { background: var(--rtm-purple-soft); }

.figma-activity b { font-size: 12px; font-weight: 700; }
.figma-activity small { font-size: 11px; color: var(--rtm-muted); }
.figma-activity time { font-size: 10px; color: var(--rtm-muted); white-space: nowrap; }

.figma-panel {
  background: var(--rtm-surface);
  border: 1px solid var(--rtm-border);
  border-radius: var(--rtm-radius-lg);
  overflow: hidden;
  box-shadow: var(--rtm-shadow-panel);
}

.figma-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--rtm-border);
}

.figma-panel__head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.figma-panel__head a { font-size: 13px; font-weight: 600; color: #672c85; }

.figma-panel__foot {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  font-size: 12px;
  color: var(--rtm-muted);
  border-top: 1px solid var(--rtm-border);
}

.figma-warn-text { color: #d97706; font-weight: 600; }

.figma-table-wrap { overflow-x: auto; }
.figma-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.figma-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rtm-muted);
  padding: 12px 16px;
  background: #fafbfc;
  border-bottom: 1px solid var(--rtm-border);
  white-space: nowrap;
}

.figma-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rtm-border);
  vertical-align: middle;
}

.figma-table tbody tr:hover { background: #fafafa; }
.figma-table a { color: #672c85; font-weight: 600; }
.figma-table td img { width: 16px; opacity: 0.6; }

.figma-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.figma-pill--warn { background: #fef3c7; color: #92400e; }
.figma-pill--ok { background: #d1fae5; color: #065f46; }
.figma-pill--danger { background: #fee2e2; color: #991b1b; }
.figma-pill--muted { background: #f1f5f9; color: #64748b; }

.figma-page-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.figma-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1.5px solid #672c85;
  color: #672c85;
  font-weight: 600;
  font-size: 14px;
  background: #fff;
  white-space: nowrap;
}
.figma-btn-outline--sm { padding: 8px 12px; font-size: 12px; }
.figma-btn-outline img { width: 16px; height: 16px; }
.figma-btn--sm img { width: 16px; height: 16px; filter: brightness(0) invert(1); }

.figma-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--rtm-border);
  background: #fafbfc;
}

.figma-search {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--rtm-border);
  border-radius: 10px;
  padding: 10px 14px;
  background: #fff;
}
.figma-search img { width: 18px; height: 18px; opacity: 0.5; }
.figma-search input { border: 0; outline: none; width: 100%; font-size: 13px; color: var(--rtm-text); background: transparent; }

body.figma-admin .figma-search:focus-within {
  border-color: var(--rtm-purple-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rtm-purple-accent) 18%, transparent);
}

body.figma-admin .figma-nav__item:focus-visible,
body.figma-admin .figma-logout:focus-visible {
  outline: 2px solid var(--rtm-purple-accent);
  outline-offset: 2px;
}

.figma-select {
  border: 1px solid var(--rtm-border);
  border-radius: 10px;
  padding: 10px 32px 10px 12px;
  font-size: 13px;
  color: var(--rtm-muted);
  background: #fff url('/images/figma/icon-chevron-down.svg') no-repeat right 10px center / 14px;
  appearance: none;
  min-width: 140px;
}

.figma-link-reset { font-size: 13px; font-weight: 600; color: #672c85; }

.figma-prod { display: flex; align-items: center; gap: 12px; }
.figma-prod__thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #f1f5f9;
  flex-shrink: 0;
}
.figma-prod__thumb--empty { display: block; border: 1px solid var(--rtm-border); }
.figma-prod b { display: block; font-size: 13px; margin-bottom: 2px; }
.figma-prod small { color: var(--rtm-muted); font-size: 11px; }

.figma-row-actions { display: flex; align-items: center; gap: 8px; }
.figma-row-actions--wide { gap: 10px; }
.figma-row-actions button {
  border: 0;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.figma-row-actions img { width: 18px; height: 18px; }
.figma-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--rtm-border);
  background: #fff;
}
.figma-icon-btn img { width: 16px; height: 16px; }

button.figma-icon-btn {
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.figma-empty--table {
  grid-column: 1 / -1;
  padding: 28px 20px !important;
}

.figma-empty {
  text-align: center;
  color: var(--rtm-muted);
  padding: 32px 20px !important;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.figma-empty b { color: var(--rtm-text); font-weight: 700; }
.figma-panel__foot--split { align-items: center; gap: 12px; flex-wrap: wrap; }
.figma-pagination nav { display: flex; gap: 6px; flex-wrap: wrap; }
.figma-pagination .pagination { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.figma-pagination .page-item .page-link,
.figma-pagination span[aria-current="page"] span,
.figma-pagination a {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--rtm-border);
  font-size: 12px;
  font-weight: 600;
  color: var(--rtm-muted);
  background: #fff;
}
.figma-pagination span[aria-current="page"] span,
.figma-pagination .active .page-link {
  background: #672c85;
  border-color: #672c85;
  color: #fff;
}

.figma-metric__icon--green { background: #d1fae5; }
.figma-metric__icon--blue { background: #dbeafe; }
.figma-metric__icon--red { background: #fee2e2; }
.figma-metric__icon--warn { background: #fef3c7; }

.figma-pill--status.figma-pill--pending { background: #fef3c7; color: #92400e; }
.figma-pill--status.figma-pill--confirmed,
.figma-pill--status.figma-pill--processing { background: #dbeafe; color: #1e40af; }
.figma-pill--status.figma-pill--shipped { background: #e0e7ff; color: #4338ca; }
.figma-pill--status.figma-pill--completed { background: #d1fae5; color: #065f46; }
.figma-pill--status.figma-pill--cancelled { background: #fee2e2; color: #991b1b; }

.figma-activity { list-style: none; margin: 0; padding: 0; }

.figma-panel--chart .figma-chart { height: 260px; padding: 12px 16px 16px; }

/* ——— Legacy page compatibility (catalog/business views) ——— */
.heading, .page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.heading h1, .page-head h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
}

.heading p, .page-head p { margin: 0; color: var(--rtm-muted); font-size: 13px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #672c85; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--rtm-border);
  background: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}

.btn.primary { background: var(--rtm-gradient); border-color: transparent; color: #fff; }
.btn.wide { width: 100%; }

.panel, .table-panel {
  background: #fff;
  border: 1px solid var(--rtm-border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--rtm-border);
}

.panel-title h3 { margin: 0; font-size: 16px; }
.panel-title p { margin: 4px 0 0; font-size: 12px; color: var(--rtm-muted); }
.panel-title a { color: #672c85; font-weight: 600; font-size: 13px; }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rtm-muted);
  padding: 12px 16px;
  background: #fafbfc;
  border-bottom: 1px solid var(--rtm-border);
}

tbody td { padding: 14px 16px; border-bottom: 1px solid var(--rtm-border); vertical-align: middle; }
tbody tr:hover { background: #fafafa; }

.status, .figma-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
  background: #f3f4f6;
}

.status.paid, .status.completed, .status.verified, .status.resolved, .figma-pill--ok { background: #d1fae5; color: #065f46; }
.status.pending, .status.open, .figma-pill--warn { background: #fef3c7; color: #92400e; }
.status.cancelled, .status.failed { background: #fee2e2; color: #991b1b; }
.status.confirmed, .status.processing, .status.in_progress { background: #dbeafe; color: #1e40af; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rtm-border);
  background: #fafbfc;
}

.filters input, .filters select, .field input, .field select, .field textarea {
  border: 1px solid var(--rtm-border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }

.split { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 16px; align-items: start; }
.panel.form { padding: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.pagination { padding: 14px 18px; border-top: 1px solid var(--rtm-border); }

.flash {
  padding: 12px 14px;
  border-radius: var(--rtm-radius-md);
  margin-bottom: 14px;
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  line-height: 1.45;
}
.flash.ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.flash.bad { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.flash__dismiss {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.65;
  padding: 0 4px;
  color: inherit;
}
.flash__dismiss:hover { opacity: 1; }
.flash__dismiss:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 4px;
}

.action { border: 0; background: transparent; color: #672c85; font-weight: 600; cursor: pointer; }
.action.red { color: #dc2626; }

.figma-inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.figma-welcome--actions { align-items: center; }
.figma-welcome__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ——— Banner Management (311:8597) ——— */
.figma-panel--banners { padding: 0; overflow: hidden; }
.figma-banner-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 0;
}
.figma-filter-row--banner { flex-wrap: nowrap; margin: 0; padding: 0; border: 0; }
.figma-tabs--pills {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
}
.figma-tabs__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.figma-tabs__pill.is-active {
  background: #fff;
  color: var(--rtm-purple-accent);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.figma-tabs {
  display: inline-flex;
  gap: 20px;
  border-bottom: 1px solid var(--rtm-border);
  padding-bottom: 12px;
}
.figma-tabs__item {
  border: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: var(--rtm-muted);
  padding: 0 0 10px;
  margin-bottom: -13px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.figma-tabs__item.is-active {
  color: var(--rtm-purple-accent);
  border-bottom-color: var(--rtm-purple-accent);
}
.figma-data-table--banners .figma-data-table__head,
.figma-data-table--banners .figma-data-table__row {
  grid-template-columns: 48px 148px minmax(160px, 1.4fr) minmax(140px, 1fr) 90px 120px;
}
.figma-data-table--ctas .figma-data-table__head,
.figma-data-table--ctas .figma-data-table__row {
  grid-template-columns: 48px 72px minmax(180px, 1.6fr) minmax(140px, 1fr) 110px 140px;
}
.figma-banner-thumb {
  width: 56px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: #eef1f6;
  display: block;
  position: relative;
}
.figma-banner-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.figma-banner-thumb__ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.figma-banner-thumb__ph img { width: 20px; opacity: 0.45; }
.figma-banner-thumb--wide { width: 135px; height: 54px; border-radius: 8px; }
.figma-banner-thumb--square { width: 64px; height: 54px; border-radius: 8px; }
.figma-icon-btn--danger img { opacity: 0.85; }
.figma-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--rtm-purple-accent);
  text-decoration: none;
}
.figma-back-link img {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
  filter: none;
}
.figma-info-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}
.figma-info-banner__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
}
.figma-info-banner p { margin: 0; font-size: 13px; color: #1e3a8a; line-height: 1.45; }
.figma-btn-outline--sm { min-height: 36px; padding: 0 14px; font-size: 13px; font-weight: 700; }
.figma-panel--banners .figma-data-table { border-top: 1px solid var(--rtm-border); margin-top: 18px; }
.figma-panel--banners .figma-empty { padding: 24px 18px; }

.figma-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}
.figma-modal[hidden] { display: none !important; }
.figma-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.figma-modal__card {
  position: relative;
  width: min(761px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  z-index: 1;
}
.figma-modal__card--lg { width: min(840px, 100%); }
.figma-modal__card--md { width: min(560px, 100%); }
.figma-modal__card--categories { width: min(640px, calc(100% - 32px)); }
.figma-modal__card--sm { width: min(440px, 100%); }
.figma-modal__sub { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; color: var(--rtm-muted); }
.figma-modal__text { margin: 0 0 18px; font-size: 14px; color: #475569; line-height: 1.5; }
.figma-form-actions--modal { justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 0 18px 18px; }
.figma-btn--danger { background: #dc2626 !important; border-color: #dc2626 !important; }
.figma-banner-preview img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 10px;
  background: #eef1f6;
}
.figma-banner-preview__meta { padding: 14px 18px 18px; }
.figma-banner-preview__meta b { font-size: 16px; }
.figma-banner-preview__meta p { margin: 6px 0 0; font-size: 13px; color: var(--rtm-muted); }
.figma-upload-drop--compact { padding: 20px 16px; }
.figma-upload-drop--has-image img { width: 100%; max-height: 120px; object-fit: cover; border-radius: 8px; opacity: 1; margin-bottom: 12px; }
.figma-modal__close {
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--rtm-muted);
  cursor: pointer;
}
body.figma-modal-open { overflow: hidden; }
.figma-btn--44 { min-height: 44px; padding: 0 16px; font-size: 14px; font-weight: 700; }
.figma-btn--44 img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.figma-btn-outline--44 { min-height: 44px; border-width: 1.2px; }

.figma-panel--filters { padding: 18px; display: flex; flex-direction: column; gap: 18px; }
.figma-panel-spaced { margin-top: var(--rtm-space-section); }

.figma-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
}

.figma-list-toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  flex: 1;
  min-width: 0;
}

.figma-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.figma-search--wide {
  flex: 1 1 280px;
  max-width: 420px;
  min-width: 200px;
  min-height: 48px;
  border-color: #e9e9e9;
  border-radius: 14px;
  padding: 7px 13px;
}

.figma-select--48 {
  min-height: 48px;
  width: 197px;
  border-color: #e9e9e9;
  border-radius: 10px;
}

.figma-data-table {
  border: 1.2px solid #e5e5e5;
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.figma-data-table__head,
.figma-data-table__row {
  display: grid;
  grid-template-columns: minmax(210px, 1.35fr) 90px 120px 100px 110px 80px 95px 110px;
  gap: 10px 12px;
  align-items: center;
  padding: 0 16px;
  min-width: max(100%, var(--rtm-table-min, 960px));
}

.figma-data-table__head {
  min-height: 52px;
  background: rgba(219, 219, 219, 0.1);
  border-bottom: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  position: sticky;
  top: 0;
  z-index: 2;
}

.figma-data-table__head > span,
.figma-data-table__row > span,
.figma-data-table__row > div {
  min-width: 0;
}

.figma-cell-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.figma-data-table__row {
  min-height: 73px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
  color: #333;
}

.figma-data-table__row:last-child { border-bottom: 0; }
.figma-data-table__row:hover { background: #fafbfc; }

.figma-prod__thumb--lg {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.figma-prod__thumb--placeholder {
  display: grid;
  place-items: center;
  background: #e3e3e3;
  border: 1px solid rgba(169, 169, 169, 0.24);
}

.figma-prod__thumb--placeholder img { width: 24px; height: 24px; opacity: 0.45; }

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

.figma-pager__btn,
.figma-pager__num {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border-radius: 8px;
  border: 1px solid var(--rtm-border);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--rtm-muted);
}

.figma-pager__btn img { width: 14px; height: 14px; }
.figma-pager__btn--next img { transform: rotate(180deg); }
.figma-pager__btn.is-disabled { opacity: 0.35; pointer-events: none; }
.figma-pager__num.is-active { background: #672c85; border-color: #672c85; color: #fff; }
.figma-pager__dots { padding: 0 4px; color: var(--rtm-muted); font-size: 12px; }
.figma-pager__chev { font-size: 14px; line-height: 1; font-weight: 700; }

.figma-list-footer { width: 100%; }
.figma-list-footer__summary {
  margin: 0;
  font-size: 13px;
  color: var(--rtm-muted);
  font-weight: 500;
}
.figma-list-footer__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-left: auto;
}
.figma-per-page {
  display: flex;
  align-items: center;
  gap: 8px;
}
.figma-per-page__label {
  font-size: 13px;
  color: var(--rtm-muted);
  font-weight: 600;
}
.figma-select--36 {
  min-height: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
  width: auto;
  min-width: 72px;
  border-radius: 8px;
  border: 1px solid var(--rtm-border);
  background: #fff;
}

.figma-data-table--fluid .figma-data-table__head,
.figma-data-table--fluid .figma-data-table__row {
  width: 100%;
  min-width: 100%;
}

.figma-data-table--customers { --rtm-table-min: 100%; }
.figma-data-table--customers .figma-data-table__head,
.figma-data-table--customers .figma-data-table__row {
  grid-template-columns:
    minmax(96px, 0.7fr)
    minmax(140px, 1.35fr)
    minmax(100px, 0.85fr)
    64px
    minmax(96px, 0.75fr)
    minmax(100px, 0.85fr)
    minmax(120px, 0.65fr)
    minmax(200px, 1.15fr);
}

.figma-panel--flush-table { padding-bottom: 0; }
.figma-panel--flush-table .figma-data-table {
  border-left: 0;
  border-right: 0;
  border-radius: 0 0 12px 12px;
}

.figma-cell-id { font-variant-numeric: tabular-nums; }
.figma-cell-phone { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.figma-form-panel--narrow {
  width: 100%;
  max-width: min(100%, 640px);
}

.figma-general-brand {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--rtm-border);
  border-radius: var(--rtm-radius-md);
  background: #fafbfc;
}

.figma-general-brand__preview {
  width: 120px;
  height: 120px;
  border-radius: var(--rtm-radius-md);
  border: 1px solid var(--rtm-border);
  background: #fff;
  display: grid;
  place-items: center;
  padding: 12px;
  flex-shrink: 0;
}

.figma-general-brand__preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.figma-form--inline-add {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 16px;
}

.figma-form--category-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: end;
  margin-bottom: 18px;
}

.figma-form--category-add .figma-field { margin: 0; }

.figma-field--grow { flex: 1 1 220px; min-width: 0; }

.figma-btn--align-field { align-self: flex-end; margin-bottom: 0; }

.figma-data-table--modal {
  margin-top: 8px;
  max-height: min(50vh, 420px);
  overflow: auto;
}
.figma-cell-switch { display: flex; align-items: center; }

.figma-switch-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.figma-switch-form__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--rtm-muted);
  min-width: 52px;
}

.figma-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.figma-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.figma-switch__track {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.2s ease;
  flex-shrink: 0;
  position: relative;
}

.figma-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.figma-switch input:checked + .figma-switch__track {
  background: var(--rtm-green);
}

.figma-switch input:checked + .figma-switch__track::after {
  transform: translateX(20px);
}

.figma-switch input:focus-visible + .figma-switch__track {
  box-shadow: var(--rtm-focus-ring);
}

.figma-switch--sm .figma-switch__track {
  width: 40px;
  height: 22px;
}

.figma-switch--sm .figma-switch__track::after {
  width: 16px;
  height: 16px;
}

.figma-switch--sm input:checked + .figma-switch__track::after {
  transform: translateX(18px);
}

.figma-switch__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--rtm-text);
}

.figma-field--switch-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  width: 100%;
  margin-top: 8px;
}

.figma-switch-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--rtm-border);
  border-radius: var(--rtm-radius-md);
  background: #fafbfc;
}

.figma-switch-panel__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.figma-switch-panel__text b {
  font-size: 14px;
  font-weight: 700;
  color: var(--rtm-text);
}

.figma-switch-panel__text small {
  font-size: 12px;
  color: var(--rtm-muted);
  line-height: 1.4;
}

.figma-field label.figma-switch {
  display: inline-flex;
  flex-shrink: 0;
  margin: 0;
}

.figma-data-table--orders { --rtm-table-min: 880px; }
.figma-data-table--orders .figma-data-table__head,
.figma-data-table--orders .figma-data-table__row {
  grid-template-columns: minmax(100px, 0.9fr) minmax(120px, 1.2fr) 100px 90px 100px 100px minmax(72px, 0.5fr);
}

.figma-data-table--products { --rtm-table-min: 1080px; }
.figma-data-table--products .figma-data-table__head,
.figma-data-table--products .figma-data-table__row {
  grid-template-columns: minmax(200px, 1.7fr) minmax(90px, 1fr) 100px 100px 110px 72px 92px minmax(108px, 0.85fr);
}

.figma-data-table--order-items .figma-data-table__head,
.figma-data-table--order-items .figma-data-table__row {
  grid-template-columns: minmax(160px, 2fr) 80px 120px 120px;
}

.figma-data-table--categories { --rtm-table-min: 100%; }
.figma-data-table--categories.figma-data-table--modal {
  overflow-x: hidden;
}
.figma-data-table--categories .figma-data-table__head,
.figma-data-table--categories .figma-data-table__row {
  grid-template-columns: minmax(0, 1fr) 72px 52px;
  min-width: 100%;
}
.figma-data-table--categories .figma-data-table__row {
  min-height: 56px;
}
.figma-data-table--categories .figma-data-table__head > span:nth-child(2),
.figma-data-table--categories .figma-data-table__head > span:nth-child(3),
.figma-data-table--categories .figma-data-table__row > span:nth-child(2),
.figma-data-table--categories .figma-data-table__row > div:last-child {
  justify-self: end;
  text-align: right;
}

.figma-data-table--payments .figma-data-table__head,
.figma-data-table--payments .figma-data-table__row {
  grid-template-columns: 110px minmax(90px, 1fr) 90px 80px minmax(90px, 1fr) 110px 80px 64px;
}
.figma-file-input { font-size: 13px; max-width: 100%; }
.figma-file-input--sm { max-width: 180px; }
.figma-inline-upload { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.figma-settings-thumb img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; display: block; }

.figma-data-table--chats .figma-data-table__head,
.figma-data-table--chats .figma-data-table__row {
  grid-template-columns: minmax(200px, 1.5fr) 120px 120px 80px minmax(200px, 1fr);
}

.figma-data-table__row--tall { min-height: 64px; align-items: start; padding-top: 12px; padding-bottom: 12px; }

.figma-grid-2--order-detail,
.figma-grid-2--settings {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.figma-form-panel { padding: 20px; }
.figma-form { display: flex; flex-direction: column; gap: 16px; }
.figma-form-section { margin-bottom: 24px; }
.figma-form-section h3 { margin: 0 0 4px; font-size: 16px; font-weight: 800; color: #333; }
.figma-form-section__sub { margin: 0 0 16px; font-size: 12px; color: var(--rtm-muted); }
.figma-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.figma-field--full { grid-column: 1 / -1; }
.figma-field { margin: 0; }
.figma-field > label:not(.figma-switch),
.figma-field__legend {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #333;
}
.figma-field-error {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--rtm-danger);
  line-height: 1.35;
}
.figma-field:has(.figma-field-error) .figma-input,
.figma-field:has(.figma-field-error) .figma-textarea,
.figma-field:has(.figma-field-error) .figma-select {
  border-color: var(--rtm-danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rtm-danger) 14%, transparent);
}
.figma-select--block { width: 100%; max-width: none; }
.figma-textarea {
  width: 100%;
  border: 1.26px solid var(--rtm-border);
  border-radius: var(--rtm-radius-md);
  padding: 12px 16px;
  min-height: 88px;
  resize: vertical;
  font-size: 14px;
  color: var(--rtm-text);
  background: var(--rtm-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
body.figma-admin .figma-textarea:focus {
  outline: none;
  border-color: var(--rtm-purple-accent);
  box-shadow: var(--rtm-focus-ring);
}
body.figma-admin .figma-input {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.26px solid var(--rtm-border);
  border-radius: var(--rtm-radius-md);
  padding: 0 16px;
  min-height: var(--rtm-control-h);
  background: var(--rtm-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
body.figma-admin .figma-input input {
  border: 0;
  outline: none;
  width: 100%;
  font-size: 14px;
  color: var(--rtm-text);
  background: transparent;
  min-height: 44px;
}
body.figma-admin .figma-input:focus-within {
  border-color: var(--rtm-purple-accent);
  box-shadow: var(--rtm-focus-ring);
}
body.figma-admin .figma-input:has([aria-invalid="true"]) {
  border-color: var(--rtm-danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rtm-danger) 14%, transparent);
}
body.figma-admin .figma-select:focus {
  outline: none;
  border-color: var(--rtm-purple-accent);
  box-shadow: var(--rtm-focus-ring);
}
.figma-form-hint { margin: 0; font-size: 12px; color: var(--rtm-muted); }
.figma-form-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.figma-check--block { margin: 8px 0 20px; }

.figma-order-totals {
  padding: 16px 20px;
  border-top: 1px solid var(--rtm-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}
.figma-order-totals div { display: flex; justify-content: space-between; gap: 12px; color: var(--rtm-muted); }
.figma-order-totals b { color: #333; }
.figma-order-totals__grand { font-size: 15px; font-weight: 700; padding-top: 8px; border-top: 1px dashed var(--rtm-border); }
.figma-order-totals__grand span { color: #333; }

.figma-banner-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.figma-banner-card {
  border-radius: 16px;
  border: 1px solid var(--rtm-border);
  background-size: cover;
  background-position: center;
  min-height: 180px;
  padding: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.figma-banner-card__tag { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: #e9d5ff; margin-bottom: 8px; }
.figma-banner-card h3 { margin: 0 0 6px; font-size: 18px; }
.figma-banner-card p { margin: 0 0 14px; font-size: 13px; opacity: 0.92; }
.figma-banner-card__delete { border-color: rgba(255,255,255,.8) !important; color: #fff !important; align-self: flex-start; }

/* ——— Customer Chats (248:2138) ——— */
.figma-chat-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 16px;
  min-height: calc(100vh - 220px);
}
.figma-chat-list {
  background: #fff;
  border: 1px solid var(--rtm-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 520px;
}
.figma-chat-list__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--rtm-border);
}
.figma-chat-list__search img { width: 16px; opacity: 0.6; }
.figma-chat-list__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 0 18px 10px;
  font-size: 11px;
  color: var(--rtm-muted);
  border-bottom: 1px solid #f0f2f6;
}
.figma-chat-list__meta strong { color: var(--rtm-text); font-weight: 800; }
.figma-chat-list__meta-unread { color: var(--rtm-purple-accent); font-weight: 700; }
.figma-chat-list__badge.is-hidden { display: none; }
.figma-chat-list__search input {
  border: 0;
  width: 100%;
  font-size: 14px;
  outline: none;
  color: var(--rtm-muted);
}
.figma-chat-list__items { overflow-y: auto; flex: 1; }
.figma-chat-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid #f0f2f6;
  transition: background 0.15s;
}
.figma-chat-list__item:hover { background: #fafbfe; }
.figma-chat-list__item.is-active { background: rgba(164, 26, 134, 0.08); }
.figma-chat-avatar {
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #d9d9d9;
}
.figma-chat-avatar--lg { width: 48px; height: 48px; }
.figma-chat-avatar--md { width: 32px; height: 32px; align-self: flex-end; }
.figma-chat-avatar--brand { background: #fff; border: 1px solid #eef1f6; }
.figma-chat-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.figma-chat-avatar__icon { width: 18px !important; height: 18px !important; object-fit: contain; opacity: 0.55; }
.figma-chat-avatar--lg .figma-chat-avatar__icon { width: 22px !important; height: 22px !important; }
.figma-chat-list__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.figma-chat-list__body b { font-size: 16px; font-weight: 700; color: #333; }
.figma-chat-list__body small { font-size: 13px; color: var(--rtm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.figma-chat-list__badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 33px;
  background: var(--rtm-gradient);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.figma-chat-thread {
  background: #fff;
  border: 1px solid var(--rtm-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  overflow: hidden;
}
.figma-chat-thread__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 20px;
  border-bottom: 1px solid #f3f3f3;
  box-shadow: 0 2px 20px rgba(83, 83, 83, 0.06);
}
.figma-chat-thread__back {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -8px 4px -8px -8px;
  border-radius: 12px;
  flex-shrink: 0;
}

.figma-chat-thread__back img {
  width: 20px;
  height: 20px;
  transform: rotate(180deg);
  opacity: 0.65;
}

.figma-chat-thread__back:focus-visible {
  outline: 2px solid var(--rtm-purple-accent);
  outline-offset: 2px;
}
.figma-chat-thread__head-main { min-width: 0; flex: 1; }
.figma-chat-thread__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.figma-chat-thread__title b { font-size: 16px; font-weight: 700; }
.figma-chat-thread__online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #198868;
  background: rgba(25, 136, 104, 0.09);
  padding: 4px 8px;
  border-radius: 6px;
}
.figma-chat-thread__online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #198868;
}
.figma-chat-thread__messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
}
.figma-chat-date {
  align-self: center;
  background: #f5f5f5;
  border-radius: 27px;
  padding: 2px 8px;
  font-size: 11px;
  color: #333;
}
.figma-chat-msg { display: flex; gap: 8px; align-items: flex-end; width: 100%; }
.figma-chat-msg--admin { justify-content: flex-end; align-items: flex-end; }
.figma-chat-msg__stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(355px, 85%);
}
.figma-chat-bubble {
  max-width: min(355px, 85%);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 12px;
  line-height: 1.33;
}
.figma-chat-bubble--order {
  background: rgba(255, 146, 231, 0.1);
  border: 1px solid rgba(164, 26, 134, 0.1);
  color: #333;
  font-size: 14px;
}
.figma-gradient-text {
  background: var(--rtm-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}
.figma-chat-bubble--customer {
  background: rgba(164, 26, 134, 0.08);
  color: #333;
}
.figma-chat-bubble--admin {
  background: #f7f9fc;
  color: var(--rtm-muted);
  text-align: right;
}
.figma-chat-bubble p { margin: 0; }
.figma-chat-bubble__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 6px;
}
.figma-chat-bubble__meta time { font-size: 10px; color: #333; }
.figma-chat-bubble__meta--admin time { color: var(--rtm-muted); }
.figma-chat-read img { width: 16px; height: auto; display: block; }
.figma-chat-payment-card { max-width: min(380px, 92%); }
.figma-chat-payment-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.figma-chat-payment-card__amount { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.figma-chat-payment-card__reason {
  margin: 0 0 8px;
  font-size: 12px;
  color: #991b1b;
  background: #fef2f2;
  border-radius: 8px;
  padding: 6px 8px;
}
.figma-chat-payment-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
}
.figma-chat-payment-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.figma-chat-payment-action input {
  flex: 1;
  min-width: 140px;
  border: 1px solid #e9e9e9;
  border-radius: 10px;
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.figma-chat-attachment {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fdfbf9;
  border: 1px solid #e4ded4;
  border-radius: 10px;
  padding: 6px;
  margin-bottom: 6px;
  box-shadow: 0 4px 3.4px rgba(228, 222, 212, 0.2);
}
.figma-chat-attachment__thumb {
  width: 43px;
  height: 43px;
  border-radius: 7px;
  background: #d9d9d9;
  flex-shrink: 0;
  overflow: hidden;
  display: block;
}
.figma-chat-attachment__thumb img { width: 100%; height: 100%; object-fit: cover; }
.figma-chat-attachment { text-decoration: none; color: inherit; }
.figma-chat-attachment b { display: block; font-size: 12px; color: #040d12; }
.figma-chat-attachment small { font-size: 11px; color: #989898; }
.figma-chat-compose {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--rtm-border);
  background: #fff;
}
.figma-chat-compose__field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 8px 0 10px;
  border: 1px solid #e9e9e9;
  border-radius: 14px;
  background: #fff;
}
.figma-chat-compose__field input {
  flex: 1;
  border: 0;
  min-width: 0;
  height: 42px;
  padding: 0 6px;
  font-size: 14px;
  outline: none;
  background: transparent;
}
.figma-chat-compose__icon {
  border: 0;
  background: transparent;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0.85;
  flex-shrink: 0;
  padding: 0;
}
.figma-chat-compose__icon:disabled { opacity: 0.35; cursor: not-allowed; }
.figma-chat-compose__icon img { width: 20px; height: 20px; display: block; }
.figma-chat-status {
  padding: 8px 16px 12px;
  font-size: 12px;
  color: var(--rtm-muted);
  border-top: 1px solid #f3f4f6;
}
.figma-chat-status summary { cursor: pointer; font-weight: 600; }
.figma-chat-status form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.figma-chat-compose__send {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--rtm-gradient);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.figma-chat-compose__send img { width: 18px; filter: brightness(0) invert(1); }
.figma-chat-compose-hint {
  margin: 0;
  padding: 12px 20px;
  border-top: 1px solid var(--rtm-border);
  background: #fafbfc;
}
.figma-upload-drop--disabled {
  opacity: 0.65;
  pointer-events: none;
}
.figma-chat-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 14px;
  border-top: 1px dashed var(--rtm-border);
  font-size: 13px;
}
.figma-chat-thread__empty {
  flex: 1;
  display: grid;
  place-items: center;
  color: var(--rtm-muted);
  font-size: 14px;
}
.figma-empty--pad { padding: 24px 18px; }

/* ——— Notifications (311:8255) ——— */
.figma-filter-row--notifications { flex-wrap: wrap; }
.figma-metric__icon--green { background: rgba(0, 159, 90, 0.12) !important; }
.figma-metric__icon--orange { background: rgba(223, 79, 21, 0.13) !important; }
.figma-metric__icon--purple { background: rgba(110, 42, 129, 0.16) !important; }
.figma-data-table--notifications .figma-data-table__head,
.figma-data-table--notifications .figma-data-table__row {
  grid-template-columns: minmax(200px, 1.6fr) 120px minmax(120px, 1fr) 110px 90px 90px 80px;
}
.figma-notif-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.figma-notif-cell__thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #f3f4f6;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.figma-notif-cell__thumb img { width: 22px; opacity: 0.45; }
.figma-notif-cell b { display: block; font-size: 13px; }
.figma-notif-cell small { color: var(--rtm-muted); font-size: 12px; }

/* ——— Settings (369:2040) ——— */
.figma-settings-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.figma-settings-menu { padding: 0; overflow: hidden; }
.figma-settings-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--rtm-border);
}
.figma-settings-menu__head h3 { margin: 0; font-size: 15px; font-weight: 800; }
.figma-settings-menu__close {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--rtm-muted);
  cursor: pointer;
}
.figma-settings-menu nav { display: flex; flex-direction: column; padding: 8px; gap: 4px; }
.figma-settings-menu nav a {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rtm-muted);
}
.figma-settings-menu nav a.is-active {
  background: var(--rtm-gradient);
  color: #fff;
}
.figma-settings-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.figma-settings-card { padding: 20px; }
.figma-settings-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.figma-settings-card__head h3 { margin: 0; font-size: 16px; font-weight: 800; }
.figma-settings-card__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--rtm-purple-accent);
  background: var(--rtm-purple-soft);
}
.figma-upload-drop {
  border: 1.5px dashed var(--rtm-border);
  border-radius: 12px;
  padding: 32px 16px;
  text-align: center;
  color: var(--rtm-muted);
  margin-bottom: 12px;
}
.figma-upload-drop img { width: 40px; opacity: 0.4; margin-bottom: 8px; }
.figma-upload-drop b { color: #333; }
.figma-settings-hint {
  margin: 0;
  font-size: 12px;
  color: var(--rtm-muted);
  line-height: 1.5;
  padding: 12px 14px;
  background: var(--rtm-purple-soft);
  border-radius: 10px;
}
.figma-data-table--payment-settings { --rtm-table-min: 920px; }
.figma-data-table--payment-settings .figma-data-table__head,
.figma-data-table--payment-settings .figma-data-table__row {
  grid-template-columns: 44px 72px minmax(160px, 1.5fr) minmax(120px, 1fr) 116px minmax(240px, 1.3fr);
}
.figma-data-table__row--upload { align-items: center; }
.figma-settings-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #e8ebf1;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.figma-settings-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.figma-settings-thumb__empty {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #eef2f7 0%, #e2e8f0 100%);
}
.figma-cell-stack b { display: block; font-size: 13px; margin-bottom: 2px; }
.figma-cell-stack small { color: var(--rtm-muted); font-size: 12px; line-height: 1.35; }
.figma-table-actions-cell { min-width: 0; }
.figma-inline-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.figma-file-input--table {
  flex: 1 1 140px;
  min-width: 0;
  max-width: 100%;
  font-size: 12px;
}
.figma-order-list--scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.figma-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.figma-list-toolbar--products .figma-filter-actions { display: none; }

.figma-panel__head--border {
  border-bottom: 1px solid var(--rtm-border);
  margin-bottom: 0;
}

.figma-modal__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 18px;
  margin-top: 8px;
}

.figma-modal__foot--end { justify-content: flex-end; }

.figma-modal__card--category-form { width: min(480px, calc(100% - 32px)); }

.figma-modal__card--confirm {
  width: min(420px, calc(100% - 32px));
  padding: 28px 24px 24px;
  text-align: center;
}

.figma-modal__close--confirm {
  position: absolute;
  top: 12px;
  right: 14px;
}

.figma-confirm-modal h3 {
  margin: 16px 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--rtm-text);
}

.figma-confirm-modal p {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--rtm-muted);
}

.figma-confirm-modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.figma-confirm-modal__icon img { width: 26px; height: 26px; }

.figma-confirm-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.figma-confirm-modal__btn { width: 100%; justify-content: center; }

.figma-category-list__label {
  margin: 4px 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: var(--rtm-text);
}

.figma-category-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(50vh, 360px);
  overflow-y: auto;
  margin-bottom: 8px;
}

.figma-category-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1.2px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
}

.figma-category-list__name {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
}

.figma-form--category-save { gap: 20px; padding-top: 18px; }

.figma-modal__card--product-details { width: min(720px, calc(100% - 32px)); }

.figma-product-details__hero {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.figma-product-details__img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  background: #eef1f6;
  border: 1px solid var(--rtm-border);
}

.figma-product-details__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.figma-product-details__title-row h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.figma-product-details__meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.figma-product-details__meta div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.figma-product-details__meta dt {
  font-weight: 700;
  color: var(--rtm-text);
}

.figma-product-details__meta dd {
  margin: 0;
  color: var(--rtm-muted);
  flex: 1;
}

.figma-product-details__desc dd { line-height: 1.45; }

.figma-product-details__card {
  border: 1.2px solid #e8e4f3;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fcfbff;
}

.figma-product-details__card h5 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
}

.figma-product-details__grid {
  display: grid;
  gap: 12px;
}

.figma-product-details__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.figma-product-details__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.figma-product-details__grid small {
  display: block;
  font-size: 11px;
  color: var(--rtm-muted);
  margin-bottom: 4px;
}

.figma-product-details__grid strong { font-size: 16px; font-weight: 800; }

.figma-product-details__updated {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--rtm-muted);
}

.figma-product-details__delete-wrap { margin-right: auto; }

.figma-btn-outline--danger {
  border-color: #fecaca;
  color: #dc2626;
}

.figma-btn-outline--danger img {
  filter: none;
  opacity: 0.85;
}

.figma-product-form__layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.figma-upload-drop--product {
  cursor: pointer;
  padding: 22px 14px;
  margin-bottom: 14px;
  background: #fafbfc;
}

.figma-upload-drop--product.is-dragover {
  border-color: var(--rtm-purple-accent);
  background: var(--rtm-purple-soft);
}

.figma-upload-drop__icon {
  width: 28px !important;
  height: 28px !important;
  opacity: 0.55 !important;
  filter: none !important;
  margin-bottom: 10px !important;
}

.figma-upload-drop--product span,
.figma-upload-drop--product small {
  display: block;
  font-size: 12px;
  line-height: 1.4;
}

.figma-product-form__preview-main {
  border-radius: 12px;
  overflow: hidden;
  background: #eef1f6;
  min-height: 160px;
  margin-bottom: 10px;
}

.figma-product-form__preview-main img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  display: block;
}

.figma-product-form__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  cursor: pointer;
}

.figma-product-form__thumb {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--rtm-border);
  background: #eef1f6;
}

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

.figma-product-form__thumb--empty {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.figma-product-form__pricing { margin-top: 4px; }

.figma-input--prefix {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--rtm-border);
  border-radius: var(--rtm-radius-md);
  overflow: hidden;
  background: #fff;
}

.figma-input__prefix {
  display: grid;
  place-items: center;
  min-width: 44px;
  padding: 0 10px;
  font-weight: 700;
  color: var(--rtm-muted);
  background: #f8fafc;
  border-right: 1px solid var(--rtm-border);
}

.figma-input--prefix input {
  border: 0;
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  font: inherit;
}

.figma-textarea--product { min-height: 120px; resize: vertical; }

.figma-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 6px;
}

.figma-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--rtm-text);
}

.figma-radio input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.figma-radio__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  position: relative;
  flex-shrink: 0;
}

.figma-radio input:checked + .figma-radio__dot {
  border-color: var(--rtm-purple-accent);
}

.figma-radio input:checked + .figma-radio__dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--rtm-purple-accent);
}

@media (max-width: 900px) {
  .figma-product-form__layout { grid-template-columns: 1fr; }
  .figma-product-details__grid--3 { grid-template-columns: 1fr; }
  .figma-product-details__hero { grid-template-columns: 1fr; }
}

/* ——— Responsive ——— */
@media (max-width: 1100px) {
  .figma-metrics { grid-template-columns: repeat(2, 1fr); }
  .figma-grid-2, .figma-grid-2--dashboard { grid-template-columns: 1fr; }
  .figma-chat-layout { grid-template-columns: 1fr; }
  .figma-settings-layout { grid-template-columns: 1fr; }
  .figma-settings-menu.is-collapsed { display: none; }
  .figma-data-table--payment-settings .figma-data-table__head,
  .figma-data-table--payment-settings .figma-data-table__row {
    grid-template-columns: 40px 64px minmax(140px, 1.2fr) minmax(100px, 1fr) 100px minmax(200px, 1.1fr);
  }
}

@media (max-width: 720px) {
  .figma-order-list__head, .figma-order-list__row {
    grid-template-columns: 1fr 1fr;
    min-width: 0;
    padding: 10px 16px;
  }
  .figma-order-list__head span:nth-child(n+3),
  .figma-order-list__row span:nth-child(n+3) { display: none; }
}

@media (max-width: 1279px) {
  .figma-login,
  .figma-login__viewport {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
  .figma-login__viewport {
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .figma-login__frame {
    transform: scale(min(calc(100vw / 1440), calc(100dvh / 952)));
  }
}

@media (max-width: 560px) {
  .figma-login__card {
    padding: 36px 20px 28px;
  }
  .figma-login__head h1 { font-size: 26px; }
  .figma-login__row { flex-wrap: wrap; }
  .figma-link-muted { font-size: 14px; }
}

@media (max-width: 900px) {
  .figma-sidebar { transform: translateX(-100%); }
  .figma-sidebar.open { transform: translateX(0); box-shadow: 0 0 40px rgba(0,0,0,.15); }
  .figma-main { margin-left: 0; min-width: 0; }
  .figma-shell { min-width: 0; }
  .figma-menu { display: inline-flex; }
  .split, .form-grid, .figma-form-grid { grid-template-columns: 1fr; }
  .figma-grid-2--order-detail,
  .figma-grid-2--settings { grid-template-columns: 1fr; }

  .figma-header {
    position: sticky;
    top: 0;
    z-index: 20;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    min-height: 64px;
  }

  .figma-user__meta,
  .figma-user__chev { display: none; }

  .figma-content {
    padding: 16px;
    gap: 16px;
    min-width: 0;
  }

  .figma-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 16px;
    font-size: 11px;
  }

  .figma-welcome {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .figma-welcome--actions { align-items: stretch; }

  .figma-welcome h1 {
    font-size: 22px;
    line-height: 1.25;
  }

  .figma-date-chip {
    align-self: flex-start;
    white-space: normal;
    text-align: left;
  }

  .figma-page-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .figma-page-actions .figma-btn,
  .figma-page-actions .figma-btn-outline,
  .figma-page-actions .figma-btn--44 {
    width: 100%;
    justify-content: center;
  }

  .figma-filter-row,
  .figma-banner-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .figma-filter-row--banner { flex-wrap: wrap; }

  .figma-search,
  .figma-search--wide,
  .figma-select,
  .figma-select--48,
  .figma-date-chip.figma-select--48 {
    width: 100%;
    min-width: 0;
    flex: none;
  }

  .figma-panel--filters { padding: 14px; gap: 14px; }

  .figma-panel__head {
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px;
  }

  .figma-panel__foot,
  .figma-panel__foot--split,
  .figma-list-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .figma-list-footer__controls {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }

  .figma-banner-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  .figma-banner-cta .figma-btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .figma-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .figma-tabs--pills {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .figma-chat-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 12px;
  }

  .figma-chat-list {
    min-height: 240px;
    max-height: min(52vh, 420px);
  }

  .figma-chat-thread {
    min-height: min(58vh, 520px);
  }

  .figma-chat-layout--detail .figma-chat-list { display: none; }
  .figma-chat-layout--detail .figma-chat-thread { min-height: min(70vh, 640px); }
  .figma-chat-thread__back { display: inline-flex; }

  .figma-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .figma-modal__card {
    max-height: calc(100dvh - 24px);
    border-radius: 16px 16px 0 0;
  }

  .figma-settings-menu__close { display: inline-flex; }

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

@media (max-width: 560px) {
  .figma-metrics { grid-template-columns: 1fr; }
  .figma-metric--overview strong { font-size: 24px; }
  .figma-metric { flex-direction: row; }
  .figma-data-table__head,
  .figma-data-table__row {
    padding: 0 12px;
    font-size: 12px;
  }
  .figma-data-table__row { min-height: 64px; }
  .figma-data-table--customers .figma-data-table__head,
  .figma-data-table--customers .figma-data-table__row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px 14px;
  }
  .figma-data-table--customers .figma-data-table__head { display: none; }
  .figma-data-table--customers .figma-data-table__row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--rtm-border);
  }
  .figma-data-table--customers .figma-row-actions { justify-content: flex-start; }
  .figma-pager { flex-wrap: wrap; justify-content: center; }
  .figma-icon-btn {
    width: 44px;
    height: 44px;
  }
  .figma-form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .figma-form-actions .figma-btn,
  .figma-form-actions .figma-btn-outline {
    width: 100%;
    justify-content: center;
  }
}
