/* =========================================================
   ROOT / THEME
========================================================= */
:root {
  --bg-main: #0f111a;
  --bg-card: #1a1c29;

  --text-main: #f8f8f2;
  --text-sub: #a9b1d6;

  --accent: #7aa2f7;
  --accent-2: #bb9af7;
  --success: #9ece6a;

  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);

  --font: "Poppins", sans-serif;
}

/* =========================================================
   RESET / BASE
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font);
}

body {
  background: radial-gradient(circle at top, #151726, #0f111a);
  color: var(--text-main);
}

main.container {
  width: min(100%, 1600px);
  max-width: 1600px;
  margin: 0 auto;
  padding: 60px 4% 100px;
}

/* =========================================================
   UTILITIES
========================================================= */
.glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  padding: 14px 22px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.btn.primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(122, 162, 247, 0.45);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn.ghost:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(122, 162, 247, 0.25);
}

.contact-header {
  display: flex;
  align-items: center;
  justify-content: start;
}

.contact-header h2 {
  margin-right: 10px;
}

.edit-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  cursor: pointer;
  transition: 0.25s ease;
}

.edit-btn:hover {
  background: var(--accent);
  color: #000;
}

/* =========================================================
   SELLER PAGE
========================================================= */
.seller-page {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* =========================================================
   SELLER HEADER
========================================================= */
.seller-header {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 42px;
  position: relative;
  overflow: hidden;
}

.seller-profile-summary {
  display: flex;
  gap: 36px;
  width: 100%;
  align-items: center;
  position: relative;
  z-index: 1;
}

.seller-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(122, 162, 247, 0.18),
    transparent 60%
  );
  pointer-events: none;
}

/* AVATAR */
.seller-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.seller-avatar-lg {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow:
    0 0 0 6px rgba(122, 162, 247, 0.12),
    0 0 36px rgba(122, 162, 247, 0.45);
}

.status-dot {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 14px;
  height: 14px;
  background: var(--success);
  border-radius: 50%;
  border: 2px solid #0f111a;
  box-shadow: 0 0 10px rgba(158, 206, 106, 0.9);
}

/* HEADER INFO */
.seller-header-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.seller-eyebrow,
.section-kicker,
.custom-automation-kicker {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* TITLE + BADGES */
.seller-title {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.seller-title h1 {
  font-size: 1.9rem;
  font-weight: 600;
}

/* =========================================================
   CONTACT SELLER
========================================================= */
.seller-contact {
  display: flex;
  flex-direction: column;
  gap: 18px;
  scroll-margin-top: 28px;
}

.seller-contact h2,
.seller-products h2,
.seller-reviews h2 {
  margin-top: 5px;
  color: var(--text-main);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 600;
}

.contact-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* INTRO */
.contact-intro {
  color: var(--text-sub);
  font-size: 0.95rem;
  max-width: 720px;
  line-height: 1.6;
}

/* ACTIONS GRID */
.contact-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* CONTACT ITEM */
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;

  padding: 18px;
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);

  text-decoration: none;
  color: var(--text-main);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.contact-item i {
  font-size: 1.4rem;
  color: var(--accent);
}

.contact-item span {
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-item small {
  font-size: 0.75rem;
  color: var(--text-sub);
}

/* HOVER */
.contact-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

/* SECURITY NOTE */
.contact-note {
  display: flex;
  align-items: center;
  gap: 10px;

  padding-top: 14px;
  border-top: 1px dashed var(--border);

  font-size: 0.75rem;
  color: var(--text-sub);
}

.contact-note i {
  color: var(--success);
}

/* BADGES */
.seller-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===============================
   BADGES — SELLER STATUS
================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 6px 12px;
  border-radius: 999px;

  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;

  color: #f1f1f1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);

  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* Hover sutil */
.badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* ===============================
   SELLER PRO
================================ */
.badge.pro {
  color: #7dd3fc;
  background: rgba(125, 211, 252, 0.14);
  border-color: rgba(125, 211, 252, 0.4);
}

/* ===============================
   SELLER PREMIUM
================================ */
.badge.premium {
  color: #c084fc;
  background: linear-gradient(
    135deg,
    rgba(192, 132, 252, 0.18),
    rgba(236, 72, 153, 0.15)
  );
  border-color: rgba(192, 132, 252, 0.55);
}

/* Glow exclusivo do Premium */
.badge.premium:hover {
  box-shadow:
    0 0 0 1px rgba(192, 132, 252, 0.35),
    0 10px 30px rgba(192, 132, 252, 0.25);
}

.badge.verified {
  color: var(--success);
  border-color: rgba(158, 206, 106, 0.45);
  box-shadow: 0 0 14px rgba(158, 206, 106, 0.25);
}

/* BIO */
.seller-bio {
  color: var(--text-sub);
  max-width: 620px;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* METRICS */
.seller-metrics {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.metric {
  padding: 14px 20px;
  text-align: center;
  min-width: 110px;
}

.metric strong {
  font-size: 1.25rem;
  color: var(--success);
}

.metric span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-sub);
  margin-top: 4px;
}

/* ACTIONS */
.seller-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

/* Proposta comercial do criador */
.custom-automation-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 24px 26px;
  position: relative;
  z-index: 1;
  border: 1px solid color-mix(in srgb, var(--accent) 54%, transparent);
  border-radius: 16px;
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--accent) 17%, transparent), transparent 58%),
    rgba(8, 12, 20, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.custom-automation-callout[hidden] {
  display: none;
}

.custom-automation-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  flex: 0 0 auto;
  color: #071019;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 14px;
  font-size: 1.25rem;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 24%, transparent);
}

.custom-automation-copy {
  min-width: 0;
}

.custom-automation-copy h2 {
  margin: 4px 0 7px;
  color: var(--text-main);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.3;
}

.custom-automation-copy p {
  max-width: 700px;
  color: var(--text-sub);
  font-size: 0.9rem;
  line-height: 1.55;
}

.custom-automation-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
  text-decoration: none;
}

/* =========================================================
   SECTIONS
========================================================= */
.seller-about,
.seller-products,
.seller-reviews {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 46px;
  border-top: 1px solid var(--border);
}

.seller-about h2,
.seller-products h2,
.seller-reviews h2 {
  color: var(--text-main);
}

.seller-products.automations {
  padding-top: 34px;
  padding-bottom: 0;
}

.seller-products .catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.seller-products .catalog-copy {
  max-width: 900px;
}

.seller-products .catalog-copy p {
  margin-top: 9px;
  color: var(--text-sub);
  line-height: 1.6;
}

.seller-products .filters {
  max-width: none;
  margin: 0;
}

.seller-products .search {
  max-width: none;
}

/* A vitrine usa toda a área disponível e só reduz as colunas quando necessário. */
.seller-products .grid {
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  justify-content: stretch;
}

.seller-products .automation-card {
  width: 100%;
}

/* =========================================================
   PRODUCTS
========================================================= */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.section-sub {
  font-size: 0.85rem;
  color: var(--text-sub);
}

/* =========================================================
   REVIEWS
========================================================= */
.review {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 18px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review strong {
  font-size: 0.9rem;
}

.review span {
  font-size: 0.8rem;
  color: var(--accent);
}

.review p {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.5;
}

.review:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* =========================================================
   USER ROLE BADGE
========================================================= */

/* Comprador */
.badge-comprador {
  background: rgba(122, 162, 247, 0.15);
  border-color: rgba(122, 162, 247, 0.45);
  color: var(--accent);
}

/* Vendedor */
.badge-vendedor {
  background: rgba(158, 206, 106, 0.15);
  border-color: rgba(158, 206, 106, 0.45);
  color: var(--success);
}

/* Ambos */
.badge-ambos {
  background: linear-gradient(
    135deg,
    rgba(187, 154, 247, 0.3),
    rgba(122, 162, 247, 0.3)
  );
  border-color: rgba(187, 154, 247, 0.7);
  color: #fff;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 900px) {
  .seller-profile-summary {
    flex-direction: column;
    text-align: center;
  }

  .seller-title {
    justify-content: center;
  }

  .seller-badges {
    justify-content: center;
  }

  .seller-header-info {
    align-items: center;
  }

  .seller-metrics {
    justify-content: center;
  }

  .seller-actions {
    flex-direction: column;
    width: 100%;
  }

  .seller-actions .btn {
    width: 100%;
  }

  .custom-automation-callout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .custom-automation-icon {
    margin: 0 auto;
  }

  .custom-automation-cta {
    width: 100%;
  }

  .seller-products .catalog-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-card {
    padding: 22px;
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  main.container {
    width: 100%;
    padding: 36px 18px 70px;
  }

  .seller-header,
  .contact-card {
    padding: 24px 20px;
  }

  .seller-header {
    gap: 24px;
  }

  .seller-profile-summary {
    gap: 24px;
  }

  .custom-automation-callout {
    padding: 20px;
  }

  .btn,
  .contact-actions a,
  .seller-products a,
  .seller-products button {
    min-height: 46px;
  }

  .seller-profile-summary,
  .seller-header-copy,
  .catalog-head {
    min-width: 0;
  }
}

body.ns-plan-tier-starter {
  --bg-main: #0b1117;
  --bg-card: #111b20;
  --text-main: #f4f8f0;
  --text-sub: #aebbaa;
  --accent: #b7d97a;
  --accent-2: #6fc7a5;
  --success: #91c97c;
  --border: rgba(183, 217, 122, 0.14);
  background:
    radial-gradient(circle at 86% 0%, rgba(111, 199, 165, 0.12), transparent 26%),
    radial-gradient(circle at 0% 100%, rgba(183, 217, 122, 0.07), transparent 24%),
    linear-gradient(180deg, #101719 0%, var(--bg-main) 52%, #070b10 100%);
}

body.ns-plan-tier-starter .seller-header::before {
  background: radial-gradient(circle at top left, rgba(183, 217, 122, 0.14), transparent 60%);
}

body.ns-plan-tier-starter .seller-avatar-lg {
  border-color: var(--accent);
  box-shadow:
    0 0 0 6px rgba(183, 217, 122, 0.08),
    0 0 36px rgba(111, 199, 165, 0.28);
}

body.ns-plan-tier-starter .btn.primary:hover {
  box-shadow: 0 12px 30px rgba(111, 199, 165, 0.32);
}

body.ns-plan-tier-starter .btn.ghost:hover {
  box-shadow: 0 0 0 2px rgba(183, 217, 122, 0.16);
}

body.ns-plan-tier-pro {
  --bg-main: #191426;
  --bg-card: #2a2142;
  --text-main: #f6f8ff;
  --text-sub: #b8aecf;
  --accent: #9b6fe8;
  --accent-2: #50fa7b;
  --success: #91c97c;
  --border: rgba(155, 111, 232, 0.14);
  background:
    radial-gradient(circle at 86% 0%, rgba(155, 111, 232, 0.075), transparent 26%),
    radial-gradient(circle at 0% 100%, rgba(80, 250, 123, 0.06), transparent 24%),
    linear-gradient(180deg, #211a35 0%, var(--bg-main) 52%, #0e0b16 100%);
}

body.ns-plan-tier-pro .seller-header::before {
  background: radial-gradient(circle at top left, rgba(155, 111, 232, 0.075), transparent 60%);
}

body.ns-plan-tier-pro .seller-avatar-lg {
  border-color: var(--accent);
  box-shadow:
    0 0 0 6px rgba(155, 111, 232, 0.035),
    0 0 36px rgba(155, 111, 232, 0.075);
}

body.ns-plan-tier-pro .btn.primary:hover {
  box-shadow: 0 12px 30px rgba(155, 111, 232, 0.12);
}

/* OPERACAO THEME */
body.ns-plan-tier-growth {
  --bg-main: #11101A;
  --bg-card: #211d2b;
  --text-main: #f8f5f2;
  --text-sub: #bdb0c5;
  --accent: #d7b4ff;
  --accent-2: #f6c177;
  --success: #91c97c;
  --border: rgba(215, 180, 255, 0.14);
  background:
    radial-gradient(circle at 86% 0%, rgba(215, 180, 255, 0.075), transparent 26%),
    radial-gradient(circle at 0% 100%, rgba(246, 193, 119, 0.06), transparent 24%),
    linear-gradient(180deg, #171421 0%, var(--bg-main) 52%, #08070d 100%);
}

body.ns-plan-tier-growth .seller-header::before {
  background: radial-gradient(circle at top left, rgba(215, 180, 255, 0.075), transparent 60%);
}

body.ns-plan-tier-growth .seller-avatar-lg {
  border-color: var(--accent);
  box-shadow:
    0 0 0 6px rgba(215, 180, 255, 0.035),
    0 0 36px rgba(215, 180, 255, 0.075);
}

body.ns-plan-tier-growth .btn.primary:hover {
  box-shadow: 0 12px 30px rgba(215, 180, 255, 0.12);
}

/* ESCALA THEME */
body.ns-plan-tier-scale {
  --bg-main: #0E121A;
  --bg-card: #191f2d;
  --text-main: #f8f7f0;
  --text-sub: #b8b7c6;
  --accent: #ffd166;
  --accent-2: #fff2b8;
  --success: #91c97c;
  --border: rgba(255, 209, 102, 0.14);
  background:
    radial-gradient(circle at 86% 0%, rgba(255, 209, 102, 0.075), transparent 26%),
    radial-gradient(circle at 0% 100%, rgba(142, 167, 255, 0.06), transparent 24%),
    linear-gradient(180deg, #121826 0%, var(--bg-main) 52%, #06070b 100%);
}

body.ns-plan-tier-scale .seller-header::before {
  background: radial-gradient(circle at top left, rgba(255, 209, 102, 0.075), transparent 60%);
}

body.ns-plan-tier-scale .seller-avatar-lg {
  border-color: var(--accent);
  box-shadow:
    0 0 0 6px rgba(255, 209, 102, 0.035),
    0 0 36px rgba(255, 209, 102, 0.075);
}

body.ns-plan-tier-scale .btn.primary:hover {
  box-shadow: 0 12px 30px rgba(255, 209, 102, 0.12);
}
