/* ═══════════════════════════════════════════
   TETIK AUFTRAGSPORTAL – Design System
   ═══════════════════════════════════════════ */

:root {
  --black: #131316;
  --charcoal: #1E1E24;
  --slate: #2C2C35;
  --slate-light: #3A3A45;
  --accent: #144A8D;
  --accent-light: #1A5FAF;
  --accent-dark: #0F3A6E;
  --accent-faint: rgba(20,74,141,0.10);
  --white: #EAEEF3;
  --muted: #8A8A8A;
  --muted-light: #ABABAB;
  --success: #4CAF50;
  --warning: #FF9800;
  --error: #E53935;
  --info: #42A5F5;
  --bg: #0F0F12;
  --card: #191920;
  --border: #2A2A34;
  --border-light: #363642;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --sidebar-w: 264px;
  --header-h: 64px;
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(20,74,141,0.4); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--slate); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-light); }

a { color: var(--accent-light); text-decoration: none; }
a:hover { color: var(--white); }

/* ── Layout ── */
.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--charcoal);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-logo {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
}

.sidebar-logo img {
  height: 34px;
  width: auto;
}

.sidebar-logo .logo-text {
  display: flex;
  flex-direction: column;
}

.sidebar-logo .logo-text span:first-child {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.sidebar-logo .logo-text span:last-child {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 0.3px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--muted-light);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
}

.nav-item:hover {
  background: var(--accent-faint);
  color: var(--white);
}

.nav-item.active {
  background: var(--accent-faint);
  color: var(--accent-light);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}

.nav-item i { width: 20px; text-align: center; font-size: 16px; }

.nav-badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: var(--accent-faint);
  color: var(--accent-light);
}

.sidebar-user {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-user .user-info { flex: 1; min-width: 0; }
.sidebar-user .user-name { font-size: 13px; font-weight: 600; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user .user-role { font-size: 11px; color: var(--muted); text-transform: capitalize; }

.sidebar-user .logout-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 6px;
  border-radius: 6px;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.sidebar-user .logout-btn:hover { color: var(--error); }
/* Hide fallback SVG when lucide replaces the <i> */
.sidebar-user .logout-btn .logout-fallback { display: inline; }
.sidebar-user .logout-btn i + .logout-fallback { display: none; }
.sidebar-user .logout-btn i:empty + .logout-fallback { display: inline; }

/* ── Main Content ── */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.top-header {
  height: var(--header-h);
  min-height: var(--header-h);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--charcoal);
}

.top-header h1 {
  font-size: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.content-area {
  flex: 1;
  overflow: auto;
  padding: 32px;
}

/* ── Cards ── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  transition: all 0.25s;
}

.card.clickable { cursor: pointer; }
.card.clickable:hover { border-color: var(--accent); box-shadow: 0 0 20px rgba(20,74,141,0.08); }
.card.no-pad { padding: 0; }

.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.badge.sm { padding: 2px 8px; font-size: 11px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.2s;
  border-radius: var(--radius-sm);
  font-size: 13px;
  padding: 10px 20px;
  text-decoration: none;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn i { font-size: 16px; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
}
.btn-primary:hover { background: linear-gradient(135deg, var(--accent-light), var(--accent)); }

.btn-secondary {
  background: var(--slate);
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); }

.btn-ghost { background: transparent; color: var(--muted-light); }
.btn-ghost:hover { color: var(--white); }

.btn-danger {
  background: rgba(229,57,53,0.12);
  color: var(--error);
  border: 1px solid rgba(229,57,53,0.2);
}
.btn-danger:hover { background: rgba(229,57,53,0.2); }

.btn-success {
  background: rgba(76,175,80,0.12);
  color: var(--success);
  border: 1px solid rgba(76,175,80,0.2);
}
.btn-success:hover { background: rgba(76,175,80,0.2); }

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 14px; }
.btn-full { width: 100%; }

/* ── Form Elements ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-group label .req { color: var(--accent-light); margin-left: 2px; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--muted); }
.form-select { appearance: none; cursor: pointer; }
.form-select option { background: var(--black); color: var(--white); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-note { font-size: 11px; color: var(--muted); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Stat Cards ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}

.stat-card .stat-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

/* ── Order Cards Grid ── */
.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.order-card { position: relative; overflow: hidden; }
.order-card .urgent-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--error), var(--warning));
}

.order-card .order-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.order-card .order-type-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-size: 18px;
}

.order-card .order-nr {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.order-card .order-type-name {
  font-size: 12px;
  color: var(--muted-light);
}

.order-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 10px;
}

.order-card .order-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}

.order-card .order-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.order-card .order-tags {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

/* ── List Row ── */
.list-row {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.15s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.list-row:hover { background: var(--accent-faint); }

.list-row .row-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.list-row .row-content { flex: 1; min-width: 0; }
.list-row .row-title { font-size: 13px; font-weight: 600; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .row-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.list-row .row-time { font-size: 11px; color: var(--muted); min-width: 50px; text-align: right; }

/* ── Users Table ── */
.users-table { width: 100%; }
.users-table .t-head {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr 80px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.users-table .t-row {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr 80px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.users-table .t-row .user-cell { display: flex; align-items: center; gap: 10px; }
.users-table .t-row .user-cell .avatar-sm {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(20,74,141,0.3), rgba(20,74,141,0.15));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--accent-light);
}
.users-table .t-row .user-name { font-size: 13px; font-weight: 600; color: var(--white); }
.users-table .t-row .user-email { font-size: 13px; color: var(--muted); }

/* ── Detail Page ── */
.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.detail-grid .left-col,
.detail-grid .right-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 16px;
}

.detail-header .type-icon-lg {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-faint);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-light); font-size: 24px;
}

.detail-header h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0;
}

.detail-header .meta-row {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.detail-header .meta-row span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nc-path {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-light);
  background: var(--black);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  word-break: break-all;
  display: block;
}

.nc-tree {
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}

.revision-block {
  padding: 10px 14px;
  background: rgba(229,57,53,0.06);
  border-radius: 8px;
  border-left: 3px solid var(--error);
  font-size: 13px;
  color: var(--white);
  line-height: 1.6;
}

.timeline-item {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
}

.timeline-item .tl-dot {
  width: 10px; height: 10px; border-radius: 5px;
  flex-shrink: 0;
  margin-top: 4px;
}

.timeline-item .tl-line {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-item .tl-line .line {
  width: 1px;
  flex: 1;
  background: var(--border);
  margin-top: 4px;
}

.timeline-item .tl-label { font-size: 13px; color: var(--white); font-weight: 500; }
.timeline-item .tl-time { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── Upload Zone ── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--accent-faint);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--accent);
}
.upload-zone i { font-size: 24px; color: var(--accent-light); margin-bottom: 8px; }
.upload-zone p { margin: 0; font-size: 13px; color: var(--muted-light); }
.upload-zone p span { color: var(--accent-light); font-weight: 600; }

.file-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--black);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.file-item .file-name { flex: 1; font-size: 13px; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .file-size { font-size: 11px; color: var(--muted); }
.file-item .file-remove { background: none; border: none; cursor: pointer; color: var(--muted); padding: 2px; }
.file-item .file-remove:hover { color: var(--error); }

/* ── Filter Bar ── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 320px;
}

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
}

.search-box input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-size: 13px;
  font-family: var(--font-body);
  outline: none;
}

.search-box input:focus { border-color: var(--accent); }

.filter-tabs {
  display: flex;
  gap: 4px;
  background: var(--card);
  border-radius: 10px;
  padding: 4px;
  border: 1px solid var(--border);
}

.filter-tab {
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-body);
  background: transparent;
  color: var(--muted);
  transition: all 0.2s;
  text-decoration: none;
}
.filter-tab:hover { color: var(--white); }
.filter-tab.active { background: var(--accent-faint); color: var(--accent-light); }

/* ── Info Banner ── */
.info-banner {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-banner i { flex-shrink: 0; }
.info-banner.accent { background: var(--accent-faint); border: 1px solid rgba(20,74,141,0.25); color: var(--accent-light); }
.info-banner.warning { background: rgba(255,152,0,0.08); border: 1px solid rgba(255,152,0,0.25); color: var(--warning); }
.info-banner.error { background: rgba(229,57,53,0.06); border: 1px solid rgba(229,57,53,0.2); color: var(--error); }
.info-banner.info { background: rgba(66,165,245,0.08); border: 1px solid rgba(66,165,245,0.2); color: var(--info); }

/* ── Empty State ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.empty-state .empty-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--accent-faint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
  color: var(--accent-light);
}

.empty-state h3 {
  font-size: 18px;
  font-family: var(--font-display);
  margin-bottom: 8px;
}

.empty-state p { color: var(--muted); font-size: 14px; max-width: 320px; }

/* ── Photo Toggle ── */
.photo-toggle {
  display: flex;
  gap: 12px;
}

.photo-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.photo-option:hover { border-color: var(--slate-light); }
.photo-option.selected-yes { border-color: var(--success); background: rgba(76,175,80,0.06); }
.photo-option.selected-no { border-color: var(--warning); background: rgba(255,152,0,0.06); }
.photo-option i { font-size: 20px; }
.photo-option span { font-size: 13px; font-weight: 600; color: var(--white); }

/* ── Settings Grid ── */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ── Login Page ── */
.login-page {
  min-height: 100vh;
  display: flex;
}

.login-brand {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px;
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-dark) 50%, #0A2A52 100%);
  position: relative;
  overflow: hidden;
}

.login-brand .deco-circle {
  position: absolute;
  border-radius: 50%;
}
.login-brand .deco-circle.c1 { top: -120px; right: -120px; width: 400px; height: 400px; background: rgba(255,255,255,0.04); }
.login-brand .deco-circle.c2 { bottom: -80px; left: -80px; width: 300px; height: 300px; background: rgba(255,255,255,0.03); }
.login-brand .deco-circle.c3 { top: 50%; left: 50%; transform: translate(-50%,-50%); width: 600px; height: 600px; border: 1px solid rgba(255,255,255,0.06); background: transparent; }

.login-brand .brand-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 420px;
}

.login-brand .brand-content img { width: 220px; margin-bottom: 48px; }
.login-brand .brand-content h1 { font-size: 36px; font-family: var(--font-display); font-weight: 700; color: #fff; margin-bottom: 16px; }
.login-brand .brand-content p { font-size: 16px; color: rgba(255,255,255,0.7); line-height: 1.6; }

.login-stats {
  margin-top: 48px;
  display: flex;
  gap: 32px;
  justify-content: center;
}

.login-stats .stat-item { text-align: center; }
.login-stats .stat-item .val { font-size: 28px; font-weight: 700; color: #fff; }
.login-stats .stat-item .lbl { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 4px; }

.login-form-panel {
  width: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 56px;
  background: var(--charcoal);
}

.login-form-panel h2 {
  font-family: var(--font-display);
  font-size: 26px;
  margin-bottom: 8px;
}

.login-form-panel .subtitle { color: var(--muted); font-size: 14px; margin-bottom: 32px; }

.login-error {
  padding: 10px 14px;
  background: rgba(229,57,53,0.1);
  border: 1px solid rgba(229,57,53,0.3);
  border-radius: 8px;
  font-size: 13px;
  color: var(--error);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.demo-section {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.demo-section .demo-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.demo-user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-body);
  margin-bottom: 6px;
  width: 100%;
  text-align: left;
}
.demo-user-btn:hover { background: var(--accent-faint); border-color: rgba(20,74,141,0.4); }
.demo-user-btn .demo-name { font-size: 12px; font-weight: 600; color: var(--white); }
.demo-user-btn .demo-info { font-size: 11px; color: var(--muted); }

/* ── Utility ── */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 4px; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-28 { gap: 28px; }
.mb-0 { margin-bottom: 0; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.text-muted { color: var(--muted); }
.text-sm { font-size: 12px; }
.text-mono { font-family: var(--font-mono); }
.font-display { font-family: var(--font-display); }

/* ── 404 ── */
.page-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60vh;
  text-align: center;
}
.page-404 h1 { font-size: 64px; font-family: var(--font-display); color: var(--accent); }
.page-404 p { color: var(--muted); margin: 12px 0 24px; }

/* ── Responsive (basic) ── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .orders-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-form-panel { width: 100%; }
}
