.bdpm-portal {
  --bdpm-ink: #0f172a;
  --bdpm-muted: #64748b;
  --bdpm-border: rgba(148, 163, 184, .28);
  --bdpm-accent: #0f766e;
  --bdpm-accent-2: #f59e0b;
  --bdpm-bg: #eef7f5;
  --bdpm-card: #ffffff;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 26px;
  font-family: Tahoma, sans-serif;
  color: var(--bdpm-ink);
}
.bdpm-standalone-dashboard { margin: 0 !important; background: radial-gradient(circle at top right, rgba(20,184,166,.18), transparent 30%), linear-gradient(135deg,#eef7f5,#f8fafc 45%,#ecfeff); min-height: 100vh; }
.bdpm-standalone-dashboard header,
.bdpm-standalone-dashboard footer,
.bdpm-standalone-dashboard #header,
.bdpm-standalone-dashboard #footer,
.bdpm-standalone-dashboard .header-wrapper,
.bdpm-standalone-dashboard .footer-wrapper,
.bdpm-standalone-dashboard .page-title,
.bdpm-standalone-dashboard .sidebar,
.bdpm-standalone-dashboard .widget-area { display: none !important; }
.bdpm-standalone-app { min-height: 100vh; width: 100%; }
.bdpm-portal * { box-sizing: border-box; }
.bdpm-portal a { color: inherit; }
.bdpm-portal-hero {
  background:
    radial-gradient(circle at 12% 0%, rgba(250, 204, 21, 0.28), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(45, 212, 191, 0.24), transparent 30%),
    linear-gradient(135deg, #0f172a 0%, #134e4a 55%, #0f766e 100%);
  color: #fff;
  border-radius: 34px;
  padding: 34px;
  margin-bottom: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  position: relative;
  overflow: hidden;
}
.bdpm-portal-hero::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 240px; height: 240px; border-radius: 999px; background: rgba(255,255,255,.08); }
.bdpm-portal-hero h2 { margin: 0 0 10px; font-size: 30px; }
.bdpm-portal-hero p { margin: 0; opacity: .92; }
.bdpm-agency-logo {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.24);
  margin-bottom: 16px;
}
.bdpm-agency-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bdpm-portal-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.bdpm-auth-portal .bdpm-portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.bdpm-dashboard-shell { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 24px; align-items: start; }
.bdpm-dashboard-sidebar { position: sticky; top: 20px; display: grid; gap: 18px; }
.bdpm-dashboard-main { min-width: 0; }
.bdpm-card {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--bdpm-border);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
}
.bdpm-card h3 { margin-top: 0; color: var(--bdpm-ink); font-size: 20px; }
.bdpm-inline-form, .bdpm-card form { display: grid; gap: 12px; }
.bdpm-card input, .bdpm-card select, .bdpm-card textarea {
  width: 100%;
  border: 1px solid #c8d5dd;
  border-radius: 14px;
  padding: 11px 12px;
  background: #f9fbfc;
}
.bdpm-date-selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.bdpm-card button {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--bdpm-accent), #0f766e);
  color: #fff;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}
.bdpm-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.bdpm-tab-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #edf6f4;
  color: var(--bdpm-accent);
  border: 1px solid #cde4df;
  text-decoration: none;
  font-weight: 700;
}
.bdpm-tab-link.is-active {
  background: linear-gradient(135deg, var(--bdpm-accent), #0f766e);
  color: #fff;
  border-color: transparent;
}
.bdpm-sidebar-links { display: grid; gap: 10px; }
.bdpm-sidebar-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border-radius: 18px;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid var(--bdpm-border);
  color: var(--bdpm-ink);
  font-weight: 700;
}
.bdpm-sidebar-links a::before { content: "•"; color: var(--bdpm-accent); font-size: 22px; line-height: 1; }
.bdpm-agency-highlight {
  margin: 14px 0 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #ecfeff;
  border: 1px solid #bae6fd;
  color: #0f172a;
}
.bdpm-agency-highlight span { color: var(--bdpm-muted); }
.bdpm-sidebar-links a.is-active {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 28px rgba(15,118,110,.22);
}
.bdpm-sidebar-links a.is-active::before { color: #fff; }
.bdpm-sidebar-links a.bdpm-guide-link { margin-top: 10px; border-style: dashed; }
.bdpm-task-list, .bdpm-task { display: grid; gap: 10px; }
.bdpm-task {
  border: 1px solid var(--bdpm-border);
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fffc);
  margin-bottom: 14px;
  box-shadow: 0 12px 28px rgba(15,23,42,.05);
}
.bdpm-task strong { color: var(--bdpm-ink); }
.bdpm-task span { color: var(--bdpm-muted); display: block; margin-top: 4px; }
.bdpm-choice-table-wrap { overflow-x: auto; border: 1px solid var(--bdpm-border); border-radius: 16px; background: #fff; }
.bdpm-choice-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.bdpm-choice-table th, .bdpm-choice-table td { padding: 11px 12px; border-bottom: 1px solid #e2e8f0; text-align: right; }
.bdpm-choice-table th { background: #f0fdfa; color: var(--bdpm-ink); font-size: 13px; }
.bdpm-choice-table tr:hover td { background: #f8fffc; }
.bdpm-choice-table input[type="radio"] { width: auto; accent-color: var(--bdpm-accent); }
.bdpm-radio-matrix { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.bdpm-radio-pill { display: flex; gap: 8px; align-items: center; padding: 11px 12px; border: 1px solid var(--bdpm-border); border-radius: 14px; background: #fff; cursor: pointer; font-weight: 700; }
.bdpm-radio-pill input { width: auto; accent-color: var(--bdpm-accent); }
.bdpm-radio-pill:has(input:checked) { background: #e0f2f1; border-color: #5bb7aa; color: var(--bdpm-accent); }
.bdpm-status-rail { display: grid; grid-template-columns: repeat(6, minmax(92px, 1fr)); gap: 8px; margin: 14px 0 16px; }
.bdpm-status-step { position: relative; display: grid; justify-items: center; gap: 7px; color: #94a3b8; font-size: 12px; font-weight: 800; text-align: center; }
.bdpm-status-step::before { content: ""; position: absolute; top: 11px; right: -50%; width: 100%; height: 3px; background: #e2e8f0; z-index: 0; }
.bdpm-status-step:first-child::before { display: none; }
.bdpm-status-step span { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 999px; background: #e2e8f0; border: 4px solid #fff; box-shadow: 0 0 0 1px #cbd5e1; margin: 0; }
.bdpm-status-step strong { position: relative; z-index: 1; font-size: 12px; }
.bdpm-status-step.is-done, .bdpm-status-step.is-current { color: var(--bdpm-accent); }
.bdpm-status-step.is-done::before, .bdpm-status-step.is-current::before { background: #8fd1c5; }
.bdpm-status-step.is-done span { background: var(--bdpm-accent); box-shadow: 0 0 0 1px var(--bdpm-accent); }
.bdpm-status-step.is-current span { background: var(--bdpm-accent-2); box-shadow: 0 0 0 4px rgba(202,138,4,.18); }
.bdpm-portal-notice { padding: 14px 18px; border-radius: 14px; margin-bottom: 18px; font-weight: 600; }
.bdpm-portal-notice.bdpm-success { background: #dcfce7; color: #166534; }
.bdpm-portal-notice.bdpm-error { background: #fee2e2; color: #991b1b; }
.bdpm-portal-empty, .bdpm-portal-login, .bdpm-empty-text {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 16px;
}
.bdpm-hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.bdpm-hub-card {
  background: linear-gradient(180deg, #ffffff, #f7fbfb);
  border: 1px solid var(--bdpm-border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}
.bdpm-hub-card h3 { margin: 10px 0 8px; color: var(--bdpm-ink); }
.bdpm-hub-card p { margin: 0 0 16px; color: var(--bdpm-muted); min-height: 66px; }
.bdpm-agency-product-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 18px; margin-bottom: 12px; background: #f1f5f9; }
.bdpm-hub-badge {
  display: inline-block;
  background: #ecfccb;
  color: #3f6212;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
}
.bdpm-hub-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bdpm-hub-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 11px 14px;
  border-radius: 12px;
  text-decoration: none;
  background: var(--bdpm-accent);
  color: #fff;
  font-weight: 700;
}
.bdpm-hub-link.secondary { background: #fff; color: var(--bdpm-accent); border: 1px solid var(--bdpm-accent); }
.bdpm-login-card { max-width: 560px; margin: 0 0 24px; }
.bdpm-register-card { background: linear-gradient(180deg, #ffffff, #f5fbf7); }
.bdpm-checkbox { display: flex; align-items: center; gap: 8px; color: #334155; font-weight: 600; }
.bdpm-checkbox input { width: auto; }
.bdpm-kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 22px; }
.bdpm-mini-kpi {
  background:
    radial-gradient(circle at top left, rgba(20,184,166,.13), transparent 34%),
    linear-gradient(180deg, #ffffff, #f8fffc);
  border: 1px solid var(--bdpm-border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
}
.bdpm-mini-kpi strong, .bdpm-order-summary strong, .bdpm-finance-grid strong { display: block; font-size: 13px; color: var(--bdpm-muted); margin-bottom: 8px; }
.bdpm-mini-kpi span { display: block; font-size: 24px; font-weight: 700; color: var(--bdpm-ink); }
.bdpm-order-card {
  background: linear-gradient(180deg, rgba(255,255,255,.96), #f8fffc);
  border: 1px solid var(--bdpm-border);
  border-radius: 30px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}
.bdpm-order-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.bdpm-order-head strong { display: block; font-size: 18px; }
.bdpm-order-head span { color: var(--bdpm-muted); }
.bdpm-order-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.bdpm-order-meta span { background: #e0f2fe; color: #075985; border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 700; }
.bdpm-order-summary, .bdpm-finance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.bdpm-order-summary > div, .bdpm-finance-grid > div { background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 15px; box-shadow: inset 0 1px 0 rgba(255,255,255,.9); }
.bdpm-order-summary span, .bdpm-finance-grid span { font-weight: 700; color: var(--bdpm-ink); }
.bdpm-subpanel { background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 16px; margin-top: 14px; }
.bdpm-subpanel h4 { margin: 0 0 12px; }
.bdpm-subpanel ul { margin: 0; padding-right: 18px; }
.bdpm-shortcode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.bdpm-shortcode-grid code { display: block; direction: ltr; text-align: left; padding: 10px 12px; border-radius: 12px; background: #0f172a; color: #e2e8f0; white-space: normal; }
.bdpm-payment-list, .bdpm-timeline { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 10px; }
.bdpm-payment-list li, .bdpm-timeline li { border: 1px solid var(--bdpm-border); border-radius: 14px; padding: 12px 14px; background: #fcfffe; }
.bdpm-payment-list strong, .bdpm-timeline strong { display: block; margin-bottom: 4px; }
.bdpm-payment-list span, .bdpm-timeline span { display: block; color: var(--bdpm-muted); font-size: 13px; margin-bottom: 4px; }
.bdpm-payment-list p, .bdpm-timeline p { margin: 0; color: #334155; }
.bdpm-table-wrap { overflow-x: auto; }
.bdpm-ledger-table { width: 100%; border-collapse: collapse; min-width: 820px; }
.bdpm-ledger-table th, .bdpm-ledger-table td { border: 1px solid var(--bdpm-border); padding: 10px 12px; text-align: right; background: #fff; }
.bdpm-ledger-table th { background: #f0fdfa; color: var(--bdpm-ink); }
.bdpm-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bdpm-pagination a {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--bdpm-border);
  text-decoration: none;
  background: #fff;
  color: var(--bdpm-ink);
  font-weight: 700;
}
.bdpm-pagination a.is-active { background: var(--bdpm-accent); color: #fff; border-color: var(--bdpm-accent); }
@media (max-width: 980px) {
  .bdpm-dashboard-shell, .bdpm-portal-grid, .bdpm-auth-portal .bdpm-portal-grid { grid-template-columns: 1fr; }
  .bdpm-dashboard-sidebar { position: static; }
}
@media (max-width: 900px) {
  .bdpm-portal-hero h2 { font-size: 24px; }
  .bdpm-order-head { flex-direction: column; }
  .bdpm-status-rail { grid-template-columns: repeat(3, minmax(90px, 1fr)); }
  .bdpm-status-step::before { display: none; }
}


/* Professional role dashboard refinements */
.bdpm-portal { --bdpm-accent: #0f766e; --bdpm-ink: #0f172a; --bdpm-muted: #64748b; --bdpm-border: #dbeafe; }
.bdpm-role-agency { --bdpm-accent: #2563eb; --bdpm-border: #bfdbfe; }
.bdpm-role-marketer { --bdpm-accent: #7c3aed; --bdpm-border: #ddd6fe; }
.bdpm-role-print { --bdpm-accent: #ea580c; --bdpm-border: #fed7aa; }
.bdpm-role-workshop { --bdpm-accent: #be123c; --bdpm-border: #fecdd3; }
.bdpm-role-shipping { --bdpm-accent: #0891b2; --bdpm-border: #a5f3fc; }
.bdpm-role-customer { --bdpm-accent: #16a34a; --bdpm-border: #bbf7d0; }
.bdpm-portal-hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.28), transparent 26%),
    linear-gradient(135deg, var(--bdpm-accent), #0f172a);
  color: #fff;
  border: 0;
  box-shadow: 0 24px 70px rgba(15,23,42,.18);
}
.bdpm-portal-hero p { color: rgba(255,255,255,.82); }
.bdpm-dashboard-sidebar .bdpm-card { border-top: 4px solid var(--bdpm-accent); }
.bdpm-sidebar-links a.is-active,
.bdpm-sidebar-links a:hover { background: var(--bdpm-accent); color: #fff; border-color: var(--bdpm-accent); }
.bdpm-card { border: 1px solid var(--bdpm-border); box-shadow: 0 18px 45px rgba(15,23,42,.07); }
.bdpm-card h3 { color: var(--bdpm-ink); }
.bdpm-inline-form button,
.bdpm-task button,
.bdpm-card button { background: var(--bdpm-accent); border-color: var(--bdpm-accent); }
.bdpm-task {
  border: 1px solid var(--bdpm-border);
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 14px;
  background: linear-gradient(180deg,#fff,#f8fafc);
}
.bdpm-task > div:first-child strong { font-size: 17px; color: var(--bdpm-ink); }
.bdpm-task > div:first-child span { display: block; color: var(--bdpm-muted); margin-top: 4px; }
.bdpm-guide-link { background: #fff7ed !important; color: #9a3412 !important; border-color: #fed7aa !important; }

/* Frontend production management page */
.bdpm-production-management-page,
.bdpm-production-management-page .bdpm-standalone-app {
  background: #eef6f3;
  min-height: 100vh;
}
.bdpm-production-frontend {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
  direction: rtl;
}
.bdpm-production-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.bdpm-production-sidebar {
  position: sticky;
  top: 18px;
  min-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 28px;
  padding: 18px;
  background:
    radial-gradient(circle at 15% 0%, rgba(20, 184, 166, .22), transparent 35%),
    linear-gradient(180deg, #0f172a 0%, #134e4a 100%);
  box-shadow: 0 24px 54px rgba(15, 23, 42, .18);
  color: #fff;
}
.bdpm-production-sidebar-brand {
  padding: 8px 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.bdpm-production-sidebar-brand strong {
  display: block;
  font-size: 20px;
  margin-bottom: 7px;
}
.bdpm-production-sidebar-brand span {
  display: block;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  line-height: 1.9;
}
.bdpm-production-menu {
  display: grid;
  gap: 12px;
}
.bdpm-sidebar-group {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  background: rgba(255, 255, 255, .055);
}
.bdpm-sidebar-group.is-open {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(45, 212, 191, .28);
}
.bdpm-sidebar-group-title {
  margin: 0 0 8px;
  padding: 0 4px;
  color: rgba(255, 255, 255, .58);
  font-size: 12px;
  font-weight: 800;
}
.bdpm-production-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  margin-top: 6px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.bdpm-production-menu a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .28);
}
.bdpm-production-menu a:hover {
  transform: translateX(-3px);
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .14);
  color: #fff;
}
.bdpm-production-menu a.is-active {
  background: #fff;
  border-color: #fff;
  color: #0f766e;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .18);
}
.bdpm-production-menu a.is-active::before { background: #0f766e; }
.bdpm-production-sidebar-foot {
  margin-top: auto;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  text-align: center;
}
.bdpm-production-main {
  min-width: 0;
  width: 100%;
}
.bdpm-production-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px 22px;
  border: 1px solid rgba(148, 163, 184, .26);
  border-radius: 26px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 18px 46px rgba(15, 23, 42, .08);
  backdrop-filter: blur(12px);
}
.bdpm-production-main-header span {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}
.bdpm-production-main-header h1 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
}
.bdpm-production-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 13px;
  border: 1px solid #dbe5df;
  background: #f8fafc;
  color: #334155;
  text-decoration: none;
  font-weight: 800;
}
.bdpm-production-frontend .wrap {
  margin: 0;
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.bdpm-production-frontend.bdpm-admin-shell,
.bdpm-production-frontend .bdpm-admin-shell,
.bdpm-production-main .bdpm-admin-shell,
.bdpm-production-main .bdpm-inventory-workspace {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.bdpm-production-main .bdpm-inventory-workspace {
  display: block;
}
.bdpm-production-main .bdpm-inventory-workspace .bdpm-panel {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.bdpm-production-main .bdpm-inventory-workspace .bdpm-panel table.widefat {
  min-width: 900px;
}
.bdpm-production-frontend .notice,
.bdpm-production-frontend .updated,
.bdpm-production-frontend .error {
  margin: 16px 0;
  border-radius: 12px;
  background: #fff;
  padding: 10px 14px;
}
.bdpm-frontend-workspace-top {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 -24px 22px;
}
.bdpm-production-frontend .bdpm-workspace-top { display: none; }
.bdpm-production-frontend table.widefat {
  width: 100%;
  border-collapse: collapse;
}
.bdpm-production-frontend .widefat th,
.bdpm-production-frontend .widefat td {
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  text-align: right;
}
.bdpm-production-frontend .widefat thead th { background: #0f172a; color: #fff; }
.bdpm-production-frontend .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 10px;
  padding: 7px 13px;
  text-decoration: none;
  border: 1px solid #0f766e;
  color: #0f766e;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}
.bdpm-production-frontend .button-primary { background: #0f766e; color: #fff; }
.bdpm-production-frontend input,
.bdpm-production-frontend select,
.bdpm-production-frontend textarea {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  min-height: 36px;
  padding: 6px 10px;
  box-sizing: border-box;
}
.bdpm-production-frontend textarea { min-height: 76px; }
@media (max-width: 900px) {
  .bdpm-production-frontend { padding: 12px; }
  .bdpm-production-layout { grid-template-columns: 1fr; }
  .bdpm-production-sidebar {
    position: static;
    min-height: 0;
    border-radius: 24px;
  }
  .bdpm-production-menu {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
  .bdpm-production-main-header {
    align-items: stretch;
    flex-direction: column;
  }
  .bdpm-production-back { width: 100%; }
  .bdpm-frontend-workspace-top { position: static; margin-left: -12px; margin-right: -12px; }
}

/* Simplified professional role portals */
.bdpm-dashboard-sidebar .bdpm-card h3 { margin-bottom: 12px; }
.bdpm-sidebar-links { display: grid; gap: 8px; }
.bdpm-sidebar-links a {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 12px 14px;
  font-weight: 800;
  color: #334155;
  text-decoration: none;
}
.bdpm-sidebar-links a.is-active,
.bdpm-sidebar-links a:hover { transform: translateX(-2px); box-shadow: 0 10px 22px rgba(15,23,42,.08); }
.bdpm-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.bdpm-tab-nav a {
  padding: 10px 14px;
  border-radius: 13px;
  background: #fff;
  color: #334155;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid #e2e8f0;
}
.bdpm-tab-nav a.is-active { background: var(--bdpm-accent); color: #fff; border-color: var(--bdpm-accent); }
.bdpm-inline-form {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px !important;
  align-items: end;
}
.bdpm-inline-form p { margin: 0; }
.bdpm-inline-form label {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
}
.bdpm-inline-form input,
.bdpm-inline-form select,
.bdpm-inline-form textarea {
  width: 100%;
}
.bdpm-inline-form .bdpm-span-full,
.bdpm-inline-form textarea { grid-column: 1 / -1; }
.bdpm-inline-form button { justify-self: start; min-height: 42px; border-radius: 12px; }
.bdpm-choice-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.bdpm-choice-table th,
.bdpm-choice-table td { border: 1px solid #e2e8f0; padding: 10px 12px; text-align: right; }
.bdpm-choice-table th { background: #0f172a; color: #fff; }
.bdpm-task summary { cursor: pointer; list-style: none; }
.bdpm-task summary::-webkit-details-marker { display: none; }
.bdpm-task summary::after { content: 'نمایش جزئیات'; float: left; color: var(--bdpm-accent); font-weight: 800; }
.bdpm-task[open] summary::after { content: 'بستن جزئیات'; }

/* ── Agency Storefront Shortcodes ──────────────────────────────────── */

/* Agency Info */
.bdpm-agency-info { margin-bottom: 24px; }
.bdpm-agency-name { font-size: 22px; margin: 0 0 12px; color: #0f172a; }
.bdpm-agency-logo { margin-bottom: 16px; }
.bdpm-agency-logo img { max-width: 200px; height: auto; border-radius: 12px; }
.bdpm-agency-description { margin-bottom: 16px; line-height: 1.85; color: #334155; }
.bdpm-agency-contact { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }
.bdpm-contact-item { display: flex; align-items: center; gap: 6px; }
.bdpm-contact-item a { color: #0f766e; text-decoration: none; font-weight: 600; }
.bdpm-agency-address { color: #64748b; font-size: 13px; margin-bottom: 12px; }
.bdpm-agency-city { margin-left: 8px; font-weight: 600; }

/* Product Grid */
.bdpm-product-grid { display: grid; gap: 20px; margin-bottom: 24px; }
.bdpm-cols-2 { grid-template-columns: repeat(2,1fr); }
.bdpm-cols-3 { grid-template-columns: repeat(3,1fr); }
.bdpm-cols-4 { grid-template-columns: repeat(4,1fr); }
.bdpm-cols-5 { grid-template-columns: repeat(5,1fr); }
.bdpm-cols-6 { grid-template-columns: repeat(6,1fr); }
@media (max-width: 768px) {
  .bdpm-cols-3, .bdpm-cols-4, .bdpm-cols-5, .bdpm-cols-6 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
  .bdpm-product-grid { grid-template-columns: 1fr; }
}
.bdpm-product-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  padding: 16px;
  transition: box-shadow .2s;
}
.bdpm-product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.bdpm-product-image { display: block; margin-bottom: 10px; }
.bdpm-product-image img { max-width: 100%; height: auto; border-radius: 8px; }
.bdpm-product-title { font-size: 14px; margin: 0 0 8px; }
.bdpm-product-title a { color: #0f172a; text-decoration: none; }
.bdpm-product-price { margin-bottom: 10px; font-size: 15px; font-weight: 700; color: #0f766e; }
.bdpm-product-price del { color: #94a3b8; font-weight: 400; font-size: 13px; margin-left: 6px; }
.bdpm-product-price ins { text-decoration: none; }
.bdpm-product-button {
  display: inline-block;
  background: #0f766e;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.bdpm-product-button:hover { background: #115e59; }

/* Contact Form */
.bdpm-contact-form-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  max-width: 520px;
}
.bdpm-contact-title { margin: 0 0 16px; font-size: 16px; color: #0f172a; }
.bdpm-contact-form .bdpm-form-field { margin-bottom: 14px; }
.bdpm-contact-form label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: #334155; }
.bdpm-contact-form input,
.bdpm-contact-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  box-sizing: border-box;
}
.bdpm-contact-submit {
  background: #0f766e;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.bdpm-contact-submit:hover { background: #115e59; }

/* Social Links */
.bdpm-agency-social { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.bdpm-social-vertical { flex-direction: column; }
.bdpm-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #0f172a;
  padding: 8px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background .2s;
}
.bdpm-social-link:hover { background: #e2e8f0; }
.bdpm-social-icon { font-size: 16px; }

/* Catalogs */
.bdpm-catalog-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 12px; }
.bdpm-catalog-list { display: flex; flex-direction: column; gap: 8px; }
.bdpm-catalog-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  text-decoration: none;
  color: #0f172a;
  font-size: 14px;
  transition: background .2s;
}
.bdpm-catalog-link:hover { background: #eef7f5; }
.bdpm-catalog-icon { font-size: 20px; }

/* Notices */
.bdpm-notice { padding: 12px 18px; border-radius: 12px; margin-bottom: 16px; font-size: 13px; }
.bdpm-notice-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.bdpm-notice-warning { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.bdpm-empty-text { color: #94a3b8; font-size: 14px; text-align: center; padding: 30px; }

/* ── Agency Registration Form ──────────────────────────────────────── */
.bdpm-agency-register-wrap { max-width: 480px; margin: 0 auto 32px; background:#fff; border:1px solid #e2e8f0; border-radius:16px; padding:28px; }
.bdpm-register-title { font-size:18px; color:#0f172a; margin:0 0 4px; }
.bdpm-register-subtitle { color:#64748b; font-size:13px; margin:0 0 20px; }
.bdpm-register-form .bdpm-form-field { margin-bottom:14px; }
.bdpm-register-form label { display:block; margin-bottom:4px; font-size:13px; font-weight:600; color:#334155; }
.bdpm-register-form input { width:100%; border:1px solid #cbd5e1; border-radius:10px; padding:10px 14px; font-size:14px; box-sizing:border-box; }
.bdpm-register-submit { display:block; width:100%; background:#0f766e; color:#fff; border:none; border-radius:10px; padding:12px; font-size:15px; font-weight:600; cursor:pointer; margin-top:6px; }
.bdpm-register-submit:hover { background:#115e59; }
.bdpm-register-login-link { text-align:center; margin-top:14px; font-size:13px; color:#64748b; }
.bdpm-register-login-link a { color:#0f766e; }

/* ── Modern Product Page ──────────────────────────────────────────── */
.bdpm-product-page { max-width:1200px; margin:0 auto; font-family:inherit; }
.bdpm-breadcrumb { padding:12px 0; font-size:13px; color:#64748b; }
.bdpm-breadcrumb a { color:#0f766e; text-decoration:none; }
.bdpm-breadcrumb span { color:#94a3b8; }

.bdpm-product-layout { display:grid; grid-template-columns:1fr 1fr; gap:40px; margin-bottom:40px; }
@media (max-width:768px) { .bdpm-product-layout { grid-template-columns:1fr; } }

.bdpm-product-gallery { position:relative; }
.bdpm-main-image { position:relative; border-radius:16px; overflow:hidden; background:#f8fafc; }
.bdpm-main-image img { width:100%; height:auto; display:block; }
.bdpm-badge { position:absolute; top:12px; padding:4px 12px; border-radius:8px; font-size:12px; font-weight:700; color:#fff; }
.bdpm-badge-sale { left:12px; background:#ef4444; }
.bdpm-badge-featured { right:12px; background:#f59e0b; }
.bdpm-thumbnails { display:flex; gap:8px; margin-top:12px; }
.bdpm-thumb { flex:0 0 72px; height:72px; border:2px solid transparent; border-radius:10px; overflow:hidden; cursor:pointer; padding:0; background:none; }
.bdpm-thumb.active { border-color:#0f766e; }
.bdpm-thumb img { width:100%; height:100%; object-fit:cover; }

.bdpm-product-info { display:flex; flex-direction:column; gap:16px; }
.bdpm-product-title { font-size:26px; font-weight:800; color:#0f172a; margin:0; line-height:1.4; }
.bdpm-product-meta { display:flex; gap:16px; font-size:13px; color:#64748b; }
.bdpm-sku strong { color:#0f172a; }
.bdpm-instock { color:#10b981; font-weight:600; }
.bdpm-outstock { color:#ef4444; font-weight:600; }

.bdpm-product-price-section { display:flex; align-items:baseline; gap:12px; }
.bdpm-price-current, .bdpm-price-sale { font-size:28px; font-weight:800; color:#0f766e; }
.bdpm-price-regular { font-size:18px; color:#94a3b8; }

.bdpm-short-desc { color:#334155; line-height:1.85; font-size:14px; }

.bdpm-cart-form { display:flex; gap:12px; align-items:end; }
.bdpm-qty-wrap label { display:block; font-size:12px; color:#64748b; margin-bottom:4px; }
.bdpm-qty-input { width:70px; border:1px solid #cbd5e1; border-radius:10px; padding:10px; text-align:center; font-size:15px; }
.bdpm-add-to-cart { display:inline-flex; align-items:center; gap:8px; background:#0f766e; color:#fff; border:none; border-radius:12px; padding:14px 28px; font-size:16px; font-weight:700; cursor:pointer; text-decoration:none; }
.bdpm-add-to-cart:hover { background:#115e59; }
.bdpm-product-cats { font-size:13px; color:#64748b; }
.bdpm-product-cats a { color:#0f766e; }

/* Product Tabs */
.bdpm-product-tabs { margin-bottom:40px; }
.bdpm-tabs-nav { display:flex; gap:0; border-bottom:2px solid #e2e8f0; margin-bottom:24px; }
.bdpm-tab-btn { padding:12px 24px; border:none; background:none; font-size:14px; font-weight:600; color:#64748b; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; transition:all .2s; }
.bdpm-tab-btn.active { color:#0f766e; border-bottom-color:#0f766e; }
.bdpm-tab-panel { display:none; }
.bdpm-tab-panel.active { display:block; }
.bdpm-product-description { line-height:2; color:#334155; font-size:15px; }

.bdpm-specs-table { width:100%; border-collapse:collapse; }
.bdpm-specs-table th { width:180px; background:#f8fafc; padding:12px 16px; border:1px solid #e2e8f0; text-align:right; font-size:13px; color:#0f172a; font-weight:600; }
.bdpm-specs-table td { padding:12px 16px; border:1px solid #e2e8f0; font-size:14px; color:#334155; }
