/* ══════════════════════════════════════════════════════════════════════════
   EcomCentral — Base / Structural CSS  (dark theme, Bootstrap 5 overlay)
   Channel-specific blocks follow below.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── CSS Custom properties ─────────────────────────────────────────────── */
:root,
[data-bs-theme="dark"] {
  /* Layout */
  --sidebar-w: 260px;

  /* Backgrounds */
  --bg:           #0c0f1a;
  --surface:      #161b2e;
  --card-bg:      #161b2e;
  --surface-2:    #1e2440;

  /* Sidebar */
  --sidebar-bg:      #0a0d17;
  --sidebar-border:  rgba(255,255,255,0.05);
  --sidebar-text:    #8892a4;
  --sidebar-text-active: #ffffff;
  --sidebar-accent:  #6366f1;
  --sidebar-accent-bg: rgba(99,102,241,0.14);

  /* Borders + Text */
  --border:       rgba(255,255,255,0.07);
  --text:         #e2e8f0;
  --text-secondary: #c8d1e0;
  --text-muted:   #64748b;

  /* Shadows */
  --radius:   10px;
  --shadow:   0 1px 4px rgba(0,0,0,.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,.45);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.6);

  /* Status colours — darkened for dark mode */
  --s-active-bg:   rgba(34,197,94,.12);  --s-active-fg:   #4ade80;
  --s-inactive-bg: rgba(100,116,139,.12); --s-inactive-fg: #94a3b8;
  --s-error-bg:    rgba(239,68,68,.13);   --s-error-fg:    #f87171;
  --s-expired-bg:  rgba(249,115,22,.13);  --s-expired-fg:  #fb923c;
  --s-pending-bg:  rgba(59,130,246,.13);  --s-pending-fg:  #60a5fa;

  /* Override Bootstrap dark defaults */
  --bs-body-bg:    #0c0f1a;
  --bs-body-color: #e2e8f0;
  --bs-border-color: rgba(255,255,255,0.07);
  --bs-card-bg:    #161b2e;
  --bs-secondary-bg: #1e2440;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  transition: transform .25s ease;
}

/* Logo / brand */
.sidebar-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.sidebar-brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 17px;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(99,102,241,.4);
}

.sidebar-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.3px;
}
.sidebar-brand-name span { color: #818cf8; }

/* Scrollable body */
.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.08) transparent;
}
.sidebar-scroll::-webkit-scrollbar { width: 4px; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 4px; }

/* Section labels */
.sidebar-label {
  padding: 18px 16px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #3d4560;
}

/* Nav links */
.sidebar nav a,
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 16px;
  margin: 1px 8px;
  border-radius: 8px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background .15s, color .15s;
  position: relative;
}

.sidebar-link-icon {
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar nav a:hover,
.sidebar-link:hover {
  background: rgba(255,255,255,.05);
  color: #c8d1e0;
}

.sidebar nav a.active,
.sidebar-link.active {
  background: var(--sidebar-accent-bg);
  color: #fff;
  font-weight: 600;
}

.sidebar nav a.active::before,
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px;
  background: var(--sidebar-accent);
  border-radius: 0 3px 3px 0;
}

/* Sub-nav links (inside collapsibles) */
.sidebar-link-sub {
  padding-left: 22px;
  font-size: 13px;
  color: #5a6580;
}
.sidebar-link-sub:hover { color: #94a3b8; }
.sidebar-link-sub.active { color: #fff; }

/* Channel colour dot */
.ch-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Collapsible group toggle button */
.sidebar-group-toggle {
  width: calc(100% - 16px);
  margin: 1px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px 9px 16px;
  border-radius: 8px;
  background: none;
  border: none;
  color: var(--sidebar-text);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.sidebar-group-toggle:hover { background: rgba(255,255,255,.05); color: #c8d1e0; }
.sidebar-group-toggle:not(.collapsed) { color: #e2e8f0; }

.sidebar-chevron {
  font-size: 11px;
  transition: transform .25s ease;
}
.sidebar-group-toggle:not(.collapsed) .sidebar-chevron {
  transform: rotate(180deg);
}

/* Footer */
.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

.sidebar-tenant {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-tenant-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,.05);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #3d4560;
  font-size: 14px;
  flex-shrink: 0;
}

.sidebar-tenant-name  { font-size: 13px; font-weight: 600; color: #6474a0; }
.sidebar-tenant-meta  { font-size: 11px; color: #3d4560; }

/* Language switcher (sidebar footer) */
.sidebar-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--sidebar-border);
  color: #6474a0;
  font-size: 14px;
}
.sidebar-lang-select {
  flex: 1;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--sidebar-border);
  color: var(--text);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 12px;
  cursor: pointer;
}

/* Signed-in user + logout (sidebar footer) */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--sidebar-border);
}
.sidebar-user-avatar {
  width: 32px; height: 32px;
  background: var(--sidebar-accent-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #818cf8;
  font-size: 14px;
  flex-shrink: 0;
}
.sidebar-user-info { min-width: 0; flex: 1; }
.sidebar-user-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 11px; color: var(--text-muted); text-transform: capitalize; }
.sidebar-logout-btn {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.sidebar-logout-btn:hover { background: rgba(239,68,68,.12); color: #f87171; }

/* Mobile sidebar backdrop */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(2px);
  z-index: 190;
}

/* ── Login screen ────────────────────────────────────────────────────────── */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 500;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #131a33 0%, var(--bg) 65%);
}

.login-card {
  width: 100%;
  max-width: 380px;
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.login-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
}

.login-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}
.login-back-link:hover { color: var(--text); }

.login-lang-switcher {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}
.login-logo-name { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -.3px; }
.login-logo-name span { color: #818cf8; }

.login-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.login-sub   { font-size: 13px; color: var(--text-muted); margin-bottom: 22px; }

.login-error {
  background: var(--s-error-bg);
  color: var(--s-error-fg);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12.5px;
  margin-bottom: 14px;
}

/* ── Users management page ──────────────────────────────────────────────── */
.usr-avatar {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--sidebar-accent-bg);
  color: #818cf8;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  font-weight: 700;
  flex-shrink: 0;
}

.usr-perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px 16px;
  margin-top: 8px;
}
.usr-perm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}
.usr-perm-item input[type="checkbox"] { width: auto; }

/* ── Main layout ─────────────────────────────────────────────────────────── */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

/* ── Topbar ──────────────────────────────────────────────────────────────── */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.topbar-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.content {
  padding: 28px;
  flex: 1;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity .15s, transform .1s, background .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--sidebar-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99,102,241,.3);
}
.btn-primary:hover { background: #4f46e5; color: #fff; }

.btn-ghost {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,.09); color: var(--text); }

.btn-danger {
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.25);
  color: #f87171;
}
.btn-danger:hover { background: rgba(239,68,68,.25); }

.btn-sm { padding: 5px 11px; font-size: 12.5px; }
.btn-icon { padding: 7px; }

/* ── Stat cards ─────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60px; height: 60px;
  border-radius: 0 12px 0 60px;
  opacity: .06;
}

.stat-card .label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.stat-card .value { font-size: 28px; font-weight: 700; line-height: 1; color: var(--text); }
.stat-card .sub   { font-size: 11px; color: var(--text-muted); margin-top: 5px; }
.stat-card.warn   .value { color: #fb923c; }
.stat-card.danger .value { color: #f87171; }
.stat-card.ok     .value { color: #4ade80; }

/* ── Section header ─────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-header h2 { font-size: 15px; font-weight: 600; }

/* ── Connections grid ────────────────────────────────────────────────────── */
.connections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

.conn-card {
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.conn-card:hover {
  border-color: rgba(99,102,241,.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
}

.conn-card-stripe { height: 3px; }
.conn-card-body   { padding: 18px; }

.conn-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.channel-badge {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -.5px;
}
.channel-badge svg { width: 62%; height: 62%; fill: currentColor; display: block; }

.conn-name    { font-weight: 600; font-size: 14px; color: var(--text); }
.conn-channel { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.conn-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid transparent;
}
.tag-env-production { background: rgba(34,197,94,.1);  color: #4ade80;  border-color: rgba(34,197,94,.2); }
.tag-env-sandbox    { background: rgba(234,179,8,.1);  color: #fbbf24;  border-color: rgba(234,179,8,.2); }
.tag-env-staging    { background: rgba(59,130,246,.1); color: #60a5fa;  border-color: rgba(59,130,246,.2); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
}
.status-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-active      { background: var(--s-active-bg);   color: var(--s-active-fg); }
.status-inactive    { background: var(--s-inactive-bg); color: var(--s-inactive-fg); }
.status-error       { background: var(--s-error-bg);    color: var(--s-error-fg); }
.status-expired     { background: var(--s-expired-bg);  color: var(--s-expired-fg); }
.status-pending_auth{ background: var(--s-pending-bg);  color: var(--s-pending-fg); }
.status-suspended   { background: var(--s-error-bg);    color: var(--s-error-fg); }
.status-pending      { background: var(--s-pending-bg);  color: var(--s-pending-fg); }

/* Shipment process_status / shipping_order status badges */
.status-processing        { background: var(--s-pending-bg);  color: var(--s-pending-fg); }
.status-in_transit        { background: var(--s-expired-bg);  color: var(--s-expired-fg); }
.status-out_for_delivery  { background: var(--s-active-bg);   color: var(--s-active-fg); }
.status-delivered         { background: var(--s-active-bg);   color: var(--s-active-fg); }
.status-exception         { background: var(--s-error-bg);    color: var(--s-error-fg); }
.status-returned          { background: var(--s-expired-bg);  color: var(--s-expired-fg); }
.status-cancelled         { background: var(--s-inactive-bg); color: var(--s-inactive-fg); }
.status-draft             { background: var(--s-inactive-bg); color: var(--s-inactive-fg); }
.status-completed         { background: var(--s-active-bg);   color: var(--s-active-fg); }
.status-on_hold           { background: var(--s-expired-bg);  color: var(--s-expired-fg); }

.conn-card-footer {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
}
.conn-card-footer .actions { display: flex; gap: 6px; }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 70px 20px;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 42px; margin-bottom: 14px; }
.empty-state strong { font-size: 16px; color: var(--text-secondary); }
.empty-state p { margin-top: 6px; font-size: 13px; }

/* ── Modal ───────────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(3px);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.ec-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modal-in .22s ease;
}
@keyframes modal-in {
  from { transform: translateY(16px) scale(.97); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.modal-header {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 16px; font-weight: 600; }

.modal-close {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  font-size: 16px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 3px 9px;
  border-radius: 6px;
  transition: background .15s;
}
.modal-close:hover { background: rgba(255,255,255,.1); }

.modal-body   { padding: 20px 24px; }
.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text);
  background: var(--surface-2);
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sidebar-accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,.18);
}
.form-group input[type=password] { font-family: monospace; letter-spacing: .05em; }
.form-group select option { background: #1e2440; }
.form-hint    { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }
.form-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-section {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted);
  margin: 20px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

/* Inline form inputs (used by channel views) */
.wc-input, .wc-select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
  width: 100%;
  transition: border-color .15s;
}
.wc-input:focus, .wc-select:focus {
  outline: none;
  border-color: var(--sidebar-accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.wc-select option { background: #1e2440; }

/* ── Step wizard ─────────────────────────────────────────────────────────── */
.wizard-steps {
  display: flex;
  gap: 0;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.step {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  padding: 8px;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  transition: all .2s;
  margin-bottom: -1px;
}
.step.active { border-bottom-color: var(--sidebar-accent); color: #818cf8; }
.step.done   { border-bottom-color: #4ade80; color: #4ade80; }

/* ── Channel picker grid ─────────────────────────────────────────────────── */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.channel-pick {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  background: var(--surface-2);
}
.channel-pick:hover    { border-color: var(--sidebar-accent); background: rgba(99,102,241,.1); }
.channel-pick.selected { border-color: var(--sidebar-accent); background: rgba(99,102,241,.15); }
.channel-pick .cb-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px;
  font-size: 13px; font-weight: 800; color: #fff;
}
.channel-pick .cb-name { font-size: 12px; font-weight: 600; color: var(--text); }

/* ── Table ───────────────────────────────────────────────────────────────── */
.table-wrap {
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: auto;
}
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  padding: 12px 16px;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: middle;
  color: var(--text);
}
tbody tr:last-child td  { border-bottom: none; }
tbody tr:hover td       { background: rgba(255,255,255,.025); }

.action-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  font-family: monospace;
  background: rgba(255,255,255,.07);
  color: var(--text-muted);
}
.action-badge.cred   { background: rgba(234,179,8,.12);   color: #fbbf24; }
.action-badge.oauth  { background: rgba(59,130,246,.12);  color: #60a5fa; }
.action-badge.conn   { background: rgba(34,197,94,.12);   color: #4ade80; }
.action-badge.danger { background: rgba(239,68,68,.12);   color: #f87171; }

/* ── Detail panel ────────────────────────────────────────────────────────── */
.detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.detail-header .back-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-muted);
  transition: background .15s;
}
.detail-header .back-btn:hover { background: var(--surface-2); }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 20px;
}
.panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-header h3 { font-size: 14px; font-weight: 600; }
.panel-body { padding: 20px; }

.cred-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.cred-row:last-child { border-bottom: none; }
.cred-key  { font-size: 12px; font-weight: 700; font-family: monospace; color: var(--text-muted); width: 160px; flex-shrink: 0; }
.cred-hint { font-family: monospace; font-size: 13px; flex: 1; }
.cred-hint .masked { color: var(--text-muted); letter-spacing: .1em; }

.settings-kv { display: grid; grid-template-columns: auto 1fr auto; gap: 10px 16px; align-items: center; }
.settings-kv .sk { font-size: 12px; font-family: monospace; font-weight: 700; color: var(--text-muted); }
.settings-kv .sv { font-size: 13px; }

/* ── Toast ───────────────────────────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast-item {
  background: #1e2440;
  border: 1px solid var(--border);
  color: #e2e8f0;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  box-shadow: var(--shadow-md);
  animation: toast-in .25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  max-width: 340px;
}
.toast-item.error   { background: rgba(239,68,68,.2);  border-color: rgba(239,68,68,.3);  color: #fca5a5; }
.toast-item.success { background: rgba(34,197,94,.15); border-color: rgba(34,197,94,.25); color: #86efac; }
@keyframes toast-in {
  from { transform: translateX(30px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ── Spinner / loader ────────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.1);
  border-top-color: var(--sidebar-accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loader-center {
  display: flex; align-items: center; justify-content: center;
  padding: 60px; gap: 10px; color: var(--text-muted);
}

/* ── Filters row ─────────────────────────────────────────────────────────── */
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filters select, .filters input {
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
}
.filters select:focus, .filters input:focus {
  outline: none;
  border-color: var(--sidebar-accent);
}
.filters select option { background: #1e2440; }

/* ── Misc ────────────────────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

.oauth-warning {
  background: rgba(249,115,22,.1);
  border: 1px solid rgba(249,115,22,.2);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #fb923c;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Callout boxes (used in channel detail views) */
.callout {
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  margin: 10px 0;
  border-left: 3px solid;
}
.callout-info   { background: rgba(99,102,241,.1); border-color: rgba(99,102,241,.5); color: #a5b4fc; }
.callout-warn   { background: rgba(249,115,22,.1);  border-color: rgba(249,115,22,.4);  color: #fb923c; }
.callout-tip    { background: rgba(34,197,94,.1);   border-color: rgba(34,197,94,.4);   color: #86efac; }
.callout-danger { background: rgba(239,68,68,.1);   border-color: rgba(239,68,68,.5);   color: #fca5a5; }

/* ── Shipment import tool ────────────────────────────────────────────────── */
.ec-modal.ec-modal-wide { max-width: 1200px; }

.import-dropzone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  color: var(--text-muted);
}
.import-dropzone.dragover { border-color: var(--sidebar-accent); background: rgba(99,102,241,.06); color: var(--text); }
.import-dropzone .icon { font-size: 32px; margin-bottom: 8px; }

.import-summary-bar {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-muted);
  margin: 4px 0 14px;
}
.import-summary-bar strong { color: var(--text); }

.import-table-scroll { max-height: 280px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 18px; }
.import-mapping-table, .import-preview-table { font-size: 12px; width: 100%; border-collapse: collapse; }
.import-mapping-table th, .import-preview-table th,
.import-mapping-table td, .import-preview-table td {
  padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; text-align: left;
}
.import-mapping-table th select { width: 100%; margin-bottom: 6px; font-size: 11.5px; padding: 5px 6px; }
.import-mapping-table .sample-val { color: var(--text-muted); font-size: 11px; }
.import-preview-table .status-icon { text-align: center; }

/* ── Demo mode banner ────────────────────────────────────────────────────── */
.demo-banner {
  background: rgba(234,179,8,.1);
  border: 1px solid rgba(234,179,8,.2);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 13px;
  color: #fbbf24;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Channel operations panel (connection detail view) ───────────────────── */
.ops-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
[data-op], [data-write] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all .15s;
}
[data-op]:hover, [data-write]:hover { background: rgba(255,255,255,.09); color: var(--text); }
[data-op].active, [data-write].active {
  background: var(--sidebar-accent-bg);
  border-color: rgba(99,102,241,.3);
  color: #a5b4fc;
}

.op-result {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  font-size: 13px;
  line-height: 1.7;
}

/* ── Write form (tracking / stock) ──────────────────────────────────────── */
.write-form {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}
.write-form .form-group { margin-bottom: 12px; }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.wc-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}
.wc-page-label { font-size: 13px; color: var(--text-muted); }

/* ── Channel view headers ────────────────────────────────────────────────── */
.wc-view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.wc-view-header h2 { font-size: 17px; font-weight: 600; }
.wc-breadcrumb { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.wc-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.wc-breadcrumb a:hover { color: var(--text); }

.wc-docs-bar {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Stock badges (used across all channel views) ────────────────────────── */
.wc-stock-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}
.wc-stock-ok   { background: rgba(34,197,94,.12);  color: #4ade80; }
.wc-stock-low  { background: rgba(249,115,22,.12); color: #fb923c; }
.wc-stock-zero { background: rgba(239,68,68,.12);  color: #f87171; }

/* ── Expand / detail row (in-table row expansion) ───────────────────────── */
.wc-expand-cell { padding-left: 12px !important; width: 32px; }
.wc-chevron {
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: transform .15s;
}

/* ── Action messages (inline in detail panels) ───────────────────────────── */
.wc-action-msg { margin-top: 8px; font-size: 12.5px; }
.wc-msg-ok  { color: #4ade80; }
.wc-msg-err { color: #f87171; }

/* ── KV list (key-value pairs in detail panels) ──────────────────────────── */
.wc-kv-list { display: flex; flex-direction: column; gap: 6px; }
.wc-kv {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.wc-kv:last-child { border-bottom: none; }
.wc-kv > span:first-child { color: var(--text-muted); }
.wc-kv > span:last-child  { color: var(--text); text-align: right; max-width: 60%; }

/* ── Address box ─────────────────────────────────────────────────────────── */
.wc-address-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
}

/* ── Items section ───────────────────────────────────────────────────────── */
.wc-items-section {
  margin-top: 20px;
  margin-bottom: 20px;
}

/* ── Amazon tabs (reused across channels) ────────────────────────────────── */
.amz-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 4px;
  border: 1px solid var(--border);
}
.amz-tab {
  flex: 1;
  padding: 8px 16px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.amz-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
.amz-tab:hover:not(.active) { color: var(--text); }

/* ── Connection-detail operation panel ───────────────────────────────────── */
.wc-panel-error {
  padding: 16px 24px;
  color: #f87171;
  font-size: 13px;
}

/* ── Animate slide-in (detail panels) ───────────────────────────────────── */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ── Mobile responsive ───────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }
  body.sidebar-open .sidebar  { transform: none; }
  body.sidebar-open .sidebar-backdrop { display: block; }

  .main { margin-left: 0; }
  .topbar-hamburger { display: flex; }
  .content { padding: 18px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .connections-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
  .stats-grid { grid-template-columns: 1fr; }
  .form-row   { grid-template-columns: 1fr; }
  .content    { padding: 14px; }
  .topbar     { padding: 0 14px; }
  .modal { border-radius: 12px; }
}

/* ── WooCommerce views ─────────────────────────────────────────────────────── */

/* Dashboard */
.wc-logo-big {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: #7f54b3;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}

.wc-connections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.wc-conn-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.wc-conn-stripe { height: 4px; background: #7f54b3; }

.wc-conn-body { padding: 16px; }

.wc-conn-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.wc-badge {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: #7f54b3;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.wc-conn-info { flex: 1; min-width: 0; }
.wc-conn-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }

.wc-conn-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.wc-test-result { font-size: 12px; }
.wc-test-ok  { color: #166534; background: #f0fdf4; border-radius: 6px; padding: 6px 10px; }
.wc-test-err { color: #991b1b; background: #fee2e2; border-radius: 6px; padding: 6px 10px; }

.wc-docs-bar { display: flex; gap: 10px; justify-content: center; padding: 8px 0; }

/* Shared view header */
.wc-view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.wc-view-header h2 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }

.wc-breadcrumb { font-size: 12px; color: var(--text-muted); }
.wc-breadcrumb a { color: #7f54b3; text-decoration: none; }
.wc-breadcrumb a:hover { text-decoration: underline; }

/* Table expand rows */
.wc-order-row, .wc-product-row {
  cursor: pointer;
  transition: background .1s;
}
.wc-order-row:hover td, .wc-product-row:hover td { background: #f8f5ff; }

.wc-expand-cell { color: var(--text-muted); font-size: 12px; text-align: center; }

.wc-chevron {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  color: #7f54b3;
  transition: transform .15s;
  line-height: 1;
}

/* Detail panel (expands below table row) */
.wc-detail-panel {
  border-top: 2px solid #7f54b3;
  background: #faf9ff;
}

.wc-panel-error {
  padding: 16px 24px;
  color: #991b1b;
  font-size: 13px;
}

/* Order / Product detail layout */
.wc-order-detail { padding: 20px 24px; }

.wc-detail-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.wc-detail-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}
.wc-detail-meta strong { color: var(--text); }
.wc-customer-note { font-size: 12px; color: var(--text-muted); }

.wc-detail-cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.wc-detail-col { }

.wc-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.wc-address-box {
  font-size: 13px;
  line-height: 1.7;
}
.wc-contact { margin-top: 6px; font-size: 12px; color: var(--text-muted); }
.wc-contact a { color: #7f54b3; text-decoration: none; }
.wc-contact a:hover { text-decoration: underline; }

.wc-kv-list { display: flex; flex-direction: column; gap: 6px; }
.wc-kv {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}
.wc-kv > span:first-child { color: var(--text-muted); font-size: 12px; flex-shrink: 0; }
.wc-kv > span:last-child  { text-align: right; }

.wc-items-section { margin-bottom: 20px; }

.wc-tfoot-row td { background: var(--bg); font-size: 12px; }
.wc-tfoot-total td { background: var(--bg); font-size: 14px; border-top: 2px solid var(--border); }

/* Forms inside detail panel */
.wc-select {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 13px;
  background: var(--surface);
  color: var(--text);
}
.wc-select:focus { outline: none; border-color: #7f54b3; box-shadow: 0 0 0 3px rgba(127,84,179,.12); }

.wc-input {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 13px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  width: 100%;
}
.wc-input:focus { outline: none; border-color: #7f54b3; box-shadow: 0 0 0 3px rgba(127,84,179,.12); }

.wc-tracking-form { font-size: 13px; }

.wc-action-msg {
  font-size: 12px;
  margin-top: 6px;
  min-height: 18px;
}
.wc-msg-ok  { color: #166534; }
.wc-msg-err { color: #991b1b; }

.wc-stock-update-form { }

/* Pagination */
.wc-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  padding: 16px 0;
}
.wc-page-label { font-size: 13px; color: var(--text-muted); }

/* WooCommerce status badges */
.wc-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}

/* Stock level indicators */
.wc-stock-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg);
  color: var(--text-muted);
}
.wc-stock-ok   { background: #dcfce7; color: #166534; }
.wc-stock-low  { background: #ffedd5; color: #9a3412; }
.wc-stock-zero { background: #fee2e2; color: #991b1b; }

/* ─────────────────────────────────────────────────────────────────────────────
   Shopify Interface  (brand: #96bf48 green)
   ───────────────────────────────────────────────────────────────────────────── */

/* Logo / badge */
.sf-logo-big {
  width: 64px; height: 64px;
  background: #96bf48;
  color: #fff;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900;
  margin: 0 auto 12px;
}

/* Connection cards grid */
.sf-connections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.sf-conn-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.sf-conn-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); transform: translateY(-1px); }

.sf-conn-stripe {
  height: 4px;
  background: linear-gradient(90deg, #96bf48, #b8d96b);
}

.sf-conn-body { padding: 16px; }

.sf-conn-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.sf-badge {
  width: 36px; height: 36px;
  background: #96bf48;
  color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900;
  flex-shrink: 0;
}

.sf-conn-info { flex: 1; min-width: 0; }
.sf-conn-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sf-conn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sf-test-result { margin-top: 10px; font-size: 12px; }
.sf-test-ok  { color: #166534; background: #dcfce7; border-radius: 6px; padding: 6px 10px; }
.sf-test-err { color: #991b1b; background: #fee2e2; border-radius: 6px; padding: 6px 10px; }

/* Detail panel */
.sf-detail-panel {
  background: #f8fdf2;
  border-top: 3px solid #96bf48;
  padding: 20px 24px;
  animation: slideIn .15s ease-out;
}

/* Shopify status badge */
.sf-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}

/* Order / product rows */
.sf-order-row, .sf-product-row {
  cursor: pointer;
  transition: background .1s;
}
.sf-order-row:hover, .sf-product-row:hover { background: rgba(150, 191, 72, .06); }

/* Misc */
.sf-fulfilled-notice {
  background: #dcfce7;
  color: #166534;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.sf-cancelled-tag {
  background: #fee2e2;
  color: #991b1b;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
}

.sf-cancelled-banner {
  background: #fee2e2;
  color: #991b1b;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  margin-top: 16px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Amazon SP-API Interface  (brand: #FF9900 orange)
   ───────────────────────────────────────────────────────────────────────────── */

.amz-logo-big {
  width: 64px; height: 64px;
  background: #FF9900;
  color: #fff;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900;
  margin: 0 auto 12px;
}

.amz-connections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.amz-conn-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.amz-conn-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); transform: translateY(-1px); }

.amz-conn-stripe {
  height: 4px;
  background: linear-gradient(90deg, #FF9900, #ffb733);
}

.amz-conn-body { padding: 16px; }

.amz-conn-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.amz-badge {
  width: 40px; height: 36px;
  background: #FF9900;
  color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 900;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.amz-conn-info { flex: 1; min-width: 0; }
.amz-conn-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.amz-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.amz-test-result { margin-top: 10px; font-size: 12px; }
.amz-test-ok  { color: #166534; background: #dcfce7; border-radius: 6px; padding: 6px 10px; }
.amz-test-err { color: #991b1b; background: #fee2e2; border-radius: 6px; padding: 6px 10px; }

.amz-detail-panel {
  background: #fffdf5;
  border-top: 3px solid #FF9900;
  padding: 20px 24px;
  animation: slideIn .15s ease-out;
}

.amz-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}

.amz-order-row { cursor: pointer; transition: background .1s; }
.amz-order-row:hover { background: rgba(255,153,0,.06); }

/* Inventory / catalog tabs */
.amz-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 16px;
}
.amz-tab {
  background: none;
  border: none;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: 6px 6px 0 0;
  transition: color .15s, border-color .15s;
}
.amz-tab:hover { color: #FF9900; }
.amz-tab.active { color: #FF9900; border-bottom-color: #FF9900; }

.amz-shipped-notice {
  background: #dcfce7; color: #166534;
  border-radius: 8px; padding: 10px 14px;
  font-size: 13px; font-weight: 600; margin-top: 16px;
}
.amz-cancelled-banner {
  background: #fee2e2; color: #991b1b;
  border-radius: 8px; padding: 12px 16px;
  font-size: 13px; margin-top: 16px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   eBay Interface  (brand: #E53238 red)
   ───────────────────────────────────────────────────────────────────────────── */

.ebay-logo-big {
  width: 64px; height: 64px;
  background: #E53238;
  color: #fff;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 900; font-style: italic;
  margin: 0 auto 12px;
}

.ebay-connections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.ebay-conn-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.ebay-conn-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); transform: translateY(-1px); }

.ebay-conn-stripe {
  height: 4px;
  background: linear-gradient(90deg, #E53238, #0064D2, #F5AF02, #86B817);
}

.ebay-conn-body { padding: 16px; }

.ebay-conn-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.ebay-badge {
  width: 36px; height: 36px;
  background: #E53238;
  color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; font-style: italic;
  flex-shrink: 0;
}

.ebay-conn-info { flex: 1; min-width: 0; }
.ebay-conn-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ebay-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.ebay-test-result { margin-top: 10px; font-size: 12px; }
.ebay-test-ok  { color: #166534; background: #dcfce7; border-radius: 6px; padding: 6px 10px; }
.ebay-test-err { color: #991b1b; background: #fee2e2; border-radius: 6px; padding: 6px 10px; }

.ebay-detail-panel {
  background: #fff8f8;
  border-top: 3px solid #E53238;
  padding: 20px 24px;
  animation: slideIn .15s ease-out;
}

.ebay-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}

.ebay-order-row, .ebay-inv-row {
  cursor: pointer;
  transition: background .1s;
}
.ebay-order-row:hover, .ebay-inv-row:hover { background: rgba(229,50,56,.05); }

.ebay-fulfilled-notice {
  background: #dcfce7; color: #166534;
  border-radius: 8px; padding: 10px 14px;
  font-size: 13px; font-weight: 600;
}

.ebay-cancelled-banner {
  background: #fee2e2; color: #991b1b;
  border-radius: 8px; padding: 12px 16px;
  font-size: 13px; margin-top: 16px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   OTTO Market Interface  (brand: #CC0000 red)
   ───────────────────────────────────────────────────────────────────────────── */

.otto-logo-big {
  width: 80px; height: 48px;
  background: #CC0000;
  color: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; letter-spacing: 2px;
  margin: 0 auto 12px;
}

.otto-connections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.otto-conn-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.otto-conn-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); transform: translateY(-1px); }

.otto-conn-stripe { height: 4px; background: linear-gradient(90deg, #CC0000, #ff3333); }
.otto-conn-body { padding: 16px; }

.otto-conn-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }

.otto-badge {
  width: 48px; height: 36px;
  background: #CC0000; color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; letter-spacing: 1.5px;
  flex-shrink: 0;
}

.otto-conn-info { flex: 1; min-width: 0; }
.otto-conn-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.otto-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.otto-test-result { margin-top: 10px; font-size: 12px; }
.otto-test-ok  { color: #166534; background: #dcfce7; border-radius: 6px; padding: 6px 10px; }
.otto-test-err { color: #991b1b; background: #fee2e2; border-radius: 6px; padding: 6px 10px; }

.otto-detail-panel {
  background: #fff8f8;
  border-top: 3px solid #CC0000;
  padding: 20px 24px;
  animation: slideIn .15s ease-out;
}

.otto-status-badge {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600;
  border: 1px solid transparent; white-space: nowrap;
}

.otto-order-row { cursor: pointer; transition: background .1s; }
.otto-order-row:hover { background: rgba(204,0,0,.05); }

.otto-sent-notice {
  background: #dcfce7; color: #166534;
  border-radius: 8px; padding: 10px 14px;
  font-size: 13px; font-weight: 600; margin-top: 16px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Kaufland Interface  (brand: #E3000B red, HMAC-SHA256 auth)
   ───────────────────────────────────────────────────────────────────────────── */

.kl-logo-big {
  width: 64px; height: 64px;
  background: #E3000B;
  color: #fff;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; letter-spacing: 1px;
  margin: 0 auto 12px;
}

.kl-connections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kl-conn-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.kl-conn-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); transform: translateY(-1px); }

.kl-conn-stripe { height: 4px; background: linear-gradient(90deg, #E3000B, #ff3a3a); }
.kl-conn-body { padding: 16px; }

.kl-conn-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }

.kl-badge {
  width: 44px; height: 36px;
  background: #E3000B; color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; letter-spacing: 1px;
  flex-shrink: 0;
}

.kl-sf-tag {
  display: inline-block;
  background: #fef2f2; color: #E3000B;
  border: 1px solid #fecaca; border-radius: 10px;
  padding: 1px 7px; font-size: 11px; font-weight: 700;
}

.kl-conn-info { flex: 1; min-width: 0; }
.kl-conn-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kl-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.kl-test-result { margin-top: 10px; font-size: 12px; }
.kl-test-ok  { color: #166534; background: #dcfce7; border-radius: 6px; padding: 6px 10px; }
.kl-test-err { color: #991b1b; background: #fee2e2; border-radius: 6px; padding: 6px 10px; }

.kl-detail-panel {
  background: #fff8f8;
  border-top: 3px solid #E3000B;
  padding: 20px 24px;
  animation: slideIn .15s ease-out;
}

.kl-status-badge {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600;
  border: 1px solid transparent; white-space: nowrap;
}

.kl-order-row { cursor: pointer; transition: background .1s; }
.kl-order-row:hover { background: rgba(227,0,11,.05); }

.kl-sent-notice {
  background: #dcfce7; color: #166534;
  border-radius: 8px; padding: 10px 14px;
  font-size: 13px; font-weight: 600; margin-top: 16px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Magento 2 Interface  (brand: #F26322 orange)
   ───────────────────────────────────────────────────────────────────────────── */

.m2-logo-big {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #F26322, #e04e00);
  color: #fff;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900;
  margin: 0 auto 12px;
}

.m2-connections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.m2-conn-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.m2-conn-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); transform: translateY(-1px); }

.m2-conn-stripe { height: 4px; background: linear-gradient(90deg, #F26322, #f7941d); }
.m2-conn-body { padding: 16px; }
.m2-conn-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }

.m2-badge {
  width: 44px; height: 36px;
  background: linear-gradient(135deg, #F26322, #e04e00);
  color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900;
  flex-shrink: 0;
}

.m2-conn-info { flex: 1; min-width: 0; }
.m2-conn-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m2-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.m2-test-result { margin-top: 10px; font-size: 12px; }
.m2-test-ok  { color: #166534; background: #dcfce7; border-radius: 6px; padding: 6px 10px; }
.m2-test-err { color: #991b1b; background: #fee2e2; border-radius: 6px; padding: 6px 10px; }

.m2-detail-panel {
  background: #fff8f5;
  border-top: 3px solid #F26322;
  padding: 20px 24px;
  animation: slideIn .15s ease-out;
}

.m2-status-badge {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600;
  border: 1px solid transparent; white-space: nowrap;
}

.m2-order-row { cursor: pointer; transition: background .1s; }
.m2-order-row:hover { background: rgba(242,99,34,.05); }

.m2-type-tag {
  display: inline-block;
  background: #fff7ed; color: #9a3412;
  border: 1px solid #fed7aa; border-radius: 4px;
  padding: 0 5px; font-size: 10px; font-weight: 600;
}

.m2-history-list { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.m2-history-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
}
.m2-history-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.m2-history-comment { font-size: 13px; color: var(--text-secondary); white-space: pre-wrap; }
.m2-notified-tag {
  display: inline-block;
  background: #dbeafe; color: #1e40af;
  border-radius: 10px; padding: 1px 7px;
  font-size: 10.5px; font-weight: 600;
}

/* ── Shopware 6 (blue mirror of the Magento 2 styling) ───────────────────────── */
.sw-logo-big {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #189eff, #0a6ed1);
  color: #fff;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900;
  margin: 0 auto 12px;
}

.sw-connections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.sw-conn-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.sw-conn-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); transform: translateY(-1px); }

.sw-conn-stripe { height: 4px; background: linear-gradient(90deg, #189eff, #57c1ff); }
.sw-conn-body { padding: 16px; }
.sw-conn-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }

.sw-badge {
  width: 44px; height: 36px;
  background: linear-gradient(135deg, #189eff, #0a6ed1);
  color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900;
  flex-shrink: 0;
}

.sw-conn-info { flex: 1; min-width: 0; }
.sw-conn-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.sw-test-result { margin-top: 10px; font-size: 12px; }
.sw-test-ok  { color: #166534; background: #dcfce7; border-radius: 6px; padding: 6px 10px; }
.sw-test-err { color: #991b1b; background: #fee2e2; border-radius: 6px; padding: 6px 10px; }

.sw-detail-panel {
  background: #f3f9ff;
  border-top: 3px solid #189eff;
  padding: 20px 24px;
  animation: slideIn .15s ease-out;
}

.sw-status-badge {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600;
  border: 1px solid transparent; white-space: nowrap;
}

.sw-order-row { cursor: pointer; transition: background .1s; }
.sw-order-row:hover { background: rgba(24,158,255,.05); }

.sw-type-tag {
  display: inline-block;
  background: #eff6ff; color: #1e40af;
  border: 1px solid #bfdbfe; border-radius: 4px;
  padding: 0 5px; font-size: 10px; font-weight: 600;
}

/* ── SHEIN (black brand) ─────────────────────────────────────────────────────── */
.sh-logo-big {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #1f2937, #000);
  color: #fff;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; letter-spacing: 1px;
  margin: 0 auto 12px;
}

.sh-connections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.sh-conn-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.sh-conn-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.10); transform: translateY(-1px); }

.sh-conn-stripe { height: 4px; background: linear-gradient(90deg, #000, #4b5563); }
.sh-conn-body { padding: 16px; }
.sh-conn-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }

.sh-badge {
  width: 44px; height: 36px;
  background: linear-gradient(135deg, #1f2937, #000);
  color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900;
  flex-shrink: 0;
}

.sh-conn-info { flex: 1; min-width: 0; }
.sh-conn-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.sh-test-result { margin-top: 10px; font-size: 12px; }
.sh-test-ok  { color: #166534; background: #dcfce7; border-radius: 6px; padding: 6px 10px; }
.sh-test-err { color: #991b1b; background: #fee2e2; border-radius: 6px; padding: 6px 10px; }

.sh-detail-panel {
  background: #f8fafc;
  border-top: 3px solid #000;
  padding: 20px 24px;
  animation: slideIn .15s ease-out;
}

.sh-status-badge {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600;
  border: 1px solid transparent; white-space: nowrap;
}

.sh-order-row { cursor: pointer; transition: background .1s; }
.sh-order-row:hover { background: rgba(0,0,0,.04); }

/* ── TikTok Shop (near-black + teal brand) ───────────────────────────────────── */
.tt-logo-big {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #010101, #EE1D52);
  color: #fff;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; letter-spacing: 1px;
  margin: 0 auto 12px;
}

.tt-connections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.tt-conn-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.tt-conn-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.10); transform: translateY(-1px); }

.tt-conn-stripe { height: 4px; background: linear-gradient(90deg, #010101, #EE1D52, #69C9D0); }
.tt-conn-body { padding: 16px; }
.tt-conn-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }

.tt-badge {
  width: 44px; height: 36px;
  background: linear-gradient(135deg, #010101, #EE1D52);
  color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900;
  flex-shrink: 0;
}

.tt-conn-info { flex: 1; min-width: 0; }
.tt-conn-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.tt-test-result { margin-top: 10px; font-size: 12px; }
.tt-test-ok  { color: #166534; background: #dcfce7; border-radius: 6px; padding: 6px 10px; }
.tt-test-err { color: #991b1b; background: #fee2e2; border-radius: 6px; padding: 6px 10px; }

.tt-detail-panel {
  background: #f9f9f9;
  border-top: 3px solid #010101;
  padding: 20px 24px;
  animation: slideIn .15s ease-out;
}

.tt-status-badge {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600;
  border: 1px solid transparent; white-space: nowrap;
}

.tt-order-row { cursor: pointer; transition: background .1s; }
.tt-order-row:hover { background: rgba(1,1,1,.04); }

/* ── AliExpress (orange brand) ───────────────────────────────────────────────── */
.ae-logo-big {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #FF6A00, #e55100);
  color: #fff;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; letter-spacing: 1px;
  margin: 0 auto 12px;
}

.ae-connections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.ae-conn-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.ae-conn-card:hover { box-shadow: 0 4px 20px rgba(255,106,0,.15); transform: translateY(-1px); }

.ae-conn-stripe { height: 4px; background: linear-gradient(90deg, #FF6A00, #e55100); }
.ae-conn-body { padding: 16px; }
.ae-conn-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }

.ae-badge {
  width: 44px; height: 36px;
  background: linear-gradient(135deg, #FF6A00, #e55100);
  color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900;
  flex-shrink: 0;
}

.ae-conn-info { flex: 1; min-width: 0; }
.ae-conn-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ae-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.ae-test-result { margin-top: 10px; font-size: 12px; }
.ae-test-ok  { color: #166534; background: #dcfce7; border-radius: 6px; padding: 6px 10px; }
.ae-test-err { color: #991b1b; background: #fee2e2; border-radius: 6px; padding: 6px 10px; }

.ae-detail-panel {
  background: #fff8f3;
  border-top: 3px solid #FF6A00;
  padding: 20px 24px;
  animation: slideIn .15s ease-out;
}

.ae-status-badge {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600;
  border: 1px solid transparent; white-space: nowrap;
}

.ae-order-row { cursor: pointer; transition: background .1s; }
.ae-order-row:hover { background: rgba(255,106,0,.05); }

/* ── AmeriCommerce ─────────────────────────────────────────────────────── */
.ac-logo-big {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #005BAC, #004a8f);
  color: #fff;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; letter-spacing: .5px;
}

.ac-conn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.ac-conn-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.ac-conn-card:hover { box-shadow: 0 4px 20px rgba(0,91,172,.15); transform: translateY(-1px); }

.ac-conn-stripe { height: 4px; background: linear-gradient(90deg, #005BAC, #004a8f); }
.ac-conn-body { padding: 16px; }
.ac-conn-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }

.ac-badge {
  width: 44px; height: 36px;
  background: linear-gradient(135deg, #005BAC, #004a8f);
  color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900;
  flex-shrink: 0;
}

.ac-conn-info { flex: 1; min-width: 0; }
.ac-conn-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.ac-view-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }

.ac-status-badge {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600;
  border: 1px solid transparent; white-space: nowrap;
}

.ac-detail-panel {
  background: #f0f6ff;
  border-top: 3px solid #005BAC;
  padding: 20px 24px;
  animation: slideIn .15s ease-out;
}

.ac-order-row { cursor: pointer; transition: background .1s; }
.ac-order-row:hover { background: rgba(0,91,172,.04); }

/* ── ACEShop ──────────────────────────────────────────────────────────── */
.ace-logo-big {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; letter-spacing: .5px;
}

.ace-conn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.ace-conn-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.ace-conn-card:hover { box-shadow: 0 4px 20px rgba(5,150,105,.15); transform: translateY(-1px); }

.ace-conn-stripe { height: 4px; background: linear-gradient(90deg, #059669, #047857); }
.ace-conn-body { padding: 16px; }
.ace-conn-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }

.ace-badge {
  width: 44px; height: 36px;
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900;
  flex-shrink: 0;
}

.ace-conn-info { flex: 1; min-width: 0; }
.ace-conn-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ace-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.ace-view-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }

.ace-status-badge {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600;
  border: 1px solid transparent; white-space: nowrap;
}

.ace-detail-panel {
  background: #f0fdf4;
  border-top: 3px solid #059669;
  padding: 20px 24px;
  animation: slideIn .15s ease-out;
}

.ace-order-row { cursor: pointer; transition: background .1s; }
.ace-order-row:hover { background: rgba(5,150,105,.05); }

/* ── Discogs (dg-*) ──────────────────────────────────────────────── */
.dg-logo-big {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, #F47C20, #d16a0e);
  color: #fff; font-size: 18px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}

.dg-conn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

.dg-conn-card {
  border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden;
  background: var(--bg-card); transition: box-shadow .2s;
}
.dg-conn-card:hover { box-shadow: 0 4px 18px rgba(244,124,32,.18); }

.dg-conn-stripe { height: 5px; background: linear-gradient(90deg, #F47C20, #d16a0e); }
.dg-conn-body   { padding: 16px; }
.dg-conn-top    { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

.dg-badge {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, #F47C20, #d16a0e);
  color: #fff; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.dg-conn-name   { font-weight: 700; font-size: 14px; }
.dg-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.dg-view-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }

.dg-status-badge {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600;
  border: 1px solid transparent; white-space: nowrap;
}

.dg-detail-panel {
  background: #fff8f2;
  border-top: 3px solid #F47C20;
  padding: 20px 24px;
  animation: slideIn .15s ease-out;
}

.dg-order-row { cursor: pointer; transition: background .1s; }
.dg-order-row:hover { background: rgba(244,124,32,.04); }

/* ── Big Cartel (bct-*) ──────────────────────────────────────────── */
.bct-logo-big {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, #0D9488, #0B7A70);
  color: #fff; font-size: 18px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.bct-conn-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.bct-conn-card  { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: var(--bg-card); transition: box-shadow .2s; }
.bct-conn-card:hover { box-shadow: 0 4px 18px rgba(13,148,136,.18); }
.bct-conn-stripe { height: 5px; background: linear-gradient(90deg, #0D9488, #0B7A70); }
.bct-conn-body   { padding: 16px; }
.bct-conn-top    { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.bct-badge { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #0D9488, #0B7A70); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bct-conn-name    { font-weight: 700; font-size: 14px; }
.bct-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.bct-view-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.bct-status-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.bct-detail-panel { background: #f0fdfa; border-top: 3px solid #0D9488; padding: 20px 24px; animation: slideIn .15s ease-out; }
.bct-order-row { cursor: pointer; transition: background .1s; }
.bct-order-row:hover { background: rgba(13,148,136,.05); }

/* ── BigCommerce (bco-*) ─────────────────────────────────────────── */
.bco-logo-big {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, #1D4ED8, #1e40af);
  color: #fff; font-size: 14px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.bco-conn-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.bco-conn-card  { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: var(--bg-card); transition: box-shadow .2s; }
.bco-conn-card:hover { box-shadow: 0 4px 18px rgba(29,78,216,.18); }
.bco-conn-stripe { height: 5px; background: linear-gradient(90deg, #1D4ED8, #1e40af); }
.bco-conn-body   { padding: 16px; }
.bco-conn-top    { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.bco-badge { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #1D4ED8, #1e40af); color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bco-conn-name    { font-weight: 700; font-size: 14px; }
.bco-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.bco-view-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.bco-status-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.bco-detail-panel { background: #eff6ff; border-top: 3px solid #1D4ED8; padding: 20px 24px; animation: slideIn .15s ease-out; }
.bco-order-row { cursor: pointer; transition: background .1s; }
.bco-order-row:hover { background: rgba(29,78,216,.04); }

/* ── Bol.com (bol-*) ─────────────────────────────────────────────── */
.bol-logo-big {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, #E86A0C, #c85e08);
  color: #fff; font-size: 15px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.bol-conn-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.bol-conn-card  { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: var(--bg-card); transition: box-shadow .2s; }
.bol-conn-card:hover { box-shadow: 0 4px 18px rgba(232,106,12,.18); }
.bol-conn-stripe { height: 5px; background: linear-gradient(90deg, #E86A0C, #c85e08); }
.bol-conn-body   { padding: 16px; }
.bol-conn-top    { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.bol-badge { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #E86A0C, #c85e08); color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bol-conn-name    { font-weight: 700; font-size: 14px; }
.bol-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.bol-view-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.bol-status-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.bol-detail-panel { background: #fff8f0; border-top: 3px solid #E86A0C; padding: 20px 24px; animation: slideIn .15s ease-out; }
.bol-order-row, .bol-inv-row { cursor: pointer; transition: background .1s; }
.bol-order-row:hover, .bol-inv-row:hover { background: rgba(232,106,12,.04); }
.bol-pagination { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 16px 0; }

/* ── BrickLink (bl-*) ────────────────────────────────────────────── */
.bl-logo-big {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, #C4261D, #9E1D16);
  color: #fff; font-size: 18px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.bl-conn-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.bl-conn-card  { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: var(--bg-card); transition: box-shadow .2s; }
.bl-conn-card:hover { box-shadow: 0 4px 18px rgba(196,38,29,.18); }
.bl-conn-stripe { height: 5px; background: linear-gradient(90deg, #C4261D, #9E1D16); }
.bl-conn-body   { padding: 16px; }
.bl-conn-top    { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.bl-badge { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #C4261D, #9E1D16); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bl-conn-name    { font-weight: 700; font-size: 14px; }
.bl-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.bl-view-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.bl-status-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.bl-detail-panel { background: #fff5f5; border-top: 3px solid #C4261D; padding: 20px 24px; animation: slideIn .15s ease-out; }
.bl-order-row, .bl-inv-row { cursor: pointer; transition: background .1s; }
.bl-order-row:hover, .bl-inv-row:hover { background: rgba(196,38,29,.04); }
.bl-pagination { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 16px 0; }

/* ── CommerceHQ (chq-*) ──────────────────────────────────────────── */
.chq-logo-big {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, #F57C00, #E65C00);
  color: #fff; font-size: 14px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.chq-conn-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.chq-conn-card  { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: var(--bg-card); transition: box-shadow .2s; }
.chq-conn-card:hover { box-shadow: 0 4px 18px rgba(245,124,0,.18); }
.chq-conn-stripe { height: 5px; background: linear-gradient(90deg, #F57C00, #E65C00); }
.chq-conn-body   { padding: 16px; }
.chq-conn-top    { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.chq-badge { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #F57C00, #E65C00); color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chq-conn-name    { font-weight: 700; font-size: 14px; }
.chq-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.chq-view-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.chq-status-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.chq-detail-panel { background: #fff8f0; border-top: 3px solid #F57C00; padding: 20px 24px; animation: slideIn .15s ease-out; }
.chq-order-row, .chq-product-row { cursor: pointer; transition: background .1s; }
.chq-order-row:hover, .chq-product-row:hover { background: rgba(245,124,0,.04); }
.chq-pagination { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 16px 0; }

/* ── CS-Cart (csc-*) ─────────────────────────────────────────────── */
.csc-logo-big {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, #1F82D6, #1567B0);
  color: #fff; font-size: 13px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.csc-conn-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.csc-conn-card  { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: var(--bg-card); transition: box-shadow .2s; }
.csc-conn-card:hover { box-shadow: 0 4px 18px rgba(31,130,214,.18); }
.csc-conn-stripe { height: 5px; background: linear-gradient(90deg, #1F82D6, #1567B0); }
.csc-conn-body   { padding: 16px; }
.csc-conn-top    { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.csc-badge { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #1F82D6, #1567B0); color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.csc-conn-name    { font-weight: 700; font-size: 14px; }
.csc-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.csc-view-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.csc-status-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.csc-detail-panel { background: #f0f6ff; border-top: 3px solid #1F82D6; padding: 20px 24px; animation: slideIn .15s ease-out; }
.csc-order-row, .csc-product-row { cursor: pointer; transition: background .1s; }
.csc-order-row:hover, .csc-product-row:hover { background: rgba(31,130,214,.04); }
.csc-pagination { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 16px 0; }

/* ── CubeCart (cc-*) ─────────────────────────────────────────────── */
.cc-logo-big {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, #00897B, #00695C);
  color: #fff; font-size: 16px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.cc-conn-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cc-conn-card  { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: var(--bg-card); transition: box-shadow .2s; }
.cc-conn-card:hover { box-shadow: 0 4px 18px rgba(0,137,123,.18); }
.cc-conn-stripe { height: 5px; background: linear-gradient(90deg, #00897B, #00695C); }
.cc-conn-body   { padding: 16px; }
.cc-conn-top    { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cc-badge { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #00897B, #00695C); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cc-conn-name    { font-weight: 700; font-size: 14px; }
.cc-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-view-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cc-status-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.cc-detail-panel { background: #f0fdfb; border-top: 3px solid #00897B; padding: 20px 24px; animation: slideIn .15s ease-out; }
.cc-order-row, .cc-product-row { cursor: pointer; transition: background .1s; }
.cc-order-row:hover, .cc-product-row:hover { background: rgba(0,137,123,.04); }
.cc-pagination { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 16px 0; }

/* ── Demandware / SFCC OCAPI (dw-*) ─────────────────────────────── */
.dw-logo-big {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, #1589EE, #0571D0);
  color: #fff; font-size: 16px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.dw-conn-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.dw-conn-card  { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: var(--bg-card); transition: box-shadow .2s; }
.dw-conn-card:hover { box-shadow: 0 4px 18px rgba(21,137,238,.18); }
.dw-conn-stripe { height: 5px; background: linear-gradient(90deg, #1589EE, #0571D0); }
.dw-conn-body   { padding: 16px; }
.dw-conn-top    { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.dw-badge { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #1589EE, #0571D0); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dw-conn-name    { font-weight: 700; font-size: 14px; }
.dw-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.dw-view-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dw-status-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.dw-detail-panel { background: #f0f7ff; border-top: 3px solid #1589EE; padding: 20px 24px; animation: slideIn .15s ease-out; }
.dw-order-row, .dw-product-row { cursor: pointer; transition: background .1s; }
.dw-order-row:hover, .dw-product-row:hover { background: rgba(21,137,238,.04); }
.dw-pagination { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 16px 0; }

/* ── Ecwid / Lightspeed E-Series (ecw-*) ────────────────────────── */
.ecw-logo-big {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, #3F51B5, #303F9F);
  color: #fff; font-size: 14px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.ecw-conn-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ecw-conn-card  { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: var(--bg-card); transition: box-shadow .2s; }
.ecw-conn-card:hover { box-shadow: 0 4px 18px rgba(63,81,181,.18); }
.ecw-conn-stripe { height: 5px; background: linear-gradient(90deg, #3F51B5, #303F9F); }
.ecw-conn-body   { padding: 16px; }
.ecw-conn-top    { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ecw-badge { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #3F51B5, #303F9F); color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ecw-conn-name    { font-weight: 700; font-size: 14px; }
.ecw-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ecw-view-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ecw-status-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.ecw-detail-panel { background: #f3f4ff; border-top: 3px solid #3F51B5; padding: 20px 24px; animation: slideIn .15s ease-out; }
.ecw-order-row, .ecw-product-row { cursor: pointer; transition: background .1s; }
.ecw-order-row:hover, .ecw-product-row:hover { background: rgba(63,81,181,.04); }
.ecw-pagination { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 16px 0; }

/* ── Etsy Open API v3 (ets-*) ────────────────────────────────────── */
.ets-logo-big {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, #F1641E, #D9521A);
  color: #fff; font-size: 18px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.ets-conn-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ets-conn-card  { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: var(--bg-card); transition: box-shadow .2s; }
.ets-conn-card:hover { box-shadow: 0 4px 18px rgba(241,100,30,.18); }
.ets-conn-stripe { height: 5px; background: linear-gradient(90deg, #F1641E, #D9521A); }
.ets-conn-body   { padding: 16px; }
.ets-conn-top    { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ets-badge { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #F1641E, #D9521A); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ets-conn-name    { font-weight: 700; font-size: 14px; }
.ets-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ets-view-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ets-status-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.ets-detail-panel { background: #fff7f4; border-top: 3px solid #F1641E; padding: 20px 24px; animation: slideIn .15s ease-out; }
.ets-order-row, .ets-listing-row { cursor: pointer; transition: background .1s; }
.ets-order-row:hover, .ets-listing-row:hover { background: rgba(241,100,30,.04); }
.ets-pagination { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 16px 0; }

/* ── Facebook Marketplace / Commerce API (fb-*) ─────────────────── */
.fb-logo-big {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, #1877F2, #0B5ED7);
  color: #fff; font-size: 18px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.fb-conn-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.fb-conn-card  { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: var(--bg-card); transition: box-shadow .2s; }
.fb-conn-card:hover { box-shadow: 0 4px 18px rgba(24,119,242,.18); }
.fb-conn-stripe { height: 5px; background: linear-gradient(90deg, #1877F2, #0B5ED7); }
.fb-conn-body   { padding: 16px; }
.fb-conn-top    { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.fb-badge { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #1877F2, #0B5ED7); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fb-conn-name    { font-weight: 700; font-size: 14px; }
.fb-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-view-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.fb-status-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.fb-detail-panel { background: #f0f5ff; border-top: 3px solid #1877F2; padding: 20px 24px; animation: slideIn .15s ease-out; }
.fb-order-row, .fb-product-row { cursor: pointer; transition: background .1s; }
.fb-order-row:hover, .fb-product-row:hover { background: rgba(24,119,242,.04); }
.fb-pagination { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 16px 0; }

/* ── Gambio (gmb-*) ──────────────────────────────────────────────── */
.gmb-logo-big {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, #2D6A99, #1E4E7A);
  color: #fff; font-size: 13px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.gmb-conn-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gmb-conn-card  { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: var(--bg-card); transition: box-shadow .2s; }
.gmb-conn-card:hover { box-shadow: 0 4px 18px rgba(45,106,153,.18); }
.gmb-conn-stripe { height: 5px; background: linear-gradient(90deg, #2D6A99, #1E4E7A); }
.gmb-conn-body   { padding: 16px; }
.gmb-conn-top    { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.gmb-badge { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #2D6A99, #1E4E7A); color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gmb-conn-name    { font-weight: 700; font-size: 14px; }
.gmb-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.gmb-view-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.gmb-status-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.gmb-detail-panel { background: #f0f7fc; border-top: 3px solid #2D6A99; padding: 20px 24px; animation: slideIn .15s ease-out; }
.gmb-order-row, .gmb-product-row { cursor: pointer; transition: background .1s; }
.gmb-order-row:hover, .gmb-product-row:hover { background: rgba(45,106,153,.04); }
.gmb-pagination { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 16px 0; }

/* ── Flipkart (fk-*) ─────────────────────────────────────────────── */
.fk-logo-big {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, #F37A20, #D96515);
  color: #fff; font-size: 16px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.fk-conn-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.fk-conn-card  { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: var(--bg-card); transition: box-shadow .2s; }
.fk-conn-card:hover { box-shadow: 0 4px 18px rgba(243,122,32,.18); }
.fk-conn-stripe { height: 5px; background: linear-gradient(90deg, #F37A20, #D96515); }
.fk-conn-body   { padding: 16px; }
.fk-conn-top    { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.fk-badge { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #F37A20, #D96515); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fk-conn-name    { font-weight: 700; font-size: 14px; }
.fk-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.fk-view-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.fk-status-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.fk-detail-panel { background: #fff7f0; border-top: 3px solid #F37A20; padding: 20px 24px; animation: slideIn .15s ease-out; }
.fk-order-row { cursor: pointer; transition: background .1s; }
.fk-order-row:hover { background: rgba(243,122,32,.04); }

/* ── JooCart (jc-*) ──────────────────────────────────────────────── */
.jc-logo-big {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, #7C3AED, #6D28D9);
  color: #fff; font-size: 14px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.jc-conn-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.jc-conn-card  { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: var(--bg-card); transition: box-shadow .2s; }
.jc-conn-card:hover { box-shadow: 0 4px 18px rgba(124,58,237,.18); }
.jc-conn-stripe { height: 5px; background: linear-gradient(90deg, #7C3AED, #6D28D9); }
.jc-conn-body   { padding: 16px; }
.jc-conn-top    { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.jc-badge { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #7C3AED, #6D28D9); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.jc-conn-name    { font-weight: 700; font-size: 14px; }
.jc-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.jc-view-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.jc-status-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.jc-detail-panel { background: #f5f3ff; border-top: 3px solid #7C3AED; padding: 20px 24px; animation: slideIn .15s ease-out; }
.jc-order-row, .jc-product-row { cursor: pointer; transition: background .1s; }
.jc-order-row:hover, .jc-product-row:hover { background: rgba(124,58,237,.04); }
.jc-pagination { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 16px 0; }

/* ── Jumpseller (jmp-*) ───────────────────────────────────────────── */
.jmp-logo-big {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, #0E7490, #0C5E73);
  color: #fff; font-size: 11px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.jmp-conn-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.jmp-conn-card  { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: var(--bg-card); transition: box-shadow .2s; }
.jmp-conn-card:hover { box-shadow: 0 4px 18px rgba(14,116,144,.18); }
.jmp-conn-stripe { height: 5px; background: linear-gradient(90deg, #0E7490, #0C5E73); }
.jmp-conn-body   { padding: 16px; }
.jmp-conn-top    { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.jmp-badge { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #0E7490, #0C5E73); color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.jmp-conn-name    { font-weight: 700; font-size: 14px; }
.jmp-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.jmp-view-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.jmp-status-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.jmp-detail-panel { background: #f0fbff; border-top: 3px solid #0E7490; padding: 20px 24px; animation: slideIn .15s ease-out; }
.jmp-order-row, .jmp-product-row { cursor: pointer; transition: background .1s; }
.jmp-order-row:hover, .jmp-product-row:hover { background: rgba(14,116,144,.04); }
.jmp-pagination { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 16px 0; }

/* ── Lazada Open Platform (lzd-*) ────────────────────────────────── */
.lzd-logo-big {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, #E11D48, #BE123C);
  color: #fff; font-size: 12px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.lzd-conn-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.lzd-conn-card  { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: var(--bg-card); transition: box-shadow .2s; }
.lzd-conn-card:hover { box-shadow: 0 4px 18px rgba(225,29,72,.18); }
.lzd-conn-stripe { height: 5px; background: linear-gradient(90deg, #E11D48, #BE123C); }
.lzd-conn-body   { padding: 16px; }
.lzd-conn-top    { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.lzd-badge { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #E11D48, #BE123C); color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lzd-conn-name    { font-weight: 700; font-size: 14px; }
.lzd-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.lzd-view-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.lzd-status-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.lzd-detail-panel { background: #fff1f4; border-top: 3px solid #E11D48; padding: 20px 24px; animation: slideIn .15s ease-out; }
.lzd-order-row, .lzd-product-row { cursor: pointer; transition: background .1s; }
.lzd-order-row:hover, .lzd-product-row:hover { background: rgba(225,29,72,.04); }
.lzd-pagination { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 16px 0; }

/* ── Bandcamp (bcp-*) ────────────────────────────────────────────── */
.bcp-logo-big {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, #1DA0C3, #167EA0);
  color: #fff; font-size: 12px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.bcp-conn-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.bcp-conn-card  { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: var(--bg-card); transition: box-shadow .2s; }
.bcp-conn-card:hover { box-shadow: 0 4px 18px rgba(29,160,195,.18); }
.bcp-conn-stripe { height: 5px; background: linear-gradient(90deg, #1DA0C3, #167EA0); }
.bcp-conn-body   { padding: 16px; }
.bcp-conn-top    { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.bcp-badge { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #1DA0C3, #167EA0); color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bcp-conn-name    { font-weight: 700; font-size: 14px; }
.bcp-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.bcp-view-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.bcp-type-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.bcp-detail-panel { background: #f0faff; border-top: 3px solid #1DA0C3; padding: 20px 24px; animation: slideIn .15s ease-out; }
.bcp-product-row { cursor: pointer; transition: background .1s; }
.bcp-product-row:hover { background: rgba(29,160,195,.04); }
.bcp-pagination { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 16px 0; }
.bcp-info-note { background: #f0faff; border: 1px solid #bae6fd; border-radius: 8px; padding: 12px 16px; font-size: 13px; color: #0c4a6e; margin-top: 16px; }
.bcp-unsupported { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 20px 24px; color: #92400e; font-size: 13.5px; line-height: 1.6; }

/* ── Hood.de (hd-*) ──────────────────────────────────────────────── */
.hd-logo-big {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, #E84F00, #C03F00);
  color: #fff; font-size: 16px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.hd-conn-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.hd-conn-card  { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: var(--bg-card); transition: box-shadow .2s; }
.hd-conn-card:hover { box-shadow: 0 4px 18px rgba(232,79,0,.18); }
.hd-conn-stripe { height: 5px; background: linear-gradient(90deg, #E84F00, #C03F00); }
.hd-conn-body   { padding: 16px; }
.hd-conn-top    { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hd-badge { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #E84F00, #C03F00); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hd-conn-name    { font-weight: 700; font-size: 14px; }
.hd-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.hd-view-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.hd-status-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.hd-detail-panel { background: #fff8f0; border-top: 3px solid #E84F00; padding: 20px 24px; animation: slideIn .15s ease-out; }
.hd-order-row, .hd-product-row { cursor: pointer; transition: background .1s; }
.hd-order-row:hover, .hd-product-row:hover { background: rgba(232,79,0,.04); }
.hd-pagination { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 16px 0; }
.fk-pagination { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 16px 0; }

/* ── Billbee (bb-*) ──────────────────────────────────────────────── */
.bb-logo-big {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, #3CB14A, #2D8A39);
  color: #fff; font-size: 16px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.bb-conn-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.bb-conn-card  { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: var(--bg-card); transition: box-shadow .2s; }
.bb-conn-card:hover { box-shadow: 0 4px 18px rgba(60,177,74,.18); }
.bb-conn-stripe { height: 5px; background: linear-gradient(90deg, #3CB14A, #2D8A39); }
.bb-conn-body   { padding: 16px; }
.bb-conn-top    { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.bb-badge { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #3CB14A, #2D8A39); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bb-conn-name    { font-weight: 700; font-size: 14px; }
.bb-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.bb-view-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.bb-status-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.bb-detail-panel { background: #f0fdf4; border-top: 3px solid #3CB14A; padding: 20px 24px; animation: slideIn .15s ease-out; }
.bb-order-row, .bb-product-row { cursor: pointer; transition: background .1s; }
.bb-order-row:hover, .bb-product-row:hover { background: rgba(60,177,74,.04); }
.bb-pagination { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 16px 0; }
.bb-ext-id { font-size: 11px; color: #6b7280; }

/* ── Lightspeed eCom (ls-*) ──────────────────────────────────────── */
.ls-logo-big {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, #FF6B35, #E55320);
  color: #fff; font-size: 16px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.ls-conn-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ls-conn-card  { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: var(--bg-card); transition: box-shadow .2s; }
.ls-conn-card:hover { box-shadow: 0 4px 18px rgba(255,107,53,.18); }
.ls-conn-stripe { height: 5px; background: linear-gradient(90deg, #FF6B35, #E55320); }
.ls-conn-body   { padding: 16px; }
.ls-conn-top    { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ls-badge { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #FF6B35, #E55320); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ls-conn-name    { font-weight: 700; font-size: 14px; }
.ls-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ls-view-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ls-status-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.ls-detail-panel { background: #fff8f5; border-top: 3px solid #FF6B35; padding: 20px 24px; animation: slideIn .15s ease-out; }
.ls-order-row, .ls-product-row { cursor: pointer; transition: background .1s; }
.ls-order-row:hover, .ls-product-row:hover { background: rgba(255,107,53,.04); }
.ls-pagination { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 16px 0; }
.ls-tracking-note { background: #fffbf5; border: 1px solid #fed7aa; border-radius: 8px; padding: 10px 14px; font-size: 12.5px; color: #9a3412; margin-top: 12px; }
.ls-variants-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.ls-variants-table th { background: #fff7ed; padding: 6px 10px; text-align: left; font-weight: 600; }
.ls-variants-table td { padding: 6px 10px; border-bottom: 1px solid #f3f4f6; }

/* ── Loaded Commerce (lco-*) ─────────────────────────────────────── */
.lco-logo-big {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #fff; font-size: 16px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.lco-conn-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.lco-conn-card  { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: var(--bg-card); transition: box-shadow .2s; }
.lco-conn-card:hover { box-shadow: 0 4px 18px rgba(245,158,11,.18); }
.lco-conn-stripe { height: 5px; background: linear-gradient(90deg, #F59E0B, #D97706); }
.lco-conn-body   { padding: 16px; }
.lco-conn-top    { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.lco-badge { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #F59E0B, #D97706); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lco-conn-name    { font-weight: 700; font-size: 14px; }
.lco-conn-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.lco-view-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.lco-status-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.lco-detail-panel { background: #fffbeb; border-top: 3px solid #F59E0B; padding: 20px 24px; animation: slideIn .15s ease-out; }
.lco-order-row, .lco-product-row { cursor: pointer; transition: background .1s; }
.lco-order-row:hover, .lco-product-row:hover { background: rgba(245,158,11,.04); }
.lco-pagination { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 16px 0; }

/* ── Magento 1 (m1-*) ────────────────────────────────────────────── */
.m1-logo-big { width:64px;height:64px;border-radius:16px;background:linear-gradient(135deg,#EF5A20,#CC4918);color:#fff;font-size:16px;font-weight:900;display:flex;align-items:center;justify-content:center; }
.m1-conn-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px; }
.m1-conn-card { border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;background:var(--bg-card);transition:box-shadow .2s; }
.m1-conn-card:hover { box-shadow:0 4px 18px rgba(239,90,32,.18); }
.m1-conn-stripe { height:5px;background:linear-gradient(90deg,#EF5A20,#CC4918); }
.m1-conn-body { padding:16px; }
.m1-conn-top { display:flex;align-items:center;gap:12px;margin-bottom:14px; }
.m1-badge { width:36px;height:36px;border-radius:9px;background:linear-gradient(135deg,#EF5A20,#CC4918);color:#fff;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.m1-conn-name { font-weight:700;font-size:14px; }
.m1-conn-actions { display:flex;flex-wrap:wrap;gap:6px; }
.m1-view-header { display:flex;align-items:center;justify-content:space-between;margin-bottom:18px; }
.m1-status-badge { display:inline-flex;align-items:center;padding:2px 9px;border-radius:20px;font-size:11.5px;font-weight:600;border:1px solid transparent;white-space:nowrap; }
.m1-detail-panel { background:#fff7f4;border-top:3px solid #EF5A20;padding:20px 24px;animation:slideIn .15s ease-out; }
.m1-order-row,.m1-product-row { cursor:pointer;transition:background .1s; }
.m1-order-row:hover,.m1-product-row:hover { background:rgba(239,90,32,.04); }
.m1-pagination { display:flex;align-items:center;gap:12px;justify-content:center;padding:16px 0; }
.m1-soap-note { background:#fff7ed;border:1px solid #fed7aa;border-radius:8px;padding:10px 14px;font-size:12.5px;color:#9a3412;margin-top:8px; }

/* ── MijoShop (mjs-*) ────────────────────────────────────────────── */
.mjs-logo-big { width:64px;height:64px;border-radius:16px;background:linear-gradient(135deg,#6D28D9,#5B21B6);color:#fff;font-size:14px;font-weight:900;display:flex;align-items:center;justify-content:center; }
.mjs-conn-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px; }
.mjs-conn-card { border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;background:var(--bg-card);transition:box-shadow .2s; }
.mjs-conn-card:hover { box-shadow:0 4px 18px rgba(109,40,217,.18); }
.mjs-conn-stripe { height:5px;background:linear-gradient(90deg,#6D28D9,#5B21B6); }
.mjs-conn-body { padding:16px; }
.mjs-conn-top { display:flex;align-items:center;gap:12px;margin-bottom:14px; }
.mjs-badge { width:36px;height:36px;border-radius:9px;background:linear-gradient(135deg,#6D28D9,#5B21B6);color:#fff;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.mjs-conn-name { font-weight:700;font-size:14px; }
.mjs-conn-actions { display:flex;flex-wrap:wrap;gap:6px; }
.mjs-view-header { display:flex;align-items:center;justify-content:space-between;margin-bottom:18px; }
.mjs-status-badge { display:inline-flex;align-items:center;padding:2px 9px;border-radius:20px;font-size:11.5px;font-weight:600;border:1px solid transparent;white-space:nowrap; }
.mjs-detail-panel { background:#f5f3ff;border-top:3px solid #6D28D9;padding:20px 24px;animation:slideIn .15s ease-out; }
.mjs-order-row,.mjs-product-row { cursor:pointer;transition:background .1s; }
.mjs-order-row:hover,.mjs-product-row:hover { background:rgba(109,40,217,.04); }
.mjs-pagination { display:flex;align-items:center;gap:12px;justify-content:center;padding:16px 0; }

/* ── Mercado Libre (ml-*) ────────────────────────────────────────── */
.ml-logo-big { width:64px;height:64px;border-radius:16px;background:linear-gradient(135deg,#3483FA,#2967D6);color:#fff;font-size:14px;font-weight:900;display:flex;align-items:center;justify-content:center; }
.ml-conn-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px; }
.ml-conn-card { border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;background:var(--bg-card);transition:box-shadow .2s; }
.ml-conn-card:hover { box-shadow:0 4px 18px rgba(52,131,250,.18); }
.ml-conn-stripe { height:5px;background:linear-gradient(90deg,#3483FA,#2967D6); }
.ml-conn-body { padding:16px; }
.ml-conn-top { display:flex;align-items:center;gap:12px;margin-bottom:14px; }
.ml-badge { width:36px;height:36px;border-radius:9px;background:linear-gradient(135deg,#3483FA,#2967D6);color:#fff;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.ml-conn-name { font-weight:700;font-size:14px; }
.ml-conn-actions { display:flex;flex-wrap:wrap;gap:6px; }
.ml-view-header { display:flex;align-items:center;justify-content:space-between;margin-bottom:18px; }
.ml-status-badge { display:inline-flex;align-items:center;padding:2px 9px;border-radius:20px;font-size:11.5px;font-weight:600;border:1px solid transparent;white-space:nowrap; }
.ml-detail-panel { background:#f0f6ff;border-top:3px solid #3483FA;padding:20px 24px;animation:slideIn .15s ease-out; }
.ml-order-row,.ml-product-row { cursor:pointer;transition:background .1s; }
.ml-order-row:hover,.ml-product-row:hover { background:rgba(52,131,250,.04); }
.ml-pagination { display:flex;align-items:center;gap:12px;justify-content:center;padding:16px 0; }
.ml-tracking-note { background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;padding:10px 14px;font-size:12.5px;color:#1e40af;margin-top:8px; }

/* ── Miva Merchant (mv-*) ────────────────────────────────────────── */
.mv-logo-big { width:64px;height:64px;border-radius:16px;background:linear-gradient(135deg,#1565C0,#0D47A1);color:#fff;font-size:14px;font-weight:900;display:flex;align-items:center;justify-content:center; }
.mv-conn-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px; }
.mv-conn-card { border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;background:var(--bg-card);transition:box-shadow .2s; }
.mv-conn-card:hover { box-shadow:0 4px 18px rgba(21,101,192,.18); }
.mv-conn-stripe { height:5px;background:linear-gradient(90deg,#1565C0,#0D47A1); }
.mv-conn-body { padding:16px; }
.mv-conn-top { display:flex;align-items:center;gap:12px;margin-bottom:14px; }
.mv-badge { width:36px;height:36px;border-radius:9px;background:linear-gradient(135deg,#1565C0,#0D47A1);color:#fff;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.mv-conn-name { font-weight:700;font-size:14px; }
.mv-conn-actions { display:flex;flex-wrap:wrap;gap:6px; }
.mv-view-header { display:flex;align-items:center;justify-content:space-between;margin-bottom:18px; }
.mv-status-badge { display:inline-flex;align-items:center;padding:2px 9px;border-radius:20px;font-size:11.5px;font-weight:600;border:1px solid transparent;white-space:nowrap; }
.mv-detail-panel { background:#f0f5ff;border-top:3px solid #1565C0;padding:20px 24px;animation:slideIn .15s ease-out; }
.mv-order-row,.mv-product-row { cursor:pointer;transition:background .1s; }
.mv-order-row:hover,.mv-product-row:hover { background:rgba(21,101,192,.04); }
.mv-pagination { display:flex;align-items:center;gap:12px;justify-content:center;padding:16px 0; }

/* ── Neto / Maropost (nto-*) ─────────────────────────────────────── */
.nto-logo-big { width:64px;height:64px;border-radius:16px;background:linear-gradient(135deg,#0097A7,#00838F);color:#fff;font-size:14px;font-weight:900;display:flex;align-items:center;justify-content:center; }
.nto-conn-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px; }
.nto-conn-card { border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;background:var(--bg-card);transition:box-shadow .2s; }
.nto-conn-card:hover { box-shadow:0 4px 18px rgba(0,151,167,.18); }
.nto-conn-stripe { height:5px;background:linear-gradient(90deg,#0097A7,#00838F); }
.nto-conn-body { padding:16px; }
.nto-conn-top { display:flex;align-items:center;gap:12px;margin-bottom:14px; }
.nto-badge { width:36px;height:36px;border-radius:9px;background:linear-gradient(135deg,#0097A7,#00838F);color:#fff;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.nto-conn-name { font-weight:700;font-size:14px; }
.nto-conn-actions { display:flex;flex-wrap:wrap;gap:6px; }
.nto-view-header { display:flex;align-items:center;justify-content:space-between;margin-bottom:18px; }
.nto-status-badge { display:inline-flex;align-items:center;padding:2px 9px;border-radius:20px;font-size:11.5px;font-weight:600;border:1px solid transparent;white-space:nowrap; }
.nto-detail-panel { background:#f0fbfc;border-top:3px solid #0097A7;padding:20px 24px;animation:slideIn .15s ease-out; }
.nto-order-row,.nto-product-row { cursor:pointer;transition:background .1s; }
.nto-order-row:hover,.nto-product-row:hover { background:rgba(0,151,167,.04); }
.nto-pagination { display:flex;align-items:center;gap:12px;justify-content:center;padding:16px 0; }

/* ── nopCommerce (npc-*) ─────────────────────────────────────────── */
.npc-logo-big { width:64px;height:64px;border-radius:16px;background:linear-gradient(135deg,#5C6BC0,#3F4BAF);color:#fff;font-size:14px;font-weight:900;display:flex;align-items:center;justify-content:center; }
.npc-conn-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px; }
.npc-conn-card { border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;background:var(--bg-card);transition:box-shadow .2s; }
.npc-conn-card:hover { box-shadow:0 4px 18px rgba(92,107,192,.18); }
.npc-conn-stripe { height:5px;background:linear-gradient(90deg,#5C6BC0,#3F4BAF); }
.npc-conn-body { padding:16px; }
.npc-conn-top { display:flex;align-items:center;gap:12px;margin-bottom:14px; }
.npc-badge { width:36px;height:36px;border-radius:9px;background:linear-gradient(135deg,#5C6BC0,#3F4BAF);color:#fff;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.npc-conn-name { font-weight:700;font-size:14px; }
.npc-conn-actions { display:flex;flex-wrap:wrap;gap:6px; }
.npc-view-header { display:flex;align-items:center;justify-content:space-between;margin-bottom:18px; }
.npc-status-badge { display:inline-flex;align-items:center;padding:2px 9px;border-radius:20px;font-size:11.5px;font-weight:600;border:1px solid transparent;white-space:nowrap; }
.npc-detail-panel { background:#f4f5ff;border-top:3px solid #5C6BC0;padding:20px 24px;animation:slideIn .15s ease-out; }
.npc-order-row,.npc-product-row { cursor:pointer;transition:background .1s; }
.npc-order-row:hover,.npc-product-row:hover { background:rgba(92,107,192,.04); }
.npc-pagination { display:flex;align-items:center;gap:12px;justify-content:center;padding:16px 0; }
.npc-unsupported-note { background:#f4f5ff;border:1px solid #c5cae9;border-radius:8px;padding:10px 14px;font-size:12.5px;color:#3949ab;margin-top:8px; }

/* ── Collapsible sidebar sections ────────────────────────────────────────── */
.sidebar-section.collapsible {
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 14px;
}
.sidebar-section.collapsible:hover { color: #cbd5e1; }
.section-arrow {
  font-size: 10px;
  opacity: .6;
  display: inline-block;
  transition: transform .2s ease;
  transform: rotate(90deg); /* › pointing down = open */
}
.sidebar-section.collapsible.sec-collapsed .section-arrow {
  transform: rotate(0deg); /* › pointing right = closed */
}
.collapsible-nav {
  overflow: hidden;
  max-height: 1400px;
  opacity: 1;
  transition: max-height .3s ease, opacity .2s ease;
}
.collapsible-nav.nav-hidden {
  max-height: 0;
  opacity: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE / MOBILE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hamburger button (hidden on desktop) ────────────────────────────────── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px;
  border-radius: 6px;
  color: var(--text);
  margin-right: 4px;
}
.hamburger-btn:hover { background: var(--bg); }
.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
body.sidebar-open .hamburger-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.sidebar-open .hamburger-btn span:nth-child(2) { opacity: 0; transform: scaleX(0); }
body.sidebar-open .hamburger-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Sidebar backdrop ────────────────────────────────────────────────────── */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
}
body.sidebar-open .sidebar-backdrop { display: block; }

/* ── Mobile layout (≤ 767px) ─────────────────────────────────────────────── */
@media (max-width: 767px) {

  /* Global layout: sidebar off-canvas */
  body { display: block; }
  .main { margin-left: 0; }

  /* Sidebar: slide-in drawer */
  .sidebar {
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    z-index: 300;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.sidebar-open .sidebar { transform: translateX(0); }

  /* Topbar */
  .hamburger-btn { display: flex; }
  .topbar { padding: 0 14px; }
  .topbar-title {
    flex: 1;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60vw;
  }
  .topbar-actions { gap: 6px; }

  /* Content area */
  .content { padding: 14px; }

  /* ── Grids ── */
  /* Named connection grids */
  .connections-grid { grid-template-columns: 1fr; }
  /* All channel-specific conn grids (wc, sf, amz, ebay, etc.) */
  [class*="-conn-grid"],
  [class*="-connections-grid"] { grid-template-columns: 1fr !important; }

  /* Stat cards: 2-column */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
  .stat-card { padding: 14px; }
  .stat-card .value { font-size: 22px; }

  /* Forms: single column */
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Channel picker: smaller items */
  .channel-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }

  /* ── Modal: bottom sheet ── */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal {
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    max-width: none;
    width: 100%;
  }
  .modal-header { padding: 18px 20px 14px; }
  .modal-body   { padding: 16px 20px; }
  .modal-footer { padding: 12px 20px; }
  @keyframes modal-in {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: none; opacity: 1; }
  }

  /* ── Tables ── */
  thead th { padding: 8px 10px; font-size: 10px; }
  tbody td  { padding: 8px 10px; font-size: 12px; }

  /* ── Filters ── */
  .filters { gap: 6px; }
  .filters select,
  .filters input { flex: 1 1 100px; min-width: 0; }

  /* ── Panel / Detail ── */
  .panel-header { padding: 12px 14px; }
  .panel-body   { padding: 14px; }
  .detail-header { gap: 10px; margin-bottom: 14px; }

  /* ── Credentials ── */
  .cred-row { flex-wrap: wrap; gap: 4px; }
  .cred-key { width: 100%; margin-bottom: 2px; }
  .settings-kv { grid-template-columns: auto 1fr; }

  /* ── Section header ── */
  .section-header { flex-wrap: wrap; gap: 8px; }
  .section-header h2 { font-size: 14px; }

  /* ── Empty & loader ── */
  .empty-state { padding: 40px 16px; }
  .loader-center { padding: 40px 16px; }

  /* ── Toast ── */
  #toast { left: 12px; right: 12px; bottom: 12px; }
  .toast-item { max-width: none; min-width: 0; }

  /* ── Wizard steps: allow wrap ── */
  .wizard-steps { flex-wrap: wrap; }
  .step { flex: 1 1 80px; }

  /* ── Buttons ── */
  .btn-sm { padding: 7px 12px; }
}

/* ── Tablet (768–1023px): narrower sidebar, tighter content ──────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  :root { --sidebar-w: 210px; }
  .content { padding: 20px; }
  .connections-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}
