@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap");

/**
 * YourSellerTeam - Monochrome Design System
 * Typography: Space Grotesk (Headings) + JetBrains Mono (Body/UI)
 * Inspired by canivibecodeit.com/thebuildgames
 */

:root {
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-sans: var(--font-display);

  /* Monochrome Light */
  --bg-primary: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f5f6f8;
  --bg-surface-hover: #eceef1;
  --border: #d8dbe1;
  --border-hover: #000000;

  --text-primary: #0b0d0b;
  --text-secondary: #262b26;
  --text-muted: #5b6370;

  --accent-primary: #0b0d0b;
  --on-accent: #ffffff;
  --accent-hover: #262b26;

  --dot-color: #0b0d0b;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);

  --bg: var(--bg-primary);
  --ink: var(--text-primary);
  --muted: var(--text-muted);
  --panel: var(--bg-surface);
  --card: var(--bg-surface);
  --line: var(--border);
  --accent: var(--accent-primary);
  --good: #0b0d0b;
  --warn: #5b6370;
  --bad: #0b0d0b;
  --radius: 6px;
}

/* Monochrome Light Enforcement */
html:not(.dark) body,
html:not(.dark) {
  background-color: #ffffff !important;
  color: #0b0d0b !important;
}

/* Monochrome Dark */
body.dark-theme,
html.dark body,
html.dark {
  --bg-primary: #0b0d0b !important;
  --bg-surface: #131613 !important;
  --bg-surface-subtle: #1a1e1a !important;
  --bg-surface-hover: #242a24 !important;
  --border: #262b26 !important;
  --border-hover: #e8e6e0 !important;

  --text-primary: #e8e6e0 !important;
  --text-secondary: #d1d5db !important;
  --text-muted: #9aa29a !important;

  --accent-primary: #e8e6e0 !important;
  --on-accent: #0b0d0b !important;
  --accent-hover: #ffffff !important;

  --dot-color: #e8e6e0 !important;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.7) !important;

  background-color: #0b0d0b !important;
  color: #e8e6e0 !important;
}

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

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  transition: background-color 0.2s ease, color 0.2s ease;
}

h1, h2, h3, h4, h5, h6, .title, .font-display {
  font-family: var(--font-display) !important;
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.15;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: var(--font-mono);
  color: inherit;
}

/* ==========================================================================
   Monochrome Cards & Lists
   ========================================================================== */
.ihp-card,
.page-card {
  display: block;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.ihp-card:hover,
.page-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
  transform: translateY(-1px);
}

.ihp-card-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.ihp-card-desc {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.ihp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.ihp-category {
  margin: 0 0 44px;
}

.ihp-category h2,
.ihp-category-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 16px;
}

/* Badges & Trust Dots */
.ihp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.ihp-badge,
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.ihp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot-color);
  flex-shrink: 0;
  display: inline-block;
  box-shadow: 0 0 6px rgba(128, 128, 128, 0.4);
}

/* Partner Logo Badges */
.partner-logo-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.15s ease;
}

.partner-logo-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
  transform: translateY(-1px);
}

.partner-logo-card svg {
  height: 22px;
  width: auto;
  max-width: 95px;
  flex-shrink: 0;
  color: var(--text-primary);
}

/* ==========================================================================
   Monochrome High-Impact Buttons (canivibecodeit style)
   ========================================================================== */
.btn,
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 18px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.2;
}

.btn-primary,
.btn.primary {
  background: var(--accent-primary) !important;
  color: var(--on-accent) !important;
  border-color: var(--accent-primary) !important;
}

.btn-primary:hover,
.btn.primary:hover {
  background: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  transform: translateY(-1px);
}

.btn-secondary,
.btn.ghost,
.btn-ghost {
  background: var(--bg-surface);
  color: var(--text-primary) !important;
  border-color: var(--border);
}

.btn-secondary:hover,
.btn.ghost:hover,
.btn-ghost:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
}

/* Hamburger Logo Button */
.hamburger-logo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.hamburger-logo-btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
  transform: translateY(-1px);
}

.hamburger-icon-box {
  width: 18px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3px 1px;
}

.hamburger-icon-box span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: all 0.2s ease;
}

/* ==========================================================================
   Tool Workspace Components
   ========================================================================== */
.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

.topbar {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.title {
  font-family: var(--font-display) !important;
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.sub {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
  font-family: var(--font-mono);
}

.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 14px;
}

.metric {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.metric .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.metric .value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 4px;
}

.metric .note {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

th, td {
  padding: 9px 13px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

th {
  background: var(--bg-surface-subtle);
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

tbody tr:hover {
  background: var(--bg-surface-hover);
}

/* Inputs */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="file"],
input[type="search"],
select,
textarea {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.84rem;
  font-family: var(--font-mono);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--text-primary);
}

/* ==========================================================================
   Header, Nav & Dropdowns
   ========================================================================== */
.site-header,
.yst-shell-navbar,
#yst-shell-header {
  position: sticky;
  top: 0;
  z-index: 2100;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 0;
  height: 54px;
  display: flex;
  align-items: center;
}

.site-nav,
.yst-nav-inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand,
.yst-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-mark,
.yst-logo {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: var(--text-primary);
  color: var(--bg-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.82rem;
}

.yst-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.yst-links a:hover {
  color: var(--text-primary);
}

.yst-tools-menu-wrap,
.nav-tools {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.yst-tools-toggle,
.nav-tools button {
  background: transparent;
  border: 0;
  padding: 6px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.yst-tools-toggle:hover,
.nav-tools button:hover {
  color: var(--text-primary);
}

.yst-tools-menu,
.tools-dropdown {
  display: none !important;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 320px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 6px;
  z-index: 2500;
}

.yst-tools-menu-wrap:hover .yst-tools-menu,
.yst-tools-menu-wrap.is-open .yst-tools-menu,
.nav-tools:hover .tools-dropdown,
.nav-tools.is-open .tools-dropdown {
  display: flex !important;
  flex-direction: column;
}

.yst-tools-menu a,
.tools-dropdown a {
  display: block;
  padding: 8px 12px;
  border-radius: 4px;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.1s ease;
}

.yst-tools-menu a:hover,
.tools-dropdown a:hover {
  background: var(--bg-surface-hover);
}

.yst-tools-menu a strong,
.tools-dropdown a strong {
  font-family: var(--font-display);
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
}

.yst-tools-menu a small,
.tools-dropdown a small {
  font-family: var(--font-mono);
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

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

.yst-shell-cta {
  background: var(--accent-primary);
  color: var(--on-accent) !important;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 15px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.15s ease;
}

.yst-shell-cta:hover {
  background: var(--accent-hover);
}

#yst-shell-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 36px 16px;
  margin-top: 60px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.yst-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.yst-footer-inner h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.yst-footer-tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
}

.yst-footer-tools a {
  color: var(--text-muted);
  text-decoration: none;
}

.yst-footer-tools a:hover {
  color: var(--text-primary);
}

/* Suppression rules */
[hidden],
[aria-hidden="true"],
.yst-mobile-menu,
#yst-mobile-menu,
.nav-spacer,
.yst-shell-spacer,
.navbar:not(.yst-shell-navbar),
nav.navbar:not(.yst-shell-navbar),
nav.yst-nav:not(.yst-shell-navbar),
.yst-nav:not(.yst-shell-navbar),
.auth-bar,
.auth-gate,
#authGate,
.yst-account-mini,
#yst-account-mini,
#logoutBtn,
#yst-logout-btn,
.whatsapp-float,
[class*="whatsapp"] {
  display: none !important;
}
