/* ============================================================
   TeePrintCenter — App Design System
   ============================================================ */

/* ── Google Fonts ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:            #ffffff;
  --surface:       #ffffff;
  --surface2:      #f9fafb;
  --border:        #e5e7eb;
  --text:          #111827;
  --muted:         #6b7280;
  --accent:        #4f46e5;
  --accent2:       #4f46e5;
  --accent-dark:   #4338ca;
  --accent-glow:   rgba(79, 70, 229, 0.18);
  --accent-light:  rgba(79, 70, 229, 0.08);
  --amber:         #d97706;
  --amber-bg:      #fffbeb;
  --green:         #16a34a;
  --red:           #dc2626;
  --blue:          #2563eb;
  --orange:        #ea580c;
  --black:         #0a0a0a;
  --gray-soft:     #f8f9fb;
  --gray-mid:      #e5e7eb;
  --sidebar-w:     248px;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     18px;
  --radius-pill:   999px;
  --shadow-sm:     0 1px 8px rgba(0,0,0,.06);
  --shadow-md:     0 4px 20px rgba(0,0,0,.10);
  --shadow-accent: 0 8px 28px rgba(79,70,229,.30);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
body {
  background: var(--surface2);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 { font-family: 'Poppins', sans-serif; margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; }

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

.fade-up   { animation: fadeUp .45s ease both; }
.fade-up-2 { animation: fadeUp .45s .08s ease both; }
.fade-up-3 { animation: fadeUp .45s .16s ease both; }
.fade-up-4 { animation: fadeUp .45s .24s ease both; }

/* ════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:disabled { opacity: .55; pointer-events: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-danger {
  background: #fee2e2;
  color: var(--red);
  border: 1.5px solid #fca5a5;
}
.btn-danger:hover { background: #fca5a5; }

.btn-green  { background: var(--green); color: #fff; }
.btn-green:hover { opacity: .88; color: #fff; }

.btn-sm  { padding: 6px 14px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-lg  { padding: 14px 32px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* ════════════════════════════════════════════════════════════
   FORMS
   ════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-input,
.form-select,
.form-textarea,
.form-ctrl,
.s-input,
.cmp-input,
.r-input,
.lc-input,
.od-input,
.od-select {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  box-sizing: border-box;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.form-ctrl:focus,
.s-input:focus,
.cmp-input:focus,
.r-input:focus,
.lc-input:focus,
.od-input:focus,
.od-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,.10);
}
.form-textarea,
textarea.form-ctrl,
textarea.s-input,
textarea.cmp-input,
textarea.r-input,
textarea.lc-input { resize: vertical; min-height: 90px; }
select.form-input,
select.form-select,
select.form-ctrl,
select.s-input,
select.cmp-input,
select.lc-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-required { color: var(--red); margin-left: 2px; }

/* ════════════════════════════════════════════════════════════
   CARDS
   ════════════════════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
}
.card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin: 0;
}
.card-body { padding: 22px; }

/* Stat card */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  cursor: default;
}
.stat-card:hover {
  border-color: rgba(79,70,229,.3);
  box-shadow: 0 4px 18px rgba(79,70,229,.08);
  transform: translateY(-2px);
}
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-icon svg { stroke: var(--accent); }
.stat-val {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: var(--text);
  line-height: 1;
}
.stat-lbl { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ════════════════════════════════════════════════════════════
   TABLES
   ════════════════════════════════════════════════════════════ */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: var(--surface2);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: rgba(79,70,229,.02); }

/* ════════════════════════════════════════════════════════════
   BADGES
   ════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
}
.badge-pending   { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.badge-processing{ background: #eff6ff; color: var(--blue); border: 1px solid #bfdbfe; }
.badge-completed { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.badge-paid      { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.badge-shipped   { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.badge-failed    { background: #fef2f2; color: var(--red); border: 1px solid #fca5a5; }
.badge-accent    { background: var(--accent-light); color: var(--accent); border: 1px solid rgba(79,70,229,.2); }

/* ════════════════════════════════════════════════════════════
   FLASH MESSAGES
   ════════════════════════════════════════════════════════════ */
.flash {
  border-radius: var(--radius-md);
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeUp .4s ease both;
}
.flash-success { background: #f0fdf4; border: 1px solid #86efac; color: var(--green); }
.flash-error   { background: #fef2f2; border: 1px solid #fca5a5; color: var(--red); }
.flash-info    { background: #eff6ff; border: 1px solid #93c5fd; color: var(--blue); }

/* ════════════════════════════════════════════════════════════
   APP SHELL
   ════════════════════════════════════════════════════════════ */
.main-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 34px; height: 34px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.3px;
  color: var(--black);
}
.logo-text span { color: var(--accent); }

.app-shell { display: flex; min-height: calc(100vh - 60px); }

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}
.sidebar-section { padding: 16px 14px 8px; }
.sidebar-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 8px;
  margin-bottom: 6px;
  display: block;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: #374151;
  font-size: 13.5px;
  font-weight: 500;
  transition: background .15s, color .15s;
  margin-bottom: 2px;
}
.nav-item:hover   { background: var(--accent-light); color: var(--accent); }
.nav-item.active  { background: rgba(79,70,229,.12); color: var(--accent); font-weight: 600; }
.nav-item svg     { width: 16px; height: 16px; flex-shrink: 0; }
.sidebar-divider  { height: 1px; background: var(--border); margin: 10px 14px; }
.sidebar-footer {
  margin-top: auto;
  padding: 14px;
  border-top: 1px solid var(--border);
}

/* Store switcher in sidebar */
.store-switcher {
  margin: 8px 14px 12px;
  padding: 10px 12px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color .15s;
  position: relative;
}
.store-switcher:hover { border-color: var(--accent); }
.store-switcher-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.store-switcher-sub { font-size: 11px; color: var(--muted); }
.store-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 50;
  overflow: hidden;
}
.store-dropdown.open { display: block; }
.store-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  transition: background .1s;
}
.store-dropdown-item:hover { background: var(--surface2); color: var(--accent); }
.store-dropdown-item.active { color: var(--accent); font-weight: 700; }
.store-dropdown-footer {
  border-top: 1px solid var(--border);
  padding: 8px 14px;
}

/* Main content */
.main-content {
  flex: 1;
  padding: 30px 32px;
  overflow-x: hidden;
  background: var(--surface2);
  min-height: calc(100vh - 60px);
}

/* Page header */
.page-header   { margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.page-title    { font-size: 22px; font-weight: 800; color: var(--text); }
.page-sub      { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* ── Page Banner (gradient header) ────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
  border-radius: 20px; margin-bottom: 24px; padding: 26px 30px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; position: relative; overflow: hidden;
}
.page-banner::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px; background: rgba(255,255,255,.06); border-radius: 50%;
}
.page-banner::after {
  content: ''; position: absolute; bottom: -80px; left: 30%;
  width: 180px; height: 180px; background: rgba(255,255,255,.04); border-radius: 50%;
}
.page-banner-content { position: relative; z-index: 1; }
.page-banner-crumb   { font-size: 12px; color: rgba(255,255,255,.5); margin: 0 0 5px; display: flex; align-items: center; gap: 4px; }
.page-banner-title   { font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 3px; font-family: 'Poppins', sans-serif; }
.page-banner-sub     { font-size: 13px; color: rgba(255,255,255,.65); margin: 0; }
.page-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.pb-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  color: #fff; border-radius: 10px; padding: 9px 16px; font-size: 13px;
  font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s;
  white-space: nowrap; backdrop-filter: blur(8px); font-family: 'Poppins', sans-serif;
}
.pb-btn:hover { background: rgba(255,255,255,.25); }
.pb-btn-solid {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: none; color: #312e81; border-radius: 10px;
  padding: 9px 18px; font-size: 13px; font-weight: 700; text-decoration: none;
  cursor: pointer; transition: opacity .15s; white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0,0,0,.15); font-family: 'Poppins', sans-serif;
}
.pb-btn-solid:hover { opacity: .9; }
/* flash messages */
.ord-flash     { display:flex; align-items:center; gap:10px; border-radius:12px; padding:12px 16px; margin-bottom:16px; font-size:13px; font-weight:600; }
.ord-flash-ok  { background:#f0fdf4; border:1.5px solid #86efac; color:#15803d; }
.ord-flash-err { background:#fef2f2; border:1.5px solid #fca5a5; color:#dc2626; }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }

/* ════════════════════════════════════════════════════════════
   AUTH PAGES
   ════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(79,70,229,.06) 0%, transparent 70%),
    var(--surface2);
  padding: 24px;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-md);
  animation: fadeUp .45s ease both;
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  text-decoration: none;
}
.auth-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.auth-sub   { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.auth-footer { text-align: center; font-size: 13px; color: var(--muted); margin-top: 20px; }
.auth-footer a { color: var(--accent); font-weight: 600; }

/* ════════════════════════════════════════════════════════════
   UTILITIES
   ════════════════════════════════════════════════════════════ */
.flex          { display: flex; }
.flex-center   { display: flex; align-items: center; }
.flex-between  { display: flex; align-items: center; justify-content: space-between; }
.flex-end      { display: flex; align-items: center; justify-content: flex-end; }
.flex-col      { display: flex; flex-direction: column; }
.gap-4   { gap: 4px; }
.gap-8   { gap: 8px; }
.gap-12  { gap: 12px; }
.gap-16  { gap: 16px; }
.gap-24  { gap: 24px; }
.mt-4    { margin-top: 4px; }
.mt-8    { margin-top: 8px; }
.mt-16   { margin-top: 16px; }
.mt-24   { margin-top: 24px; }
.mb-0    { margin-bottom: 0; }
.mb-8    { margin-bottom: 8px; }
.mb-16   { margin-bottom: 16px; }
.mb-24   { margin-bottom: 24px; }
.p-0     { padding: 0; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--muted); }
.text-accent  { color: var(--accent); }
.text-green   { color: var(--green); }
.text-red     { color: var(--red); }
.text-sm      { font-size: 12px; }
.text-xs      { font-size: 11px; }
.font-bold    { font-weight: 700; }
.font-medium  { font-weight: 500; }
.font-heading { font-family: 'Poppins', sans-serif; }
.w-full       { width: 100%; }
.overflow-x   { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* icon-btn */
.icon-btn {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: border-color .15s, color .15s;
  text-decoration: none;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg   { width: 15px; height: 15px; }

/* empty state */
.empty-state {
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
}
.empty-state svg { width: 48px; height: 48px; stroke: var(--border); margin-bottom: 14px; }
.empty-state p   { font-size: 14px; margin: 0 0 18px; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 199;
}
.sidebar-backdrop.open { display: block; }

@media (max-width: 1024px) {
  .main-content { padding: 22px 20px; }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
    position: fixed;
    z-index: 200;
    top: 60px; left: 0;
    height: calc(100vh - 60px);
    box-shadow: 4px 0 24px rgba(0,0,0,.12);
  }
  .sidebar.open { display: flex; }
  .main-content { padding: 16px 14px; }
  .page-title   { font-size: 18px; }
  .header-inner { padding: 0 14px; gap: 8px; }
  .header-name  { display: none; }
  .form-grid-2  { grid-template-columns: 1fr; }
  .stats-grid   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .main-content { padding: 12px 10px; }
  .stats-grid   { grid-template-columns: 1fr; }
  .auth-card    { padding: 28px 20px; }
  .btn          { font-size: 13px; }
}

@media (min-width: 769px) {
  #sidebar-toggle { display: none !important; }
}

/* ════════════════════════════════════════════════════════════
   BADGES — extended
   ════════════════════════════════════════════════════════════ */
.badge-primary { background: var(--accent-light); color: var(--accent); border: 1px solid rgba(79,70,229,.2); }
.badge-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.badge-warning { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }

/* ════════════════════════════════════════════════════════════
   STORES PAGE
   ════════════════════════════════════════════════════════════ */
.store-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  flex-wrap: wrap;
}
.store-row--border { border-top: 1px solid var(--border); }
.store-avatar {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-danger-ghost {
  border-color: #fca5a5;
  color: var(--red);
}
.btn-danger-ghost:hover { background: #fee2e2; border-color: var(--red); color: var(--red); }

/* ════════════════════════════════════════════════════════════
   PROFILE PAGE
   ════════════════════════════════════════════════════════════ */
.profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .profile-layout { grid-template-columns: 1fr; }
}
.profile-sidebar { padding: 0; }
.profile-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  border-bottom: 1px solid var(--border);
}
.profile-avatar-lg {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: .5px;
}
.profile-info-list { padding: 16px 22px 22px; display: flex; flex-direction: column; gap: 12px; }
.profile-info-row  { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.profile-info-row .text-muted { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* Tab nav */
.tab-nav {
  display: flex;
  gap: 2px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.tab-btn {
  padding: 10px 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.tab-btn:hover       { color: var(--text); }
.tab-btn.active      { color: var(--accent); border-bottom-color: var(--accent); }
.tab-btn--danger     { color: #dc2626; }
.tab-btn--danger:hover { color: #b91c1c; }
.tab-btn--danger.active { color: #dc2626; border-bottom-color: #dc2626; }

.tab-pane            { display: none; }
.tab-pane.active     { display: block; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row-2 { grid-template-columns: 1fr; } }

.pw-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
  display: flex;
  align-items: center;
}
.pw-toggle-btn:hover { color: var(--text); }

.danger-zone-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border: 1.5px solid #fca5a5;
  border-radius: var(--radius-md);
  background: #fff5f5;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════════
   STATUS BADGES — universal system
   ════════════════════════════════════════════════════════════ */
.st {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.st-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.st-green  { background: #f0fdf4; color: #16a34a; }
.st-amber  { background: #fffbeb; color: #d97706; }
.st-red    { background: #fef2f2; color: #dc2626; }
.st-blue   { background: #eff6ff; color: #2563eb; }
.st-gray   { background: #f3f4f6; color: #6b7280; }
.st-accent { background: rgba(79,70,229,.08); color: #4f46e5; }
.st-green  .st-dot { background: #16a34a; }
.st-amber  .st-dot { background: #d97706; }
.st-red    .st-dot { background: #dc2626; }
.st-blue   .st-dot { background: #2563eb; }
.st-gray   .st-dot { background: #9ca3af; }
.st-accent .st-dot { background: #4f46e5; }
