/* SellAuth platform — required base CSS (formerly pro.css)
   Resets + table/form + customer layout + page-specific primitives.
   Combined here so the theme ships as a single SellAuth package. */

/* ═══════ Reset ═══════ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--t-bg);
  color: var(--t-text);
  font-family: var(--t-font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--t-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

/* ═══════ Loader ═══════ */
.t-loader--hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* ═══════ Page alternation (homepage) ═══════ */
.t-landing .t-section:nth-child(odd) { background: var(--t-section-alt); }
.t-landing .t-section:nth-child(even) { background: var(--t-bg); }
.t-landing .t-hero { background: transparent; }

/* ═══════ Prose (legal pages) ═══════ */
.t-prose {
  font-size: 15px;
  line-height: 1.7;
  color: var(--t-muted);
}
.t-prose p { margin: 0 0 16px; }
.t-prose strong { color: var(--t-text); }
.t-prose h2 {
  color: var(--t-text);
  font-size: 20px;
  margin: 28px 0 12px;
  font-family: var(--t-font-display);
}

/* ═══════ Customer layout ═══════ */
.t-customer-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  min-height: calc(100vh - 200px);
}
.t-customer-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--t-card);
  border: 1px solid var(--t-border-subtle);
  border-radius: var(--t-radius-card);
  height: fit-content;
  position: sticky;
  top: 84px;
}
.t-customer-sidebar a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--t-muted);
  text-decoration: none;
  transition: background 0.2s var(--t-ease), color 0.2s var(--t-ease);
}
.t-customer-sidebar a:hover {
  background: var(--t-card-hover);
  color: var(--t-text);
}
.t-customer-sidebar a.active {
  background: var(--t-accent-soft);
  color: var(--t-accent);
}
.t-customer-content { min-width: 0; }
.t-customer-content h1 {
  font-family: var(--t-font-display);
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

/* ═══════ Trust stat grid (dashboards + status page) ═══════ */
.t-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.t-trust-item {
  background: var(--t-card);
  border: 1px solid var(--t-border-subtle);
  border-radius: var(--t-radius-card);
  padding: 20px;
  text-align: center;
  transition: border-color 0.2s var(--t-ease), transform 0.2s var(--t-ease);
}
.t-trust-item:hover { border-color: var(--t-border-accent); transform: translateY(-2px); }
.t-trust-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--t-accent-soft);
  border: 1px solid var(--t-border-accent);
  border-radius: 10px;
  color: var(--t-accent);
  margin-bottom: 10px;
}
.t-trust-item__title {
  font-family: var(--t-font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
}
.t-trust-item__desc {
  font-size: 12px;
  color: var(--t-muted);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ═══════ Tables ═══════ */
.t-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--t-card);
  border: 1px solid var(--t-border-subtle);
  border-radius: var(--t-radius-card);
  overflow: hidden;
  font-size: 13.5px;
}
.t-table th, .t-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--t-border-subtle);
}
.t-table th {
  background: var(--t-surface);
  font-weight: 600;
  color: var(--t-muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.t-table tr:last-child td { border-bottom: none; }
.t-table tr:hover td { background: var(--t-card-hover); }

/* ═══════ Badges ═══════ */
.t-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.t-badge--success { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.t-badge--warning { background: var(--t-accent-soft); color: var(--t-accent); }
.t-badge--danger { background: rgba(239, 68, 68, 0.15); color: #ff6b6b; }

/* ═══════ Mobile customer layout ═══════ */
@media (max-width: 768px) {
  .t-customer-layout { grid-template-columns: 1fr; }
  .t-customer-sidebar {
    flex-direction: row;
    overflow-x: auto;
    position: static;
  }
  .t-customer-sidebar a { white-space: nowrap; }
}
