/* ───────────────────────────────────────────────
   Recievio Seller Portal — Custom Stylesheet
   Independent of Vuexy tenant portal styles.
─────────────────────────────────────────────── */

:root {
  --brand-primary:   #0d6efd;
  --brand-secondary: #6c757d;
  --brand-success:   #198754;
  --brand-warning:   #fd7e14;
  --brand-danger:    #dc3545;
  --brand-dark:      #0b0f17;
  --brand-panel:     #1a1f2e;
  --brand-accent:    #3b82f6;
  --brand-gradient:  linear-gradient(135deg, #0d2137 0%, #1a3a5c 100%);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f7f8fb;
  color: #1c2433;
}

/* ─── Public (landing/login/register) pages ─── */
.auth-shell {
  min-height: 100vh;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
  max-width: 520px;
  width: 100%;
  padding: 2.5rem;
}

.auth-card.wide { max-width: 900px; }

.auth-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-brand .brand-mark {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-dark);
}

.auth-brand .brand-tag {
  font-size: 0.85rem;
  color: #6b7280;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: #6b7280;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* ─── Landing page ─── */
.hero {
  background: var(--brand-gradient);
  color: #fff;
  padding: 5rem 1rem 4rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero .lead {
  font-size: 1.25rem;
  opacity: 0.85;
  max-width: 640px;
  margin: 1.5rem auto;
}

.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,110,253,0.1);
  color: var(--brand-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ─── Dashboard shell ─── */
.seller-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.seller-sidebar {
  background: var(--brand-dark);
  color: #fff;
  padding: 1.5rem 0;
}

.seller-sidebar .brand {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1rem;
}

.seller-sidebar .brand-mark {
  font-size: 1.35rem;
  font-weight: 700;
}

.seller-sidebar .nav-link {
  color: rgba(255,255,255,0.75);
  padding: 0.75rem 1.5rem;
  display: flex; align-items: center; gap: 0.75rem;
  border-radius: 0;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.seller-sidebar .nav-link:hover,
.seller-sidebar .nav-link.active {
  color: #fff;
  background: rgba(59,130,246,0.15);
}

.seller-sidebar .nav-link.active {
  border-left: 3px solid var(--brand-accent);
}

.seller-main {
  padding: 2rem 2.5rem;
  background: #f7f8fb;
}

.seller-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.stat-card .stat-label {
  color: #6b7280;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1c2433;
}

.stat-card .stat-delta {
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* ─── KYB status badges ─── */
.kyb-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

.kyb-badge.pass,
.kyb-badge.approved { background: rgba(25,135,84,0.1); color: var(--brand-success); }

.kyb-badge.pending  { background: rgba(253,126,20,0.1); color: var(--brand-warning); }
.kyb-badge.review   { background: rgba(59,130,246,0.1); color: var(--brand-accent); }

.kyb-badge.fail,
.kyb-badge.rejected { background: rgba(220,53,69,0.1); color: var(--brand-danger); }

/* ─── Multi-section form ─── */
.form-section {
  background: #f9fafb;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e5e7eb;
}

.form-section h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-section h5 .section-num {
  display: inline-flex;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font-size: 0.8rem;
  align-items: center;
  justify-content: center;
}

/* ─── Helper hint bar (per feedback_helper_text.md — guide users) ─── */
.helper-hint {
  background: #fef3c7;
  border-left: 3px solid #d97706;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #78350f;
  margin-bottom: 1rem;
}

.helper-hint.info {
  background: #dbeafe;
  border-left-color: #2563eb;
  color: #1e3a8a;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .seller-shell {
    grid-template-columns: 1fr;
  }
  .seller-sidebar {
    display: none;
  }
  .hero h1 { font-size: 2rem; }
}

/* ─── Backup code display ─── */
.backup-code {
  font-family: "Menlo", "Consolas", monospace;
  background: #f3f4f6;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  display: inline-block;
  margin: 0.25rem;
}
