/* ═══════════════════════════════════════
   SPEC SIZE — TRADE PORTAL — MAIN CSS
   Modern B2B SaaS redesign 2026
   ═══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --green:       #111111;
  --green-mid:   #2a2a2a;
  --green-light: #f0f0f0;
  --gold:        #444444;
  --gold-light:  #f5f5f5;
  --paper:       #f5f5f7;
  --white:       #ffffff;
  --ink:         #111111;
  --muted:       #6b7280;
  --line:        #e2e2e8;
  --line-light:  #eeeeef;
  --danger:      #dc2626;
  --success:     #16a34a;
  --info:        #2563eb;
  --warning:     #d97706;
  --accent:      #111111;
  --accent-light:#f4f4f6;
  --accent-mid:  #374151;
  --sidebar-w:   240px;
  --nav-h:       60px;
  --radius:      6px;
  --radius-lg:   12px;
  --shadow:      0 1px 4px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.09), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);
  --transition:  all 0.15s ease;
}

/* ── Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', sans-serif;
  background-color: #f5f5f7;
  background-image: radial-gradient(circle, #d1d1d8 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; }

/* ── Typography */
h1, h2, h3, h4 { font-family: 'Inter', sans-serif; font-weight: 800; line-height: 1.15; letter-spacing: -0.3px; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
.serif { font-family: 'Inter', sans-serif; font-weight: 700; }
.italic { font-style: italic; }

/* ── Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-mid) 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════
   TOP NAVIGATION
══════════════════════════════ */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.03);
}
/* Gradient accent bar at the very top */
.topnav::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--ink);
  z-index: 1;
}
.topnav-logo {
  width: var(--sidebar-w);
  flex-shrink: 0;
  padding: 0 20px;
  display: flex; align-items: center; gap: 10px;
  border-right: 1px solid var(--line);
}
.topnav-logo-text {
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.3px; line-height: 1.1;
}
.topnav-logo-bracket { color: var(--ink); font-weight: 300; font-size: 22px; line-height: 1; }
.topnav-logo-sub {
  font-size: 9px; color: var(--muted); letter-spacing: 1.5px;
  text-transform: uppercase; margin-top: 1px; font-weight: 500;
}
.topnav-center { flex: 1; padding: 0 24px; }
.topnav-breadcrumb {
  font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}
.topnav-breadcrumb .current { color: var(--ink); font-weight: 600; }
.topnav-right {
  padding: 0 20px; display: flex; align-items: center; gap: 14px;
  border-left: 1px solid var(--line);
}
.topnav-user {
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink);
}
.avatar {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #374151, #111);
  border-radius: 8px;
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}
.topnav-company { font-size: 11px; color: var(--muted); }
.topnav-logout {
  background: none; border: 1px solid var(--line);
  color: var(--muted); border-radius: var(--radius);
  padding: 6px 12px; font-size: 12px; font-weight: 500; transition: var(--transition);
}
.topnav-logout:hover {
  border-color: var(--ink); color: var(--ink);
  background: var(--paper);
}

/* ══════════════════════════════
   SIDEBAR
══════════════════════════════ */
.sidebar {
  position: fixed; top: var(--nav-h); left: 0; bottom: 0; z-index: 100;
  width: var(--sidebar-w);
  background: #ffffff;
  background-image: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  display: flex; flex-direction: column;
  padding: 8px 0;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: #c4c4cc; }

.sidebar-section { padding: 20px 0 8px; }
.sidebar-heading {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
  padding: 0 16px 8px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; font-size: 13px; font-weight: 500;
  color: var(--muted); transition: var(--transition);
  border: none; background: none; width: 100%; text-align: left;
  position: relative; border-left: 2px solid transparent;
  text-decoration: none;
}
.sidebar-link:hover { background: #f3f4f6; color: var(--ink); }
.sidebar-link.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  border-left-color: var(--accent);
  border-radius: 0 8px 8px 0;
  margin-right: 8px;
}
.sidebar-link .icon {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px;
  flex-shrink: 0;
}
.sidebar-badge {
  margin-left: auto; background: var(--ink); color: white;
  border-radius: 100px; padding: 1px 7px; font-size: 10px; font-weight: 700;
}
.sidebar-divider { height: 1px; background: var(--line-light); margin: 8px 16px; }

.sidebar-discount {
  margin: 12px 12px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #1e1b4b 100%);
  border-radius: var(--radius-lg); padding: 16px 16px; color: white;
  box-shadow: 0 4px 16px rgba(99,102,241,0.25);
  position: relative; overflow: hidden;
}
.sidebar-discount::after {
  content: '';
  position: absolute; top: -30px; right: -30px;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.sidebar-discount-label { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 4px; font-weight: 600; }
.sidebar-discount-pct { font-family: 'Inter', sans-serif; font-size: 28px; font-weight: 800; color: white; line-height: 1; }
.sidebar-discount-text { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 2px; }

/* ══════════════════════════════
   MAIN CONTENT AREA
══════════════════════════════ */
.main-wrap {
  margin-left: var(--sidebar-w);
  padding-top: var(--nav-h);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.main-wrap .main { flex: 1; }
.main { padding: 32px 36px; max-width: 1100px; }

/* ── Page header */
.page-header { margin-bottom: 28px; }
.page-title { font-size: 1.8rem; letter-spacing: -0.5px; font-weight: 800; }
.page-title .accent { color: var(--muted); font-style: normal; }
.page-subtitle { color: var(--muted); font-size: 14px; margin-top: 4px; font-weight: 400; }
.page-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* ══════════════════════════════
   BUTTONS
══════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius);
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  border: none; transition: var(--transition); cursor: pointer;
  white-space: nowrap;
}
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 14px; }
.btn-primary {
  background: linear-gradient(135deg, #1c1c1e 0%, #111111 100%);
  color: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.12);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #2d2d30 0%, #1c1c1e 100%);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}
.btn-gold { background: var(--ink); color: white; }
.btn-gold:hover { background: var(--green-mid); }
.btn-outline { background: white; color: var(--ink); border: 1px solid var(--line); }
.btn-outline:hover { background: var(--paper); border-color: #aaa; }
.btn-ghost { background: transparent; color: var(--ink); font-weight: 600; padding-left: 0; padding-right: 0; }
.btn-ghost:hover { color: var(--muted); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #aa1d00; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ══════════════════════════════
   CARDS
══════════════════════════════ */
.card {
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}
.card-sm { padding: 16px; }
.card-header {
  font-family: 'Inter', sans-serif;
  font-size: 1rem; font-weight: 700; margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line-light);
  display: flex; justify-content: space-between; align-items: center;
}

/* ── Stat cards */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: linear-gradient(135deg, #ffffff 0%, #f9f9fb 100%);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg); padding: 22px 24px;
  position: relative; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
  transition: box-shadow 0.2s, transform 0.2s;
}
.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #374151, #6b7280);
}
.stat-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0) 60%, rgba(0,0,0,0.015));
  pointer-events: none;
}
.stat-card.gold::before  { background: linear-gradient(90deg, #374151, #6b7280); }
.stat-card.success::before { background: linear-gradient(90deg, #374151, #6b7280); }
.stat-card.info::before  { background: linear-gradient(90deg, #374151, #6b7280); }

.stat-card.gold   { background: linear-gradient(135deg, #ffffff 0%, #f9f9fb 100%); }
.stat-card.success { background: linear-gradient(135deg, #ffffff 0%, #f9f9fb 100%); }
.stat-card.info   { background: linear-gradient(135deg, #ffffff 0%, #f9f9fb 100%); }

.stat-label { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.stat-value { font-family: 'Inter', sans-serif; font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -0.5px; }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 8px; }
.stat-trend-up { color: var(--success); }
.stat-trend-down { color: var(--danger); }

/* ══════════════════════════════
   FORMS
══════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted);
}
.form-control {
  padding: 10px 13px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: 'Inter', sans-serif; font-size: 14px; color: var(--ink);
  background: white; transition: var(--transition);
  -webkit-appearance: none; appearance: none;
}
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.form-control:disabled { background: var(--paper); color: var(--muted); cursor: not-allowed; }
.form-control.error { border-color: var(--danger); }
.form-hint { font-size: 11px; color: var(--muted); margin-top: 2px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.cols3 { grid-template-columns: 1fr 1fr 1fr; }
.form-row.cols1 { grid-template-columns: 1fr; }

/* ── Option cards (finish/thickness selector) */
.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.option-grid.cols2 { grid-template-columns: 1fr 1fr; }
.option-card {
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 12px 10px; cursor: pointer; text-align: center;
  transition: var(--transition); background: white; position: relative; user-select: none;
}
.option-card:hover { border-color: var(--accent); background: var(--accent-light); }
.option-card.selected { border-color: var(--accent); background: var(--accent-light); border-width: 2px; }
.option-card .tick {
  position: absolute; top: 5px; right: 5px;
  width: 16px; height: 16px; border-radius: 2px;
  background: var(--accent); color: white; font-size: 8px;
  display: none; align-items: center; justify-content: center;
}
.option-card.selected .tick { display: flex; }
.option-card-label { font-weight: 700; font-size: 13px; color: var(--ink); }
.option-card-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ══════════════════════════════
   TABLE
══════════════════════════════ */
.table-wrap {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
}
table { width: 100%; border-collapse: collapse; }
th {
  padding: 11px 16px; text-align: left;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted);
  background: linear-gradient(180deg, #f8f8fa 0%, #f2f2f5 100%);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td { padding: 13px 16px; border-bottom: 1px solid var(--line-light); font-size: 13px; }
tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) td { background: #fafafa; }
tr:hover td { background: #f0f0ff !important; transition: background 0.15s; }
tbody tr.row-overdue td { background: #fef2f2; }
tbody tr.row-overdue:hover td { background: #fecaca !important; }
.td-bold { font-weight: 700; }
.td-muted { color: var(--muted); font-size: 12px; }

/* ── Status badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; white-space: nowrap;
}
.badge-pending    { background: #fef3c7; color: #92400e; }
.badge-confirmed  { background: #d1fae5; color: #065f46; }
.badge-in-production { background: #dbeafe; color: #1e40af; }
.badge-shipped    { background: #ede9fe; color: #4c1d95; }
.badge-completed  { background: var(--line-light); color: var(--muted); }
.badge-cancelled  { background: #fee2e2; color: #991b1b; }
.badge-discount   { background: var(--green-light); color: var(--ink); }
.badge-info       { background: #dbeafe; color: var(--info); }

/* ══════════════════════════════
   ALERT / TOAST
══════════════════════════════ */
.alert {
  padding: 12px 16px; border-radius: var(--radius);
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; margin-bottom: 16px;
}
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid var(--success); }
.alert-danger   { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--danger); }
.alert-info     { background: #dbeafe; color: #1e40af; border-left: 4px solid var(--info); }
.alert-warning  { background: #fef3c7; color: #92400e; border-left: 4px solid var(--warning); }

/* ── Toast notifications */
.toast-container {
  position: fixed; top: 72px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--ink); color: white;
  padding: 12px 18px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); font-size: 13px;
  display: flex; align-items: center; gap: 10px;
  animation: slideIn 0.2s ease;
  min-width: 280px; border-left: 3px solid rgba(255,255,255,0.3);
}
.toast.error { background: var(--danger); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ══════════════════════════════
   MODAL
══════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 500; display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 4px 16px rgba(0,0,0,0.08);
  width: 520px; max-width: 95vw; max-height: 90vh; overflow-y: auto;
  animation: modalIn 0.2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.97) translateY(8px); } to { opacity: 1; transform: none; } }
.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line-light);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-title { font-family: 'Inter', sans-serif; font-size: 1.1rem; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 20px; color: var(--muted); line-height: 1; }
.modal-body { padding: 20px 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--line-light); display: flex; justify-content: flex-end; gap: 8px; }

/* ══════════════════════════════
   PRICE PANEL (Configurator)
══════════════════════════════ */
.price-panel {
  background: var(--ink); color: white;
  border-radius: var(--radius-lg); padding: 24px;
  position: sticky; top: calc(var(--nav-h) + 20px);
}
.price-panel h3 { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 800; color: white; margin-bottom: 20px; letter-spacing: 0; }
.price-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 13px;
}
.price-row:last-of-type { border-bottom: none; }
.price-row .pr-label { color: rgba(255,255,255,0.5); }
.price-row .pr-val { color: white; font-weight: 600; }
.price-total-line {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.2);
  display: flex; justify-content: space-between; align-items: baseline;
}
.price-total-line .pr-label { color: rgba(255,255,255,0.8); font-size: 13px; font-weight: 600; }
.price-total-line .pr-amount {
  font-family: 'Inter', sans-serif; font-size: 2.2rem; font-weight: 800; color: white; line-height: 1;
}
.price-note { font-size: 10px; color: rgba(255,255,255,0.35); margin-top: 6px; }
.btn-add-cart {
  width: 100%; margin-top: 18px; padding: 13px;
  background: white; color: var(--ink); border: none;
  border-radius: var(--radius); font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 700; cursor: pointer; transition: var(--transition);
  letter-spacing: 0.2px;
}
.btn-add-cart:hover:not(:disabled) { background: var(--paper); }
.btn-add-cart:disabled { background: rgba(255,255,255,0.1); cursor: not-allowed; color: rgba(255,255,255,0.3); }

/* ══════════════════════════════
   CART ITEMS
══════════════════════════════ */
.cart-item {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 16px 20px;
  margin-bottom: 10px;
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 16px; align-items: center;
  box-shadow: var(--shadow);
}
.cart-item-name { font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.cart-item-detail { font-size: 12px; color: var(--muted); }
.cart-item-price { font-family: 'Inter', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--ink); white-space: nowrap; }
.cart-item-remove { background: none; border: none; color: var(--line); font-size: 18px; padding: 4px; transition: var(--transition); }
.cart-item-remove:hover { color: var(--danger); }

/* ── Cart summary */
.cart-summary {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px 22px;
  box-shadow: var(--shadow);
}
.cart-summary-row {
  display: flex; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--line-light);
  font-size: 14px;
}
.cart-summary-row:last-of-type { border-bottom: none; font-weight: 700; font-size: 15px; }
.cart-summary-discount { color: var(--success); }
.cart-actions { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-end; }

/* ══════════════════════════════
   EMPTY STATES
══════════════════════════════ */
.empty-state {
  text-align: center; padding: 64px 24px; color: var(--muted);
}
.empty-state-icon { font-size: 48px; margin-bottom: 14px; opacity: 0.5; }
.empty-state h3 { font-family: 'Inter', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.empty-state p { font-size: 14px; max-width: 320px; margin: 0 auto 20px; }

/* ══════════════════════════════
   LOGIN PAGE
══════════════════════════════ */
.login-wrap {
  min-height: 100vh; display: flex;
  background: var(--ink);
}
.login-left {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 40px;
  background: #0d0d0f;
  position: relative; overflow: hidden;
}
/* Multi-layer atmospheric effects on login left */
.login-left::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(139,92,246,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(6,182,212,0.06) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Crect x='0' y='0' width='1' height='40'/%3E%3Crect x='0' y='0' width='40' height='1'/%3E%3C/g%3E%3C/svg%3E");
}
.login-left::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.login-brand { position: relative; z-index: 1; max-width: 380px; }
.login-brand-logo {
  font-family: 'Inter', sans-serif;
  font-size: 2.4rem; font-weight: 800; color: white; letter-spacing: -1px; line-height: 1;
}
.login-brand-logo .bracket { color: rgba(255,255,255,0.3); font-weight: 300; font-size: 2.8rem; }
.login-brand-tagline {
  font-size: 11px; color: rgba(255,255,255,0.4); letter-spacing: 2px;
  text-transform: uppercase; margin-top: 10px; font-weight: 600;
}
.login-brand-desc {
  font-size: 15px; color: rgba(255,255,255,0.6); margin-top: 28px; line-height: 1.7;
}
.login-brand-address { font-size: 12px; color: rgba(255,255,255,0.25); margin-top: 32px; line-height: 1.8; }

.login-right {
  width: 420px; flex-shrink: 0;
  background: white; display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.login-form-wrap { width: 100%; max-width: 340px; }
.auth-switch {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 3px; margin-bottom: 24px;
}
.auth-switch-btn {
  border: none; background: transparent; color: var(--muted);
  border-radius: var(--radius); padding: 9px 14px; font-size: 13px; font-weight: 600;
  transition: var(--transition);
}
.auth-switch-btn.active {
  background: var(--ink); color: white;
}
.login-panel { display: none; }
.login-panel.active { display: block; }
.login-title { font-family: 'Inter', sans-serif; font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.5px; }
.login-subtitle { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.login-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.login-field { margin-bottom: 14px; }
.login-field label { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.login-field input {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-family: 'Inter', sans-serif; font-size: 14px; color: var(--ink);
  background: white; transition: var(--transition);
}
.login-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.login-error {
  background: #fee2e2; color: #991b1b; padding: 10px 14px;
  border-radius: var(--radius); font-size: 13px; margin-bottom: 14px; display: none;
}
.login-success {
  background: #dcfce7; color: #166534; padding: 10px 14px;
  border-radius: var(--radius); font-size: 13px; margin-bottom: 14px; display: none;
}
.login-submit {
  width: 100%; padding: 12px;
  background: linear-gradient(135deg, #1c1c1e 0%, #111111 100%);
  color: white; border: none;
  border-radius: var(--radius); font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 700; cursor: pointer; margin-top: 6px;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.12);
}
.login-submit:hover {
  background: linear-gradient(135deg, #2d2d30 0%, #1c1c1e 100%);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}
.auth-note {
  margin-top: 16px; font-size: 12px; color: var(--muted);
  text-align: center;
}

/* ══════════════════════════════
   CONFIGURATOR STEPS
══════════════════════════════ */
.config-steps {
  display: flex; gap: 0; margin-bottom: 24px;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.config-step {
  flex: 1; padding: 10px 14px; text-align: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--muted);
  background: white; border-right: 1px solid var(--line);
  transition: var(--transition);
}
.config-step:last-child { border-right: none; }
.config-step.active {
  background: var(--accent);
  color: white;
}
.config-step.done { background: var(--accent-light); color: var(--accent); }
.config-step-num { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 800; display: block; margin-bottom: 2px; }

/* ══════════════════════════════
   LOADING SPINNER
══════════════════════════════ */
.spinner {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white; border-radius: 50%;
  animation: spin 0.7s linear infinite; display: inline-block;
}
.spinner.dark { border-color: rgba(0,0,0,0.1); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════
   UTILITIES
══════════════════════════════ */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.text-muted { color: var(--muted); }
.text-green { color: var(--ink); }
.text-gold { color: var(--gold); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.fw-600 { font-weight: 600; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.sep { height: 1px; background: var(--line-light); margin: 20px 0; }

/* ══════════════════════════════
   ANIMATIONS
══════════════════════════════ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp 0.25s ease; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main-wrap { margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .main { padding: 20px 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .login-right { width: 100%; }
  .login-grid { grid-template-columns: 1fr; gap: 0; }
}
