/* ========================================================
   MIRUVIA AFFILIATE PORTAL — Bright Minimalist UI v2
   Clean, airy, high-contrast, fast, user-friendly
   ======================================================== */

:root {
  --white: #ffffff;
  --bg: #f6f7f9;
  --bg-card: #ffffff;
  --border: #e8eaed;
  --border-hover: #c8cdd5;

  --text: #1a1a2e;
  --text-secondary: #5a6070;
  --text-muted: #8f96a3;

  --brand: #1a1a2e;
  --brand-light: #f0f1ff;
  --gold: #c8972a;
  --gold-bg: #fffbf2;
  --gold-border: #f0d890;

  --green: #0b7a4c;
  --green-bg: #edfaf4;
  --green-border: #a3e6c8;

  --blue: #1d5fc7;
  --blue-bg: #eff5ff;
  --blue-border: #bdd5fa;

  --purple: #6d3fc7;
  --purple-bg: #f5f0ff;
  --purple-border: #d4bffa;

  --red: #c72b1a;
  --red-bg: #fff0ef;
  --red-border: #fac0bc;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(26,26,46,0.06), 0 1px 2px rgba(26,26,46,0.04);
  --shadow-md: 0 4px 16px rgba(26,26,46,0.07), 0 2px 4px rgba(26,26,46,0.04);
  --shadow-lg: 0 12px 40px rgba(26,26,46,0.10), 0 4px 8px rgba(26,26,46,0.05);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  line-height: 1.5;
}

/* ─── Layout ─────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ─── Navbar ──────────────────────────────────────── */
.navbar {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  height: 64px;
  display: flex;
  align-items: center;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

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

.logo-mark {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
}

.brand-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 9px;
  border-radius: 50px;
  background: var(--gold-bg);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

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

.creator-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px 5px 5px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
}

.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.creator-pill-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.creator-pill-handle {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.2;
}

/* ─── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.2, 0.8, 0.4, 1);
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 6px rgba(26,26,46,0.2);
}
.btn-primary:hover {
  background: #2d2d52;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26,26,46,0.25);
}
.btn-secondary {
  background: var(--white);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  background: #fafafa;
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--bg);
  color: var(--text);
}
.btn-danger {
  background: var(--red-bg);
  color: var(--red);
  border-color: var(--red-border);
}
.btn-danger:hover {
  background: #ffe6e4;
}
.btn-sm { padding: 6px 13px; font-size: 12.5px; border-radius: var(--radius-xs); }
.btn-gold {
  background: var(--gold-bg);
  color: var(--gold);
  border-color: var(--gold-border);
  font-weight: 700;
}
.btn-gold:hover { background: #fff5dc; }

/* ─── Hero (landing) ─────────────────────────────── */
.hero {
  padding: 72px 0 52px;
  text-align: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gold);
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 18px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero p {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-separator {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), #f0c060);
  border-radius: 2px;
  margin: 40px auto 40px;
}

/* ─── Feature cards (landing) ────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin-bottom: 72px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.feature-card h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ─── Dashboard Page Layout ──────────────────────── */
.page-header {
  padding: 32px 0 0;
  margin-bottom: 28px;
}
.page-greeting {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.page-subline {
  color: var(--text-secondary);
  font-size: 14px;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 5px;
  vertical-align: middle;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ─── Metric Cards ────────────────────────────────── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.metric-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.metric-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.metric-icon.gold { background: var(--gold-bg); }
.metric-icon.green { background: var(--green-bg); }
.metric-icon.blue { background: var(--blue-bg); }
.metric-icon.purple { background: var(--purple-bg); }
.metric-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.metric-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}
.metric-sub {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ─── Pill / Badge ────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 50px;
  font-size: 11.5px;
  font-weight: 600;
}
.pill.green { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.pill.gold { background: var(--gold-bg); color: var(--gold); border: 1px solid var(--gold-border); }
.pill.blue { background: var(--blue-bg); color: var(--blue); border: 1px solid var(--blue-border); }
.pill.purple { background: var(--purple-bg); color: var(--purple); border: 1px solid var(--purple-border); }

/* ─── Section Cards ───────────────────────────────── */
.section-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.section-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── Universal Store Link Panel ───────────────────── */
.store-link-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.store-link-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}
.store-link-input {
  flex: 1 1 280px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  cursor: text;
  background: #f8f9fb;
}
.store-link-meta {
  font-size: 13px;
  color: var(--text-muted);
  min-height: 1.2em;
}
.store-link-tips {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 14px 16px;
  background: var(--brand-light, #f4f5f8);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.store-tip {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}

/* ─── Product Grid (affiliate link generator) ─────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.product-affiliate-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.4, 1);
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-affiliate-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f7f8fa;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.product-affiliate-card:hover .product-card-img {
  transform: scale(1.05);
}
.product-affiliate-card.selected {
  border-color: var(--brand);
  background: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(26,26,46,0.1);
}
.product-affiliate-card .selected-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  display: none;
  align-items: center;
  justify-content: center;
}
.product-affiliate-card.selected .selected-check {
  display: flex;
}
.product-card-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.product-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 8px;
}
.product-card-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.product-card-commission {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  margin-top: 2px;
}
.storefront-card {
  border: 2px dashed var(--border);
  background: var(--bg);
}
.storefront-card:hover, .storefront-card.selected {
  border-color: var(--brand);
  border-style: solid;
}

/* Link Output */
.link-output-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.link-output-box {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--text-secondary);
  word-break: break-all;
  line-height: 1.45;
}
.link-output-box .link-text { color: var(--blue); font-weight: 500; }

/* ─── Orders Table ────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
table.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}
table.orders-table thead th {
  background: #fafafa;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.orders-table tbody td {
  padding: 14px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid #f2f3f5;
  vertical-align: middle;
}
table.orders-table tbody tr:last-child td { border-bottom: none; }
table.orders-table tbody tr:hover td { background: #fafbff; }

/* Fulfillment Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.badge::before { content: "●"; font-size: 8px; }
.badge.created { background: var(--blue-bg); color: var(--blue); }
.badge.in_process,.badge.processing { background: var(--gold-bg); color: var(--gold); }
.badge.dispatched,.badge.shipped { background: var(--purple-bg); color: var(--purple); }
.badge.delivered { background: var(--green-bg); color: var(--green); }
.badge.cancelled { background: var(--red-bg); color: var(--red); }

/* ─── Auth Modal ──────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,0.5);
  backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 34px;
  width: 100%;
  max-width: 430px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalIn 0.22s cubic-bezier(0.16,1,0.3,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 16px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.modal-close:hover { background: #eee; color: var(--text); }
.modal-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}
.modal-sub { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 26px; }
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s;
}
.form-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26,26,46,0.07);
}
.form-hint { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }
.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.form-footer a { color: var(--brand); font-weight: 600; text-decoration: none; }
.form-footer a:hover { text-decoration: underline; }
.form-error {
  color: var(--red);
  font-size: 13px;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  border-radius: var(--radius-xs);
  display: none;
}

/* ─── Divider ─────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

/* ─── Toast ───────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ─── Search Input ────────────────────────────────── */
.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.search-input {
  flex: 1;
  padding: 10px 14px 10px 38px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  outline: none;
  position: relative;
  transition: border-color 0.18s;
}
.search-input:focus { border-color: var(--brand); background: #fff; }
.search-wrap { position: relative; flex: 1; }
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 15px;
}

/* Category filter pills */
.category-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.filter-pill {
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-pill:hover { border-color: var(--brand); color: var(--brand); }
.filter-pill.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ─── Responsive Design ───────────────────────────── */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }
  .navbar {
    height: 60px;
  }
  .hero h1 { font-size: 34px; }
  .page-greeting { font-size: 26px; }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .metric-card {
    padding: 16px 14px;
  }
  .metric-value {
    font-size: 24px;
  }
  .section-card {
    padding: 20px 16px;
    border-radius: var(--radius-sm);
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .category-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    gap: 6px;
    scrollbar-width: none;
  }
  .category-filters::-webkit-scrollbar {
    display: none;
  }
  .filter-pill {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 12px;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  .link-output-row {
    flex-direction: column;
  }
  .link-output-row .btn {
    width: 100%;
  }
  .nav-actions .creator-pill .creator-pill-name,
  .nav-actions .creator-pill .creator-pill-handle {
    display: none;
  }
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
  }
  table.orders-table {
    min-width: 650px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 14px;
  }
  .navbar {
    height: 56px;
  }
  .logo-mark {
    font-size: 17px;
    letter-spacing: 1.5px;
  }
  .brand-badge {
    display: none;
  }
  .nav-actions {
    gap: 6px;
  }
  .creator-pill {
    padding: 2px;
    border: none;
    background: transparent;
    box-shadow: none;
  }
  .avatar-circle {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .nav-actions .btn-sm {
    padding: 6px 10px;
    font-size: 11.5px;
  }
  .page-header {
    padding: 18px 0 0;
    margin-bottom: 20px;
  }
  .page-greeting {
    font-size: 22px;
  }
  .page-subline {
    font-size: 12.5px;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
  }
  .metric-card {
    padding: 14px 12px;
    border-radius: var(--radius-sm);
  }
  .metric-header {
    margin-bottom: 10px;
  }
  .metric-icon {
    width: 30px;
    height: 30px;
    font-size: 15px;
    border-radius: 8px;
  }
  .metric-label {
    font-size: 10px;
    margin-bottom: 4px;
  }
  .metric-value {
    font-size: 20px;
  }
  .metric-sub {
    font-size: 11px;
    margin-top: 6px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-affiliate-card {
    padding: 10px;
    border-radius: var(--radius-sm);
  }
  .product-card-img-wrap {
    margin-bottom: 8px;
    border-radius: 8px;
  }
  .product-card-category {
    font-size: 9px;
    margin-bottom: 3px;
  }
  .product-card-name {
    font-size: 11.5px;
    line-height: 1.25;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 29px;
  }
  .product-card-price {
    font-size: 12.5px;
  }
  .product-card-commission {
    font-size: 11px;
  }
  .section-card {
    padding: 16px 12px;
    margin-bottom: 18px;
  }
  .section-title {
    font-size: 17px;
  }
  .section-desc {
    font-size: 12px;
  }
}
