/* ==========================================================================
   STRIPE DASHBOARD DESIGN SYSTEM
   Ultra-Clean, Minimalist, Elegant Light Theme for Hisense Products
   ========================================================================== */

:root {
  --bg-page: #ffffff;
  --bg-sidebar: #fafbfd;
  --bg-hover: #f7f9fa;
  --bg-banner: #f8fafc;
  
  --border-color: #e3e8ee;
  --border-subtle: #edf2f7;
  --border-focus: #635bff;

  --text-main: #1a1f36;
  --text-muted: #4f566b;
  --text-dim: #697386;
  --text-light: #a3acb9;

  --stripe-blurple: #635bff;
  --stripe-blurple-light: #f0efff;
  --stripe-blurple-hover: #5851ea;

  --green-profit: #00875a;
  --green-profit-bg: #e3fcef;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Ubuntu, sans-serif;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-drawer: -4px 0 24px rgba(0, 0, 0, 0.12);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ==========================================================================
   STRIPE APP LAYOUT (SIDEBAR + MAIN)
   ========================================================================== */

.stripe-app {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Left Sidebar */
.stripe-sidebar {
  width: 240px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  user-select: none;
  transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  position: relative;
  z-index: 100;
}

.stripe-sidebar.collapsed {
  margin-left: -240px;
  opacity: 0;
  pointer-events: none;
}

/* Sidebar Header Collapse Button */
.sidebar-toggle-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: auto;
  flex-shrink: 0;
  padding: 0;
}

.sidebar-toggle-btn:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-color);
  color: var(--text-main);
}

/* Floating Expand Button (Visible when sidebar is collapsed) */
.sidebar-expand-btn {
  position: fixed;
  left: 0;
  top: 16px;
  z-index: 99;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left: none;
  color: #4f566b;
  width: 28px;
  height: 38px;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-expand-btn:hover {
  background: #f8fafc;
  color: var(--stripe-blurple);
  width: 32px;
}

.sidebar-expand-btn.hidden {
  display: none !important;
}

.sidebar-workspace {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-workspace:hover {
  background-color: var(--bg-hover);
}

.workspace-avatar {
  width: 24px;
  height: 24px;
  background-color: #3c4257;
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.workspace-meta {
  flex: 1;
  overflow: hidden;
}

.workspace-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workspace-sub {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
}

.workspace-chevron {
  color: var(--text-dim);
}

.sidebar-nav {
  padding: 12px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-group-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 10px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.nav-item:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
}

.nav-item.active {
  background-color: var(--stripe-blurple-light);
  color: var(--stripe-blurple);
  font-weight: 600;
}

.nav-item.active svg {
  stroke: var(--stripe-blurple);
}

.nav-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  background-color: #e3e8ee;
  color: var(--text-dim);
  border-radius: var(--radius-full);
}

.nav-item.active .nav-badge {
  background-color: #dcd7fe;
  color: var(--stripe-blurple);
}

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border-subtle);
}

.db-live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-dim);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #00a389;
}

/* ==========================================================================
   MAIN VIEW & TOPBAR
   ========================================================================== */

.stripe-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--bg-page);
}

.stripe-topbar {
  height: 52px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background-color: var(--bg-page);
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 320px;
  background-color: #f7fafc;
  border: 1px solid transparent;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}

.topbar-search:focus-within {
  background-color: #ffffff;
  border-color: var(--stripe-blurple);
  box-shadow: 0 0 0 1px var(--stripe-blurple);
}

.topbar-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--text-main);
  width: 100%;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-icon-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.topbar-icon-btn:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
}

/* Stripe Buttons */
.btn-stripe {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.btn-stripe-primary {
  background-color: var(--stripe-blurple);
  color: #ffffff;
}

.btn-stripe-primary:hover {
  background-color: var(--stripe-blurple-hover);
}

.btn-stripe-secondary {
  background-color: #ffffff;
  color: var(--text-main);
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-stripe-secondary:hover {
  background-color: var(--bg-hover);
}

.btn-sm {
  padding: 4px 8px;
  font-size: 12px;
}

/* ==========================================================================
   PAGE CONTENT
   ========================================================================== */

.page-container {
  padding: 28px 32px 60px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.page-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.count-pill {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  background-color: #f0f2f5;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.page-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Stripe Info Banner */
.stripe-info-banner {
  background-color: var(--bg-banner);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.banner-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--stripe-blurple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.banner-text {
  font-size: 13px;
  color: var(--text-muted);
}

.banner-text strong {
  color: var(--text-main);
}

/* Filter Tabs (Stripe Pills) */
.stripe-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.stripe-tab {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.stripe-tab:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
}

.stripe-tab.active {
  border-color: var(--text-main);
  background-color: #ffffff;
  color: var(--text-main);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Toolbar */
.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 420px;
  max-width: 100%;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  padding: 7px 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease;
}

.search-input-wrap:focus-within {
  border-color: var(--stripe-blurple);
  box-shadow: 0 0 0 1px var(--stripe-blurple);
}

.search-input-wrap input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--text-main);
  width: 100%;
}

.btn-clear {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}

.btn-clear.hidden {
  display: none;
}

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

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-label {
  font-size: 12px;
  color: var(--text-dim);
}

.stripe-select {
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
}

/* ==========================================================================
   STRIPE TABLE CARD
   ========================================================================== */

.stripe-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-scroll-container {
  overflow-x: auto;
  width: 100%;
}

.stripe-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.stripe-table thead {
  background-color: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-color);
}

.stripe-table th {
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-color);
}

.stripe-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.15s ease;
  cursor: pointer;
}

.stripe-table tbody tr:hover {
  background-color: #f8fafc;
}

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

.stripe-table td {
  padding: 12px 14px;
  vertical-align: middle;
  color: var(--text-main);
}

/* Checkbox */
.stripe-checkbox {
  cursor: pointer;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid #c1c9d2;
  accent-color: var(--stripe-blurple);
}

/* Model Cell */
.table-model-code {
  font-weight: 600;
  color: var(--text-main);
  display: block;
}

.table-brand-sub {
  font-size: 11px;
  color: var(--text-dim);
}

/* Screen Size Badge */
.table-size-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 1px 6px;
  background-color: #f0f2f5;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  margin-left: 4px;
}

/* Description */
.table-desc {
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-muted);
  font-size: 12px;
}

/* Qty */
.table-qty {
  font-weight: 600;
  color: var(--text-main);
}

/* Price Cells */
.price-bold {
  font-weight: 600;
  color: var(--text-main);
}

.price-sub-calc {
  font-size: 11px;
  color: var(--text-dim);
  display: block;
}

.price-green {
  color: var(--green-profit);
  font-weight: 600;
}

.price-empty {
  color: var(--text-light);
  font-size: 12px;
}

/* Shipping Badges (Rule 3) */
.ship-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.ship-badge.free {
  background-color: #e3fcef;
  color: #00875a;
  border: 1px solid #b3f1d0;
}

.ship-badge.paid {
  background-color: #fff4e5;
  color: #b76e00;
  border: 1px solid #ffd599;
}

.ship-badge.freight {
  background-color: #ffebe6;
  color: #de350b;
  border: 1px solid #ffbdad;
}

.badge-info-ref {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #697386;
  background-color: #f0f2f5;
  padding: 1px 4px;
  border-radius: var(--radius-sm);
  margin-top: 2px;
}

/* Store Link Pills (Clean Stripe Tags) */
.store-tags-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.store-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.store-pill:hover {
  border-color: var(--stripe-blurple);
  color: var(--stripe-blurple);
  background-color: var(--stripe-blurple-light);
}

.pill-amz { color: #d97706; }
.pill-ebay { color: #2563eb; }
.pill-bb { color: #854d0e; }
.pill-wm { color: #0284c7; }

/* Detail Action */
.btn-view-detail {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-view-detail:hover {
  background-color: var(--bg-hover);
  color: var(--stripe-blurple);
  border-color: var(--stripe-blurple);
}

/* Table Footer / Pagination */
.table-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
}

.pagination-info {
  font-size: 12px;
  color: var(--text-dim);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-arrow {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.page-arrow:not(.disabled):hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
}

.page-arrow.disabled {
  opacity: 0.4;
  cursor: default;
}

/* Empty & Loading */
.loading-box, .empty-box {
  padding: 60px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
}

.loading-box.hidden, .empty-box.hidden {
  display: none;
}

.stripe-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #e3e8ee;
  border-top-color: var(--stripe-blurple);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ==========================================================================
   STRIPE SIDE SHEET (DETAIL DRAWER)
   ========================================================================== */

.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 37, 64, 0.35);
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  animation: fadeIn 0.2s ease;
}

.drawer-overlay.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.stripe-drawer {
  width: 540px;
  max-width: 90vw;
  height: 100vh;
  background-color: #ffffff;
  box-shadow: var(--shadow-drawer);
  display: flex;
  flex-direction: column;
  animation: slideDrawer 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDrawer {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.drawer-pretitle {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.drawer-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2px;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--text-dim);
  cursor: pointer;
  line-height: 1;
}

.drawer-close-btn:hover {
  color: var(--text-main);
}

.drawer-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.drawer-section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.drawer-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 10px;
}

.drawer-info-item {
  background-color: var(--bg-banner);
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.info-lbl {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
}

.info-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.drawer-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Pricing Summary Card */
.pricing-summary-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.price-row-highlight {
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  margin-top: 4px;
}

.price-lbl {
  color: var(--text-muted);
}

.price-num {
  font-weight: 600;
  color: var(--text-main);
}

.profit-num {
  color: var(--green-profit);
}

/* AI Box */
.ai-box {
  background-color: #f7fafc;
  border-left: 3px solid var(--stripe-blurple);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.55;
}

/* Sources */
.drawer-sources {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-source-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.drawer-source-left {
  display: flex;
  flex-direction: column;
}

.drawer-seller {
  font-weight: 600;
  color: var(--text-main);
}

.drawer-cond {
  color: var(--text-dim);
  font-size: 11px;
}

.drawer-source-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-price {
  font-weight: 600;
  color: var(--text-main);
}

.drawer-url-link {
  color: var(--stripe-blurple);
  text-decoration: none;
  font-weight: 500;
}

.drawer-url-link:hover {
  text-decoration: underline;
}

/* Quick Links Grid */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.quick-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-main);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.quick-link-btn:hover {
  background-color: var(--bg-hover);
  border-color: var(--text-dim);
}

.drawer-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  background-color: #ffffff;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 12px;
  box-shadow: var(--shadow-md);
  animation: slideToast 0.2s ease;
}

@keyframes slideToast {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 900px) {
  .stripe-sidebar {
    display: none;
  }
  .page-container {
    padding: 16px;
  }
  .search-input-wrap {
    width: 100%;
  }
}

/* ==========================================================================
   PROOF BUTTONS & SHIPPING STYLES
   ========================================================================== */
.proof-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: var(--stripe-blurple-light);
  color: var(--stripe-blurple);
  border: 1px solid #dcd9fe;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.proof-pill-btn:hover {
  background-color: var(--stripe-blurple);
  color: #ffffff;
  border-color: var(--stripe-blurple);
}

.proof-pending {
  color: var(--text-light);
  font-size: 11px;
}

.ship-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ship-badge.free {
  background-color: #d4f7dc;
  color: #00875a;
}

.ship-badge.paid {
  background-color: #fff3c4;
  color: #b7791f;
}

.landed-price-tag {
  display: block;
  font-size: 11px;
  color: #00875a;
  font-weight: 700;
}

.drawer-proof-card {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.drawer-proof-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.drawer-proof-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-main);
}

.drawer-proof-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   ASIN Badge & Amazon Deep Analytics Modal (Stripe Standard)
   ========================================================================== */

.asin-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background-color: #f0f3ff;
  color: #635bff;
  border: 1px solid #d8e2ff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  line-height: 1.4;
  outline: none;
}

.asin-pill:hover {
  background-color: #635bff;
  color: #ffffff;
  border-color: #635bff;
  box-shadow: 0 2px 5px rgba(99, 91, 255, 0.25);
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 37, 64, 0.45);
  backdrop-filter: blur(2px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.modal-backdrop.hidden {
  display: none;
  opacity: 0;
}

.amazon-modal {
  background: #ffffff;
  border-radius: 8px;
  width: 90%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(50, 50, 93, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid #e3e8ee;
  display: flex;
  flex-direction: column;
  animation: modalSlideIn 0.2s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(12px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e3e8ee;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.modal-source-badge {
  background: #f0f3ff;
  color: #635bff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.modal-asin-badge {
  background: #edf2f7;
  color: #4f566b;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #0a2540;
  margin: 0 0 4px 0;
  line-height: 1.35;
}

.modal-subtitle {
  font-size: 12px;
  color: #697386;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #8792a2;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  color: #0a2540;
  background: #f8fafc;
}

.modal-body {
  padding: 20px 24px 24px;
}

.amz-hero-banner {
  background: #fafbfc;
  border: 1px solid #e3e8ee;
  border-radius: 6px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.hero-price-lbl {
  font-size: 11px;
  color: #697386;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.hero-price-val {
  font-size: 26px;
  font-weight: 700;
  color: #0a2540;
  line-height: 1;
}

.hero-sub-text {
  font-size: 12px;
  color: #4f566b;
  margin-top: 4px;
}

.amz-grid-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.amz-card {
  background: #f8fafc;
  border: 1px solid #e3e8ee;
  border-radius: 6px;
  padding: 14px 16px;
}

.amz-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 12px;
  color: #4f566b;
  margin-bottom: 10px;
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 6px;
}

.amz-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed #edf2f7;
}

.amz-stat-row:last-child {
  border-bottom: none;
}

.amz-lbl {
  color: #697386;
}

.amz-val {
  font-weight: 600;
  color: #0a2540;
}

.amz-wholesale-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.wholesale-banner-left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.w-lbl {
  color: #166534;
}

