/* === FIX PREMIUM/DARK FINAL === */
.bumps-empty {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.bumps-empty__card {
  background: #181825 !important;
  border: 1.5px solid #232336 !important;
  box-shadow: 0 2px 16px 0 #A100FF22 !important;
  color: #A100FF !important;
}
.bumps-empty__card p,
.bumps-empty__card button {
  color: #A100FF !important;
  border-color: #A100FF !important;
}
.bumps-empty__card button {
  background: transparent !important;
  border: 1.5px solid #A100FF !important;
  color: #A100FF !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  padding: 0.4em 1em !important;
  margin-top: 1.2em;
}
.bumps-empty__card button:hover {
  background: #A100FF22 !important;
  color: #fff !important;
}
.bump-card {
  background: #181825 !important;
  border: 1.5px solid #232336 !important;
  box-shadow: 0 2px 16px 0 #A100FF22 !important;
  color: #EDEDED !important;
}
.bump-card .bump-title {
  color: #A100FF !important;
}
.bump-card .bump-status {
  color: #A100FF !important;
}
.bump-card .bump-actions button {
  background: #181825 !important;
  border: 1.5px solid #A100FF !important;
  color: #A100FF !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  padding: 0.4em 1em !important;
}
.bump-card .bump-actions button:hover {
  background: #A100FF22 !important;
  color: #fff !important;
}
.bump-pill--active, .bump-pill--inactive {
  background: #232336 !important;
  color: #A100FF !important;
  border: 1.5px solid #A100FF !important;
}
.products-table button, .data-table button, .bumps-grid button, .bumps-empty__card button {
  background: #181825 !important;
  border: 1.5px solid #A100FF !important;
  color: #A100FF !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  padding: 0.4em 1em !important;
  margin-right: 0.5em;
  cursor: pointer;
  transition: background .15s, border .15s, color .15s;
  box-shadow: none !important;
}
.products-table button:hover, .data-table button:hover, .bumps-grid button:hover, .bumps-empty__card button:hover {
  background: #A100FF22 !important;
  border-color: #A100FF !important;
  color: #fff !important;
}
.data-table .badge, .products-table .badge {
  display: inline-block;
  padding: 0.25em 0.9em;
  border-radius: 8px;
  font-size: 0.98em;
  font-weight: 700;
  background: #232336 !important;
  color: #A100FF !important;
  border: 1.5px solid #A100FF !important;
  letter-spacing: 0.01em;
}
.data-table .badge.published, .products-table .badge.published {
  color: #A100FF !important;
  border-color: #A100FF !important;
  background: #232336 !important;
}
.data-table .badge.draft, .products-table .badge.draft {
  color: #bdbdbd !important;
  border-color: #232336 !important;
  background: #181825 !important;
}
.bumps-counters strong {
  color: #A100FF !important;
}
/* SOBRESCREVER TUDO: Bumps, cards vazios, botões, badges, fundo, sombra, cor */
.bumps-empty {
  background: #181825 !important;
  border: 1.5px solid #232336 !important;
  box-shadow: 0 2px 16px 0 #A100FF22 !important;
}
.bumps-empty__card {
  background: #181825 !important;
  border: none !important;
  box-shadow: none !important;
  color: #A100FF !important;
}
.bumps-empty__card p,
.bumps-empty__card button {
  color: #A100FF !important;
  border-color: #A100FF !important;
}
.bumps-empty__card button {
  background: transparent !important;
  border: 1.5px solid #A100FF !important;
  color: #A100FF !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}
.bumps-empty__card button:hover {
  background: #A100FF22 !important;
  color: #fff !important;
}
.bump-card {
  background: #181825 !important;
  border: 1.5px solid #232336 !important;
  box-shadow: 0 2px 16px 0 #A100FF22 !important;
  color: #EDEDED !important;
}
.bump-card .bump-title {
  color: #A100FF !important;
}
.bump-card .bump-status {
  color: #A100FF !important;
}
.bump-card .bump-actions button {
  background: #181825 !important;
  border: 1.5px solid #A100FF !important;
  color: #A100FF !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
.bump-card .bump-actions button:hover {
  background: #A100FF22 !important;
  color: #fff !important;
}
.bump-pill--active, .bump-pill--inactive {
  background: #232336 !important;
  color: #A100FF !important;
  border: 1.5px solid #A100FF !important;
}
/* FORÇAR VISUAL PREMIUM/DARK EM TABELAS, BADGES E BOTÕES */
.products-table-card.card,
.table-card.card,
.bumps-empty__card.card {
  background: #181825 !important;
  border: 1.5px solid #232336 !important;
  box-shadow: 0 2px 16px 0 #A100FF22 !important;
}

.products-table th,
.data-table th {
  background: #181825 !important;
  color: #A100FF !important;
  border-bottom: 1.5px solid #232336 !important;
}

.products-table td,
.data-table td {
  background: transparent !important;
  color: #eaeaea !important;
}

.products-table .badge,
.data-table .badge {
  background: #232336 !important;
  color: #A100FF !important;
  border: 1.5px solid #A100FF !important;
}

.products-table .badge.published,
.data-table .badge.published {
  background: #232336 !important;
  color: #A100FF !important;
  border-color: #A100FF !important;
}
.products-table .badge.draft,
.data-table .badge.draft {
  background: #181825 !important;
  color: #bdbdbd !important;
  border-color: #232336 !important;
}

.products-table button,
.data-table button,
.bumps-grid button,
.bumps-empty__card button {
  background: #181825 !important;
  border: 1.5px solid #A100FF !important;
  color: #A100FF !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  padding: 0.4em 1em !important;
  margin-right: 0.5em;
  cursor: pointer;
  transition: background .15s, border .15s, color .15s;
  box-shadow: none !important;
}
.products-table button:hover,
.data-table button:hover,
.bumps-grid button:hover,
.bumps-empty__card button:hover {
  background: #A100FF22 !important;
  border-color: #A100FF !important;
  color: #fff !important;
}

.status-pill--paid,
.status-pill--converted {
  background: #A100FF22 !important;
  color: #A100FF !important;
}
.status-pill--pending,
.status-pill--open {
  background: #232336 !important;
  color: #bdbdbd !important;
}

.bumps-empty__card.card p,
.bumps-empty__card.card button {
  color: #A100FF !important;
  border-color: #A100FF !important;
}
/* BADGES E BOTÕES PREMIUM/DARK */
.data-table .badge, .products-table .badge {
  display: inline-block;
  padding: 0.25em 0.9em;
  border-radius: 8px;
  font-size: 0.98em;
  font-weight: 700;
  background: #181825;
  color: #A100FF;
  border: 1.5px solid #A100FF;
  letter-spacing: 0.01em;
}
.data-table .badge.published, .products-table .badge.published {
  color: #A100FF;
  border-color: #A100FF;
  background: #232336;
}
.data-table .badge.draft, .products-table .badge.draft {
  color: #bdbdbd;
  border-color: #232336;
  background: #181825;
}

.integration-provider.is-active {
  border-color: #a100ff !important;
  color: #ffffff !important;
  background: rgba(161, 0, 255, 0.25) !important;
}

.products-table button, .data-table button, .bumps-grid button, .bumps-empty__card button {
  background: #181825;
  border: 1.5px solid #232336;
  color: #bdbdbd;
  border-radius: 8px;
  font-weight: 700;
  padding: 0.4em 1em;
  margin-right: 0.5em;
  cursor: pointer;
  transition: background .15s, border .15s, color .15s;
}
.products-table button:hover, .data-table button:hover, .bumps-grid button:hover, .bumps-empty__card button:hover {
  background: #A100FF22;
  border-color: #A100FF;
  color: #A100FF;
}

/* Status pills (remover verde) */
.status-pill--paid,
.status-pill--converted {
  background: #A100FF22;
  color: #A100FF;
}
.status-pill--pending,
.status-pill--open {
  background: #232336;
  color: var(--color-text-secondary, #8a8a8a);
}

.status-pill--waiting {
  background: rgba(255, 176, 32, 0.16);
  color: #ffcf72;
  border: 1px solid rgba(255, 176, 32, 0.32);
}

.status-pill--danger {
  background: rgba(229, 57, 53, 0.16);
  color: #ff8f8b;
  border: 1px solid rgba(229, 57, 53, 0.32);
}
/* Funil visual horizontal */
.funnel-bar-visual {
  width: 100%;
  padding: 1.2rem 0 0.5rem 0;
}
.funnel-bar-labels {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--color-text-secondary, #bdbdbd);
  font-weight: 600;
}
.funnel-bar-labels div {
  text-align: center;
  flex: 1 1 0;
}
.funnel-bar-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-brand, #A100FF);
  margin-top: 0.2em;
}
.funnel-bar-track {
  width: 100%;
  height: 18px;
  background: #181825;
  border-radius: 12px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 2px 16px 0 #0006;
}
.funnel-bar-segment {
  height: 100%;
  transition: width 0.4s cubic-bezier(.7,.2,.2,1);
}
#funnel-bar-segment-visitors {
  background: linear-gradient(90deg, #A100FF 60%, #7B2FF2 100%);
}
#funnel-bar-segment-checkout {
  background: linear-gradient(90deg, #7B2FF2 60%, #00ff85 100%);
}
#funnel-bar-segment-starts {
  background: linear-gradient(90deg, #00ff85 60%, #00C3FF 100%);
}
#funnel-bar-segment-purchases {
  background: linear-gradient(90deg, #00C3FF 60%, #fff 100%);
}
:root {
  color-scheme: light;
  font-family: "DM Sans", sans-serif;
  background: #f4f0e8;
  color: #2a2622;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(
      circle at top left,
      rgba(138, 154, 115, 0.18),
      transparent 55%
    ),
    radial-gradient(circle at 80% 20%, rgba(214, 186, 122, 0.2), transparent 40%),
    #f4f0e8;
  color: #2a2622;
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 20px 64px;
}

.card {
  width: 100%;
  background: #0D0D12;
  border: 1.5px solid #232336;
  border-radius: 18px;
  padding: 2.2rem 1.5rem;
  box-shadow: 0 4px 24px 0 #0008;
  display: grid;
  gap: 1.5rem;
}

.card h1,
.card h2 {
  font-family: "Playfair Display", serif;
  margin: 0;
}

.form {
  display: grid;
  gap: 14px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: #4b463f;
}

.form input,
.form select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(90, 88, 82, 0.25);
  font-size: 14px;
  background: #fffdf8;
}

.form input:focus,
.form select:focus {
  outline: 2px solid rgba(103, 120, 74, 0.35);
  border-color: rgba(103, 120, 74, 0.4);
}

button {
  border: none;
  background: linear-gradient(135deg, #5f6f3f, #76854d);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 24px rgba(95, 111, 63, 0.25);
}

button:hover {
  transform: translateY(-1px);
}

button.ghost {
  background: transparent;
  color: #5f6f3f;
  border: 1px solid rgba(95, 111, 63, 0.4);
  box-shadow: none;
}

.items {
  display: grid;
  gap: 14px;
}

.item {
  border: 1px solid rgba(90, 88, 82, 0.2);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(34, 30, 26, 0.08);
}

.item__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hidden {
  display: none;
}

.error {
  color: #b91c1c;
  margin: 0;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: #0D0D12 !important;
  border-bottom: 1.5px solid #232336;
  margin-bottom: 2.2rem;
  box-shadow: none !important;
}

.panel-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.panel-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.panel-tab {
  background: #181825;
  color: #B7B7C2;
  border: 1.5px solid #232336;
  padding: 0.85em 1.7em;
  border-radius: 14px;
  box-shadow: none;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  font-size: 1.05em;
  letter-spacing: 0.01em;
  transition: background 0.18s, color 0.18s, border 0.18s;
}

.panel-tab.is-active {
  background: linear-gradient(90deg,#181825 80%,#A100FF11 100%);
  color: #A100FF;
  border-color: #A100FF;
  box-shadow: 0 0 0 2px #A100FF,0 2px 16px 0 #A100FF22;
}

.panel-view {
  display: grid;
  gap: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.stat-card {
  background: #13131A;
  border-radius: 18px;
  padding: 2.2rem 1.5rem;
  border: 1.5px solid #232336;
  box-shadow: 0 2px 16px 0 #A100FF22;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: grid;
  gap: 0.7rem;
}

.stat-card strong {
  font-size: 2.1rem;
  font-family: var(--font-title, "Playfair Display", serif);
  font-weight: 900;
  color: var(--color-brand, #A100FF);
}

.stat-card small {
  color: var(--color-text-secondary, #8a8a8a);
}

.stat-card--accent {
  background: linear-gradient(120deg,#181825 60%,#A100FF22 100%);
  color: var(--color-brand, #A100FF);
  border: 1.5px solid var(--color-brand, #A100FF);
  box-shadow: 0 2px 32px 0 #A100FF33;
}

.funnel-card,
.timeline-card {
  background: #181825;
  border-radius: 18px;
  border: 1.5px solid #232336;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 24px 0 #0008;
}

.funnel-card h2,
.timeline-card h2 {
  margin-bottom: 10px;
}

.funnel-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 1.5rem;
}

.funnel-item {
  background: #13131A;
  border-radius: 16px;
  border: 1.5px solid #232336;
  padding: 1.2rem 1rem;
  box-shadow: 0 1px 8px 0 #A100FF11;
  font-weight: 600;
  display: grid;
  gap: 0.7rem;
}

.funnel-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.funnel-item__header strong {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-brand, #A100FF);
}

.funnel-bar {
  height: 8px;
    background: #232336;
  border-radius: 999px;
  overflow: hidden;
}

.funnel-bar span {
  display: block;
  height: 100%;
    background: linear-gradient(90deg, var(--color-brand, #A100FF) 60%, #00ff85 100%);
  width: 0;
  transition: width 0.3s ease;
}

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

.timeline-table__wrap {
  overflow-x: auto;
}

.timeline-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: transparent;
}

.timeline-table th,
.timeline-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(90, 88, 82, 0.1);
}

.timeline-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary, #8a8a8a);
  font-weight: 700;
}

.timeline-table tr:last-child td {
  border-bottom: none;
}

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.view-header__actions {
  display: flex;
  gap: 10px;
}

.stats-grid--compact .stat-card {
  min-height: 140px;
}

.table-card {
  background: #fffdf8;
  border-radius: 20px;
  border: 1px solid rgba(90, 88, 82, 0.15);
  padding: 18px;
  box-shadow: 0 16px 40px rgba(42, 34, 28, 0.08);
  display: grid;
  gap: 12px;
}

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

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #232336;
  color: var(--color-text-main, #eaeaea);
  font-weight: 500;
}

.data-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary, #8a8a8a);
  font-weight: 700;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr[data-order-id],
.data-table tr[data-cart-id] {
  cursor: pointer;
  transition: background 0.15s ease;
}

.data-table tr[data-order-id]:hover,
.data-table tr[data-cart-id]:hover {
  background: rgba(138, 154, 115, 0.08);
}

.cell-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cell-stack strong {
  font-size: 15px;
}

.cell-stack small {
  color: rgba(42, 38, 34, 0.7);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-pill--pending {
  background: #232336;
  color: var(--color-text-secondary, #8a8a8a);
}

.status-pill--paid,
.status-pill--converted {
  background: #00ff85;
  color: #050505;
}

.status-pill--open {
  background: #232336;
  color: var(--color-text-secondary, #8a8a8a);
}

.muted {
  color: var(--color-text-secondary, #8a8a8a);
  font-size: 14px;
}

.inspector {
  position: fixed;
  inset: 0;
  background: rgba(25, 23, 17, 0.4);
  display: flex;
  justify-content: flex-end;
  padding: 40px 24px;
  z-index: 20;
}

.inspector__panel {
  width: min(420px, 100%);
  background: #fffdf8;
  border-radius: 24px;
  border: 1px solid rgba(90, 88, 82, 0.2);
  box-shadow: 0 30px 80px rgba(34, 26, 18, 0.4);
  display: grid;
  max-height: 100%;
}

.inspector__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  border-bottom: 1px solid #232336;
  color: var(--color-text-main, #eaeaea);
  font-weight: 500;
}

.inspector__body {
  padding: 24px;
  overflow-y: auto;
  display: grid;
  gap: 18px;
}

.inspector__eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(42, 38, 34, 0.6);
}

.data-section {
  display: grid;
  gap: 10px;
}

.data-section h4 {
  margin: 0;
  font-size: 15px;
  color: #4b463f;
}

.data-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.data-grid__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.data-grid__row span {
  color: rgba(42, 38, 34, 0.7);
}

.data-grid__row strong {
  font-family: inherit;
}

.items-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.items-list__item {
  border: 1px solid rgba(90, 88, 82, 0.15);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
}

.items-list__item strong {
  font-size: 15px;
}

.products-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.products-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.products-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(90, 88, 82, 0.2);
  background: #fff;
  min-width: 260px;
}

.products-search svg {
  width: 18px;
  height: 18px;
  color: rgba(42, 38, 34, 0.6);
}

.products-search input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 14px;
  outline: none;
}

.products-table-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(90, 88, 82, 0.15);
  box-shadow: 0 20px 50px rgba(42, 34, 28, 0.08);
  overflow: hidden;
}

.products-table {
  width: 100%;
  border-collapse: collapse;
}

.products-table th,
.products-table td {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(90, 88, 82, 0.08);
  text-align: left;
}

.products-table th {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(42, 38, 34, 0.6);
  background: #fffdf8;
}

.products-table tbody tr:last-child td {
  border-bottom: none;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-cell img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(90, 88, 82, 0.15);
}

.product-cell strong {
  display: block;
  font-size: 16px;
}

.product-cell span {
  font-size: 13px;
  color: rgba(42, 38, 34, 0.65);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(95, 111, 63, 0.12);
  color: #4f5b32;
}

.pill--digital {
  background: rgba(121, 97, 175, 0.15);
  color: #5c3d99;
}

.product-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-price strong {
  font-size: 16px;
}

.product-price small {
  color: rgba(42, 38, 34, 0.6);
}

.product-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.product-status--active {
  background: rgba(103, 120, 74, 0.15);
  color: #4a5b32;
}

.product-status--draft {
  background: rgba(193, 137, 82, 0.15);
  color: #8c5f38;
}

.product-actions {
  display: flex;
  gap: 10px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 8, 4, 0.6);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  z-index: 20;
}

.modal__panel {
  width: min(880px, 100%);
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25);
}

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

.modal__eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(42, 38, 34, 0.6);
  margin: 0 0 4px;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(90, 88, 82, 0.1);
}

.product-form {
  display: grid;
  gap: 18px;
}

.product-form textarea {
  resize: vertical;
  min-height: 90px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(90, 88, 82, 0.25);
  font-family: inherit;
  background: #fffdf8;
}

.product-type {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.product-type.single {
  grid-template-columns: minmax(220px, 1fr);
}

.product-type__group {
  display: grid;
  gap: 6px;
}

.product-type__group small {
  color: rgba(42, 38, 34, 0.65);
}

.toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(90, 88, 82, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.toggle button {
  background: transparent;
  border-radius: 0;
  border: none;
  padding: 10px 16px;
  color: #4b463f;
  box-shadow: none;
}

.toggle button.is-active {
  background: linear-gradient(135deg, #5f6f3f, #76854d);
  color: #fff;
}

.media-card {
  border: 1px solid rgba(90, 88, 82, 0.15);
  border-radius: 20px;
  padding: 18px;
  display: grid;
  gap: 16px;
  background: #fffdf8;
}

.media-card header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.media-tabs {
  display: inline-flex;
  gap: 8px;
  background: rgba(90, 88, 82, 0.08);
  padding: 4px;
  border-radius: 999px;
}

.media-tabs button {
  background: transparent;
  border-radius: 999px;
  color: #4b463f;
  padding: 6px 14px;
  box-shadow: none;
}

.media-tabs button.is-active {
  background: #fff;
  color: #2a2622;
}

.media-panel {
  border: 1px dashed rgba(90, 88, 82, 0.3);
  border-radius: 16px;
  padding: 16px;
}

.upload-tile {
  display: grid;
  place-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 600;
  color: #4b463f;
}

.media-preview {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.media-preview img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(90, 88, 82, 0.2);
  background: #f8f5ee;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.logistics-card {
  border: 1px solid rgba(90, 88, 82, 0.12);
  border-radius: 20px;
  padding: 18px;
  background: #fff;
  display: grid;
  gap: 12px;
}

.logistics-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.chip {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: #232336;
  color: #B7B7C2;
  box-shadow: 0 2px 16px 0 #A100FF11;
}

.logistics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
    padding: 4px 12px;
    font-weight: 700;
    background: #232336;
    color: var(--color-brand, #A100FF);
    border: none;
  border-radius: 999px;
  border: 1px solid rgba(90, 88, 82, 0.2);
  background: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.switch.small {
  padding: 4px 10px;
  font-size: 13px;
}

.switch input {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  width: 44px;
  min-width: 44px;
  height: 24px;
  margin: 0;
  border: 1px solid #5b00b5;
  border-radius: 999px;
  background: #0d0d12;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.switch input::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ededed;
  transition: transform 180ms ease;
}

.switch input:checked {
  background: #a100ff;
  border-color: #a100ff;
}

.switch input:checked::before {
  transform: translateX(20px);
}

.switch input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(161, 0, 255, 0.35);
}

.switch span {
  color: #4b463f;
}

.bumps-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.bumps-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.bumps-counters {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: rgba(42, 38, 34, 0.7);
}

.bumps-counters strong {
  font-size: 16px;
  color: #5f6f3f;
}

.bumps-empty {
  border: 2px dashed rgba(95, 111, 63, 0.2);
  border-radius: 24px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.8);
}

.bumps-empty__card {
  text-align: center;
  display: grid;
  gap: 8px;
}

.bumps-empty.hidden {
  display: none;
}

.bumps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.bump-card {
  border: 1px solid rgba(90, 88, 82, 0.15);
  border-radius: 20px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(42, 34, 28, 0.08);
  display: grid;
  gap: 14px;
}

.bump-card__header {
  display: flex;
  gap: 12px;
}

.bump-card__header img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(90, 88, 82, 0.15);
}

.bump-card__header div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bump-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(42, 38, 34, 0.7);
}

.bump-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.bump-pill--active {
  background: rgba(103, 120, 74, 0.15);
  color: #4a5b32;
}

.bump-pill--inactive {
  background: rgba(193, 137, 82, 0.15);
  color: #8c5f38;
}

.bump-actions {
  display: flex;
  gap: 10px;
}

.bump-form {
  display: grid;
  gap: 18px;
}

.bump-basic label,
.bump-pricing label {
  display: grid;
  gap: 6px;
}

.bump-pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.bump-triggers {
  border: 1px solid rgba(90, 88, 82, 0.15);
  border-radius: 20px;
  padding: 18px;
  background: #fffdf8;
  display: grid;
  gap: 16px;
}

.bump-triggers header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.trigger-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.trigger-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(90, 88, 82, 0.15);
  background: #fff;
}

.trigger-grid.hidden {
  display: none;
}

.bump-empty-row {
  border: 1px dashed rgba(90, 88, 82, 0.2);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  color: rgba(42, 38, 34, 0.7);
}

.items-list__item span {
  font-size: 13px;
  color: rgba(42, 38, 34, 0.7);
}

@media (max-width: 768px) {
  .inspector {
    padding: 20px 12px;
    justify-content: center;
  }
}

/* === Product Modal UI Refresh === */
#product-modal.modal {
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(8px);
  align-items: center;
  padding: 24px;
}

#product-modal .modal__panel--product {
  width: min(920px, 100%);
  max-height: 85vh;
  padding: 0;
  border-radius: 20px;
  border: 1px solid rgba(237, 237, 237, 0.1);
  background: linear-gradient(180deg, #0f0f16 0%, #0a0a10 100%);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

#product-modal .modal__header--product {
  margin: 0;
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(237, 237, 237, 0.08);
}

#product-modal .modal__eyebrow {
  color: rgba(237, 237, 237, 0.65);
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}

#product-modal .modal__header h3 {
  margin: 0;
  color: #ededed;
  font-size: 1.45rem;
  font-weight: 700;
}

#product-modal .modal__subtitle {
  margin: 8px 0 0;
  color: rgba(237, 237, 237, 0.68);
  font-size: 0.95rem;
}

#product-modal .modal-close-btn {
  border-radius: 10px;
  border: 1px solid rgba(237, 237, 237, 0.16);
  background: transparent;
  color: #ededed;
  min-height: 38px;
  padding: 0 14px;
}

#product-modal .product-form--premium {
  display: flex;
  flex-direction: column;
  gap: 0;
}

#product-modal .product-form__body {
  display: grid;
  gap: 16px;
  padding: 16px 24px 24px;
  overflow-y: auto;
  max-height: calc(85vh - 146px);
  scroll-behavior: smooth;
}

#product-modal .product-form__body::-webkit-scrollbar {
  width: 10px;
}

#product-modal .product-form__body::-webkit-scrollbar-track {
  background: transparent;
}

#product-modal .product-form__body::-webkit-scrollbar-thumb {
  background: rgba(91, 0, 181, 0.35);
  border-radius: 999px;
}

#product-modal .product-card {
  border: 1px solid rgba(237, 237, 237, 0.08);
  border-radius: 16px;
  background: #0d0d12;
  padding: 16px;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

#product-modal .product-card:hover {
  border-color: rgba(161, 0, 255, 0.35);
}

#product-modal .product-card h4 {
  margin: 0;
  color: #ededed;
  font-size: 1.05rem;
  font-weight: 600;
}

#product-modal .product-card p {
  margin: 6px 0 0;
  color: rgba(237, 237, 237, 0.65);
  font-size: 0.92rem;
}

#product-modal .product-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 16px;
}

#product-modal .product-data-card {
  display: grid;
  gap: 14px;
}

#product-modal .product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#product-modal .product-grid label:first-child {
  grid-column: 1 / -1;
}

#product-modal .media-card {
  display: grid;
  gap: 14px;
  background: #0d0d12;
  border-color: rgba(237, 237, 237, 0.08);
}

#product-modal .media-card header,
#product-modal .logistics-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

#product-modal .media-tabs {
  background: rgba(237, 237, 237, 0.06);
  border-radius: 999px;
  border: 1px solid rgba(237, 237, 237, 0.08);
  padding: 4px;
}

#product-modal .media-tabs button {
  border: 0;
  box-shadow: none;
  border-radius: 999px;
  padding: 8px 14px;
  min-height: auto;
  color: rgba(237, 237, 237, 0.75);
  transition: all 150ms ease;
}

#product-modal .media-tabs button.is-active {
  color: #050505;
  background: #a100ff;
}

#product-modal .media-panel {
  border: 1px dashed rgba(237, 237, 237, 0.24);
  border-radius: 12px;
  padding: 14px;
  background: rgba(237, 237, 237, 0.02);
}

#product-modal .upload-tile {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 128px;
  text-align: center;
  color: #ededed;
}

#product-modal .upload-tile span {
  font-weight: 600;
  color: #ededed;
}

#product-modal .upload-tile small {
  color: rgba(237, 237, 237, 0.6);
}

#product-modal .upload-tile__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid rgba(237, 237, 237, 0.16);
  color: #ededed;
  font-style: normal;
  font-weight: 600;
  background: rgba(237, 237, 237, 0.03);
  transition: all 150ms ease;
}

#product-modal .upload-tile:hover .upload-tile__btn {
  border-color: rgba(161, 0, 255, 0.42);
  color: #a100ff;
}

#product-modal .media-preview {
  margin: 0;
  display: grid;
  gap: 8px;
}

#product-modal .media-preview img {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px solid rgba(237, 237, 237, 0.12);
  background: #11111a;
}

#product-modal .media-preview figcaption {
  color: rgba(237, 237, 237, 0.62);
  font-size: 0.85rem;
}

#product-modal .product-form--premium label {
  display: grid;
  gap: 8px;
  color: #ededed;
  font-weight: 500;
}

#product-modal .product-form--premium input,
#product-modal .product-form--premium select,
#product-modal .product-form--premium textarea {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(237, 237, 237, 0.1);
  background: #0d0d12;
  color: #ededed;
  padding: 10px 12px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

#product-modal .product-form--premium textarea {
  min-height: 112px;
  resize: vertical;
}

#product-modal .product-form--premium input::placeholder,
#product-modal .product-form--premium textarea::placeholder {
  color: rgba(237, 237, 237, 0.45);
}

#product-modal .product-form--premium input:focus,
#product-modal .product-form--premium select:focus,
#product-modal .product-form--premium textarea:focus {
  outline: none;
  border-color: rgba(161, 0, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(161, 0, 255, 0.14);
}

#product-modal .toggle {
  border: 1px solid rgba(237, 237, 237, 0.1);
  background: #0d0d12;
}

#product-modal .toggle button {
  min-height: 42px;
  color: rgba(237, 237, 237, 0.75);
  transition: all 150ms ease;
}

#product-modal .toggle button.is-active {
  background: #a100ff;
  color: #050505;
}

#product-modal .logistics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#product-modal .chip {
  background: rgba(91, 0, 181, 0.18);
  border: 1px solid rgba(91, 0, 181, 0.45);
  color: #dcb9ff;
}

#product-modal .modal__footer--sticky {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 12px 24px;
  border-top: 1px solid rgba(237, 237, 237, 0.08);
  background: linear-gradient(180deg, rgba(10, 10, 16, 0.92), #0a0a10);
}

#product-modal .modal__footer--sticky .ghost {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(237, 237, 237, 0.18);
  background: transparent;
  color: #ededed;
}

#product-modal .modal__footer--sticky #product-submit {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid #a100ff;
  background: #a100ff;
  color: #050505;
  font-weight: 700;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

#product-modal .modal__footer--sticky #product-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(161, 0, 255, 0.35);
}

#product-modal .modal__footer--sticky #product-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

@media (max-width: 1024px) {
  #product-modal .product-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #product-modal.modal {
    padding: 12px;
    align-items: flex-end;
  }

  #product-modal .modal__panel--product {
    width: 100%;
    max-height: 92vh;
    border-radius: 16px;
  }

  #product-modal .modal__header--product,
  #product-modal .product-form__body,
  #product-modal .modal__footer--sticky {
    padding-left: 16px;
    padding-right: 16px;
  }

  #product-modal .product-grid {
    grid-template-columns: 1fr;
  }

  #product-modal .logistics-grid {
    grid-template-columns: 1fr;
  }
}

/* === Dashboard UI/UX Refresh === */
body {
  background: #050505 !important;
  color: #ededed !important;
}

#main-content {
  margin-left: 260px !important;
  background: #050505 !important;
  padding: 40px 32px 28px !important;
}

#panel {
  padding: 0 !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
}

.panel-header {
  padding: 0 0 20px !important;
  border-bottom: 1px solid rgba(161, 0, 255, 0.18) !important;
  margin-bottom: 20px !important;
}

.dashboard-overview-head {
  background: rgba(13, 13, 18, 0.6) !important;
  border: 1px solid rgba(161, 0, 255, 0.18) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24) !important;
}

.panel-tabs {
  display: none !important;
}

.panel-view {
  gap: 18px !important;
}

.live-view-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 1fr) !important;
  align-items: center !important;
  background: rgba(13, 13, 18, 0.65) !important;
  border: 1px solid rgba(161, 0, 255, 0.18) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24) !important;
}

.live-globe-wrap {
  position: relative;
  min-height: 320px;
}

.live-globe-wrap::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(78%, 320px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 255, 133, 0.14), rgba(0, 255, 133, 0.02) 55%, transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

#live-globe {
  width: min(100%, 420px) !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  max-width: 100% !important;
  max-height: 420px !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  background-position: center !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.stats-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.stat-card {
  background: rgba(13, 13, 18, 0.6) !important;
  border: 1px solid rgba(161, 0, 255, 0.18) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22) !important;
  padding: 18px 16px !important;
}

.stat-card strong {
  color: #a100ff !important;
}

.funnel-card,
.timeline-card,
.table-card,
.products-table-card {
  background: rgba(13, 13, 18, 0.64) !important;
  border: 1px solid rgba(161, 0, 255, 0.18) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24) !important;
}

.view-header {
  padding-bottom: 6px;
}

.view-header h2 {
  margin: 0;
}

.table-scroll {
  overflow-x: auto;
}

.data-table th,
.data-table td,
.products-table th,
.products-table td {
  white-space: nowrap;
}

.data-table td:first-child,
.products-table td:first-child {
  white-space: normal;
}

@media (max-width: 1280px) {
  .stats-grid,
  .stats-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1024px) {
  #main-content {
    padding: 92px 22px 22px !important;
  }

  .live-view-card {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .live-globe-wrap {
    min-height: 280px;
  }

  .stats-grid,
  .stats-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  #main-content {
    margin-left: 0 !important;
    padding: 84px 16px 18px !important;
  }

  .panel-header {
    gap: 10px !important;
  }

  .panel-header > div:first-child {
    gap: 10px !important;
  }

  .panel-header h1 {
    font-size: 1.5rem !important;
  }

  .dashboard-overview-head {
    padding: 14px !important;
  }

  .stats-grid,
  .stats-grid--compact {
    grid-template-columns: 1fr !important;
  }

  .live-globe-wrap {
    min-height: 240px;
  }

  #live-globe {
    max-width: 280px !important;
    max-height: 280px !important;
  }
}

/* === SaaS Premium Dashboard Layout === */
.dashboard-header-actions {
  gap: 12px !important;
}

.period-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(161, 0, 255, 0.2);
  background: rgba(13, 13, 18, 0.68);
}

.period-control span {
  font-size: 12px;
  color: #b6a7d2;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.period-control select {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(161, 0, 255, 0.28);
  background: #0d0d12;
  color: #ededed;
  padding: 0 10px;
  font-weight: 600;
}

#dashboard-view {
  display: grid;
  gap: 24px !important;
}

.kpi-grid {
  display: grid;
  gap: 16px;
}

.kpi-grid--main {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kpi-grid--secondary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.kpi-card {
  background: rgba(13, 13, 18, 0.62);
  border: 1px solid rgba(161, 0, 255, 0.2);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
  display: grid;
  gap: 8px;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.kpi-card:hover {
  transform: translateY(-1px);
  border-color: rgba(161, 0, 255, 0.34);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.kpi-card p {
  margin: 0;
  color: #b5a9c9;
  font-size: 0.9rem;
  font-weight: 600;
}

.kpi-card strong {
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  color: #ededed;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.kpi-card small {
  color: #8e83a3;
  font-size: 0.78rem;
}

.kpi-card--hero strong {
  color: #a100ff;
}

.kpi-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kpi-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(161, 0, 255, 0.18);
  color: #d799ff;
  font-size: 0.78rem;
  font-weight: 800;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.dashboard-card {
  background: rgba(13, 13, 18, 0.62);
  border: 1px solid rgba(161, 0, 255, 0.2);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
  padding: 18px;
}

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

.dashboard-card-head h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ededed;
}

.dashboard-card-head p {
  margin: 4px 0 0;
  color: #9488aa;
  font-size: 0.88rem;
}

.online-now-value {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.online-now-value span {
  font-size: 2rem;
  font-weight: 900;
  color: #00ff85;
}

.online-now-value small {
  color: #99a6ae;
  font-size: 0.84rem;
}

.live-session-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
  color: #ded7ea;
}

.live-session-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(91, 0, 181, 0.12);
}

.dashboard-card--online .live-globe-wrap {
  min-height: auto;
  margin-bottom: 6px;
}

.dashboard-card--online #live-globe {
  max-width: 180px !important;
  max-height: 180px !important;
  width: 100% !important;
}

.dashboard-card--orders .data-table th,
.dashboard-card--orders .data-table td {
  padding: 10px 12px;
}

.dashboard-card--orders .data-table td small {
  color: #9488aa;
}

@media (max-width: 1200px) {
  .kpi-grid--secondary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .kpi-grid--main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .dashboard-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .period-control {
    flex: 1 1 auto;
  }

  .period-control select {
    width: 100%;
  }

  .kpi-grid--main,
  .kpi-grid--secondary {
    grid-template-columns: 1fr;
  }

  .dashboard-card {
    padding: 14px;
  }

  .dashboard-card-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* === Inline Style Cleanup Classes === */
.sidebar-logout-btn {
  width: 80%;
  margin-bottom: 1.2rem;
}

.dashboard-login-card {
  max-width: 400px;
  margin: 4rem auto 0;
  box-shadow: var(--shadow-dark);
}

.dashboard-login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.dashboard-login-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
}

.dashboard-login-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 2.2rem;
  letter-spacing: -1px;
  margin: 0;
}

.dashboard-login-form {
  margin-top: 2rem;
}

.dashboard-login-field {
  width: 100%;
  color: var(--color-text-secondary);
  font-weight: 600;
}

.dashboard-login-input {
  width: 100%;
  margin-top: 0.5rem;
}

.dashboard-login-submit {
  width: 100%;
  margin-top: 1.5rem;
}

.dashboard-login-error {
  color: var(--color-error);
}

#panel.panel-main {
  padding: 3.5rem 4vw 2.5rem;
  max-width: 100vw;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.dashboard-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: -1px;
  margin: 0;
}

.dashboard-subtitle {
  color: var(--color-text-secondary);
  font-weight: 500;
  margin: 0.35rem 0 0;
}

.dashboard-refresh-btn,
.dashboard-cta-btn {
  font-weight: 700;
}

.section-title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.5rem;
}

.section-subtitle {
  margin: 0.3rem 0 0;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.stat-card--compact {
  padding: 1.5rem 1.2rem !important;
  text-align: center;
}

.stat-value-md {
  font-size: 1.5rem !important;
  font-family: var(--font-title);
  font-weight: 900;
}

.stat-label {
  color: var(--color-text-secondary);
  font-weight: 600;
  margin: 0;
}

.stat-label-accent {
  color: var(--color-brand);
  font-weight: 700;
}

.stat-note {
  color: var(--color-text-secondary);
}

.table-card--section {
  margin-top: 2rem;
  padding: 0.5rem 0.5rem 1.5rem;
}

.table-card-header {
  padding: 1.2rem 1.2rem 0.5rem;
  background: transparent;
}

.table-title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.1rem;
}

.table-subtitle {
  margin: 0.3rem 0 0;
  color: var(--color-text-secondary);
  font-size: 0.95em;
}

.table-scroll--rounded {
  background: transparent;
  border-radius: 14px;
}

.data-table--full,
.products-table--full {
  width: 100%;
  background: transparent;
}

.integration-card {
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.integration-provider-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.integration-form-grid {
  display: grid;
  gap: 0.75rem;
}

.integration-utmify-fields {
  display: grid;
  gap: 0.75rem;
}

.integration-actions-row {
  display: flex;
  gap: 0.6rem;
}

.integration-list-title {
  margin-top: 0;
}

.products-search--dark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-bg-card);
  border-radius: var(--radius-btn);
  padding: 0.5rem 1rem;
}

.search-icon {
  width: 1.2em;
  height: 1.2em;
  color: var(--color-brand);
}

.search-input-dark {
  background: transparent;
  border: none;
  color: var(--color-text-main);
  outline: none;
}

.products-table-card--section {
  padding: 0.5rem 0.5rem 1.5rem;
}

.products-table-wrap {
  background: transparent;
  border-radius: 14px;
}

.bumps-empty--spaced {
  margin-bottom: 2rem;
}

.bumps-empty__card--dark {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.bumps-empty-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #a100ff;
  margin: 0;
}

.bumps-empty-subtitle {
  color: var(--color-text-secondary);
}

.bumps-empty-btn {
  margin-top: 1.5rem;
  color: #a100ff;
  border: 1.5px solid #a100ff;
}

@media (max-width: 768px) {
  #panel.panel-main {
    padding: 1.5rem 1rem 1.25rem;
  }

  .dashboard-login-card {
    margin-top: 2rem;
  }
}

/* === Final UI Polish: Header + Buttons + Focus (Purple Only) === */
.panel-header.panel-header--inline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px;
  margin: 0 0 24px;
  border: 1px solid rgba(161, 0, 255, 0.2);
  border-radius: 18px;
  background: rgba(13, 13, 18, 0.62);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.panel-header.panel-header--inline .panel-title-wrap {
  gap: 0;
}

.panel-header.panel-header--inline .dashboard-title {
  margin: 0;
}

/* === Shipping Methods (Fretes) === */
.shipping-section-card {
  padding-bottom: 1.25rem;
}

.shipping-methods-list {
  display: grid;
  gap: 12px;
  padding: 0 1rem 1rem;
}

.shipping-method-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: rgba(13, 13, 18, 0.78);
  border: 1px solid rgba(161, 0, 255, 0.2);
  border-radius: 14px;
  padding: 14px 16px;
}

.shipping-method-row--empty {
  grid-template-columns: 1fr;
  text-align: center;
  color: #9b90b0;
}

.shipping-method-row__main h4 {
  margin: 0;
  color: #ededed;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.shipping-method-row__meta {
  margin: 6px 0 4px;
  color: #b8accd;
  font-size: 0.92rem;
}

.shipping-method-row__main small {
  color: #8f86a2;
}

.shipping-method-row__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.shipping-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #d4bcff;
  border: 1px solid rgba(161, 0, 255, 0.45);
  background: rgba(161, 0, 255, 0.16);
}

#shipping-modal .shipping-modal__panel {
  width: min(680px, calc(100% - 24px));
  background: linear-gradient(180deg, #11111a 0%, #0b0b12 100%);
  border: 1px solid rgba(161, 0, 255, 0.28);
}

.shipping-form {
  display: grid;
  gap: 0;
}

.shipping-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 1.25rem 1.25rem;
}

.shipping-form-grid__full {
  grid-column: 1 / -1;
}

.shipping-form-grid label {
  display: grid;
  gap: 6px;
  color: #d8cee8;
  font-size: 0.92rem;
}

.shipping-form-grid input,
.shipping-form-grid textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(161, 0, 255, 0.24);
  background: rgba(13, 13, 18, 0.95);
  color: #ededed;
  padding: 10px 12px;
}

.shipping-form-grid textarea {
  resize: vertical;
  min-height: 88px;
}

.shipping-form-grid input:focus,
.shipping-form-grid textarea:focus {
  outline: none;
  border-color: rgba(161, 0, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(161, 0, 255, 0.22);
}

@media (max-width: 900px) {
  .shipping-method-row {
    grid-template-columns: 1fr;
  }
  .shipping-method-row__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .shipping-form-grid {
    grid-template-columns: 1fr;
  }
}

/* === Custom Domains === */
.domain-card {
  align-items: start;
}

.domain-card__main {
  display: grid;
  gap: 10px;
}

.domain-card__title {
  margin: 0;
  color: #ededed;
  font-size: 1.05rem;
  font-weight: 800;
}

.domain-card__status {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.domain-card__status.is-ok {
  color: #0b5130;
  background: #d2f5e2;
  border-color: #9ae3bd;
}

.domain-card__status.is-pending {
  color: #5f4700;
  background: #fff1b8;
  border-color: #f0d16c;
}

.domain-card__dns {
  border: 1px solid rgba(161, 0, 255, 0.18);
  border-radius: 12px;
  background: rgba(8, 8, 12, 0.6);
  padding: 10px;
}

.domain-dns-empty {
  color: #9b90b0;
  font-size: 12px;
}

.domain-dns-table {
  display: grid;
  gap: 8px;
}

.domain-dns-head,
.domain-dns-row {
  display: grid;
  grid-template-columns: 72px minmax(90px, 0.7fr) minmax(140px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.domain-dns-head {
  color: #8f86a2;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.domain-dns-row {
  border: 1px solid rgba(161, 0, 255, 0.16);
  border-radius: 10px;
  background: rgba(13, 13, 18, 0.92);
  padding: 8px 10px;
}

.domain-dns-type {
  color: #d4bcff;
  font-weight: 700;
  font-size: 12px;
}

.domain-dns-name,
.domain-dns-value {
  color: #d8cee8;
  font-size: 12px;
  word-break: break-all;
}

.domain-dns-copy {
  font-size: 12px;
  padding: 6px 10px;
  min-width: 78px;
}

.domain-card__error {
  color: #ff6b6b;
  font-size: 12px;
}

.domain-setup-guide {
  border: 1px solid rgba(161, 0, 255, 0.16);
  border-radius: 12px;
  background: rgba(11, 11, 16, 0.74);
  padding: 12px;
  margin-top: 2px;
}

.domain-setup-guide__title {
  margin: 0 0 8px;
  color: #e9e0f4;
  font-size: 13px;
  font-weight: 700;
}

.domain-setup-guide__steps {
  margin: 0;
  padding-left: 18px;
  color: #bfb3d5;
  font-size: 12px;
  line-height: 1.5;
  display: grid;
  gap: 6px;
}

.domain-setup-guide__steps strong {
  color: #ece6f7;
  font-weight: 700;
}

.domains-empty {
  min-height: 92px;
  display: grid;
  place-items: center;
}

@media (max-width: 880px) {
  .domain-dns-head,
  .domain-dns-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .domain-dns-head span:nth-child(3),
  .domain-dns-head span:nth-child(4) {
    display: none;
  }
  .domain-dns-row .domain-dns-value {
    grid-column: 1 / -1;
  }
  .domain-dns-row .domain-dns-copy {
    justify-self: start;
  }
}

.panel-header.panel-header--inline .dashboard-subtitle {
  margin-top: 6px;
}

.panel-header.panel-header--inline .dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 768px) {
  .panel-header.panel-header--inline {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
}

button,
button:hover,
button:focus-visible,
.ghost,
.ghost:hover,
.ghost:focus-visible,
.dashboard-refresh-btn,
.dashboard-cta-btn {
  border-radius: 12px !important;
}

button,
.dashboard-login-submit {
  background: #a100ff !important;
  color: #ededed !important;
  border: 1px solid transparent !important;
  box-shadow: 0 10px 24px rgba(161, 0, 255, 0.24) !important;
}

button:hover,
.dashboard-login-submit:hover {
  background: #b326ff !important;
  box-shadow: 0 12px 28px rgba(161, 0, 255, 0.34) !important;
}

.ghost,
button.ghost {
  background: rgba(13, 13, 18, 0.56) !important;
  color: #ededed !important;
  border: 1px solid #5b00b5 !important;
  box-shadow: none !important;
}

.ghost:hover,
button.ghost:hover {
  border-color: #a100ff !important;
  background: rgba(91, 0, 181, 0.2) !important;
  color: #ededed !important;
}

button:focus-visible,
.ghost:focus-visible,
input:focus,
select:focus,
textarea:focus,
.form input:focus,
.form select:focus,
#product-modal .product-form--premium input:focus,
#product-modal .product-form--premium select:focus,
#product-modal .product-form--premium textarea:focus {
  outline: none !important;
  border-color: #a100ff !important;
  box-shadow: 0 0 0 3px rgba(161, 0, 255, 0.35) !important;
}

.toggle button.is-active,
.media-tabs button.is-active,
#product-modal .media-tabs button.is-active,
#product-modal .toggle button.is-active {
  background: linear-gradient(135deg, #a100ff, #5b00b5) !important;
  color: #ededed !important;
  border-color: #a100ff !important;
}

.online-now-value span {
  color: #a100ff !important;
}

/* Sidebar must not inherit global purple button fill */
.sidebar .sidebar__nav-btn {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: #ededed !important;
  box-shadow: none !important;
}

.sidebar .sidebar__nav-btn:hover {
  border-color: rgba(161, 0, 255, 0.25) !important;
  background: rgba(161, 0, 255, 0.06) !important;
}

.sidebar .sidebar__nav-btn.active,
.sidebar .sidebar__nav-btn:focus-visible {
  border-color: rgba(161, 0, 255, 0.55) !important;
  background: rgba(161, 0, 255, 0.1) !important;
  box-shadow: 0 0 0 1px rgba(161, 0, 255, 0.15) !important;
}

.sidebar .sidebar__footer .ghost,
.sidebar .sidebar__footer .ghost:hover {
  background: transparent !important;
  color: #ededed !important;
  border: 1px solid rgba(161, 0, 255, 0.35) !important;
  box-shadow: none !important;
}

/* === Data/UI Fixes: Select + Inspector + Mobile === */
.period-control select,
.form select,
#product-modal .product-form--premium select {
  background: #0d0d12 !important;
  color: #ededed !important;
  border: 1px solid rgba(161, 0, 255, 0.28) !important;
}

select option {
  background: #0d0d12;
  color: #ededed;
}

.panel-header.panel-header--inline {
  padding: 24px !important;
}

.inspector {
  justify-content: flex-end;
  padding: 0;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(8px);
}

.inspector__panel {
  width: min(500px, 100%);
  height: 100vh;
  max-height: 100vh;
  border-left: 1px solid rgba(161, 0, 255, 0.24);
  border-radius: 0;
  background: #0d0d12;
  display: flex;
  flex-direction: column;
}

.inspector__header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(161, 0, 255, 0.2);
  background: rgba(13, 13, 18, 0.96);
}

.inspector__body {
  flex: 1;
  overflow: auto;
  padding: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.inspector__body section {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(237, 237, 237, 0.08);
}

.inspector__body h4 {
  margin: 0 0 8px;
  color: #ededed;
}

.inspector__body pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(161, 0, 255, 0.08);
  border: 1px solid rgba(161, 0, 255, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
}

@media (max-width: 900px) {
  .sidebar {
    width: 72px;
    height: 100vh;
    border-right: 1px solid rgba(161, 0, 255, 0.15);
    border-bottom: none;
    flex-direction: column;
  }

  .sidebar__nav {
    flex-direction: column;
    overflow: hidden;
    align-items: stretch;
    gap: 8px;
    padding: 0 8px;
  }

  .sidebar__nav-btn {
    text-indent: -9999px;
    justify-content: center;
    min-width: 0;
    width: 100%;
    gap: 0;
  }

  .sidebar__nav-btn svg,
  .sidebar__nav-btn .lucide {
    text-indent: 0;
  }

  #main-content {
    margin-left: 72px !important;
    padding: 20px 16px 18px !important;
  }
}

@media (max-width: 768px) {
  .panel-header.panel-header--inline {
    padding: 16px !important;
  }

  .dashboard-header-actions {
    flex-direction: column;
    align-items: stretch !important;
  }

  .period-control {
    width: 100%;
  }

  .inspector {
    align-items: flex-end;
  }

  .inspector__panel {
    width: 100%;
    height: 92vh;
    max-height: 92vh;
    border-left: 0;
    border-top: 1px solid rgba(161, 0, 255, 0.24);
    border-radius: 16px 16px 0 0;
  }
}

/* Mobile Sidebar Drawer Layout Overrides */
@media (min-width: 769px) and (max-width: 900px) {
  #main-content {
    margin-left: 260px !important;
    padding: 20px 16px 18px !important;
  }
}

@media (max-width: 768px) {
  #main-content {
    margin-left: 0 !important;
    padding: 84px 16px 18px !important;
  }
}

.dashboard-auth-loading {
  min-height: 260px;
  max-width: 420px;
  margin: 4rem auto 0;
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
  background: rgba(13, 13, 18, 0.72);
  border: 1px solid rgba(161, 0, 255, 0.24);
  border-radius: 18px;
}

.dashboard-auth-loading h2 {
  margin: 0;
  color: #ededed;
  font-size: 1.1rem;
  font-weight: 700;
}

.dashboard-auth-loading__spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(161, 0, 255, 0.24);
  border-top-color: #a100ff;
  animation: dashboardAuthSpin 0.9s linear infinite;
}

@keyframes dashboardAuthSpin {
  to {
    transform: rotate(360deg);
  }
}
