/* ─────────────────────────────────────────────────────────────────────────
   Pro My Account – Luxury Minimal Dashboard
   Brand: #7C1695  |  Font: IranYekanX  |  Style: LV-inspired minimal
   ───────────────────────────────────────────────────────────────────────── */

/* ── Variables ───────────────────────────────────────────────────────────── */
:root {
  --pma-brand:        #7C1695;
  --pma-brand-dark:   #5e1070;
  --pma-brand-light:  #f3e8f8;
  --pma-brand-dim:    rgba(124,22,149,0.08);
  --pma-brand-ring:   rgba(124,22,149,0.18);
  --pma-brand-glow:   rgba(124,22,149,0.28);

  --pma-bg:           #f8f8f8;
  --pma-surface:      #ffffff;
  --pma-border:       #e8e8e8;
  --pma-border-soft:  #f0f0f0;

  --pma-text:         #1a1a1a;
  --pma-text-2:       #555555;
  --pma-text-3:       #999999;

  --pma-shadow-xs:    0 1px 4px rgba(0,0,0,0.06);
  --pma-shadow-sm:    0 2px 12px rgba(0,0,0,0.07);
  --pma-shadow-md:    0 4px 24px rgba(0,0,0,0.09);
  --pma-shadow-lg:    0 8px 40px rgba(0,0,0,0.12);

  --pma-radius:       0px !important;   /* Sharp corners – Minimal Architectural */
  --pma-radius-sm:    0px !important;

  --pma-sidebar-w:    272px;
  --pma-transition:   0.3s cubic-bezier(0.4,0,0.2,1);

  /* Status colors */
  --c-open:      #2563eb;
  --c-pending:   #d97706;
  --c-answered:  #7C1695;
  --c-completed: #16a34a;
  --c-closed:    #6b7280;
  --c-failed:    #dc2626;
  --c-processing:#0891b2;
}

/* ── Reset + Font ─────────────────────────────────────────────────────────── */
.pma-dashboard * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.pma-dashboard,
.pma-dashboard * {
  font-family: 'IranYekanX', 'Tahoma', sans-serif !important;
  direction: rtl;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
.pma-dashboard {
  display: flex;
  min-height: 100vh;
  background: var(--pma-bg);
  position: relative;
}

/* ── SIDEBAR ─────────────────────────────────────────────────────────────
   Three fixed bands: the identity block, the menu (the only part that
   scrolls) and the sign-out foot. Everything is drawn from the radius
   tokens, so the sharp "شیک" preset and the rounded "مدرن" preset are the
   same layout with different corners – the per-preset character lives in
   pma-design.css.
   ───────────────────────────────────────────────────────────────────────── */
.pma-sidebar {
  --pma-nav-hover:  var(--pma-brand-dim);
  --pma-nav-active: var(--pma-brand-dim);
  --pma-nav-accent: var(--pma-brand);

  width: var(--pma-sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--pma-surface);
  border-inline-end: 1px solid var(--pma-border);
  transition: transform var(--pma-transition);
}

/* Only visible while the sidebar is a drawer. */
.pma-side-close {
  display: none;
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--pma-border);
  border-radius: var(--pma-radius-control, 0px);
  background: var(--pma-surface);
  color: var(--pma-text-2);
  cursor: pointer;
}
.pma-side-close svg { width: 16px; height: 16px; }
.pma-side-close:hover { border-color: var(--pma-brand); color: var(--pma-brand); }

/* ── Identity ────────────────────────────────────────────────────────────── */
.pma-side-head {
  flex: none;
  padding: 14px 14px 8px;
}

.pma-profile-card {
  position: relative;
  overflow: hidden;
  padding: 12px 14px;
  border-radius: 0;
  text-align: start;
  background: var(--pma-surface);
  border: 1px solid var(--pma-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: border-color var(--pma-transition);
}
.pma-profile-card:hover {
  border-color: var(--pma-border-strong, #cbd5e1);
}

.pma-profile-id {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pma-avatar-wrap {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  display: block;
}
.pma-avatar {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: cover;
  border: 1px solid var(--pma-border);
  border-radius: 0 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: transform var(--pma-transition);
}
.pma-avatar-wrap:hover .pma-avatar {
  transform: scale(1.03);
}

.pma-avatar-edit {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  border: none;
  display: grid;
  place-items: center;
  opacity: 0;
  cursor: pointer;
  border-radius: 0 !important;
  transition: opacity var(--pma-transition);
}
.pma-avatar-wrap:hover .pma-avatar-edit {
  opacity: 1;
}
.pma-avatar-edit svg {
  width: 18px;
  height: 18px;
}

.pma-avatar-remove {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  width: 18px;
  height: 18px;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 0 !important;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.pma-avatar-remove svg {
  width: 12px;
  height: 12px;
}

.pma-avatar-badge {
  position: absolute;
  bottom: -1px;
  inset-inline-start: -1px;
  width: 10px;
  height: 10px;
  background: #16a34a;
  border: 2px solid var(--pma-surface);
  border-radius: 0 !important;
}

.pma-profile-text {
  flex: 1 1 auto;
  min-width: 0;
}
.pma-profile-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.pma-profile-name {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--pma-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pma-profile-tier {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  background: var(--pma-brand-light);
  color: var(--pma-brand);
  border: 1px solid var(--pma-brand-ring);
  border-radius: 0 !important;
  white-space: nowrap;
  line-height: 1.4;
}
.pma-profile-email {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--pma-text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Menu ────────────────────────────────────────────────────────────────── */
.pma-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.12) transparent;
  scrollbar-gutter: stable;
}
.pma-nav:hover {
  scrollbar-color: var(--pma-brand) transparent;
}
.pma-nav::-webkit-scrollbar {
  width: 4px;
}
.pma-nav::-webkit-scrollbar-track {
  background: transparent;
}
.pma-nav::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 0;
  transition: background 0.2s ease;
}
.pma-nav:hover::-webkit-scrollbar-thumb {
  background: var(--pma-brand);
}

.pma-nav-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pma-nav-group + .pma-nav-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--pma-border-soft);
}
.pma-nav-group-title {
  display: block;
  padding: 6px 12px 6px;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--pma-text-3);
  text-transform: uppercase;
}

.pma-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: 0;
  background: none;
  color: var(--pma-text-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: start;
  text-decoration: none !important;
  cursor: pointer;
  transition: background var(--pma-transition), color var(--pma-transition);
}

.pma-nav-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 0;
  color: var(--pma-text-3);
  background: none;
  transition: background var(--pma-transition), color var(--pma-transition);
}
.pma-nav-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.pma-nav-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pma-nav-item:hover {
  background: var(--pma-brand-dim, rgba(124, 22, 149, 0.05));
  color: var(--pma-brand);
}
.pma-nav-item:hover .pma-nav-icon {
  color: var(--pma-brand);
}

.pma-nav-item.active {
  background: var(--pma-brand-light, rgba(124, 22, 149, 0.09));
  color: var(--pma-brand);
  font-weight: 700;
}
.pma-nav-item.active::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--pma-brand);
  display: block !important;
}
.pma-nav-item.active .pma-nav-icon {
  background: var(--pma-brand);
  color: var(--pma-on-brand, #fff);
}

.pma-nav-item .pma-badge {
  flex: none;
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 0;
  background: var(--pma-brand);
  color: var(--pma-on-brand, #fff);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

/* ── Sign out ────────────────────────────────────────────────────────────── */
.pma-side-foot {
  flex: none;
  padding: 12px;
  border-top: 1px solid var(--pma-border-soft);
}
.pma-logout {
  color: var(--pma-text-2) !important;
  border-radius: 0;
}
.pma-logout:hover {
  background: rgba(220,38,38,0.08) !important;
  color: #dc2626 !important;
}
.pma-logout:hover .pma-nav-icon {
  background: rgba(220,38,38,0.12);
  color: #dc2626;
}

/* ── MAIN ────────────────────────────────────────────────────────────────── */
.pma-main {
  flex: 1;
  padding: 32px 28px;
  min-width: 0;
  overflow-x: hidden;
}

/* ── Sections ─────────────────────────────────────────────────────────────── */
.pma-section {
  display: none;
  animation: pma-fade-in 0.4s cubic-bezier(0.4,0,0.2,1) both;
}
.pma-section.active { display: block; }
@keyframes pma-fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pma-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--pma-border);
}
.pma-section-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--pma-text);
  letter-spacing: -0.02em;
}
.pma-section-sub {
  font-size: 13px;
  color: var(--pma-text-3);
  margin-top: 4px;
  line-height: 1.5;
  flex-basis: 100%;
}

/* ── Stats Grid ──────────────────────────────────────────────────────────── */
.pma-overview-hero {
  padding: 16px 20px;
  background: var(--pma-surface);
  border: 1px solid var(--pma-border);
  box-shadow: var(--pma-shadow-xs);
  margin-bottom: 24px;
  border-radius: 0 !important;
}
.pma-hero-greeting-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pma-hero-greeting-row h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--pma-text);
  letter-spacing: -0.01em;
}
.pma-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: var(--pma-brand-light);
  color: var(--pma-brand);
  border: 1px solid var(--pma-brand-ring);
  border-radius: 0 !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}
.pma-hero-badge svg {
  width: 14px;
  height: 14px;
}
.pma-status-dot {
  width: 7px;
  height: 7px;
  background: #16a34a;
  display: inline-block;
  border-radius: 0 !important;
}

/* ── Stats Grid ──────────────────────────────────────────────────────────── */
.pma-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.pma-stat-card {
  background: var(--pma-surface);
  border: 1px solid var(--pma-border);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--pma-shadow-xs);
  cursor: pointer;
  border-radius: 0 !important;
  transition: transform var(--pma-transition), box-shadow var(--pma-transition), border-color var(--pma-transition);
  animation: pma-card-in 0.4s cubic-bezier(0.16,1,0.3,1) both;
}
.pma-stat-card:nth-child(1) { animation-delay: 0.04s; }
.pma-stat-card:nth-child(2) { animation-delay: 0.08s; }
.pma-stat-card:nth-child(3) { animation-delay: 0.12s; }
.pma-stat-card:nth-child(4) { animation-delay: 0.16s; }
@keyframes pma-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pma-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--pma-brand);
  box-shadow: var(--pma-shadow-sm);
}
.pma-stat-card:focus-visible {
  outline: 2px solid var(--pma-brand);
  outline-offset: 2px;
}
.pma-stat-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 0 !important;
  background: var(--pma-bg);
  border: 1px solid var(--pma-border-soft);
  color: var(--pma-brand);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pma-stat-card:hover .pma-stat-icon {
  background: var(--pma-brand);
  color: var(--pma-on-brand, #fff);
  border-color: var(--pma-brand);
}
.pma-stat-icon svg { width: 22px; height: 22px; }
.pma-stat-info {
  flex: 1;
  min-width: 0;
}
.pma-stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--pma-text);
  line-height: 1;
  display: block;
}
.pma-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--pma-text-2);
  display: block;
  margin-top: 4px;
}
.pma-stat-desc {
  display: block;
  font-size: 10.5px;
  color: var(--pma-text-3);
  margin-top: 2px;
}

/* ── Support Hub ─────────────────────────────────────────────────────────── */
.pma-support-hub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: var(--pma-surface);
  border: 1px solid var(--pma-border);
  margin-top: 24px;
  box-shadow: var(--pma-shadow-xs);
  border-radius: 0 !important;
}
.pma-support-hub-content {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.pma-support-hub-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--pma-brand-light);
  color: var(--pma-brand);
  border: 1px solid var(--pma-brand-ring);
  border-radius: 0 !important;
  flex-shrink: 0;
}
.pma-support-hub-icon svg { width: 20px; height: 20px; }
.pma-support-hub-text h4 {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 700;
  color: var(--pma-text);
}
.pma-support-hub-text p {
  margin: 0;
  font-size: 12px;
  color: var(--pma-text-3);
  line-height: 1.5;
}
.pma-support-hub .pma-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 0 !important;
}
.pma-support-hub .pma-btn-primary svg {
  width: 16px;
  height: 16px;
}

/* ── Widget ──────────────────────────────────────────────────────────────── */
.pma-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.pma-widget-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--pma-text);
}
.pma-text-btn {
  background: none;
  border: none;
  color: var(--pma-brand);
  font-size: 12.5px;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 8px;
  transition: opacity var(--pma-transition);
}
.pma-text-btn:hover { opacity: 0.7; }

/* ── Recent Orders ───────────────────────────────────────────────────────── */
.pma-recent-orders {
  background: var(--pma-surface);
  border: 1px solid var(--pma-border);
  padding: 20px 24px;
  box-shadow: var(--pma-shadow-xs);
}
.pma-notification-widget {
  background: var(--pma-surface);
  border: 1px solid var(--pma-border);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--pma-shadow-xs);
}
.pma-notification-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pma-notification-list.compact { gap: 1px; }
.pma-notification-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--pma-surface);
  border: 1px solid var(--pma-border);
  padding: 18px 20px;
  box-shadow: var(--pma-shadow-xs, 0 1px 3px rgba(0, 0, 0, 0.03));
  border-radius: 0 !important;
  transition: all var(--pma-transition);
}
.pma-notification-list.compact .pma-notification-item {
  border-right: 0;
  border-left: 0;
  border-top: 0;
  box-shadow: none;
  padding: 14px 16px;
}
.pma-notification-item:hover {
  border-color: var(--pma-border-hover, #cbd5e1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}
.pma-notification-item.is-read {
  opacity: 0.92;
}
.pma-notification-item.is-unread {
  background: var(--pma-brand-light, #faf5ff) !important;
  border-color: var(--pma-brand) !important;
  border-inline-start: 4px solid var(--pma-brand) !important;
}
.pma-notification-indicator {
  width: 9px;
  height: 9px;
  margin-top: 6px;
  flex-shrink: 0;
  border-radius: 50% !important;
}
.pma-notification-item.is-unread .pma-notification-indicator {
  background: var(--pma-brand);
  box-shadow: 0 0 0 3px var(--pma-brand-ring, rgba(124, 22, 149, 0.2));
}
.pma-notification-item.is-read .pma-notification-indicator {
  background: var(--pma-border, #cbd5e1);
  opacity: 0.6;
}
.pma-notification-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pma-notification-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.pma-notification-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--pma-text);
  line-height: 1.4;
}
.pma-notification-item.is-unread .pma-notification-title {
  font-weight: 800;
}
.pma-notification-date {
  font-size: 11.5px !important;
  color: var(--pma-text-3) !important;
  direction: ltr !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin: 0 !important;
  display: inline-block !important;
}
.pma-notification-message {
  font-size: 13px;
  line-height: 1.7;
  color: var(--pma-text-2);
  margin: 0;
  word-break: break-word;
}
.pma-notification-message p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}
.pma-notification-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-top: 2px;
}
.pma-orders-list { display: flex; flex-direction: column; gap: 1px; }
.pma-order-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--pma-border-soft);
  transition: background var(--pma-transition);
}
.pma-order-row:last-child { border-bottom: none; padding-bottom: 0; }
.pma-order-row:hover { background: var(--pma-bg); }
.pma-order-thumb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--pma-border);
}
.pma-order-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pma-order-info { flex: 1; min-width: 0; }
.pma-order-num { font-size: 12px; font-weight: 700; color: var(--pma-brand); display: block; }
.pma-order-row-product {
  display: block;
  margin: 2px 0;
  color: var(--pma-text);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pma-order-date { font-size: 11px; color: var(--pma-text-3); }
.pma-order-total { font-size: 13px; font-weight: 700; color: var(--pma-text); white-space: nowrap; }

/* ── Orders Grid ─────────────────────────────────────────────────────────── */
.pma-orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.pma-order-card {
  background: var(--pma-surface);
  border: 1px solid var(--pma-border);
  box-shadow: var(--pma-shadow-xs);
  transition: transform var(--pma-transition), box-shadow var(--pma-transition);
  overflow: hidden;
}
.pma-order-hidden { display: none !important; }
.pma-order-actions { display: flex; align-items: center; gap: 8px; }
.pma-load-more-orders { margin: 20px auto 0; display: flex; }
.pma-order-timeline {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.pma-order-timeline span {
  font-size: 10.5px;
  color: var(--pma-text-3);
  border: 1px solid var(--pma-border);
  padding: 3px 7px;
  background: var(--pma-bg);
}
.pma-order-timeline span.done {
  color: var(--c-completed);
  border-color: var(--c-completed);
  background: #f0fdf4;
}
.pma-order-timeline span.issue {
  color: var(--c-failed);
  border-color: var(--c-failed);
  background: #fef2f2;
}
.pma-order-tracking {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--pma-border);
  background: #fbfbfb;
  color: var(--pma-text);
  direction: rtl;
  font-family: 'IranYekanX', 'Tahoma', sans-serif !important;
}
.pma-order-tracking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 800;
}
.pma-order-tracking-head span { color: var(--pma-text); }
.pma-order-tracking-head a {
  color: var(--pma-brand) !important;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none !important;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}
.pma-order-tracking-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--pma-text-2);
}
.pma-order-tracking-grid strong {
  color: var(--pma-text);
  font-weight: 700;
}
.pma-order-tracking-grid code {
  direction: ltr;
  display: inline-block;
  padding: 1px 6px;
  background: var(--pma-surface);
  border: 1px solid var(--pma-border-soft);
  color: var(--pma-brand);
  font-family: 'Courier New', monospace !important;
  font-size: 11.5px;
  font-weight: 700;
}
.pma-order-tracking-details {
  margin: 18px 0 24px;
  background: var(--pma-surface);
  box-shadow: var(--pma-shadow-xs);
}
.pma-order-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pma-shadow-md);
}
.pma-order-card-img {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--pma-bg);
}
.pma-order-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
  display: block;
}
.pma-order-card:hover .pma-order-card-img img { transform: scale(1.06); }
.pma-more-items {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 10px;
  padding: 3px 8px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.pma-order-card-body { padding: 16px; }
.pma-order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.pma-order-num-lg { font-size: 13px; font-weight: 800; color: var(--pma-brand); }
.pma-order-product-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pma-text);
  margin-bottom: 10px;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.pma-order-stage-text {
  margin: -3px 0 10px;
  color: var(--pma-text-3);
  font-size: 11.5px;
  line-height: 1.7;
}
.pma-order-card-meta {
  display: flex;
  gap: 14px;
  font-size: 11.5px;
  color: var(--pma-text-3);
  margin-bottom: 14px;
}
.pma-order-card-meta svg { width: 12px; height: 12px; margin-left: 3px; vertical-align: -1px; }
.pma-order-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--pma-border-soft);
}
.pma-order-price { font-size: 14px; font-weight: 800; color: var(--pma-text); }

.pma-order-detail-panel {
  margin-bottom: 18px;
  padding: 18px;
  background: var(--pma-surface);
  border: 1px solid var(--pma-border);
  box-shadow: var(--pma-shadow-xs);
}
.pma-order-detail-head,
.pma-order-detail-actions,
.pma-order-detail-meta,
.pma-order-detail-foot {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pma-order-detail-head {
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--pma-border-soft);
}
.pma-order-detail-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--pma-text-3);
  font-size: 11px;
  font-weight: 700;
}
.pma-order-detail-head h3 {
  font-size: 20px;
  color: var(--pma-text);
  line-height: 1.4;
}
.pma-order-detail-actions { flex-wrap: wrap; justify-content: flex-end; }
.pma-order-detail-meta {
  flex-wrap: wrap;
  margin-bottom: 14px;
  color: var(--pma-text-2);
  font-size: 12px;
  line-height: 1.8;
}
.pma-order-detail-meta span {
  padding: 7px 10px;
  background: var(--pma-bg);
  border: 1px solid var(--pma-border-soft);
}
.pma-order-items {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 14px;
  border: 1px solid var(--pma-border-soft);
}
.pma-order-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--pma-surface);
  border-bottom: 1px solid var(--pma-border-soft);
}
.pma-order-item:last-child { border-bottom: none; }
.pma-order-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--pma-border);
}
.pma-order-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--pma-text);
  font-size: 13px;
  line-height: 1.5;
}
.pma-order-item span {
  color: var(--pma-text-3);
  font-size: 11.5px;
}
.pma-order-item-total {
  color: var(--pma-text) !important;
  font-weight: 800;
  white-space: nowrap;
}
.pma-order-detail-foot {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 14px;
}
.pma-order-detail-foot p {
  color: var(--pma-text-2);
  font-size: 12px;
  line-height: 1.7;
}

/* ── Courses Grid ─────────────────────────────────────────────────────────── */
.pma-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.pma-course-card {
  background: var(--pma-surface);
  border: 1px solid var(--pma-border);
  box-shadow: var(--pma-shadow-xs);
  overflow: hidden;
  transition: transform var(--pma-transition), box-shadow var(--pma-transition);
}
.pma-course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pma-shadow-md);
}
.pma-course-img,
.pma-course-media {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--pma-bg);
  border-radius: 0 !important;
}
.pma-course-img img,
.pma-course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
  display: block;
  border-radius: 0 !important;
}
.pma-course-card:hover .pma-course-img img,
.pma-course-card:hover .pma-course-media img { transform: scale(1.06); }
.pma-course-overlay {
  position: absolute;
  inset: 0;
  background: rgba(124,22,149,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--pma-transition);
}
.pma-course-card:hover .pma-course-overlay { opacity: 1; }
.pma-course-cta {
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background var(--pma-transition), border-color var(--pma-transition);
  letter-spacing: 0.05em;
}
.pma-course-cta:hover { background: rgba(255,255,255,0.15); border-color: #fff; }
.pma-course-body { padding: 18px; }
.pma-course-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--pma-text);
  margin-bottom: 6px;
  line-height: 1.4;
}
.pma-course-date { font-size: 11.5px; color: var(--pma-text-3); margin-bottom: 14px; }

.pma-course-progress {
  border: 1px solid var(--pma-border);
  background: var(--pma-bg);
  padding: 10px 12px;
  margin-bottom: 12px;
}
.pma-course-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--pma-text-2);
  margin-bottom: 7px;
}
.pma-course-progress-top strong { color: var(--pma-brand); }
.pma-progress-track {
  height: 7px;
  background: var(--pma-border);
  overflow: hidden;
}
.pma-progress-track span {
  display: block;
  height: 100%;
  background: var(--pma-brand);
}

/* License box */
.pma-license-box {
  background: var(--pma-bg);
  border: 1px solid var(--pma-border);
  padding: 12px 14px;
  margin-bottom: 12px;
}
.pma-license-box label,
.pma-license-box .pma-license-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--pma-text-3);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
}
.pma-license-key {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pma-license-code {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  color: var(--pma-brand);
  letter-spacing: 0.12em;
  word-break: break-all;
  font-family: 'Courier New', monospace !important;
  background: var(--pma-surface);
  border: 1px dashed var(--pma-border);
  padding: 6px 10px;
  border-radius: 0 !important;
}
.pma-copy-btn {
  background: var(--pma-surface);
  border: 1px solid var(--pma-border);
  padding: 6px 10px;
  cursor: pointer;
  color: var(--pma-text-3);
  transition: all var(--pma-transition);
  flex-shrink: 0;
  border-radius: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pma-copy-btn svg { width: 15px; height: 15px; display: block; }
.pma-copy-btn:hover { border-color: var(--pma-brand); color: var(--pma-brand); }
.pma-copy-btn.copied { background: var(--pma-brand); border-color: var(--pma-brand); color: #fff; }

.pma-course-downloads {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--pma-border);
}
.pma-course-dl-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--pma-text-3);
  letter-spacing: 0.05em;
}
.pma-course-dl-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pma-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--pma-text-2);
  border: 1px solid var(--pma-border);
  background: var(--pma-surface);
  padding: 6px 12px;
  text-decoration: none !important;
  border-radius: 0 !important;
  transition: all var(--pma-transition);
}
.pma-download-btn svg { width: 13px; height: 13px; color: var(--pma-brand); }
.pma-download-btn:hover { border-color: var(--pma-brand); color: var(--pma-brand); background: var(--pma-bg); }

/* ── Download Center Grid ─────────────────────────────────────────────────── */
.pma-download-grid,
.pma-download-center {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.pma-download-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--pma-surface);
  border: 1px solid var(--pma-border);
  padding: 18px 20px;
  box-shadow: var(--pma-shadow-xs);
  border-radius: 0 !important;
  transition: border-color var(--pma-transition), transform var(--pma-transition), box-shadow var(--pma-transition);
}
.pma-download-card:hover {
  border-color: var(--pma-brand);
  transform: translateY(-2px);
  box-shadow: var(--pma-shadow-sm);
}
.pma-download-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pma-bg);
  border: 1px solid var(--pma-border);
  color: var(--pma-brand);
  flex-shrink: 0;
  border-radius: 0 !important;
}
.pma-download-icon svg { width: 22px; height: 22px; }
.pma-download-card.is-course-resource .pma-download-icon {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.2);
}
.pma-download-details {
  flex: 1;
  min-width: 0;
}
.pma-download-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pma-text);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pma-download-sub {
  display: block;
  font-size: 11.5px;
  color: var(--pma-text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pma-download-card .pma-btn-primary-sm,
.pma-download-card .pma-btn-sm {
  flex-shrink: 0;
  border-radius: 0 !important;
}

/* ── Tickets ──────────────────────────────────────────────────────────────── */
.pma-ticket-form-wrap {
  margin-bottom: 24px;
  animation: pma-slide-down 0.35s cubic-bezier(0.4,0,0.2,1) both;
}
@keyframes pma-slide-down {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pma-card {
  background: var(--pma-surface);
  border: 1px solid var(--pma-border);
  box-shadow: var(--pma-shadow-sm);
}
.pma-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--pma-border);
}
.pma-card-header h3 { font-size: 15px; font-weight: 700; color: var(--pma-text); }
.pma-close-btn {
  background: none;
  border: 1px solid var(--pma-border);
  padding: 6px;
  cursor: pointer;
  color: var(--pma-text-3);
  transition: all var(--pma-transition);
}
.pma-close-btn svg { width: 14px; height: 14px; display: block; }
.pma-close-btn:hover { border-color: #dc2626; color: #dc2626; }
.pma-card-body { padding: 20px; }

.pma-form-row { margin-bottom: 16px; }
.pma-form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pma-form-group { display: flex; flex-direction: column; gap: 6px; }
.pma-form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pma-text-2);
}
.req { color: var(--pma-brand); }

.pma-input,
.pma-select,
.pma-textarea {
  border: 1px solid var(--pma-border);
  background: var(--pma-bg);
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--pma-text);
  font-family: inherit;
  border-radius: 0;
  transition: border-color var(--pma-transition), box-shadow var(--pma-transition);
  outline: none;
  width: 100%;
}
.pma-input:focus,
.pma-select:focus,
.pma-textarea:focus {
  border-color: var(--pma-brand);
  box-shadow: 0 0 0 3px var(--pma-brand-dim);
  background: var(--pma-surface);
}
.pma-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.pma-select { appearance: none; cursor: pointer; }
.pma-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--pma-border);
}
.pma-form-section-title {
  margin: 28px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--pma-border);
}
.pma-form-section-title:first-child {
  margin-top: 0;
}
.pma-form-section-title h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--pma-text);
  margin: 0;
}
.pma-field-hint {
  font-size: 11.5px;
  color: var(--pma-text-3);
  margin-top: 4px;
  display: block;
}

/* ── Password Strength Meter ─────────────────────────────────────────────── */
.pma-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.pma-strength-bar {
  flex: 1;
  height: 4px;
  background: var(--pma-border);
  overflow: hidden;
  border-radius: 0 !important;
}
.pma-strength-bar i {
  display: block;
  height: 100%;
  border-radius: 0 !important;
  transition: width 0.25s ease, background 0.25s ease;
}
.pma-strength-label {
  font-size: 11px;
  font-weight: 600;
  min-width: 38px;
  text-align: left;
}
.pma-strength[data-score="0"] .pma-strength-bar i,
.pma-strength[data-score="1"] .pma-strength-bar i { background: #ef4444; }
.pma-strength[data-score="0"] .pma-strength-label,
.pma-strength[data-score="1"] .pma-strength-label { color: #ef4444; }
.pma-strength[data-score="2"] .pma-strength-bar i { background: #f59e0b; }
.pma-strength[data-score="2"] .pma-strength-label { color: #f59e0b; }
.pma-strength[data-score="3"] .pma-strength-bar i { background: #3b82f6; }
.pma-strength[data-score="3"] .pma-strength-label { color: #3b82f6; }
.pma-strength[data-score="4"] .pma-strength-bar i { background: #10b981; }
.pma-strength[data-score="4"] .pma-strength-label { color: #10b981; }

/* ── Profile Completion Alert Card ───────────────────────────────────────── */
.pma-complete-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  background: var(--pma-surface);
  border: 1px solid var(--pma-border);
  border-inline-start: 4px solid var(--pma-brand);
  margin-bottom: 24px;
  box-shadow: var(--pma-shadow-xs);
  border-radius: 0 !important;
}
.pma-complete-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 12px 14px;
  background: var(--pma-bg);
  border: 1px solid var(--pma-border);
  border-radius: 0 !important;
  flex-shrink: 0;
}
.pma-complete-pct {
  font-size: 24px;
  font-weight: 800;
  color: var(--pma-brand);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.pma-complete-bar {
  display: block;
  width: 100%;
  height: 5px;
  background: var(--pma-border);
  margin-top: 6px;
  overflow: hidden;
  border-radius: 0 !important;
}
.pma-complete-bar i {
  display: block;
  height: 100%;
  background: var(--pma-brand);
  border-radius: 0 !important;
}
.pma-complete-info {
  flex: 1;
  min-width: 0;
}
.pma-complete-info strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--pma-text);
  margin-bottom: 4px;
}
.pma-complete-info p {
  font-size: 12.5px;
  color: var(--pma-text-2);
  margin: 0 0 8px;
}
.pma-complete-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pma-complete-list li {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--pma-text-2);
  background: var(--pma-bg);
  border: 1px solid var(--pma-border);
  padding: 3px 10px;
  border-radius: 0 !important;
}

/* ── Inline Note ─────────────────────────────────────────────────────────── */
.pma-inline-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, 0.2);
  margin-bottom: 20px;
  border-radius: 0 !important;
}
.pma-inline-note-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #1e40af;
}
.pma-inline-note-content svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #2563eb;
}

/* ── Notification Preferences Matrix Table ────────────────────────────────── */
.pma-prefs-card {
  padding: 0;
  overflow: hidden;
  border-radius: 0 !important;
}
.pma-prefs-card .pma-card-body {
  padding: 0;
}
.pma-prefs-card .pma-table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.pma-prefs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  margin: 0;
}
.pma-prefs-table th,
.pma-prefs-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--pma-border);
}
.pma-prefs-th-event {
  font-size: 13px;
  font-weight: 700;
  color: var(--pma-text-3);
  text-align: right;
  background: var(--pma-bg);
}
.pma-prefs-th-channel {
  font-size: 13px;
  font-weight: 700;
  color: var(--pma-text-3);
  text-align: center;
  width: 120px;
  background: var(--pma-bg);
}
.pma-prefs-td-info {
  text-align: right;
  vertical-align: middle;
}
.pma-prefs-event-name {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pma-text);
  margin-bottom: 2px;
}
.pma-prefs-event-hint {
  display: block;
  font-size: 11.5px;
  color: var(--pma-text-3);
  line-height: 1.5;
}
.pma-badge-locked {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
  margin-top: 4px;
  border-radius: 0 !important;
}
.pma-prefs-td-toggle {
  text-align: center;
  vertical-align: middle;
}
.pma-prefs-card .pma-form-actions {
  padding: 18px 20px;
  margin-top: 0;
  background: var(--pma-bg);
}

/* Sharp Switch */
.pma-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
  user-select: none;
}
.pma-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.pma-switch-track {
  position: absolute;
  inset: 0;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-radius: 0 !important;
  transition: all 0.2s ease;
}
.pma-switch-thumb {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  border-radius: 0 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
[dir="ltr"] .pma-switch-thumb {
  right: auto;
  left: 2px;
}
.pma-switch input:checked + .pma-switch-track {
  background: var(--pma-brand);
  border-color: var(--pma-brand);
}
.pma-switch input:checked + .pma-switch-track .pma-switch-thumb {
  transform: translateX(-20px);
}
[dir="ltr"] .pma-switch input:checked + .pma-switch-track .pma-switch-thumb {
  transform: translateX(20px);
}
.pma-switch input:disabled + .pma-switch-track {
  opacity: 0.55;
  cursor: not-allowed;
}
.pma-switch input:disabled {
  cursor: not-allowed;
}

.pma-order-filters {
  display: block;
  margin-bottom: 18px;
  background: var(--pma-surface);
  border: 1px solid var(--pma-border);
  padding: 14px;
}
.pma-order-filters > * {
  min-width: 0;
  max-width: 100%;
}
.pma-order-filters .pma-input {
  max-width: 520px;
}

/* ── Tickets Desk & Filter Pills ────────────────────────────────────────── */
.pma-ticket-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.pma-ticket-filters::-webkit-scrollbar { display: none; }

.pma-filter-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--pma-surface);
  border: 1px solid var(--pma-border);
  border-radius: 0 !important;
  color: var(--pma-text-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--pma-transition);
}
.pma-filter-pill:hover {
  border-color: var(--pma-brand);
  color: var(--pma-brand);
}
.pma-filter-pill.active {
  background: var(--pma-brand);
  border-color: var(--pma-brand);
  color: #fff !important;
  font-weight: 700;
}
.pma-pill-cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: rgba(0,0,0,0.06);
  color: inherit;
  border-radius: 0 !important;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
}
.pma-filter-pill.active .pma-pill-cnt {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

/* ── Tickets Table & Modern Cards ────────────────────────────────────────── */
.pma-tickets-table {
  background: var(--pma-surface);
  border: 1px solid var(--pma-border);
  border-radius: 0 !important;
  box-shadow: var(--pma-shadow-xs);
}
.pma-table-head {
  display: grid;
  grid-template-columns: 3fr 1.2fr 1fr 1.1fr 1fr 90px;
  gap: 12px;
  align-items: center;
  padding: 14px 20px;
  background: var(--pma-bg);
  border-bottom: 1px solid var(--pma-border);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--pma-text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pma-ticket-row {
  display: grid;
  grid-template-columns: 3fr 1.2fr 1fr 1.1fr 1fr 90px;
  gap: 12px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--pma-border-soft);
  font-size: 13px;
  background: var(--pma-surface);
  transition: background var(--pma-transition);
}
.pma-ticket-row:last-child { border-bottom: none; }
.pma-ticket-row:hover { background: rgba(124, 22, 149, 0.02); }

.pma-ticket-title-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.pma-ticket-title-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.pma-ticket-id {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid rgba(124,22,149,0.2);
  border-radius: 0 !important;
  background: var(--pma-brand-light);
  color: var(--pma-brand);
  font-size: 11px;
  font-weight: 800;
  flex: none;
}
.pma-ticket-name {
  font-weight: 700;
  color: var(--pma-text) !important;
  font-size: 13.5px;
  text-decoration: none !important;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color var(--pma-transition);
}
.pma-ticket-name:hover { color: var(--pma-brand) !important; }

.pma-ticket-meta-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}
.pma-ticket-replies-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--pma-text-3);
  font-weight: 600;
}
.pma-ticket-replies-count svg { width: 12px; height: 12px; }

.pma-ticket-dept-label {
  color: var(--pma-text-2);
  font-size: 12.5px;
  font-weight: 600;
}
.pma-ticket-date {
  color: var(--pma-text-3);
  font-size: 11.5px;
}

/* ── New Ticket Form Card ────────────────────────────────────────────────── */
.pma-new-ticket-card {
  margin-bottom: 24px;
  border-radius: 0 !important;
  border: 1px solid var(--pma-brand);
  box-shadow: var(--pma-shadow-sm);
}
.pma-new-ticket-card .pma-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--pma-border);
  background: var(--pma-bg);
}
.pma-new-ticket-card .pma-card-header h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
}
.pma-card-subtitle {
  margin: 0;
  font-size: 12px;
  color: var(--pma-text-3);
}

/* ── Status / Priority Badges ─────────────────────────────────────────────── */
.pma-status-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid currentColor;
  border-radius: 0 !important;
  white-space: nowrap;
}
.pma-status-badge.open,
.pma-status-badge.wc-processing,
.pma-status-badge.processing { color: var(--c-open); border-color: var(--c-open); background: #eff6ff; }
.pma-status-badge.answered,
.pma-status-badge.wc-completed,
.pma-status-badge.completed,
.pma-status-badge.active { color: var(--c-completed); border-color: var(--c-completed); background: #f0fdf4; }
.pma-status-badge.pending,
.pma-status-badge.wc-on-hold,
.pma-status-badge.on-hold,
.pma-status-badge.reviewing,
.pma-status-badge.referred,
.pma-status-badge.waiting-user { color: var(--c-pending); border-color: var(--c-pending); background: #fffbeb; }
.pma-status-badge.closed,
.pma-status-badge.wc-cancelled,
.pma-status-badge.cancelled { color: var(--c-closed); border-color: var(--c-closed); background: #f9fafb; }
.pma-status-badge.resolved { color: var(--c-completed); border-color: var(--c-completed); background: #f0fdf4; }
.pma-status-badge.wc-failed,
.pma-status-badge.failed { color: var(--c-failed); border-color: var(--c-failed); background: #fef2f2; }

.pma-order-stage-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  padding: 5px 10px;
  color: var(--pma-text);
  background: var(--pma-bg);
  border: 1px solid var(--pma-border);
  border-radius: 0 !important;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}
.pma-order-stage-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  background: currentColor;
  border-radius: 0 !important;
}
.pma-order-stage-badge.pending { color: #d97706; background: #fffbeb; border-color: #fde68a; }
.pma-order-stage-badge.review { color: #2563eb; background: #eff6ff; border-color: #bfdbfe; }
.pma-order-stage-badge.shipped { color: #0891b2; background: #ecfeff; border-color: #a5f3fc; }
.pma-order-stage-badge.delivered { color: #16a34a; background: #f0fdf4; border-color: #bbf7d0; }
.pma-order-stage-badge.cancelled,
.pma-order-stage-badge.refunded { color: #6b7280; background: #f9fafb; border-color: #e5e7eb; }
.pma-order-stage-badge.failed { color: #dc2626; background: #fef2f2; border-color: #fecaca; }

.pma-priority-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid currentColor;
  border-radius: 0 !important;
  white-space: nowrap;
}
.pma-priority-badge.low     { color: #6b7280; border-color: #6b7280; background: #f9fafb; }
.pma-priority-badge.medium  { color: #0891b2; border-color: #0891b2; background: #ecfeff; }
.pma-priority-badge.high    { color: #d97706; border-color: #d97706; background: #fffbeb; }
.pma-priority-badge.urgent  { color: #dc2626; border-color: #dc2626; background: #fef2f2; }

/* ── Ticket Conversation View ────────────────────────────────────────────── */
.pma-ticket-view-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}
.pma-ticket-view-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--pma-border);
}
.pma-ticket-view-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.pma-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pma-text-2);
  text-decoration: none !important;
  border: 1px solid var(--pma-border);
  border-radius: 0 !important;
  padding: 8px 16px;
  background: var(--pma-surface);
  transition: all var(--pma-transition);
  white-space: nowrap;
}
.pma-back-btn svg { width: 15px; height: 15px; }
.pma-back-btn:hover { border-color: var(--pma-brand); color: var(--pma-brand); }

.pma-close-ticket-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #dc2626;
  border: 1px solid #dc2626;
  border-radius: 0 !important;
  background: none;
  padding: 8px 16px;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--pma-transition);
  white-space: nowrap;
}
.pma-close-ticket-btn svg { width: 14px; height: 14px; }
.pma-close-ticket-btn:hover { background: #dc2626; color: #fff; }

.pma-ticket-view-title-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pma-ticket-view-id {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pma-ticket-code {
  font-size: 13px;
  font-weight: 800;
  color: var(--pma-brand);
  background: var(--pma-brand-light);
  padding: 2px 8px;
  border: 1px solid rgba(124, 22, 149, 0.2);
  border-radius: 0 !important;
}
.pma-ticket-view-title-block h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--pma-text);
  margin: 0;
}
.pma-ticket-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.pma-ticket-date-info {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--pma-text-3);
}
.pma-ticket-date-info svg { width: 13px; height: 13px; }

/* Conversation Chat Stream */
.pma-chat-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--pma-surface);
  border: 1px solid var(--pma-border);
  border-radius: 0 !important;
  padding: 24px;
  margin-bottom: 24px;
  min-height: 200px;
  box-shadow: var(--pma-shadow-xs);
}
.pma-chat-msg {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  animation: pma-msg-in 0.3s ease both;
}
@keyframes pma-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pma-chat-msg.is-admin {
  flex-direction: row-reverse;
}
.pma-chat-avatar-frame {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--pma-border);
  border-radius: 0 !important;
  background: var(--pma-bg);
  overflow: hidden;
}
.pma-chat-avatar {
  width: 100%;
  height: 100%;
  border-radius: 0 !important;
  object-fit: cover;
  display: block;
}
.pma-chat-bubble {
  max-width: 82%;
  flex: 1 1 auto;
  border: 1px solid var(--pma-border);
  border-radius: 0 !important;
  padding: 16px 18px;
  background: var(--pma-surface);
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.pma-chat-msg.is-admin .pma-chat-bubble {
  background: #faf5fc;
  border-color: rgba(124, 22, 149, 0.25);
  box-shadow: 0 2px 8px rgba(124, 22, 149, 0.04);
}
.pma-chat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--pma-border-soft);
}
.pma-chat-sender-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pma-chat-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--pma-text);
}
.pma-admin-tag {
  font-size: 10.5px;
  background: var(--pma-brand);
  color: #fff;
  padding: 2px 8px;
  border-radius: 0 !important;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.pma-chat-time {
  font-size: 11px;
  color: var(--pma-text-3);
}
.pma-chat-text {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--pma-text);
  word-break: break-word;
}

/* Satisfaction Rating Card */
.pma-csat {
  background: #fdfcff;
  border: 1px solid var(--pma-brand-ring);
  border-radius: 0 !important;
  padding: 22px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pma-csat strong {
  font-size: 15px;
  color: var(--pma-text);
}
.pma-csat p {
  margin: 0;
  font-size: 12.5px;
  color: var(--pma-text-2);
}
.pma-csat .pma-rating {
  display: inline-flex;
  gap: 4px;
  direction: ltr;
}
.pma-csat.is-done {
  background: #f0fdf4;
  border-color: #86efac;
}

/* Reply Box */
.pma-reply-form {
  background: var(--pma-surface);
  border: 1px solid var(--pma-border);
  border-radius: 0 !important;
  padding: 22px;
  box-shadow: var(--pma-shadow-xs);
  margin-bottom: 24px;
}
.pma-reply-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pma-reply-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--pma-text);
}
.pma-reply-attach-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pma-attach-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pma-brand);
  cursor: pointer;
}
.pma-attach-trigger svg { width: 16px; height: 16px; }
.pma-reply-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.pma-ticket-closed-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  border: 1px solid var(--pma-border);
  border-radius: 0 !important;
  padding: 18px 24px;
  color: var(--pma-text-2);
}
.pma-ticket-closed-notice svg { width: 22px; height: 22px; color: var(--pma-text-3); flex: none; }
.pma-ticket-closed-notice strong { display: block; font-size: 14px; color: var(--pma-text); margin-bottom: 3px; }
.pma-ticket-closed-notice p { margin: 0; font-size: 12px; color: var(--pma-text-3); }

.pma-subscriptions-list {
  background: var(--pma-surface);
  border: 1px solid var(--pma-border);
  box-shadow: var(--pma-shadow-xs);
}
.pma-subscription-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 90px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--pma-border-soft);
  font-size: 12.5px;
}
.pma-subscription-row:last-child { border-bottom: none; }
.pma-subscription-row strong,
.pma-subscription-row span { display: block; }

/* ── Buttons System (Luxury Sharp Architecture) ─────────────────────────── */
.pma-btn-primary,
.pma-btn-primary-sm,
.pma-btn-secondary,
.pma-btn-ghost,
.pma-btn-outline,
.pma-btn-sm,
.pma-btn-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  line-height: 1.35;
  cursor: pointer;
  text-decoration: none !important;
  border-radius: 0 !important;
  transition: all var(--pma-transition, 0.2s ease);
  white-space: nowrap;
  box-sizing: border-box;
  vertical-align: middle;
}

/* Sizing for SVGs inside any PMA button */
.pma-btn-primary svg,
.pma-btn-primary-sm svg,
.pma-btn-secondary svg,
.pma-btn-ghost svg,
.pma-btn-outline svg,
.pma-btn-sm svg,
.pma-btn-lg svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke-width: 2;
  transition: transform var(--pma-transition, 0.2s ease);
}

/* ── Primary Button ──────────────────────────────────────────────────────── */
.pma-btn-primary {
  background: var(--pma-brand, #7c1695) !important;
  color: var(--pma-on-brand, #ffffff) !important;
  border: 1px solid var(--pma-brand, #7c1695) !important;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 6px var(--pma-brand-ring, rgba(124, 22, 149, 0.25));
}
.pma-btn-primary svg {
  color: inherit !important;
  stroke: currentColor;
}
.pma-btn-primary:hover {
  background: var(--pma-brand-dark, #5d0f70) !important;
  color: var(--pma-on-brand, #ffffff) !important;
  border-color: var(--pma-brand-dark, #5d0f70) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--pma-brand-glow, rgba(124, 22, 149, 0.35));
}
.pma-btn-primary:active {
  transform: translateY(0);
}

/* ── Primary Small (covers both .pma-btn-primary-sm and combo .pma-btn-primary.pma-btn-sm) */
.pma-btn-primary-sm,
.pma-btn-primary.pma-btn-sm {
  padding: 6px 14px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  gap: 6px !important;
  background: var(--pma-brand, #7c1695) !important;
  color: var(--pma-on-brand, #ffffff) !important;
  border: 1px solid var(--pma-brand, #7c1695) !important;
  box-shadow: 0 1px 4px var(--pma-brand-ring, rgba(124, 22, 149, 0.2));
}
.pma-btn-primary-sm svg,
.pma-btn-primary.pma-btn-sm svg {
  width: 13.5px !important;
  height: 13.5px !important;
  color: inherit !important;
  stroke: currentColor;
}
.pma-btn-primary-sm:hover,
.pma-btn-primary.pma-btn-sm:hover {
  background: var(--pma-brand-dark, #5d0f70) !important;
  color: var(--pma-on-brand, #ffffff) !important;
  border-color: var(--pma-brand-dark, #5d0f70) !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px var(--pma-brand-glow, rgba(124, 22, 149, 0.3));
}

/* ── Primary Large ───────────────────────────────────────────────────────── */
.pma-btn-primary.pma-btn-lg,
.pma-btn-lg {
  padding: 13px 26px;
  font-size: 14.5px;
  font-weight: 700;
  gap: 9px;
}
.pma-btn-lg svg {
  width: 17px;
  height: 17px;
}

/* ── Ghost / Secondary / Outline Button ──────────────────────────────────── */
.pma-btn-ghost,
.pma-btn-secondary,
.pma-btn-outline {
  background: var(--pma-surface, #ffffff) !important;
  color: var(--pma-text-2, #334155) !important;
  border: 1px solid var(--pma-border, #e2e8f0) !important;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.pma-btn-ghost svg,
.pma-btn-secondary svg,
.pma-btn-outline svg {
  color: inherit;
  stroke: currentColor;
}
.pma-btn-ghost:hover,
.pma-btn-secondary:hover,
.pma-btn-outline:hover {
  background: var(--pma-brand-light, #faf5ff) !important;
  color: var(--pma-brand, #7c1695) !important;
  border-color: var(--pma-brand, #7c1695) !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(124, 22, 149, 0.12);
}
.pma-btn-ghost:active,
.pma-btn-secondary:active,
.pma-btn-outline:active {
  transform: translateY(0);
}

/* Ghost Small */
.pma-btn-ghost.pma-btn-sm {
  padding: 6px 13px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  gap: 6px !important;
  background: var(--pma-surface, #ffffff) !important;
  color: var(--pma-text-2, #334155) !important;
  border: 1px solid var(--pma-border, #cbd5e1) !important;
}
.pma-btn-ghost.pma-btn-sm:hover {
  background: var(--pma-brand-light, #faf5ff) !important;
  color: var(--pma-brand, #7c1695) !important;
  border-color: var(--pma-brand, #7c1695) !important;
}

/* Ghost Large (Cancel buttons) */
.pma-btn-ghost.pma-btn-lg {
  padding: 12px 24px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  background: var(--pma-surface, #ffffff) !important;
  color: var(--pma-text-2, #334155) !important;
  border: 1px solid var(--pma-border, #cbd5e1) !important;
}
.pma-btn-ghost.pma-btn-lg:hover {
  background: var(--pma-bg, #f8fafc) !important;
  color: var(--pma-text, #0f172a) !important;
  border-color: var(--pma-text-3, #94a3b8) !important;
}

/* ── Danger Ghost Button (Delete address, Dismiss notification) ─────────── */
.pma-addr-delete,
.pma-dismiss-notification,
.pma-btn-danger {
  background: var(--pma-surface, #ffffff) !important;
  color: #dc2626 !important;
  border: 1px solid rgba(220, 38, 38, 0.28) !important;
}
.pma-addr-delete svg,
.pma-dismiss-notification svg,
.pma-btn-danger svg {
  color: #dc2626 !important;
  stroke: currentColor;
}
.pma-addr-delete span,
.pma-dismiss-notification span,
.pma-btn-danger span {
  color: #dc2626 !important;
}
.pma-addr-delete:hover,
.pma-dismiss-notification:hover,
.pma-btn-danger:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.25);
}
.pma-addr-delete:hover svg,
.pma-dismiss-notification:hover svg,
.pma-btn-danger:hover svg {
  color: #ffffff !important;
  stroke: currentColor;
}
.pma-addr-delete:hover span,
.pma-dismiss-notification:hover span,
.pma-btn-danger:hover span {
  color: #ffffff !important;
}

/* ── Standalone Outline Small Button ─────────────────────────────────────── */
.pma-btn-sm:not(.pma-btn-primary):not(.pma-btn-ghost):not(.pma-addr-delete):not(.pma-dismiss-notification):not(.pma-btn-danger) {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  gap: 6px;
  background: var(--pma-surface, #ffffff) !important;
  color: var(--pma-brand, #7c1695) !important;
  border: 1px solid var(--pma-brand, #7c1695) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.pma-btn-sm:not(.pma-btn-primary):not(.pma-btn-ghost):not(.pma-addr-delete):not(.pma-dismiss-notification):not(.pma-btn-danger) svg {
  width: 13.5px;
  height: 13.5px;
  color: inherit;
  stroke: currentColor;
}
.pma-btn-sm:not(.pma-btn-primary):not(.pma-btn-ghost):not(.pma-addr-delete):not(.pma-dismiss-notification):not(.pma-btn-danger):hover {
  background: var(--pma-brand, #7c1695) !important;
  color: var(--pma-on-brand, #ffffff) !important;
  border-color: var(--pma-brand, #7c1695) !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px var(--pma-brand-glow, rgba(124, 22, 149, 0.25));
}

.pma-btn-full {
  width: 100%;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Address Book (Modern Luxury Sharp Architecture)
   ═════════════════════════════════════════════════════════════════════════ */
.pma-addr {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pma-addr-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--pma-surface);
  border: 1px solid var(--pma-border);
  padding: 12px 18px;
  border-radius: 0 !important;
}

.pma-addr-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pma-text-3);
  font-size: 12.5px;
  line-height: 1.5;
}

.pma-addr-hint svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--pma-brand);
}

.pma-addr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.pma-addr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background: var(--pma-surface);
  border: 1px solid var(--pma-border);
  border-radius: 0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  min-height: 230px;
}

.pma-addr-card:hover {
  border-color: var(--pma-brand-soft, var(--pma-border));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.pma-addr-card.is-default {
  border-color: var(--pma-brand) !important;
  box-shadow: 0 0 0 1px var(--pma-brand), 0 4px 16px rgba(124, 22, 149, 0.08) !important;
}

.pma-addr-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--pma-border-soft, #f1f5f9);
}

.pma-addr-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pma-addr-title-group svg {
  width: 18px;
  height: 18px;
  color: var(--pma-brand);
  flex-shrink: 0;
}

.pma-addr-title-group h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--pma-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pma-addr-flag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 0 !important;
  background: var(--pma-brand-light, #faf5ff);
  color: var(--pma-brand, #7c1695);
  border: 1px solid var(--pma-brand-soft, rgba(124, 22, 149, 0.2));
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.pma-addr-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  margin-bottom: 16px;
}

.pma-addr-person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  color: var(--pma-text);
  font-size: 13.5px;
}

.pma-addr-person strong {
  font-weight: 700;
}

.pma-addr-phone {
  font-size: 12px;
  font-weight: 600;
  color: var(--pma-text-2);
  direction: ltr;
  background: var(--pma-bg);
  padding: 2px 8px;
  border: 1px solid var(--pma-border);
  border-radius: 0 !important;
}

.pma-addr-lines {
  margin: 0;
  color: var(--pma-text-2);
  font-size: 13px;
  line-height: 1.8;
  word-break: break-word;
}

.pma-addr-postcode {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--pma-text-3);
  font-size: 12px;
}

.pma-addr-postcode code {
  padding: 2px 8px;
  border: 1px solid var(--pma-border);
  border-radius: 0 !important;
  background: var(--pma-bg);
  font-size: 12px;
  font-weight: 700;
  color: var(--pma-text);
  direction: ltr;
  display: inline-block;
  font-family: inherit;
}

.pma-addr-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--pma-border-soft, #f1f5f9);
}

.pma-addr-card-foot .pma-btn-ghost {
  flex: 1;
  min-width: 75px;
  justify-content: center;
}

.pma-addr-card-foot .pma-addr-delete {
  flex: 0 0 auto;
}

/* ── Address Editor Modal / Card ─────────────────────────────────────────── */
.pma-addr-editor {
  margin-top: 24px;
}
.pma-addr-editor[hidden] {
  display: none !important;
}

.pma-addr-editor-card {
  border: 2px solid var(--pma-brand) !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08) !important;
  border-radius: 0 !important;
  background: var(--pma-surface);
}

.pma-addr-editor-card .pma-card-header {
  padding: 20px 24px;
  background: var(--pma-bg);
  border-bottom: 1px solid var(--pma-border);
}

.pma-addr-editor-card .pma-card-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--pma-text);
  margin: 0 0 4px;
}

.pma-addr-editor-card .pma-card-subtitle {
  font-size: 12.5px;
  color: var(--pma-text-3);
  margin: 0;
}

.pma-addr-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 4px 0 20px;
}

.pma-addr-col-full {
  grid-column: 1 / -1;
}

.pma-addr-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--pma-border-soft);
}

.pma-addr-error {
  display: block;
  margin-top: 4px;
  color: #dc2626;
  font-size: 11.5px;
  font-weight: 600;
}

.pma-addr .is-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

/* ── Empty State ─────────────────────────────────────────────────────────── */
.pma-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--pma-surface);
  border: 1px dashed var(--pma-border);
}
.pma-empty-state svg {
  width: 56px;
  height: 56px;
  color: var(--pma-border);
  margin: 0 auto 16px;
  display: block;
}
.pma-empty-state p { font-size: 15px; font-weight: 600; color: var(--pma-text-3); margin-bottom: 6px; }
.pma-empty-sub { font-size: 12.5px !important; }
.pma-empty-state .pma-btn-primary { margin-top: 16px; }

/* ── Cart Shortcode ─────────────────────────────────────────────────────── */
.pma-cart,
.pma-cart * {
  box-sizing: border-box;
  direction: rtl;
  font-family: 'IranYekanX', 'Tahoma', sans-serif !important;
}
.pma-cart {
  width: 100%;
  color: var(--pma-text);
}
.pma-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}
.pma-cart-items,
.pma-cart-summary {
  background: var(--pma-surface);
  border: 1px solid var(--pma-border);
  box-shadow: var(--pma-shadow-xs);
}
.pma-cart-items { padding: 20px; }
.pma-cart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pma-border);
}
.pma-cart-head span {
  display: block;
  margin-bottom: 4px;
  color: var(--pma-text-3);
  font-size: 11px;
  font-weight: 800;
}
.pma-cart-head h2 {
  color: var(--pma-text);
  font-size: 21px;
  line-height: 1.5;
}
.pma-cart-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 132px 120px 56px;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--pma-border-soft);
}
.pma-cart-item:last-of-type { border-bottom: none; }
.pma-cart-thumb {
  width: 92px;
  height: 92px;
  overflow: hidden;
  border: 1px solid var(--pma-border);
  background: var(--pma-bg);
}
.pma-cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pma-cart-product h3 {
  margin-bottom: 7px;
  color: var(--pma-text);
  font-size: 14px;
  line-height: 1.6;
}
.pma-cart-product h3 a {
  color: inherit;
  text-decoration: none !important;
}
.pma-cart-product dl.variation {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 3px 7px;
  margin: 0 0 8px;
  color: var(--pma-text-3);
  font-size: 11.5px;
}
.pma-cart-product dl.variation p { margin: 0; }
.pma-cart-price {
  display: inline-block;
  color: var(--pma-text-2);
  font-size: 12px;
  font-weight: 700;
}
.pma-cart-qty {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  border: 1px solid var(--pma-border);
  background: var(--pma-bg);
}
.pma-cart-qty-btn {
  width: 34px;
  height: 38px;
  border: none;
  background: var(--pma-surface);
  color: var(--pma-text);
  font-size: 18px;
  cursor: pointer;
  transition: background var(--pma-transition), color var(--pma-transition);
}
.pma-cart-qty-btn:hover {
  background: var(--pma-brand-light);
  color: var(--pma-brand);
}
.pma-cart-qty .quantity {
  min-width: 0;
}
.pma-cart-qty input.qty {
  width: 100%;
  height: 38px;
  border: none;
  background: transparent;
  color: var(--pma-text);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}
.pma-cart-qty input.qty::-webkit-outer-spin-button,
.pma-cart-qty input.qty::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.pma-cart-line-total span {
  display: block;
  margin-bottom: 4px;
  color: var(--pma-text-3);
  font-size: 10.5px;
  font-weight: 700;
}
.pma-cart-line-total strong {
  display: block;
  color: var(--pma-text);
  font-size: 13px;
  line-height: 1.5;
}
.pma-cart-remove {
  color: #dc2626 !important;
  font-size: 11.5px;
  font-weight: 800;
  text-align: center;
  text-decoration: none !important;
}
.pma-cart-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--pma-border);
}
.pma-cart-coupon {
  display: flex;
  flex: 1;
  max-width: 420px;
  gap: 8px;
}
.pma-cart-coupon .pma-input { background: var(--pma-surface); }
.pma-cart-update.is-active {
  background: var(--pma-brand);
  color: #fff !important;
}
.pma-cart-summary {
  position: sticky;
  top: 20px;
  padding: 20px;
}
.pma-cart-summary h3 {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--pma-border);
  color: var(--pma-text);
  font-size: 17px;
}
.pma-cart-summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pma-border-soft);
  color: var(--pma-text-2);
  font-size: 12.5px;
  line-height: 1.7;
}
.pma-cart-summary-row > span {
  color: var(--pma-text-3);
  font-weight: 700;
}
.pma-cart-summary-value {
  color: var(--pma-text);
  font-weight: 800;
  text-align: left;
}
.pma-cart-summary-value ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pma-cart-summary-value a {
  color: var(--pma-brand);
  text-decoration: none !important;
}
.pma-cart-summary-row.total {
  margin-top: 4px;
  border-bottom: none;
  color: var(--pma-text);
  font-size: 14px;
}
.pma-cart-summary-row.total .pma-cart-summary-value {
  color: var(--pma-brand);
  font-size: 18px;
}
.pma-cart-checkout {
  width: 100%;
  justify-content: center;
  margin-top: 18px;
  padding-block: 13px;
}

/* ── Toast Notification ──────────────────────────────────────────────────── */
.pma-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--pma-text);
  color: #fff;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'IranYekanX', 'Tahoma', sans-serif;
  z-index: 9999;
  box-shadow: var(--pma-shadow-lg);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  max-width: 320px;
  direction: rtl;
}
.pma-toast.show { transform: translateY(0); opacity: 1; }
.pma-toast.success { background: #16a34a; }
.pma-toast.error   { background: #dc2626; }

.pma-payment-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,0.42);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  direction: rtl;
  font-family: 'IranYekanX', 'Tahoma', sans-serif !important;
}
.pma-payment-modal.show {
  opacity: 1;
  visibility: visible;
}
.pma-payment-modal-card {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 24px 24px;
  text-align: center;
  background: var(--pma-surface);
  box-shadow: var(--pma-shadow-lg);
  border: 1px solid var(--pma-border);
  transform: translateY(12px);
  transition: transform 0.22s ease;
}
.pma-payment-modal.show .pma-payment-modal-card { transform: translateY(0); }
.pma-payment-modal-close {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--pma-border);
  background: var(--pma-bg);
  color: var(--pma-text-2);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.pma-payment-modal-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.pma-payment-modal-icon svg { width: 30px; height: 30px; }
.pma-payment-modal-icon.is-review {
  color: #d97706;
  background: #fffbeb;
  border-color: #fde68a;
}
.pma-payment-modal h3 {
  margin-bottom: 8px;
  color: var(--pma-text);
  font-size: 20px;
  line-height: 1.5;
}
.pma-payment-modal p {
  margin-bottom: 18px;
  color: var(--pma-text-2);
  font-size: 13px;
  line-height: 1.8;
}

/* ── Loading Spinner (Sharp Luxury Square) ────────────────────────────────── */
.pma-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-left-color: transparent;
  border-radius: 0 !important;
  animation: pma-sharp-spin 0.75s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  display: inline-block;
  vertical-align: middle;
}
.pma-spinner-brand {
  border-color: rgba(124, 22, 149, 0.25);
  border-top-color: var(--pma-brand);
  border-left-color: transparent;
}
@keyframes pma-sharp-spin {
  0%   { transform: rotate(0deg) scale(0.92); }
  50%  { transform: rotate(180deg) scale(1.06); }
  100% { transform: rotate(360deg) scale(0.92); }
}
@keyframes pma-spin {
  0%   { transform: rotate(0deg) scale(0.92); }
  50%  { transform: rotate(180deg) scale(1.06); }
  100% { transform: rotate(360deg) scale(0.92); }
}

/* ── Mobile Bottom Nav ───────────────────────────────────────────────────── */
.pma-mobile-nav {
  display: none;
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: max(8px, env(safe-area-inset-bottom));
  height: 60px;
  align-items: stretch;
  justify-content: space-around;
  gap: 2px;
  padding: 4px 6px;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--pma-border);
  border-radius: 0 !important;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.pma-mobile-nav,
.pma-mobile-nav * {
  box-sizing: border-box;
  direction: rtl;
  font-family: 'IranYekanX', 'Tahoma', sans-serif !important;
}
.pma-mob-item {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 2px;
  background: transparent;
  border: none;
  border-radius: 0 !important;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--pma-text-2);
  font-family: inherit;
  cursor: pointer;
  position: relative;
  transition: all 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.pma-mob-item svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pma-mob-item span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pma-mob-item:hover {
  background: var(--pma-brand-dim);
  color: var(--pma-brand);
}
.pma-mob-item.active {
  background: var(--pma-brand-light);
  color: var(--pma-brand);
  font-weight: 700;
}
.pma-mob-item:active { transform: translateY(1px); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .pma-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pma-table-head,
  .pma-ticket-row { grid-template-columns: 2fr 1fr 1fr 1fr 80px; }
  .pma-table-head span:nth-child(4),
  .pma-ticket-row > *:nth-child(4) { display: none; }
}

@media (max-width: 900px) {
  .pma-sidebar {
    position: fixed;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    z-index: 1002;
    width: min(320px, 86vw);
    height: 100vh;
    height: 100dvh;
    border-inline-end: 1px solid var(--pma-border);
    box-shadow: 0 0 35px rgba(0,0,0,0.18);
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.32s;
    background: var(--pma-surface);
  }
  .pma-rtl .pma-sidebar,
  [dir="rtl"] .pma-sidebar {
    transform: translateX(100%);
  }
  .pma-sidebar.open,
  .pma-rtl .pma-sidebar.open,
  [dir="rtl"] .pma-sidebar.open {
    visibility: visible;
    transform: translateX(0);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
  }
  .pma-side-close {
    display: grid;
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    inset-inline-start: auto;
    z-index: 10;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--pma-border);
    background: var(--pma-bg);
    color: var(--pma-text-2);
    cursor: pointer;
    border-radius: 0 !important;
  }
  .pma-side-close:hover {
    border-color: var(--pma-brand);
    color: var(--pma-brand);
    background: var(--pma-surface);
  }

  .pma-dashboard .pma-sidebar .pma-side-head { padding-top: 48px; }
  .pma-dashboard .pma-sidebar .pma-side-foot {
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .pma-dashboard .pma-sidebar .pma-nav-item { padding-block: 10px; }

  .pma-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1001;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .pma-sidebar-overlay.show { display: block; animation: pma-veil-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) both; }
  @keyframes pma-veil-in { from { opacity: 0; } to { opacity: 1; } }
  body.pma-side-open { overflow: hidden; touch-action: none; }
  .pma-main { padding: 16px 14px 92px; }
  .pma-mobile-nav { display: flex; }
  .pma-mobile-menu-btn {
    display: none !important;
  }
  .pma-section-header { flex-direction: column; }
  .pma-table-head { display: none; }
  .pma-ticket-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--pma-border);
    margin-bottom: 8px;
    background: var(--pma-surface);
  }
  .pma-ticket-row:hover { background: var(--pma-bg); }
  .pma-orders-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .pma-courses-grid { grid-template-columns: 1fr; }
  .pma-form-row-2 { grid-template-columns: 1fr; }
  .pma-order-filters {
    width: 100%;
    padding: 12px;
    overflow: hidden;
  }
  .pma-order-filters .pma-input { max-width: none; }
  .pma-order-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: stretch;
    min-height: 116px;
  }
  .pma-order-card:hover {
    transform: none;
    box-shadow: var(--pma-shadow-xs);
  }
  .pma-order-card-img {
    height: 100%;
    min-height: 116px;
  }
  .pma-order-card:hover .pma-order-card-img img { transform: none; }
  .pma-more-items {
    right: 6px;
    left: 6px;
    bottom: 6px;
    text-align: center;
    padding: 3px 5px;
  }
  .pma-order-card-body { padding: 13px; }
  .pma-order-card-header {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
  }
  .pma-order-card-footer {
    align-items: center;
    gap: 10px;
    padding-top: 10px;
  }
  .pma-order-actions {
    width: auto;
    flex-wrap: wrap;
  }
  .pma-order-actions .pma-btn-sm,
  .pma-order-actions .pma-btn-primary-sm {
    justify-content: center;
    min-width: 76px;
  }
  .pma-order-card-meta {
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: 10px;
  }
  .pma-order-product-name {
    margin-bottom: 5px;
    font-size: 13px;
    -webkit-line-clamp: 1;
  }
  .pma-order-stage-text {
    display: none;
  }
  .pma-order-price {
    font-size: 13px;
  }
  .pma-order-detail-head,
  .pma-order-detail-actions,
  .pma-order-detail-foot {
    align-items: stretch;
    flex-direction: column;
  }
  .pma-order-detail-actions .pma-btn-sm,
  .pma-order-detail-foot .pma-btn-primary-sm {
    justify-content: center;
  }
  .pma-subscription-row { grid-template-columns: 1fr; }
  .pma-notification-item {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
    gap: 12px;
  }
  .pma-notification-actions {
    width: 100%;
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px solid var(--pma-border-soft);
  }
  .pma-notification-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .pma-addr-grid { grid-template-columns: 1fr; }
  .pma-addr-fields { grid-template-columns: 1fr; }
  .pma-addr-card-foot > * { flex: 1; justify-content: center; }
  .pma-addr-form-actions { flex-direction: column; align-items: stretch; }
  .pma-addr-form-actions > * { justify-content: center; width: 100%; }
}

@media (max-width: 600px) {
  .pma-mobile-nav {
    left: 8px;
    right: 8px;
    padding-inline: 4px;
  }
  .pma-mob-item { font-size: 10px; }
  .pma-mob-item svg { width: 21px; height: 21px; }
  .pma-stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pma-quick-grid  { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pma-stat-card { padding: 14px; }
  .pma-stat-value { font-size: 22px; }
  .pma-section-header h2 { font-size: 18px; }
  .pma-chat-bubble { max-width: 90%; }
  .pma-ticket-view-wrap { padding: 12px; }
  .pma-order-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
  }
  .pma-order-row .pma-order-stage-badge {
    grid-column: 2 / 3;
    width: max-content;
  }
  .pma-order-row .pma-btn-sm {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    align-self: center;
  }
  .pma-order-total {
    grid-column: 2 / 3;
    white-space: normal;
  }
  .pma-order-card {
    grid-template-columns: 68px minmax(0, 1fr);
    min-height: 108px;
  }
  .pma-order-card-img {
    min-height: 108px;
  }
  .pma-order-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .pma-order-card-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .pma-order-actions {
    width: 100%;
  }
  .pma-order-actions .pma-btn-sm,
  .pma-order-actions .pma-btn-primary-sm {
    flex: 1;
  }
  .pma-order-stage-badge {
    white-space: normal;
    text-align: center;
  }
  .pma-order-detail-panel { padding: 14px; }
  .pma-order-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .pma-order-item-total {
    grid-column: 2 / 3;
    white-space: normal;
  }
  .pma-toast {
    right: 12px;
    left: 12px;
    bottom: 102px;
    max-width: none;
  }
  .pma-complete-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
    gap: 12px;
  }
  .pma-complete-indicator {
    width: 100%;
    min-width: 0;
  }
  .pma-courses-grid,
  .pma-download-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pma-download-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }
  .pma-download-card .pma-btn-sm,
  .pma-download-card .pma-btn-primary-sm {
    width: 100%;
    justify-content: center;
  }
  .pma-prefs-card .pma-table-responsive {
    border: none;
  }
  .pma-prefs-table th,
  .pma-prefs-table td {
    padding: 12px 10px;
  }
  .pma-inline-note {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}

/* WordPress admin ticket screen */
.pma-admin-page .pma-admin-filters {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 16px 0;
}
.pma-admin-page .pma-admin-filters input,
.pma-admin-page .pma-admin-filters select {
  min-height: 32px;
}
.pma-admin-page .pma-ticket-view-wrap {
  max-width: 980px;
  margin: 16px 0 0;
  padding: 0;
}
.pma-admin-page .pma-chat-avatar { display: none; }
.pma-admin-page .pma-reply-form input[type="file"] { margin-top: 12px; }

/* ── STRICT LUXURY SHARP CORNERS ENFORCEMENT ────────────────────────────── */
.pma-dashboard,
.pma-dashboard *,
.pma-cart-wrap,
.pma-cart-wrap *,
.pma-checkout-wrap,
.pma-checkout-wrap *,
.pma-modal,
.pma-modal *,
.pma-toast,
.pma-toast *,
.pma-palette,
.pma-palette *,
#pma-cart,
#pma-cart *,
#pma-checkout,
#pma-checkout * {
  border-radius: 0 !important;
}

