/* ===== User profile dashboard (scoped) ===== */
.se-dash-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  color: inherit;
  text-decoration: none !important;
  height: 100%;
  transition: border-color .15s ease;
  position: relative;
  min-height: 130px;
  overflow: hidden;
}
.se-dash-card:hover {
  border-color: var(--accent);
  color: inherit;
}
.se-dash-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.se-dash-value {
  font-size: 22px;
  font-weight: 600;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.se-dash-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.se-dash-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 768px) {
  .se-dash-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .se-dash-actions { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.se-dash-action {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text) !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
}
.se-dash-action:hover {
  border-color: var(--accent);
}
.se-dash-action i { color: var(--text-muted); }

/* Application shell */
.se-site-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: 10px 0;
  background: rgba(17, 17, 19, 0.94) !important;
  border-bottom: 1px solid var(--border) !important;
  backdrop-filter: blur(16px);
}
.se-navbar-container { gap: 18px; }
.se-app-brand { gap: 10px; margin-right: 12px; }
.se-app-brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
}
.se-app-brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.se-app-brand-name {
  color: var(--text) !important;
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.02em;
  -webkit-text-fill-color: var(--text);
  animation: none;
}
.se-app-brand-caption { margin-top: 4px; color: var(--text-muted); font-size: 10px; font-weight: 400; }
.se-navbar-toggle { border-color: var(--border) !important; border-radius: 9px; }
.se-navbar-main-links, .se-navbar-account-links { align-items: center; gap: 4px; }
nav.se-site-navbar .navbar-nav .nav-item > .se-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--text-muted) !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}
nav.se-site-navbar .navbar-nav .nav-item > .se-nav-link:hover,
nav.se-site-navbar .navbar-nav .nav-item.active > .se-nav-link {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text) !important;
}
.se-nav-link-label { display: none; }
.se-nav-count {
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #93c5fd;
  font-size: 10px;
  font-weight: 700;
}
.se-nav-balance { color: #93c5fd !important; font-variant-numeric: tabular-nums; }
.se-pro-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(212, 179, 106, 0.28);
  border-radius: 999px;
  background: rgba(212, 179, 106, 0.12);
  color: #e1c687;
  font-size: 11px;
  font-weight: 600;
}
.se-nav-signout { min-height: 38px; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--text-muted); font: inherit; font-size: 13px; }
.se-nav-signout:hover { background: rgba(255, 255, 255, 0.045); color: var(--text); }
.se-nav-signup { border-color: rgba(59, 130, 246, 0.35) !important; background: var(--accent-soft); color: #bfdbfe !important; }

/* Profile navigation and responsive workspace */
.se-profile-layout {
  display: grid;
  grid-template-columns: minmax(205px, 230px) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}
.se-profile-sidebar { position: sticky; top: 88px; min-width: 0; }
.se-profile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(17, 17, 19, 0.9);
}
.se-profile-nav-heading {
  margin: 2px 10px 7px;
  color: var(--text-subtle);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.se-profile-nav-link {
  display: flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none !important;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}
.se-profile-nav-link i { width: 16px; flex: 0 0 16px; color: var(--text-subtle); text-align: center; }
.se-profile-nav-link:hover { border-color: rgba(255, 255, 255, 0.05); background: rgba(255, 255, 255, 0.04); color: var(--text); }
.se-profile-nav-link.active { border-color: rgba(59, 130, 246, 0.16); background: var(--accent-soft); color: #93c5fd; }
.se-profile-nav-link.active i { color: #93c5fd; }
.se-profile-nav-badge { margin-left: auto; padding: 3px 7px; border-radius: 999px; background: var(--accent-soft); color: #bfdbfe; font-size: 10px; font-weight: 700; white-space: nowrap; }
.se-profile-main { min-width: 0; }

/* Dashboard cards and quick actions */
.se-dashboard-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.se-dashboard-heading h1 { margin: 0; font-size: clamp(1.55rem, 2.7vw, 1.85rem); }
.se-dashboard-heading p { margin: 6px 0 0; color: var(--text-muted); font-size: 13px; }
.se-dashboard-status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid rgba(34, 197, 94, 0.24); border-radius: 999px; background: rgba(34, 197, 94, 0.08); color: #86efac; font-size: 11px; font-weight: 600; white-space: nowrap; }

.se-dash-card:focus-visible, .se-dash-action:focus-visible, .se-profile-nav-link:focus-visible,
nav.se-site-navbar a:focus-visible, nav.se-site-navbar button:focus-visible {
  outline: 2px solid #60a5fa !important;
  outline-offset: 3px;
}
.se-dash-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.se-dash-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid rgba(59, 130, 246, 0.24); border-radius: 10px; background: var(--accent-soft); color: #93c5fd; }
.se-dash-icon.is-success { border-color: rgba(34, 197, 94, 0.24); background: rgba(34, 197, 94, 0.08); color: #86efac; }
.se-dash-icon.is-danger { border-color: rgba(239, 68, 68, 0.24); background: rgba(239, 68, 68, 0.08); color: #fca5a5; }




/* Authentication pages use the same design tokens as the signed-in workspace. */
.se-auth-wrap { display: flex; min-height: min(76vh, 760px); align-items: center; justify-content: center; padding: 30px 16px 48px; }
.se-auth-card { width: 100%; max-width: 450px; padding: clamp(22px, 4vw, 34px); border: 1px solid var(--border); border-radius: 18px; background: rgba(22, 22, 24, 0.96); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25); }
.se-auth-card.se-auth-card-wide { max-width: 560px; }
.se-auth-title { margin: 0 0 4px; color: var(--text); font-family: var(--font-display); font-size: 26px; font-weight: 600; text-align: center; }
.se-auth-subtitle { margin: 0 0 26px; color: var(--text-muted); font-size: 13px; text-align: center; }
.se-auth-label { display: block; margin-bottom: 7px; color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.09em; }
.se-auth-card .form-group { margin-bottom: 18px; }
.se-auth-card .form-control { min-height: 46px; }
.se-auth-submit { min-height: 46px; border: 1px solid #3b82f6 !important; border-radius: 10px !important; background: #3b82f6 !important; color: #fff !important; font-size: 14px !important; font-weight: 700 !important; transition: background 150ms ease, transform 150ms ease; }
.se-auth-submit:hover { transform: translateY(-1px); background: #2563eb !important; }
.se-auth-links { color: var(--text-muted); font-size: 13px; }
.se-auth-link { color: #93c5fd !important; text-decoration: none !important; }
.se-auth-link:hover { color: #bfdbfe !important; text-decoration: underline !important; }
.se-auth-social { min-height: 44px; border: 1px solid var(--border) !important; border-radius: 10px !important; }
.se-auth-card :focus-visible { outline: 2px solid #60a5fa !important; outline-offset: 3px; }

@media (max-width: 991.98px) {
  .se-site-navbar { position: relative; }
  .se-navbar-container { flex-wrap: wrap; }
  .se-navbar-container > .navbar-collapse { flex-basis: 100%; padding-top: 10px; }
  .se-navbar-main-links, .se-navbar-account-links { align-items: stretch; }
  .se-navbar-account-links { padding-top: 8px; border-top: 1px solid var(--border); }
  .se-navbar-main-links .nav-item, .se-navbar-account-links .nav-item { width: 100%; }
  nav.se-site-navbar .navbar-nav .nav-item > .se-nav-link { width: 100%; justify-content: flex-start; }
  .se-nav-link-label { display: inline; }
  .se-nav-signout { width: 100%; text-align: left; }
}
.se-vendor-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.se-vendor-hero-main { display: flex; gap: 16px; min-width: 0; }
.se-vendor-avatar {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(59, 130, 246, .18);
  color: #93c5fd;
  font-weight: 700;
  font-size: 22px;
}
.se-vendor-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.se-vendor-name { margin: 0; font-size: 1.5rem; font-weight: 600; }
.se-vendor-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 0; }
.se-vendor-since, .se-vendor-about { color: var(--text-muted); font-size: 13px; margin: 8px 0 0; }
.se-vendor-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.se-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(148, 163, 184, .14);
  color: var(--text-muted);
}
.se-status-badge.is-success { background: rgba(34, 197, 94, .14); color: #86efac; }
.se-status-badge.is-danger { background: rgba(239, 68, 68, .16); color: #fca5a5; }
.se-status-badge.is-pro { background: rgba(212, 179, 106, .16); color: #d4b36a; }
.se-status-badge.se-state-purchased { background: rgba(59, 130, 246, .16); color: #93c5fd; }
.se-status-badge.se-state-sent { background: rgba(234, 179, 8, .16); color: #fde68a; }
.se-status-badge.se-state-delivered { background: rgba(34, 197, 94, .16); color: #86efac; }
.se-status-badge.se-state-disputed { background: rgba(239, 68, 68, .16); color: #fca5a5; }
.se-status-badge.se-state-canceled { background: rgba(148, 163, 184, .16); color: #cbd5e1; }
.se-vendor-xp { padding: 16px 20px; margin-bottom: 20px; }
.se-vendor-xp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.se-xp-track { height: 8px; border-radius: 999px; background: rgba(148,163,184,.16); overflow: hidden; }
.se-xp-fill { height: 100%; border-radius: inherit; background: #3b82f6; }
.se-xp-fill.is-danger { background: #ef4444; }
.se-vendor-warn { color: #fca5a5; font-size: 13px; }
.se-section-heading { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.se-empty-state { padding: 36px 20px; text-align: center; color: var(--text); }
.se-compact-table td, .se-compact-table th { font-size: 13px; vertical-align: middle; }
.se-activity-list { list-style: none; margin: 0; padding: 0; }
.se-activity-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.se-activity-list li:last-child { border-bottom: 0; }
.se-activity-label { font-size: 13px; }
.se-activity-time { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.se-vendor-edit h3 { font-size: 1.05rem; font-weight: 600; }
.se-vendor-edit hr { border-color: var(--border); }
.se-mini-bars { display: flex; align-items: flex-end; gap: 8px; min-height: 120px; }
.se-mini-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 110px; }
.se-mini-bar-fill { width: 100%; min-height: 4px; border-radius: 6px 6px 0 0; background: #3b82f6; }
.se-mini-bar-fill.is-gold { background: #d4b36a; }
.se-mini-bar span { font-size: 10px; color: var(--text-muted); margin-top: 6px; }
.se-mini-bar em { font-style: normal; font-size: 11px; color: var(--text-muted); }
.se-stat-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }

@media (max-width: 767.98px) {
  .se-vendor-hero { flex-direction: column; }
  .se-profile-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .se-profile-sidebar { position: static; }
  .se-profile-nav { flex-direction: row; gap: 6px; overflow-x: auto; overscroll-behavior-inline: contain; padding: 8px; scrollbar-width: thin; }
  .se-profile-nav-heading { display: none; }
  .se-profile-nav-link { min-height: 40px; flex: 0 0 auto; gap: 8px; padding: 8px 11px; white-space: nowrap; }
  .se-profile-nav-badge { margin-left: 0; }
  .se-dashboard-status { margin-top: 0; }
  .se-dash-card { min-height: 118px; padding: 13px; }
}
/* Timeline Component */
.se-timeline { position: relative; margin: 20px 0; padding: 0; list-style: none; }
.se-timeline::before { content: ''; position: absolute; left: 16px; top: 0; bottom: 0; width: 2px; background: rgba(148,163,184,.17); }
.se-timeline-item { position: relative; padding-left: 45px; padding-bottom: 24px; }
.se-timeline-item:last-child { padding-bottom: 0; }
.se-timeline-item::before { content: ''; position: absolute; left: 11px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg-card, #161618); border: 2px solid rgba(148,163,184,.5); z-index: 2; }
.se-timeline-item.is-done::before { background: var(--accent, #3b82f6); border-color: var(--accent, #3b82f6); }
.se-timeline-item.is-current::before { background: var(--bg-card, #161618); border-color: var(--accent, #3b82f6); border-width: 3px; box-shadow: 0 0 0 3px rgba(59,130,246,.2); }
.se-timeline-item.is-failed::before { background: var(--danger, #ef4444); border-color: var(--danger, #ef4444); }
.se-timeline-content { position: relative; top: -3px; }
.se-timeline-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; color: var(--text-heading, #fff); }
.se-timeline-date { font-size: 12px; color: var(--text-muted, #a1a1aa); }
.se-timeline-desc { font-size: 12px; color: var(--text-subtle, #71717a); line-height: 1.5; }

.se-compact-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}
.se-compact-table tbody tr:hover td span.text-muted {
  color: #94a3b8 !important;
}
