/**
 * AfriRegions Admin — Minimal CSS
 *
 * Only styles that WordPress admin doesn't provide natively.
 * Uses CSS custom properties for easy theming.
 */

/* =================================================================
 * 0. DESIGN TOKENS
 * ================================================================= */

:root {
  --scpwoo-accent: #C2703E;
  --scpwoo-accent-hover: #a85c2e;
  --scpwoo-success: #2e7d47;
  --scpwoo-error: #c0392b;
  --scpwoo-warning: #9a6600;
  --scpwoo-text: #1e1e1e;
  --scpwoo-text-light: #1d2327;
  --scpwoo-text-muted: #1d2327;
  --scpwoo-border: #c3c4c7;
  --scpwoo-border-light: #dcdcde;
  --scpwoo-bg: #f7f7f7;
  --scpwoo-bg-hover: #efefef;
  --scpwoo-accent-tint: #fdf6f2;
  --scpwoo-success-tint: #f0f7f2;
  --scpwoo-error-tint: #fdf1f0;
  --scpwoo-warning-tint: #fef9ec;
  --scpwoo-info-tint: #e8f0fe;
  --scpwoo-info: #2271b1;
  --scpwoo-sh: none;
  --scpwoo-sh-md: none;
  --scpwoo-r: 3px;
  --scpwoo-rl: 4px;
  /* Header light band */
  --scpwoo-header-bg: #fff;
  --scpwoo-header-text: #1e1e1e;
  --scpwoo-header-text-muted: #1d2327;
  --scpwoo-header-text-dim: #5e5e5e;
  --scpwoo-header-border: rgba(0,0,0,0.08);
  --scpwoo-header-hover-bg: rgba(0,0,0,0.04);
  --scpwoo-header-hover-bg-strong: rgba(0,0,0,0.08);
  --scpwoo-header-divider: rgba(0,0,0,0.10);
}

/* =================================================================
 * 0.5 BUTTONS — accent color on WP native button-primary
 * ================================================================= */

#scpwoo-wrap .button-primary,
#scpwoo-wrap .button-primary:visited {
  background: var(--scpwoo-accent);
  border-color: var(--scpwoo-accent-hover);
  color: #fff;
}

#scpwoo-wrap .button-primary:hover,
#scpwoo-wrap .button-primary:focus,
#scpwoo-wrap .button-primary:active {
  background: var(--scpwoo-accent-hover);
  border-color: var(--scpwoo-accent-hover);
  color: #fff;
}

/* =================================================================
 * 0.6 TYPOGRAPHY
 * ================================================================= */

#scpwoo-wrap h1,
#scpwoo-wrap h2,
#scpwoo-wrap h3,
#scpwoo-wrap h4 { font-size: 16px; }

#scpwoo-wrap p { font-size: 15px; }

/* =================================================================
 * 0.7 FULL-WIDTH CONTENT
 * ================================================================= */

#scpwoo-wrap.scpwoo-wrap {
  max-width: 100%;
}

.scpwoo-tab-content {
  max-width: 100%;
}

/* =================================================================
 * 1. HEADER
 * ================================================================= */

.scpwoo-header-block {
  background: var(--scpwoo-header-bg);
  border-top: none;
  border-bottom: 1px solid var(--scpwoo-header-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin: -10px -20px 20px;
  padding: 0;
}

.scpwoo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 100%;
}

.scpwoo-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.scpwoo-header-logo {
  height: 36px;
  width: auto;
}

.scpwoo-header-tagline {
  font-size: 0.875rem;
  color: var(--scpwoo-header-text-muted);
  border-left: 1px solid var(--scpwoo-header-divider);
  padding-left: 14px;
  line-height: 1.3;
}

.scpwoo-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}



/* Tabs inside dark header block */
.scpwoo-header-block .nav-tab-wrapper {
  border-top: 1px solid var(--scpwoo-header-border);
  border-bottom: none;
  margin: 0;
  padding: 0 16px;
  background: transparent;
}

/* Override WP's default 1px bottom border on the nav-tab-wrapper */
#scpwoo-wrap .scpwoo-header-block .nav-tab-wrapper.nav-tab-wrapper {
  border-bottom: none;
}

.scpwoo-header-block .nav-tab {
  background: transparent;
  border-color: transparent;
  color: var(--scpwoo-header-text-dim);
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}

.scpwoo-header-block .nav-tab:hover {
  background: var(--scpwoo-header-hover-bg);
  color: var(--scpwoo-header-text);
  border-color: transparent;
  border-bottom-color: var(--scpwoo-header-tab-active-underline);
}

.scpwoo-header-block .nav-tab-active,
.scpwoo-header-block .nav-tab-active:hover,
.scpwoo-header-block .nav-tab-active:focus,
.scpwoo-header-block .nav-tab-active:focus-visible {
  background: transparent;
  color: var(--scpwoo-accent);
  border-color: transparent;
  border-bottom: 3px solid var(--scpwoo-accent);
  box-shadow: none;
  outline: none;
}

.scpwoo-header-block .nav-tab:focus,
.scpwoo-header-block .nav-tab:focus-visible {
  box-shadow: none;
  outline: none;
}

/* =================================================================
 * 2. TABS — Accent color on WP native elements
 * ================================================================= */

.scpwoo-wrap .nav-tab-wrapper {
  margin-top: 0;
  padding-top: 0;
}

.scpwoo-wrap .nav-tab-active {
  border-bottom-color: var(--scpwoo-accent);
  color: var(--scpwoo-accent);
}

.scpwoo-wrap .nav-tab:focus,
.scpwoo-wrap .nav-tab:focus-visible {
  box-shadow: none;
  outline: none;
}

/* =================================================================
 * 2. SIDEBAR LAYOUT
 * ================================================================= */

.scpwoo-layout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 0;
}

.scpwoo-sidebar {
  width: 200px;
  min-width: 200px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--scpwoo-border);
  border-radius: var(--scpwoo-r);
  overflow: hidden;
  position: sticky;
  top: 40px;
}

.scpwoo-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--scpwoo-text);
  text-decoration: none;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--scpwoo-bg-hover);
  border-top: none;
  border-right: none;
  background: transparent;
  margin: 0;
  float: none;
  line-height: 1.4;
  transition: background 0.12s, color 0.12s;
}

a.scpwoo-sidebar-item:last-of-type {
  border-bottom: none;
}

.scpwoo-sidebar-item .dashicons {
  color: var(--scpwoo-text-muted);
  font-size: 16px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0;
  transition: color 0.12s;
}

.scpwoo-sidebar-item:hover {
  background: var(--scpwoo-bg) !important;
  color: var(--scpwoo-info) !important;
  border-left-color: var(--scpwoo-border-light) !important;
  border-bottom-color: var(--scpwoo-bg-hover) !important;
  text-decoration: none;
}

.scpwoo-sidebar-item:hover .dashicons {
  color: var(--scpwoo-info);
}

.scpwoo-sidebar-item.nav-tab-active,
.scpwoo-sidebar-item.nav-tab-active:hover,
.scpwoo-sidebar-item.nav-tab-active:focus {
  background: var(--scpwoo-info-tint) !important;
  color: var(--scpwoo-info) !important;
  border-left-color: var(--scpwoo-info) !important;
  border-bottom-color: var(--scpwoo-bg-hover) !important;
  font-weight: 600;
  box-shadow: none;
}

.scpwoo-sidebar-item.nav-tab-active .dashicons,
.scpwoo-sidebar-item.nav-tab-active:hover .dashicons {
  color: var(--scpwoo-info);
}

.scpwoo-sidebar-item:focus,
.scpwoo-sidebar-item:focus-visible {
  outline: 2px solid var(--scpwoo-info);
  outline-offset: -2px;
  box-shadow: none;
}

.scpwoo-sidebar-footer {
  border-top: 1px solid var(--scpwoo-bg-hover);
}

.scpwoo-sidebar-footer .scpwoo-sidebar-item {
  border-bottom: 1px solid var(--scpwoo-bg-hover);
}

.scpwoo-sidebar-footer .scpwoo-sidebar-item:last-of-type {
  border-bottom: none;
}

.scpwoo-sidebar-version {
  font-size: 11px;
  color: var(--scpwoo-border);
  margin: 0;
  padding: 6px 16px 8px;
  font-family: monospace;
}

/* =================================================================
 * 2.5 PAGE WRAPPERS & TAB CONTENT
 * ================================================================= */

.scpwoo-tab-content { flex: 1; min-width: 0; max-width: 100%; }
.scpwoo-dash, .scpwoo-admin-wrap, .scpwoo-settings-page, .scpwoo-analytics { max-width: 100%; }

.scpwoo-tab-content.scpwoo-loading {
  opacity: 0.4;
  pointer-events: none;
  min-height: 100px;
}

/* Description text under tab content */
.scpwoo-desc {
  color: var(--scpwoo-text-light);
  font-size: 14px;
  margin: 0 0 16px;
}

/* =================================================================
 * 3. GEODATA — Accordion
 * ================================================================= */

.scpwoo-geodata-search {
  margin-bottom: 12px;
}
.scpwoo-geodata-search input {
  width: 260px;
  padding: 8px 12px;
  border: 1px solid var(--scpwoo-border);
  border-radius: var(--scpwoo-r);
  font-size: 14px;
}

.scpwoo-regions-accordion { margin-top: 12px; }

.scpwoo-region {
  background: #fff;
  border: 1px solid var(--scpwoo-border);
  margin-bottom: -1px;
}

.scpwoo-region:first-child { border-radius: var(--scpwoo-r) var(--scpwoo-r) 0 0; }
.scpwoo-region:last-child { border-radius: 0 0 var(--scpwoo-r) var(--scpwoo-r); }
.scpwoo-region:only-child { border-radius: var(--scpwoo-r); }

.scpwoo-region-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
}

.scpwoo-region-header:hover { background: var(--scpwoo-bg); }
.scpwoo-region-header strong { font-size: 14px; }
.scpwoo-region-code { color: var(--scpwoo-text-muted); font-size: 13px; }

.scpwoo-count {
  margin-left: auto;
  color: var(--scpwoo-text-muted);
  font-size: 13px;
  background: var(--scpwoo-bg-hover);
  padding: 2px 8px;
  border-radius: 10px;
}

.scpwoo-toggle-icon {
  color: var(--scpwoo-text-muted);
  font-size: 18px;
  width: 18px;
  height: 18px;
  transition: transform 0.15s;
}

.scpwoo-region-body {
  border-top: 1px solid var(--scpwoo-border);
  padding: 16px;
  background: var(--scpwoo-bg);
}

/* Add form */
.scpwoo-add-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.scpwoo-add-form input[type="text"] {
  flex: 1;
  max-width: 280px;
}

.scpwoo-add-form-sm { margin-bottom: 8px; padding-left: 24px; }
.scpwoo-add-form-sm input[type="text"] { max-width: 240px; }

/* Cities list */
.scpwoo-cities-list { display: flex; flex-direction: column; gap: 4px; }

.scpwoo-city {
  background: #fff;
  border: 1px solid var(--scpwoo-border);
  border-radius: var(--scpwoo-r);
}

.scpwoo-city-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  cursor: pointer;
}

.scpwoo-city-header:hover { background: var(--scpwoo-bg); }

.scpwoo-hood-count { color: var(--scpwoo-text-muted); font-size: 13px; margin-left: auto; }

/* Delete buttons */
.scpwoo-delete-city,
.scpwoo-delete-neighborhood {
  color: var(--scpwoo-error) !important;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
  padding: 2px 6px;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.scpwoo-city-header:hover .scpwoo-delete-city,
.scpwoo-neighborhoods-list li:hover .scpwoo-delete-neighborhood { opacity: 1; }
.scpwoo-delete-city:focus-visible,
.scpwoo-delete-neighborhood:focus-visible { opacity: 1; }
.scpwoo-delete-city:hover,
.scpwoo-delete-neighborhood:hover { background: var(--scpwoo-error-tint); border-radius: 4px; }

/* Neighborhoods */
.scpwoo-neighborhoods { padding: 12px 12px 12px 32px; border-top: 1px solid var(--scpwoo-bg-hover); background: var(--scpwoo-bg); }
.scpwoo-neighborhoods-list { list-style: none; margin: 0; padding: 0; }

.scpwoo-neighborhoods-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
}

.scpwoo-neighborhoods-list li:hover { background: var(--scpwoo-bg-hover); }
.scpwoo-hood-name { flex: 1; }

/* Badges */
.scpwoo-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.scpwoo-badge-default { background: var(--scpwoo-bg-hover); color: var(--scpwoo-text-light); }
.scpwoo-badge-custom  { background: var(--scpwoo-bg-hover); color: var(--scpwoo-text-light); }
.scpwoo-badge-success,
.scpwoo-badge-ok      { background: var(--scpwoo-bg-hover); color: var(--scpwoo-text-light); }
.scpwoo-badge-error   { background: var(--scpwoo-bg-hover); color: var(--scpwoo-text-light); }
.scpwoo-badge-warning { background: var(--scpwoo-bg-hover); color: var(--scpwoo-text-light); }

/* Color picker input */
.scpwoo-color-picker {
  width: 44px;
  height: 32px;
  padding: 2px;
  border: 1px solid var(--scpwoo-border);
  border-radius: var(--scpwoo-r);
  background: none;
  cursor: pointer;
  vertical-align: middle;
}

/* Skeleton loader for AJAX content */
.scpwoo-skeleton {
  background: linear-gradient(90deg, var(--scpwoo-bg) 25%, var(--scpwoo-bg-hover) 50%, var(--scpwoo-bg) 75%);
  background-size: 200% 100%;
  animation: scpwoo-shimmer 1.5s infinite;
  border-radius: 4px;
  height: 16px;
  margin-bottom: 8px;
}

.scpwoo-skeleton-line { width: 80%; }
.scpwoo-skeleton-line-short { width: 50%; }
.scpwoo-skeleton-line-full { width: 100%; }

@keyframes scpwoo-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Loading spinner */
.scpwoo-loading-text {
  color: var(--scpwoo-text-muted);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scpwoo-loading-text::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid var(--scpwoo-border);
  border-top-color: var(--scpwoo-info);
  border-radius: 50%;
  animation: scpwoo-spin 0.6s linear infinite;
}

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

/* =================================================================
 * 4. SETTINGS — Card + Toggle switch
 * ================================================================= */

.scpwoo-settings-card { background: #fff; border: 1px solid var(--scpwoo-border); border-radius: var(--scpwoo-r); box-shadow: var(--scpwoo-sh); margin-bottom: 16px; }
.scpwoo-settings-card-header { padding: 12px 16px; border-bottom: 1px solid var(--scpwoo-border); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; background: var(--scpwoo-bg); border-radius: var(--scpwoo-r) var(--scpwoo-r) 0 0; }
.scpwoo-settings-card-desc { padding: 0 16px; color: var(--scpwoo-text-light); font-size: 15px; margin: 8px 0; }
.scpwoo-settings-row--compact { padding: 8px 16px; }
.scpwoo-btn-muted { color: var(--scpwoo-text-light) !important; }

.scpwoo-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  vertical-align: middle;
}

.scpwoo-toggle input { opacity: 0; width: 0; height: 0; }

.scpwoo-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--scpwoo-text-muted);
  border-radius: 22px;
  transition: 0.2s;
}

.scpwoo-toggle-slider::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.scpwoo-toggle input:checked + .scpwoo-toggle-slider { background: var(--scpwoo-accent); }
.scpwoo-toggle input:checked + .scpwoo-toggle-slider::before { transform: translateX(18px); }
.scpwoo-toggle input:focus-visible + .scpwoo-toggle-slider { outline: 2px solid var(--scpwoo-info); outline-offset: 2px; }

/* Settings rows */
.scpwoo-settings-row {
  display: grid;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--scpwoo-bg-hover);
}

.scpwoo-settings-row:last-child { border-bottom: none; }
.scpwoo-settings-row:hover { background: var(--scpwoo-bg); }
.scpwoo-settings-row-label { font-size: 14px; font-weight: 600; }
.scpwoo-settings-row-desc { font-size: 15px; color: var(--scpwoo-text-light); line-height: 1.5; }
.scpwoo-settings-row-desc code { background: var(--scpwoo-bg-hover); padding: 2px 4px; border-radius: 3px; font-size: 12px; }
.scpwoo-settings-row-wide { grid-column: span 1; }

/* Textarea */
.scpwoo-textarea { width: 100%; resize: vertical; }

/* =================================================================
 * 5. SETUP GUIDE
 * ================================================================= */

.scpwoo-guide { margin-bottom: 20px; }

.scpwoo-guide-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 0 8px;
}

.scpwoo-guide-title { margin: 0; font-size: 17px; font-weight: 600; }
.scpwoo-guide-subtitle { margin: 4px 0 0; font-size: 15px; color: var(--scpwoo-text-light); }

.scpwoo-guide-dismiss {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--scpwoo-text-muted);
  cursor: pointer;
}

.scpwoo-guide-dismiss:hover { color: #1d2327; }

.scpwoo-guide-progress { height: 4px; background: var(--scpwoo-bg-hover); border-radius: 4px; margin-bottom: 12px; }
.scpwoo-guide-progress-bar { height: 100%; background: var(--scpwoo-accent); border-radius: 4px; transition: width 0.3s; min-width: 4px; }

.scpwoo-guide-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--scpwoo-bg-hover);
}

.scpwoo-guide-step:last-child { border-bottom: none; }

.scpwoo-guide-step-num {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--scpwoo-border);
  font-size: 12px;
  font-weight: 700;
  color: var(--scpwoo-text-light);
  flex-shrink: 0;
}

.scpwoo-guide-step-check .dashicons-yes-alt { color: var(--scpwoo-success); font-size: 24px; width: 24px; height: 24px; }
.scpwoo-guide-step-title { margin: 0 0 2px; font-size: 14px; font-weight: 600; }
.scpwoo-guide-step-done .scpwoo-guide-step-title { color: var(--scpwoo-text-muted); text-decoration: line-through; }
.scpwoo-guide-step-desc { margin: 0 0 8px; font-size: 15px; color: var(--scpwoo-text-light); }
.scpwoo-guide-step-done .scpwoo-guide-step-desc { color: var(--scpwoo-text-muted); }
.scpwoo-guide-step-done .button { display: none; }
.scpwoo-guide-step-icon { flex-shrink: 0; color: var(--scpwoo-accent); font-size: 18px; width: 18px; height: 18px; margin-top: 3px; }
.scpwoo-guide-step-done .scpwoo-guide-step-icon { color: var(--scpwoo-border); }

/* =================================================================
 * 6. DASHBOARD
 * ================================================================= */

/* 2-column layout */
.scpwoo-dash-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: start;
}

.scpwoo-dash-main { min-width: 0; }
.scpwoo-dash-sidebar { min-width: 0; }

.scpwoo-dash-sidebar .scpwoo-dash-card { margin-bottom: 16px; }
.scpwoo-dash-sidebar .scpwoo-dash-card:last-child { margin-bottom: 0; }

/* Stats 2×2 grid */
.scpwoo-dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.scpwoo-dash-stat-card {
  background: #fff;
  border: 1px solid var(--scpwoo-border);
  border-radius: var(--scpwoo-r);
  box-shadow: var(--scpwoo-sh);
  overflow: hidden;
}
.scpwoo-dash-stat-card .scpwoo-dash-label {
  padding: 10px 16px;
  border-bottom: 1px solid var(--scpwoo-border);
  background: var(--scpwoo-bg);
  border-radius: var(--scpwoo-r) var(--scpwoo-r) 0 0;
  margin: 0;
}
.scpwoo-dash-stat-card .scpwoo-dash-value {
  padding: 14px 16px 4px;
  margin: 0;
}
.scpwoo-dash-stat-card .scpwoo-dash-delta {
  padding: 0 16px 14px;
  margin: 0;
}

/* Guide as card */
.scpwoo-guide-card {
  background: #fff;
  border: 1px solid var(--scpwoo-border);
  border-radius: var(--scpwoo-r);
  box-shadow: var(--scpwoo-sh);
  padding: 20px;
  margin-bottom: 20px;
}

/* Summary (keep for fallback) */
.scpwoo-dash-summary { display: flex; border: 1px solid var(--scpwoo-border); border-radius: var(--scpwoo-r); box-shadow: var(--scpwoo-sh); background: #fff; margin-bottom: 20px; }
.scpwoo-dash-summary-item { flex: 1; padding: 16px 20px; border-right: 1px solid var(--scpwoo-border); }
.scpwoo-dash-summary-item:last-child { border-right: none; }
.scpwoo-dash-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--scpwoo-text-muted); margin: 0 0 4px; font-weight: 600; }
.scpwoo-dash-value { font-size: 22px; font-weight: 700; color: var(--scpwoo-text); margin: 0; }
.scpwoo-dash-delta { font-size: 13px; color: var(--scpwoo-text-muted); margin: 4px 0 0; }

/* Cards */
.scpwoo-dash-card { background: #fff; border: 1px solid var(--scpwoo-border); border-radius: var(--scpwoo-r); box-shadow: var(--scpwoo-sh); overflow: hidden; margin-bottom: 20px; }
.scpwoo-dash-card-header { padding: 12px 16px; border-bottom: 1px solid var(--scpwoo-border); font-size: 16px; font-weight: 600; background: var(--scpwoo-bg); display: flex; align-items: center; }
.scpwoo-dash-card-header a { font-size: 13px; text-decoration: none; color: var(--scpwoo-info); margin-left: auto; }
.scpwoo-dash-card-header .dashicons { margin-right: 6px; }
.scpwoo-dash-card-desc { padding: 10px 16px; color: var(--scpwoo-text-light); font-size: 15px; margin: 0; }
.scpwoo-dash-card-actions { padding: 4px 16px 16px; }

/* Help */
.scpwoo-dash-help-links { padding: 10px 16px 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.scpwoo-dash-help-links .button .dashicons { margin-top: 4px; margin-right: 4px; }
.scpwoo-dash-version { padding: 0 16px 12px; color: var(--scpwoo-text-muted); font-size: 12px; margin: 0; }

/* Dashboard card body */
.scpwoo-dash-card-body { padding: 12px 16px; }
.scpwoo-dash-empty-note { font-size: 13px; color: var(--scpwoo-text-muted); margin: 8px 0; }

/* Guide structural */
.scpwoo-guide-header-left { flex: 1; }
.scpwoo-guide-step-check { flex-shrink: 0; width: 24px; margin-top: 2px; }
.scpwoo-guide-step-body { flex: 1; min-width: 0; }

/* =================================================================
 * 7. RESTRICTIONS
 * ================================================================= */

.scpwoo-rz-box { border: 1px solid var(--scpwoo-border); background: #fff; border-radius: var(--scpwoo-r); box-shadow: var(--scpwoo-sh); margin-top: 12px; }

.scpwoo-rz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--scpwoo-border);
  background: var(--scpwoo-bg);
  font-weight: 600;
}

.scpwoo-rz-region { border-bottom: 1px solid var(--scpwoo-bg-hover); }
.scpwoo-rz-region:last-child { border-bottom: none; }

.scpwoo-rz-region-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  cursor: pointer;
}

.scpwoo-rz-region-header:hover { background: var(--scpwoo-bg); }
.scpwoo-rz-arrow { color: var(--scpwoo-text-muted); font-size: 16px; transition: transform 0.15s; }
.scpwoo-rz-region.open .scpwoo-rz-arrow { transform: rotate(90deg); }
.scpwoo-rz-region-check { display: flex; align-items: center; gap: 6px; cursor: pointer; flex: 1; }
.scpwoo-rz-code { color: var(--scpwoo-text-muted); font-size: 13px; }
.scpwoo-rz-badge { margin-left: auto; }
.scpwoo-rz-cities { padding: 10px 16px 12px 44px; background: var(--scpwoo-bg); border-top: 1px solid var(--scpwoo-bg-hover); }
.scpwoo-rz-blocked-msg { color: var(--scpwoo-error); font-size: 13px; font-style: italic; margin: 0 0 8px; }
.scpwoo-rz-cities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 2px 14px; }
.scpwoo-rz-city { font-size: 14px; cursor: pointer; line-height: 2; padding: 0 4px; border-radius: 3px; }
.scpwoo-rz-city:hover { background: var(--scpwoo-info-tint); }
.scpwoo-rz-city input { margin-right: 6px; }
.scpwoo-rz-blocked .scpwoo-rz-cities-grid { opacity: 0.4; pointer-events: none; }
.scpwoo-rz-highlight { background: var(--scpwoo-warning-tint); }
.scpwoo-rz-country-heading {
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px 7px 20px;
  background: var(--scpwoo-accent-tint);
  border-left: 3px solid var(--scpwoo-accent);
  border-bottom: 1px solid var(--scpwoo-border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--scpwoo-text);
}

/* =================================================================
 * 8. STATS — Leaderboard table
 * ================================================================= */

.scpwoo-analytics { margin-top: 0; }
.scpwoo-analytics-filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; background: #fff; padding: 12px 16px; border-radius: var(--scpwoo-r); border: 1px solid var(--scpwoo-border); }
.scpwoo-presets { display: flex; gap: 4px; }
.scpwoo-preset-active { background: var(--scpwoo-info) !important; color: #fff !important; border-color: var(--scpwoo-info) !important; }
.scpwoo-date-inputs { display: flex; align-items: center; gap: 4px; }
.scpwoo-date-inputs input[type="date"] { width: 130px; }
.scpwoo-ml-auto { margin-left: auto; }
.scpwoo-period-label { width: 100%; font-size: 13px; color: var(--scpwoo-text-light); margin-top: 4px; }

.scpwoo-summary {
  display: flex;
  border: 1px solid var(--scpwoo-border);
  border-radius: var(--scpwoo-r);
  box-shadow: var(--scpwoo-sh);
  background: #fff;
  margin-bottom: 20px;
}

.scpwoo-summary-item { flex: 1; padding: 16px 20px; border-right: 1px solid var(--scpwoo-border); }
.scpwoo-summary-item:last-child { border-right: none; }
.scpwoo-summary-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--scpwoo-text-muted); margin: 0 0 4px; font-weight: 600; }
.scpwoo-summary-value { font-size: 22px; font-weight: 700; color: var(--scpwoo-text); margin: 0; }
.scpwoo-summary-delta { font-size: 13px; color: var(--scpwoo-text-muted); margin: 4px 0 0; }
.scpwoo-delta-up { color: var(--scpwoo-success); font-weight: 600; }
.scpwoo-delta-down { color: var(--scpwoo-error); font-weight: 600; }

.scpwoo-leaderboard { background: #fff; border: 1px solid var(--scpwoo-border); border-radius: var(--scpwoo-r); box-shadow: var(--scpwoo-sh); }
.scpwoo-leaderboard-header { padding: 12px 16px; border-bottom: 1px solid var(--scpwoo-border); font-weight: 600; display: flex; align-items: center; justify-content: space-between; background: var(--scpwoo-bg); }
.scpwoo-lb-search { width: 180px; }
.scpwoo-leaderboard table { width: 100%; border-collapse: collapse; }
.scpwoo-leaderboard th { padding: 8px 16px; text-align: left; font-size: 12px; font-weight: 600; color: var(--scpwoo-text-muted); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--scpwoo-border); background: var(--scpwoo-bg); }
.scpwoo-leaderboard td { padding: 10px 16px; border-bottom: 1px solid var(--scpwoo-bg-hover); font-size: 14px; }
.scpwoo-leaderboard tr:last-child td { border-bottom: none; }
.scpwoo-leaderboard tr:hover td { background: var(--scpwoo-bg); }

/* Row types */
.scpwoo-leaderboard .scpwoo-region-row td { background: #fafafa; font-weight: 600; }
.scpwoo-leaderboard .scpwoo-city-row td { font-weight: 400; color: var(--scpwoo-text-light); }
.scpwoo-leaderboard .scpwoo-city-row td:first-child { padding-left: 32px; }
.scpwoo-leaderboard .scpwoo-total-row td { border-top: 2px solid var(--scpwoo-border); background: var(--scpwoo-bg); font-weight: 600; }

/* Column widths */
.scpwoo-col-rank { width: 36px; text-align: center; }
.scpwoo-col-dest { width: auto; }
.scpwoo-col-country { width: 80px; }
.scpwoo-col-orders { width: 100px; }
.scpwoo-col-revenue { width: 130px; }
.scpwoo-col-share { width: 130px; }
.scpwoo-rank-cell { text-align: center; }
.scpwoo-leaderboard tfoot td { padding: 12px 16px; border-top: 2px solid var(--scpwoo-border); font-size: 14px; background: var(--scpwoo-bg); }

.scpwoo-rank { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 700; color: var(--scpwoo-text-muted); background: var(--scpwoo-bg-hover); }
.scpwoo-medal { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 800; color: #fff; }
.scpwoo-medal-gold { background: #D4A017; }
.scpwoo-medal-silver { background: var(--scpwoo-text-muted); }
.scpwoo-medal-bronze { background: var(--scpwoo-accent); }

.scpwoo-bar { display: inline-block; height: 8px; background: var(--scpwoo-info); border-radius: 4px; margin-right: 6px; vertical-align: middle; min-width: 3px; }
.scpwoo-bar-label { font-size: 13px; color: var(--scpwoo-text-light); }
.scpwoo-country-tag { display: inline-block; padding: 2px 6px; border-radius: 3px; background: var(--scpwoo-info-tint); font-size: 12px; font-weight: 600; color: var(--scpwoo-info); }
/* Empty state pattern */
.scpwoo-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--scpwoo-text-muted);
}

.scpwoo-empty-state .dashicons {
  font-size: 36px;
  width: 36px;
  height: 36px;
  display: block;
  margin: 0 auto 12px;
  opacity: 0.5;
}

.scpwoo-empty-state-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--scpwoo-text-light);
  margin: 0 0 4px;
}

.scpwoo-empty-state-desc {
  font-size: 14px;
  margin: 0;
}

.scpwoo-sortable { cursor: pointer; }
.scpwoo-sortable:hover { color: var(--scpwoo-info); }
.scpwoo-sortable .dashicons { font-size: 13px; width: 12px; height: 12px; opacity: 0.4; }
.scpwoo-sort-active .dashicons { opacity: 1; color: var(--scpwoo-info); }
.scpwoo-sort-asc .dashicons::before { content: "\f142"; }
.scpwoo-sort-desc .dashicons::before { content: "\f140"; }

.scpwoo-lb-toggle { font-size: 14px; width: 14px; height: 14px; color: var(--scpwoo-text-muted); cursor: pointer; transition: transform 0.15s; margin-right: 4px; }
.scpwoo-lb-region.scpwoo-lb-open .scpwoo-lb-toggle { transform: rotate(90deg); }
.scpwoo-lb-city-count { font-size: 12px; color: var(--scpwoo-text-muted); margin-left: 6px; }
.scpwoo-lb-delta { font-size: 12px; font-weight: 600; margin-left: 4px; }
.scpwoo-lb-collapsed { display: none; }
.scpwoo-lb-overflow { display: none; }
.scpwoo-lb-show-all-visible .scpwoo-lb-overflow { display: table-row; }
.scpwoo-lb-show-all-visible .scpwoo-lb-overflow.scpwoo-lb-collapsed { display: none; }
.scpwoo-lb-show-all { padding: 10px 16px; text-align: center; border-top: 1px solid var(--scpwoo-bg-hover); }

/* =================================================================
 * 9. COUNTRY FILTER
 * ================================================================= */

.scpwoo-country-filter { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.scpwoo-country-filter label { font-weight: 600; font-size: 14px; }
.scpwoo-country-filter select { min-width: 180px; }
.scpwoo-country-heading {
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  margin: 16px 0 0;
  background: var(--scpwoo-accent-tint);
  border-left: 3px solid var(--scpwoo-accent);
  border-radius: 0 var(--scpwoo-r) var(--scpwoo-r) 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--scpwoo-text);
}
.scpwoo-country-heading .scpwoo-country-code { font-size: 12px; color: var(--scpwoo-text-muted); font-weight: 400; }
.scpwoo-country-group { margin-bottom: 16px; }
.scpwoo-country-group:first-child .scpwoo-country-heading { margin-top: 0; }

/* Settings toggle wrapper */
.scpwoo-settings-row-toggle { align-self: center; }

/* Restrictions list wrapper */
.scpwoo-rz-list { overflow: hidden; padding: 12px 16px; }

/* Restrictions search input width */
#scpwoo-rz-search { width: 180px; }

/* Country filter padding (above zone list) */
.scpwoo-country-filter { padding: 8px 16px 0; }

/* Save bar (below zone list) */
.scpwoo-rz-save-bar { padding: 12px 16px; border-top: 1px solid var(--scpwoo-border); }

/* Cards inside scpwoo-row32 need no bottom margin */
.scpwoo-row32 .scpwoo-dash-card,
.scpwoo-row32 .scpwoo-settings-card { margin-bottom: 0; }

/* Blocked zones stat mini-card */
.scpwoo-rz-stat-body  { text-align: center; padding: 20px 16px; }
.scpwoo-rz-stat-icon  { font-size: 28px; width: 28px; height: 28px; color: var(--scpwoo-text-muted); margin-bottom: 8px; display: block; margin-left: auto; margin-right: auto; }
.scpwoo-rz-stat-value { font-size: 26px; font-weight: 700; color: var(--scpwoo-text); line-height: 1; }
.scpwoo-rz-stat-meta  { font-size: 13px; color: var(--scpwoo-text-muted); margin-top: 4px; }

/* =================================================================
 * 10. CONFIRM MODAL
 * ================================================================= */

.scpwoo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scpwoo-fade-in 0.15s ease;
}

.scpwoo-modal {
  background: #fff;
  border-radius: var(--scpwoo-rl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 400px;
  padding: 24px;
  animation: scpwoo-slide-up 0.2s ease;
}

.scpwoo-modal-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--scpwoo-text);
  margin: 0 0 8px;
}

.scpwoo-modal-message {
  font-size: 14px;
  color: var(--scpwoo-text-light);
  margin: 0 0 20px;
  line-height: 1.5;
}

.scpwoo-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.scpwoo-modal-actions .button-danger {
  background: var(--scpwoo-error);
  border-color: var(--scpwoo-error);
  color: #fff;
}

.scpwoo-modal-actions .button-danger:hover {
  background: #b32d2e;
  border-color: #b32d2e;
}

@keyframes scpwoo-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scpwoo-slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* =================================================================
 * 11. UTILITIES
 * ================================================================= */

.scpwoo-hidden { display: none; }
.scpwoo-save-wrap { padding: 4px 0 16px; }
.scpwoo-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* =================================================================
 * 11. SHIPPING ADMIN (inside WC settings)
 * ================================================================= */

#scpwoo-wrap { color: var(--scpwoo-text); }
#scpwoo-wrap .form-table th,
#scpwoo-wrap .form-table td { padding-top: 8px; padding-bottom: 8px; }
#scpwoo-wrap h2, #scpwoo-wrap h3, #scpwoo-wrap label, #scpwoo-wrap th { color: var(--scpwoo-text); }
#scpwoo-wrap .scpwoo-rules-title { margin: 20px 0 6px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
#scpwoo-wrap .scpwoo-rules-count {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--scpwoo-accent-tint);
  color: var(--scpwoo-accent);
  border: 1px solid rgba(194,112,62,0.3);
  letter-spacing: 0.2px;
}
#scpwoo-wrap .scpwoo-rules-desc { color: var(--scpwoo-text-light); font-size: 13px; margin: 0 0 10px; }

.scpwoo-shipping-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.scpwoo-help-box { position: relative; display: flex; align-items: center; gap: 4px; cursor: pointer; }
.scpwoo-help-icon { font-size: 20px; color: var(--scpwoo-info); }
.scpwoo-help-label { font-size: 14px; color: var(--scpwoo-info); font-weight: 500; }
.scpwoo-help-content { display: none; position: absolute; right: 0; top: 28px; z-index: 100; width: 340px; padding: 16px; background: #fff; border: 1px solid var(--scpwoo-border); border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); font-size: 14px; line-height: 1.5; }
.scpwoo-help-content ol { margin: 8px 0 0 16px; }
.scpwoo-help-note { margin: 8px 0 0; font-size: 13px; color: var(--scpwoo-text-light); }
.scpwoo-help-box:hover .scpwoo-help-content,
.scpwoo-help-box:focus-within .scpwoo-help-content { display: block; }

#scpwoo-wrap table#scpwoo-tbl { border-collapse: separate; border-spacing: 0; overflow: hidden; table-layout: fixed; width: 100%; border: 1px solid var(--scpwoo-border); background: #fff; border-radius: var(--scpwoo-r); box-shadow: var(--scpwoo-sh); }
#scpwoo-wrap #scpwoo-tbl th, #scpwoo-wrap #scpwoo-tbl td { padding: 12px 14px; text-align: left; }
#scpwoo-wrap #scpwoo-tbl th { font-size: 13px; font-weight: 600; color: var(--scpwoo-text-muted); background: var(--scpwoo-bg); border-bottom: 1px solid var(--scpwoo-border); text-transform: uppercase; letter-spacing: 0.5px; }
#scpwoo-wrap #scpwoo-tbl td { font-size: 14px; border-bottom: 1px solid var(--scpwoo-bg-hover); }
#scpwoo-wrap #scpwoo-tbl tbody tr:last-child td { border-bottom: none; }
#scpwoo-wrap #scpwoo-tbl tbody tr:hover td { background: var(--scpwoo-bg); }

.scpwoo-col-price { width: 140px; }
.scpwoo-col-free { width: 150px; }
.scpwoo-col-actions { width: 100px; }
.scpwoo-no-rules { color: var(--scpwoo-text-muted); text-align: center; padding: 16px; font-style: italic; }
.scpwoo-label-hint { font-weight: 400; text-transform: none; }

#scpwoo-wrap .scpwoo-zone { line-height: 1.6; }
#scpwoo-wrap .scpwoo-zone-country { display: block; font-size: 12px; font-weight: 600; color: var(--scpwoo-info); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
#scpwoo-wrap .scpwoo-zone-region { font-weight: 700; font-size: 14px; }
#scpwoo-wrap .scpwoo-zone-sub { display: block; padding-left: 20px; margin-top: 3px; color: var(--scpwoo-text-light); font-size: 14px; }
#scpwoo-wrap .scpwoo-zone-sub::before { content: "\2514\00a0"; color: var(--scpwoo-border); font-family: monospace; }
#scpwoo-wrap .scpwoo-zone-hoods { display: block; padding-left: 40px; margin-top: 2px; font-size: 13px; color: var(--scpwoo-info); }
#scpwoo-wrap .scpwoo-zone-hoods::before { content: "\2514\00a0"; color: var(--scpwoo-border); font-family: monospace; }

#scpwoo-wrap .scpwoo-badge { font-size: 10px; padding: 1px 5px; border-radius: 3px; color: #fff; font-weight: 600; text-transform: uppercase; }
#scpwoo-wrap .scpwoo-badge-region { background: var(--scpwoo-info); }
#scpwoo-wrap .scpwoo-badge-city { background: var(--scpwoo-success); }
#scpwoo-wrap .scpwoo-badge-neighborhood { background: var(--scpwoo-accent); }

#scpwoo-wrap .scpwoo-edit { color: var(--scpwoo-border); cursor: pointer; background: none; border: none; font-size: 20px; padding: 4px 6px; border-radius: 4px; transition: all 0.15s; }
#scpwoo-wrap .scpwoo-edit:hover { color: var(--scpwoo-info); background: var(--scpwoo-info-tint); }
#scpwoo-wrap .scpwoo-del { color: var(--scpwoo-border); cursor: pointer; background: none; border: none; font-size: 24px; padding: 4px 8px; border-radius: 4px; transition: all 0.15s; }
#scpwoo-wrap .scpwoo-del:hover { color: var(--scpwoo-error); background: var(--scpwoo-error-tint); }

#scpwoo-wrap .scpwoo-add { background: var(--scpwoo-bg); border: 1px solid var(--scpwoo-border); border-top: none; border-radius: 0 0 var(--scpwoo-r) var(--scpwoo-r); padding: 16px; margin-bottom: 20px; }
#scpwoo-wrap .scpwoo-add.scpwoo-editing { border-color: var(--scpwoo-info); background: var(--scpwoo-info-tint); }
#scpwoo-wrap .scpwoo-add-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
#scpwoo-wrap .scpwoo-add-row > div > label { display: block; font-size: 13px; font-weight: 600; color: var(--scpwoo-text-light); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.3px; }
#scpwoo-wrap .scpwoo-add select { min-width: 180px; }

#scpwoo-wrap .scpwoo-hood-box { display: flex; flex-wrap: wrap; gap: 4px 14px; max-height: 140px; overflow-y: auto; padding: 10px; background: #fff; border: 1px solid var(--scpwoo-border); border-radius: 4px; margin-top: 6px; }
#scpwoo-wrap .scpwoo-hood-box label { font-size: 14px; cursor: pointer; white-space: nowrap; line-height: 2; }
.scpwoo-hoods-wrap { margin-top: 6px; }
.scpwoo-hoods-label { font-size: 14px; font-weight: 600; color: var(--scpwoo-text-light); text-transform: uppercase; letter-spacing: 0.3px; }

#scpwoo-wrap .scpwoo-flash td { animation: scpwoo-fl 1s ease; }
@keyframes scpwoo-fl { 0% { background: var(--scpwoo-success-tint); } 100% { background: transparent; } }

/* Inline field validation */
.scpwoo-field-error {
  display: block;
  font-size: 12px;
  color: var(--scpwoo-error);
  margin-top: 3px;
  font-weight: 500;
}

select.scpwoo-field-invalid,
input.scpwoo-field-invalid {
  border-color: var(--scpwoo-error) !important;
  box-shadow: 0 0 0 1px var(--scpwoo-error);
}

/* Undo toast (inline, at top of wrap) */
.scpwoo-undo-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: var(--scpwoo-success-tint);
  border: 1px solid var(--scpwoo-success);
  border-left: 3px solid var(--scpwoo-success);
  border-radius: var(--scpwoo-r);
  font-size: 14px;
  color: var(--scpwoo-success);
  margin-bottom: 10px;
}

.scpwoo-undo-btn {
  background: none;
  border: 1px solid var(--scpwoo-success);
  color: var(--scpwoo-success);
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.scpwoo-undo-btn:hover {
  background: var(--scpwoo-success);
  color: #fff;
}

/* Country group header row in rules table */
#scpwoo-tbl .scpwoo-group-header td {
  background: var(--scpwoo-accent-tint);
  border-left: 3px solid var(--scpwoo-accent);
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--scpwoo-text);
}

#scpwoo-tbl .scpwoo-group-header:hover td {
  background: var(--scpwoo-accent-tint);
}

/* Price / Free-from cell layout */
.scpwoo-cell-num {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Read-only value display in table cells */
.scpwoo-rate-val,
.scpwoo-free-val {
  font-weight: 600;
  color: var(--scpwoo-text);
}

.scpwoo-free-val {
  color: var(--scpwoo-text-muted);
}

.scpwoo-free-empty {
  color: var(--scpwoo-border);
  font-weight: 400;
}

.scpwoo-cur {
  font-size: 12px;
  color: var(--scpwoo-text-muted);
  font-weight: 400;
  letter-spacing: 0.2px;
}

/* Edit button with dashicons */
#scpwoo-wrap .scpwoo-edit .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

/* Neighborhood filter input */
.scpwoo-hood-filter {
  width: 100%;
  margin: 0 0 6px;
  padding: 5px 10px;
  border: 1px solid var(--scpwoo-border);
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

#scpwoo-wrap #scpwoo-tiers-tbl { border-collapse: collapse; width: 100%; border: 1px solid var(--scpwoo-border); background: #fff; border-radius: 4px; margin-bottom: 0; }
#scpwoo-wrap #scpwoo-tiers-tbl th { text-align: left; padding: 8px 12px; background: var(--scpwoo-bg); border-bottom: 1px solid var(--scpwoo-border); font-size: 13px; text-transform: uppercase; letter-spacing: 0.3px; color: var(--scpwoo-text-light); }
#scpwoo-wrap #scpwoo-tiers-tbl td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
#scpwoo-wrap #scpwoo-tiers-tbl tr:last-child td { border-bottom: none; }
#scpwoo-wrap .scpwoo-tiers-add { border-top: none; border-radius: 0 0 4px 4px; margin-bottom: 24px; }

#scpwoo-wrap .scpwoo-import-export {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--scpwoo-bg);
  border: 1px solid var(--scpwoo-border);
  border-radius: 4px;
}

#scpwoo-wrap .scpwoo-import-export .button .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  margin-right: 4px;
}

#scpwoo-wrap #scpwoo-import-status {
  font-size: 14px;
  font-weight: 600;
}

/* =================================================================
 * 12. ACTIVITY LOG
 * ================================================================= */

.scpwoo-wrap .scpwoo-admin-logo { height: 36px; vertical-align: middle; }
.scpwoo-wrap .notice-no-support { margin-top: 20px; }

.scpwoo-activity-filter-form { display: inline; }
.scpwoo-activity-filter-form input[type="date"] {
  padding: 4px 8px;
  border: 1px solid var(--scpwoo-border);
  border-radius: var(--scpwoo-r);
  font-size: 14px;
  margin: 0 4px;
}
.scpwoo-activity-count { margin-left: 12px; font-size: 13px; color: var(--scpwoo-text-muted); white-space: nowrap; }
.scpwoo-activity-context { color: var(--scpwoo-text-light); }

/* Shared date input style (activity filter bar) */
.scpwoo-date-input {
  padding: 4px 8px;
  border: 1px solid var(--scpwoo-border);
  border-radius: var(--scpwoo-r);
  font-size: 14px;
  margin: 0 2px;
}

/* Card header with right-aligned action */
.scpwoo-card-header-space-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Small utility button */
.scpwoo-btn-sm { font-size: 12px !important; padding: 2px 8px !important; }

/* Level icon colors */
.scpwoo-level-info     { color: var(--scpwoo-info); }
.scpwoo-level-warning  { color: var(--scpwoo-warning); }
.scpwoo-level-error    { color: var(--scpwoo-error); }
.scpwoo-level-security { color: #8c5e20; }

/* Activity dot indicators */
.scpwoo-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; display: inline-block; }
.scpwoo-dot-info     { background: var(--scpwoo-info); }
.scpwoo-dot-warning  { background: var(--scpwoo-warning); }
.scpwoo-dot-error    { background: var(--scpwoo-error); }
.scpwoo-dot-security { background: #8c5e20; }

/* Activity table card style */
.scpwoo-activity-table {
  background: #fff;
  border: 1px solid var(--scpwoo-border);
  border-radius: var(--scpwoo-r);
  box-shadow: var(--scpwoo-sh);
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
.scpwoo-activity-table th {
  padding: 10px 14px;
  background: var(--scpwoo-bg);
  border-bottom: 1px solid var(--scpwoo-border);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--scpwoo-text-muted);
  text-align: left;
}
.scpwoo-activity-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--scpwoo-border-light);
  font-size: 14px;
  vertical-align: top;
  color: #1d2327;
}
.scpwoo-activity-table tbody tr:last-child td { border-bottom: none; }
.scpwoo-activity-table tbody tr:hover td { background: var(--scpwoo-bg); }

.scpwoo-activity-table .scpwoo-col-date { width: 160px; }
.scpwoo-activity-table .scpwoo-col-user { width: 120px; }
.scpwoo-activity-table .scpwoo-col-level { width: 60px; }

/* =================================================================
 * 13. PAGE LAYOUT UTILITIES
 * ================================================================= */

/* 2/3 + 1/3 */
.scpwoo-row32 { display: grid; grid-template-columns: 2fr 1fr;  gap: 16px; margin-bottom: 16px; }
/* flex column */
.scpwoo-col   { display: flex; flex-direction: column; gap: 16px; }

.scpwoo-row32 > * { min-width: 0; }

/* Notice bar */
.scpwoo-notice {
  padding: 10px 14px;
  border-radius: var(--scpwoo-r);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-left: 3px solid;
}
.scpwoo-notice .dashicons { font-size: 16px; width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.scpwoo-notice--ok   { background: var(--scpwoo-success-tint); color: var(--scpwoo-success); border-color: var(--scpwoo-success); }
.scpwoo-notice--warn { background: var(--scpwoo-warning-tint); color: var(--scpwoo-warning); border-color: var(--scpwoo-warning); }
.scpwoo-notice--info { background: var(--scpwoo-info-tint);    color: var(--scpwoo-info);    border-color: var(--scpwoo-info);    }
.scpwoo-notice--err  { background: var(--scpwoo-error-tint);   color: var(--scpwoo-error);   border-color: var(--scpwoo-error);   }

/* Search / filter bar */
.scpwoo-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--scpwoo-border);
  border-radius: var(--scpwoo-r);
  padding: 7px 13px;
  margin-bottom: 14px;
  box-shadow: var(--scpwoo-sh);
}
.scpwoo-search-bar input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--scpwoo-text);
  background: transparent;
  box-shadow: none;
}
.scpwoo-search-bar .dashicons { color: var(--scpwoo-text-muted); font-size: 16px; width: 16px; height: 16px; flex-shrink: 0; }
.scpwoo-search-bar select {
  border: 1px solid var(--scpwoo-border);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 13px;
  color: var(--scpwoo-text-light);
  background: #fff;
  outline: none;
  cursor: pointer;
}
.scpwoo-search-bar select:focus { border-color: var(--scpwoo-accent); }

/* Country map strip */
.scpwoo-map-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--scpwoo-border);
  border-radius: var(--scpwoo-r);
  padding: 10px 14px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: var(--scpwoo-sh);
}
.scpwoo-map-strip::-webkit-scrollbar { display: none; }
.scpwoo-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  background: var(--scpwoo-bg);
  border: 1px solid var(--scpwoo-border);
  color: var(--scpwoo-text-light);
  cursor: pointer;
  transition: all 0.13s;
  white-space: nowrap;
  flex-shrink: 0;
}
.scpwoo-map-btn:hover { background: var(--scpwoo-bg-hover); color: var(--scpwoo-text); }
.scpwoo-map-btn.active { background: var(--scpwoo-bg-hover); color: var(--scpwoo-text); border-color: var(--scpwoo-border); font-weight: 600; }
.scpwoo-cc {
  display: inline-block;
  background: var(--scpwoo-bg-hover);
  color: var(--scpwoo-text-light);
  font-size: 12px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: .04em;
  font-family: monospace;
}
.scpwoo-map-btn.active .scpwoo-cc { background: var(--scpwoo-border-light); color: var(--scpwoo-text); }

/* Cities grid inside accordion */
.scpwoo-cities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.scpwoo-city-tag {
  background: #fff;
  border: 1px solid var(--scpwoo-border);
  border-radius: 6px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}
.scpwoo-city-tag-name { font-weight: 500; color: var(--scpwoo-text); flex: 1; }
.scpwoo-city-tag-count { font-size: 13px; color: var(--scpwoo-text-muted); }
.scpwoo-city-tag-del {
  color: var(--scpwoo-text-muted);
  cursor: pointer;
  font-size: 12px;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0 2px;
  line-height: 1;
}
.scpwoo-city-tag-del:hover { color: var(--scpwoo-error); }


/* Upsell block */
.scpwoo-upsell {
  background: var(--scpwoo-bg);
  border: 1px solid var(--scpwoo-border);
  border-radius: var(--scpwoo-rl);
  padding: 18px;
  text-align: center;
}
.scpwoo-upsell-icon { color: var(--scpwoo-accent); margin-bottom: 8px; display: flex; justify-content: center; }
.scpwoo-upsell-icon .dashicons { font-size: 26px; width: 26px; height: 26px; }
.scpwoo-upsell-title { font-size: 14px; font-weight: 700; color: var(--scpwoo-text); margin-bottom: 6px; }
.scpwoo-upsell-desc  { font-size: 13px; color: var(--scpwoo-text-muted); margin-bottom: 14px; line-height: 1.5; }

/* Comparison table check/cross */
.scpwoo-cmp-yes { font-weight: 700; color: var(--scpwoo-success); }
.scpwoo-cmp-no  { font-weight: 700; color: var(--scpwoo-text-muted); }

/* Card header button (inside card) */
.scpwoo-card-header-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Section title */
.scpwoo-section-title { font-size: 16px; font-weight: 700; color: var(--scpwoo-text); margin-bottom: 12px; }

/* Save button row */
.scpwoo-btn-row { display: flex; gap: 8px; align-items: center; padding-top: 6px; }

/* =================================================================
 * 14. RESPONSIVE
 * ================================================================= */

@media (max-width: 960px) {
  .scpwoo-dash-layout { grid-template-columns: 1fr; }
  .scpwoo-row32 { grid-template-columns: 1fr; }
}

@media (max-width: 782px) {
  .scpwoo-header-block { margin-left: -10px; margin-right: -10px; }
  .scpwoo-header { flex-direction: inherit; align-items: center; padding: 10px 14px; }
  .scpwoo-header-tagline { display: none; }
  .scpwoo-feat-grid { grid-template-columns: repeat(2, 1fr); }
  .scpwoo-dash-stats-grid { grid-template-columns: 1fr 1fr; }
  .scpwoo-dash-summary { flex-direction: column; }
  .scpwoo-dash-summary-item { border-right: none; border-bottom: 1px solid var(--scpwoo-border); }
  .scpwoo-dash-summary-item:last-child { border-bottom: none; }
  .scpwoo-summary { flex-direction: column; }
  .scpwoo-summary-item { border-right: none; border-bottom: 1px solid var(--scpwoo-border); }
  .scpwoo-summary-item:last-child { border-bottom: none; }
  .scpwoo-analytics-filters { flex-direction: column; align-items: flex-start; gap: 8px; }
  .scpwoo-settings-row { grid-template-columns: auto 1fr; }
  .scpwoo-settings-row-desc { grid-column: 1 / -1; }
  .scpwoo-country-filter { flex-direction: column; align-items: flex-start; }
  .scpwoo-country-filter select { width: 100%; }
  .scpwoo-shipping-header { flex-direction: column; gap: 10px; }
  #scpwoo-wrap .scpwoo-add-row { flex-direction: column; align-items: stretch; }
  #scpwoo-wrap .scpwoo-add select { min-width: 100%; width: 100%; }
  #scpwoo-wrap .scpwoo-add input[type="number"] { width: 100%; min-width: 0; box-sizing: border-box; }
  #scpwoo-wrap .scpwoo-add .button { width: 100%; text-align: center; box-sizing: border-box; }
}

@media (max-width: 480px) {
  .scpwoo-upgrade-globe { display: none; }
}

@media (max-width: 600px) {
  .scpwoo-header-logo { height: 24px; }

  /* Tabs scroll horizontally instead of wrapping */
  .scpwoo-wrap .nav-tab-wrapper {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    flex-wrap: nowrap;
  }
  .scpwoo-wrap .nav-tab {
    flex-shrink: 0;
    font-size: 13px;
    padding: 8px 10px;
  }

  /* Full-width inputs for touch targets */
  .scpwoo-add-form input[type="text"],
  .scpwoo-new-city,
  .scpwoo-new-neighborhood,
  #scpwoo-rz-search,
  #scpwoo-lb-search {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  /* Tables: horizontal scroll wrapper */
  .scpwoo-activity-table,
  #scpwoo-stats-table,
  #scpwoo-tbl {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Reduce WooCommerce #mainform side padding on our pages */
  body.woocommerce_page_wc-settings:has(#scpwoo-wrap) #mainform { padding-left: 10px; padding-right: 10px; }

  /* Help dropdown: constrain to available width (100vw minus mainform padding) */
  .scpwoo-help-content { width: calc(100vw - 32px); }

  /* Upgrade page: hide Free column, keep only Feature + Pro */
  .scpwoo-upgrade-page .scpwoo-activity-table { overflow-x: visible; }
  .scpwoo-upgrade-page .scpwoo-activity-table th:nth-child(2),
  .scpwoo-upgrade-page .scpwoo-activity-table td:nth-child(2) { display: none; }

  /* Accordion touch targets: minimum 44px height */
  .scpwoo-region-header,
  .scpwoo-rz-region-header,
  .scpwoo-city-header {
    min-height: 44px;
    padding: 10px 12px;
  }

  /* Stats filter: stack vertically */
  .scpwoo-analytics-filters { gap: 6px; }
  .scpwoo-analytics-filters input[type="date"] { width: 100%; }
  .scpwoo-analytics-presets { flex-wrap: wrap; }

  /* Summary cards: smaller text */
  .scpwoo-dash-value { font-size: 18px; }
  .scpwoo-dash-stats-grid { grid-template-columns: 1fr; }

  /* Restrictions cities grid: 1 column */
  .scpwoo-rz-cities-grid {
    grid-template-columns: 1fr !important;
  }

  /* Activity log: hide less important columns */
  .scpwoo-activity-table .scpwoo-col-level { display: none; }

  /* Guide steps: stack */
  .scpwoo-guide-steps { gap: 8px; }
  .scpwoo-guide-step { padding: 10px; }

  /* Pagination buttons closer together */
  .tablenav-pages .button { padding: 4px 8px; min-width: 32px; }

  #scpwoo-pp-tbl,
  #scpwoo-routes-tbl,
  #scpwoo-ag-tbl { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ══════════════════════════════════════════════════════════
 * PICKUP POINTS / AGENCIES TABLES
 * ══════════════════════════════════════════════════════════ */

#scpwoo-wrap #scpwoo-pp-tbl,
#scpwoo-wrap #scpwoo-routes-tbl,
#scpwoo-wrap #scpwoo-ag-tbl { border-collapse: collapse; width: 100%; border: 1px solid var(--scpwoo-border); background: #fff; border-radius: 4px; }

#scpwoo-wrap #scpwoo-pp-tbl th,
#scpwoo-wrap #scpwoo-routes-tbl th,
#scpwoo-wrap #scpwoo-ag-tbl th { text-align: left; padding: 10px 14px; background: var(--scpwoo-bg); border-bottom: 1px solid var(--scpwoo-border); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--scpwoo-text-muted); }

#scpwoo-wrap #scpwoo-pp-tbl td,
#scpwoo-wrap #scpwoo-routes-tbl td,
#scpwoo-wrap #scpwoo-ag-tbl td { padding: 12px 14px; border-bottom: 1px solid var(--scpwoo-bg-hover); font-size: 14px; }

#scpwoo-wrap #scpwoo-pp-tbl tr:last-child td,
#scpwoo-wrap #scpwoo-routes-tbl tr:last-child td,
#scpwoo-wrap #scpwoo-ag-tbl tr:last-child td { border-bottom: 0; }

#scpwoo-wrap #scpwoo-pp-tbl tr:hover td,
#scpwoo-wrap #scpwoo-routes-tbl tr:hover td,
#scpwoo-wrap #scpwoo-ag-tbl tr:hover td { background: var(--scpwoo-bg-hover); }

#scpwoo-wrap #scpwoo-pp-tbl tr.scpwoo-pp-disabled td,
#scpwoo-wrap #scpwoo-ag-tbl tr.scpwoo-pp-disabled td { opacity: 0.45; }

#scpwoo-wrap #scpwoo-pp-tbl tr.scpwoo-pp-disabled td:last-child,
#scpwoo-wrap #scpwoo-ag-tbl tr.scpwoo-pp-disabled td:last-child { opacity: 1; }


.scpwoo-pp-address { display: block; font-size: 13px; color: var(--scpwoo-text-muted); margin-top: 2px; font-style: italic; }

.scpwoo-pp-toggle { background: none; border: 1px solid var(--scpwoo-border); color: var(--scpwoo-success); font-size: 14px; padding: 2px 6px; border-radius: 4px; cursor: pointer; transition: all 0.15s; }
.scpwoo-pp-toggle:hover { background: var(--scpwoo-success-tint); }
.scpwoo-pp-disabled .scpwoo-pp-toggle { color: var(--scpwoo-error); }
.scpwoo-pp-disabled .scpwoo-pp-toggle:hover { background: var(--scpwoo-error-tint); }

/* Upgrade page */
.scpwoo-upgrade-page { }

.scpwoo-upgrade-hero {
  background: #1d2327;
  border-radius: var(--scpwoo-rl);
  padding: 28px 32px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  position: relative;
}
.scpwoo-upgrade-hero::after {
  content: '';
  position: absolute;
  right: -20px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194,112,62,.18) 0%, transparent 70%);
  pointer-events: none;
}
.scpwoo-upgrade-body { flex: 1; z-index: 1; }
.scpwoo-upgrade-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--scpwoo-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.scpwoo-upgrade-badge .dashicons { font-size: 13px; width: 12px; height: 12px; }
.scpwoo-upgrade-title { font-size: 16px; font-weight: 800; color: #1d2327; margin-bottom: 6px; }
.scpwoo-upgrade-desc  { font-size: 15px; color: #1d2327; line-height: 1.6; max-width: 420px; }
.scpwoo-upgrade-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  background: var(--scpwoo-accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--scpwoo-accent-hover);
  text-decoration: none;
}
.scpwoo-upgrade-cta:hover,
.scpwoo-upgrade-cta:focus { background: var(--scpwoo-accent-hover); border-color: var(--scpwoo-accent-hover); color: #fff; }
.scpwoo-upgrade-globe { z-index: 0; flex-shrink: 0; }
.scpwoo-upgrade-illustration { width: 160px; height: 160px; object-fit: contain; display: block; }

/* Feature cards grid */
.scpwoo-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.scpwoo-feat-card {
  background: #fff;
  border: 1px solid var(--scpwoo-border);
  border-radius: var(--scpwoo-rl);
  padding: 16px;
  box-shadow: var(--scpwoo-sh);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.scpwoo-feat-card:hover { box-shadow: var(--scpwoo-sh-md); }
.scpwoo-feat-card .scpwoo-pro-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  margin-left: 0;
}
.scpwoo-feat-name { font-size: 16px; font-weight: 700; color: var(--scpwoo-text); margin-bottom: 4px; }
.scpwoo-feat-desc { font-size: 15px; color: var(--scpwoo-text-muted); line-height: 1.45; }

/* PRO badge (feature cards) */
.scpwoo-pro-badge {
  display: inline-block;
  background: linear-gradient(135deg, #C2703E, #d4894f);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 6px;
}

/* Highlight upgrade tab */
.scpwoo-tabs a[data-tab="upgrade"] { color: var(--scpwoo-accent); font-weight: 600; }

/* ================================================================
 * AfriRegions Identity — warm African palette
 * ================================================================ */

:root {
  --scpwoo-sand:    #F5EDD8;
  --scpwoo-earth:   #8B5E3C;
  --scpwoo-ivory:   #FFFCF8;
  --scpwoo-warm-bd: #E8DDD0;
}

/* cards → WP-native white background, no shadow */
.scpwoo-settings-card,
.scpwoo-dash-card,
.scpwoo-guide-card,
.scpwoo-rz-box,
.scpwoo-modal,
.scpwoo-leaderboard,
.scpwoo-feat-card,
.scpwoo-dash-stat-card {
  background: #fff;
  box-shadow: none;
}

/* header: Africa SVG watermark */
.scpwoo-header-block { overflow: hidden; }

.scpwoo-map-btn {
  background: rgba(255,255,255,.65);
  border-color: var(--scpwoo-warm-bd);
}
.scpwoo-map-btn:hover {
  background: rgba(255,255,255,.9);
  border-color: var(--scpwoo-accent);
  color: var(--scpwoo-earth);
}
.scpwoo-map-btn.active {
  background: var(--scpwoo-accent);
  border-color: var(--scpwoo-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(194,112,62,.3);
}

/* empty states: warm dashed border */
.scpwoo-empty-state {
  background: var(--scpwoo-sand);
  border: 1px dashed var(--scpwoo-warm-bd);
  border-radius: var(--scpwoo-rl);
  padding: 56px 24px;
}
.scpwoo-empty-state .dashicons {
  color: var(--scpwoo-earth);
  opacity: .35;
  font-size: 44px;
  width: 44px;
  height: 44px;
}
.scpwoo-empty-state-title { color: var(--scpwoo-earth); }

/* upgrade hero: warm instead of dark */
.scpwoo-upgrade-hero {
  background: var(--scpwoo-sand) !important;
  border: 1px solid var(--scpwoo-warm-bd);
}
.scpwoo-upgrade-title { color: #1d2327 !important; }
.scpwoo-upgrade-desc  { color: #1d2327 !important; }
.scpwoo-upgrade-globe { }

/* =================================================================
 * RESPONSIVE — Sidebar
 * ================================================================= */

@media (max-width: 782px) {
  .scpwoo-upgrade-hero { padding: 20px 20px; }
  .scpwoo-header-block { margin-bottom: 0; }
  .scpwoo-layout { flex-direction: column; gap: 12px; }
  .scpwoo-tab-content { width: 100%; }
  .scpwoo-sidebar {
    width: 100%;
    min-width: 0;
    position: static;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
  }
  .scpwoo-sidebar-item {
    flex-shrink: 0;
    border-left: none;
    border-bottom: 3px solid transparent;
    border-right: 1px solid var(--scpwoo-bg-hover);
    padding: 9px 14px;
    white-space: nowrap;
  }
  a.scpwoo-sidebar-item:last-of-type {
    border-right: none;
    border-bottom: 3px solid transparent;
  }
  .scpwoo-sidebar-item.nav-tab-active { border-bottom-color: var(--scpwoo-info) !important; }
  .scpwoo-sidebar-footer { display: none; }
}

@media (max-width: 600px) {
  .scpwoo-sidebar-footer { display: none; }
}

@media (max-width: 480px) {
  .scpwoo-upgrade-hero { flex-direction: column; gap: 12px; padding: 16px 12px; }
  .scpwoo-feat-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

