/* ============================================
   EsyPrints — Dashboard Design System
   Service Provider & Admin Panel CSS
   ============================================ */

/* === REUSE BASE from styles.css === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Brand */
  --brand-primary: #0071BC;
  --brand-dark: #004A7C;
  --brand-light: #E5F3FF;
  --brand-accent: #FF6B35;

  /* Neutrals */
  --white: #ffffff;
  --off-white: #f7f7f7;
  --grey-50: #fafafa;
  --grey-100: #f3f3f3;
  --grey-200: #e8e8e8;
  --grey-300: #d1d1d1;
  --grey-400: #a3a3a3;
  --grey-500: #757575;
  --grey-600: #5c5c5c;
  --grey-700: #4a4a4a;
  --grey-800: #333333;
  --grey-900: #1a1a1a;

  /* Semantic */
  --success: #117a5e;
  --success-bg: #e2f8e7;
  --error: #cc3011;
  --error-bg: #fde8e4;
  --warning: #b45309;
  --warning-bg: #FEF3C7;
  --info: #0071BC;
  --info-bg: #E5F3FF;
  --star: #f59e0b;

  /* Sidebar */
  --sidebar-bg: #1a2744;
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
  --sidebar-hover: rgba(255,255,255,0.08);
  --sidebar-active: rgba(255,255,255,0.12);

  /* Typography */
  --font-primary: 'Inter', 'Segoe UI', -apple-system, sans-serif;

  /* Layout */
  --header-height: 64px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-primary);
  color: var(--grey-900);
  background: var(--grey-50);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; }

/* === DASHBOARD LAYOUT === */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
}

/* === SIDEBAR === */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--white);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: width 0.3s;
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--header-height);
}
.sidebar-logo {
  font-size: 1.35rem;
  font-weight: 800;
}
.sidebar-logo .esy { color: #6fd0f5; }
.sidebar-logo .prints { color: var(--brand-accent); }
.sidebar-badge {
  font-size: 0.625rem;
  font-weight: 700;
  background: var(--brand-accent);
  color: white;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sidebar-nav {
  flex: 1;
  padding: 12px 0;
}
.sidebar-section {
  padding: 0 12px;
  margin-bottom: 8px;
}
.sidebar-section-title {
  font-size: 0.688rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  padding: 8px 12px 6px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
  white-space: nowrap;
}
.sidebar-link:hover {
  background: var(--sidebar-hover);
  color: var(--white);
}
.sidebar-link.active {
  background: var(--sidebar-active);
  color: var(--white);
  font-weight: 600;
}
.sidebar-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.7;
}
.sidebar-link.active svg { opacity: 1; }
.sidebar-link .badge {
  margin-left: auto;
  background: var(--brand-accent);
  color: white;
  font-size: 0.688rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  min-width: 22px;
  text-align: center;
}
.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}
.sidebar-user:hover { background: var(--sidebar-hover); }
.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.813rem;
  font-weight: 700;
  flex-shrink: 0;
}
.sidebar-user-info { overflow: hidden; }
.sidebar-user-name { font-size: 0.813rem; font-weight: 600; }
.sidebar-user-role { font-size: 0.688rem; color: rgba(255,255,255,0.5); }

/* === MAIN CONTENT === */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

/* === TOP HEADER BAR === */
.top-bar {
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-bar-title {
  font-size: 1.125rem;
  font-weight: 700;
}
.top-bar-search {
  position: relative;
  width: 320px;
}
.top-bar-search input {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 14px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  background: var(--grey-50);
  outline: none;
  transition: border-color 0.2s;
}
.top-bar-search input:focus { border-color: var(--brand-primary); background: var(--white); }
.top-bar-search svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--grey-400);
}
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-bar-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.2s;
  color: var(--grey-600);
}
.top-bar-icon:hover { background: var(--grey-100); }
.top-bar-icon svg { width: 22px; height: 22px; }
.top-bar-icon .notif-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--error);
  border-radius: 50%;
  border: 2px solid var(--white);
}
.top-bar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.813rem;
  font-weight: 700;
}

/* === PAGE CONTENT === */
.page-content {
  padding: 28px;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
}
.page-header p {
  font-size: 0.875rem;
  color: var(--grey-500);
  margin-top: 2px;
}
.page-actions {
  display: flex;
  gap: 10px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand-primary); color: white; border-color: var(--brand-primary); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-dark { background: var(--grey-900); color: white; border-color: var(--grey-900); }
.btn-dark:hover { background: var(--grey-800); }
.btn-accent { background: var(--brand-accent); color: white; border-color: var(--brand-accent); }
.btn-accent:hover { background: #e55a27; border-color: #e55a27; }
.btn-success { background: var(--success); color: white; border-color: var(--success); }
.btn-success:hover { opacity: 0.9; }
.btn-danger { background: var(--error); color: white; border-color: var(--error); }
.btn-danger:hover { opacity: 0.9; }
.btn-outline { background: white; color: var(--grey-700); border-color: var(--grey-300); }
.btn-outline:hover { border-color: var(--grey-900); color: var(--grey-900); }
.btn-ghost { background: none; color: var(--grey-600); border: none; padding: 8px 12px; }
.btn-ghost:hover { background: var(--grey-100); color: var(--grey-900); }
.btn-sm { padding: 6px 14px; font-size: 0.813rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: var(--radius-md); }

/* === STAT CARDS === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow 0.2s;
}
.stat-card:hover { box-shadow: var(--shadow-sm); }
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 24px; height: 24px; }
.stat-icon.blue { background: var(--info-bg); color: var(--brand-primary); }
.stat-icon.green { background: var(--success-bg); color: var(--success); }
.stat-icon.orange { background: #FFF4ED; color: var(--brand-accent); }
.stat-icon.red { background: var(--error-bg); color: var(--error); }
.stat-icon.yellow { background: var(--warning-bg); color: var(--warning); }
.stat-icon.purple { background: #F3E8FF; color: #7C3AED; }
.stat-info h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.stat-info p { font-size: 0.813rem; color: var(--grey-500); margin-top: 2px; }
.stat-change {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.stat-change.up { background: var(--success-bg); color: var(--success); }
.stat-change.down { background: var(--error-bg); color: var(--error); }

/* === CARDS / PANELS === */
.card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--grey-200);
}
.card-header h3 { font-size: 1rem; font-weight: 600; }
.card-body { padding: 20px; }
.card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--grey-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* === DATA TABLE === */
.table-wrapper { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.data-table thead { background: var(--grey-50); }
.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.813rem;
  color: var(--grey-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--grey-200);
  white-space: nowrap;
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--grey-100);
  color: var(--grey-700);
  vertical-align: middle;
}
.data-table tbody tr:hover { background: var(--grey-50); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* Table cell helpers */
.cell-primary { font-weight: 600; color: var(--grey-900); }
.cell-link { color: var(--brand-primary); cursor: pointer; }
.cell-link:hover { text-decoration: underline; }
.cell-muted { color: var(--grey-500); font-size: 0.813rem; }

/* === BADGES / STATUS === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-error { background: var(--error-bg); color: var(--error); }
.badge-info { background: var(--info-bg); color: var(--brand-primary); }
.badge-grey { background: var(--grey-100); color: var(--grey-600); }
.badge-purple { background: #F3E8FF; color: #7C3AED; }
.badge-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* === FORMS === */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.813rem;
  font-weight: 600;
  color: var(--grey-700);
}
.form-group .required { color: var(--error); }
.form-input {
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}
.form-input:focus { border-color: var(--brand-primary); }
.form-input::placeholder { color: var(--grey-400); }
textarea.form-input { height: 100px; padding: 10px 14px; resize: vertical; }
select.form-input { cursor: pointer; }
.form-hint { font-size: 0.75rem; color: var(--grey-500); }
.form-input.error { border-color: var(--error); }

/* File Upload */
.file-upload {
  border: 2px dashed var(--grey-300);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.file-upload:hover { border-color: var(--brand-primary); background: var(--brand-light); }
.file-upload svg { width: 36px; height: 36px; color: var(--grey-400); margin: 0 auto 8px; }
.file-upload p { font-size: 0.875rem; color: var(--grey-500); }
.file-upload .format { font-size: 0.75rem; color: var(--grey-400); margin-top: 4px; }

/* Checkbox / Toggle */
.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--grey-300);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: var(--shadow-sm);
}
.toggle-switch input:checked + .toggle-slider { background: var(--success); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

/* === AVAILABILITY BANNER === */
.availability-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}
.availability-banner.active {
  background: var(--success-bg);
  border: 1px solid #a3e5c8;
}
.availability-banner.inactive {
  background: var(--error-bg);
  border: 1px solid #f5b8a8;
}
.availability-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.availability-info svg { width: 24px; height: 24px; }
.availability-info h4 { font-size: 0.938rem; font-weight: 600; }
.availability-info p { font-size: 0.813rem; opacity: 0.7; }

/* === ORDER CARDS (SP view) === */
.order-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}
.sp-order-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.sp-order-card:hover { box-shadow: var(--shadow-md); }
.sp-order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--grey-50);
  border-bottom: 1px solid var(--grey-200);
  font-size: 0.875rem;
}
.sp-order-card-body { padding: 18px; }
.sp-order-card-body h4 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.sp-order-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.813rem;
  color: var(--grey-600);
  margin-bottom: 6px;
}
.sp-order-detail-row span:last-child { font-weight: 600; color: var(--grey-900); }
.sp-order-card-footer {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--grey-200);
}

/* === TABS === */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--grey-200);
  margin-bottom: 24px;
}
.tab {
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--grey-500);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  white-space: nowrap;
}
.tab:hover { color: var(--grey-900); }
.tab.active { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }
.tab .tab-count {
  background: var(--grey-100);
  font-size: 0.688rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 6px;
}
.tab.active .tab-count { background: var(--brand-light); color: var(--brand-primary); }

/* === FILTER BAR === */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-bar .search-input {
  width: 280px;
  height: 40px;
  padding: 0 14px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  outline: none;
  background: var(--white);
}
.filter-bar .search-input:focus { border-color: var(--brand-primary); }
.filter-bar select {
  height: 40px;
  padding: 0 32px 0 12px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-md);
  font-size: 0.813rem;
  background: var(--white);
  cursor: pointer;
  outline: none;
}

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--grey-500);
}
.empty-state svg { width: 64px; height: 64px; color: var(--grey-300); margin: 0 auto 16px; }
.empty-state h3 { font-size: 1.125rem; font-weight: 600; color: var(--grey-700); margin-bottom: 6px; }
.empty-state p { font-size: 0.875rem; max-width: 360px; margin: 0 auto; }

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--grey-200);
}
.modal-header h3 { font-size: 1.125rem; font-weight: 700; }
.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--grey-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.modal-body { padding: 24px; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--grey-200);
}

/* === CHART PLACEHOLDER === */
.chart-placeholder {
  background: var(--grey-50);
  border: 2px dashed var(--grey-200);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-400);
  font-size: 0.875rem;
  min-height: 280px;
}

/* === CATALOGUE GRID === */
.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.catalogue-item {
  background: var(--white);
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.catalogue-item:hover { border-color: var(--brand-primary); }
.catalogue-item.selected { border-color: var(--brand-primary); background: var(--brand-light); }
.catalogue-item .cat-img {
  width: 80px;
  height: 80px;
  background: var(--grey-100);
  border-radius: var(--radius-md);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.catalogue-item .cat-img svg { width: 36px; height: 36px; color: var(--grey-400); }
.catalogue-item h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 4px; }
.catalogue-item .cat-price { font-size: 0.813rem; color: var(--grey-500); }
.catalogue-item .cat-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  background: var(--brand-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.catalogue-item .cat-check svg { width: 14px; height: 14px; }

/* === KYC STEPPER === */
.kyc-stepper {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}
.kyc-step {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kyc-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grey-200);
  color: var(--grey-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}
.kyc-step.active .kyc-step-num { background: var(--brand-primary); color: white; }
.kyc-step.completed .kyc-step-num { background: var(--success); color: white; }
.kyc-step-label { font-size: 0.813rem; font-weight: 600; color: var(--grey-500); }
.kyc-step.active .kyc-step-label { color: var(--grey-900); }
.kyc-step.completed .kyc-step-label { color: var(--success); }
.kyc-step-connector {
  width: 60px;
  height: 2px;
  background: var(--grey-200);
  margin: 0 8px;
}
.kyc-step-connector.completed { background: var(--success); }

/* === AUTH PAGE (SP/Admin Login) === */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--grey-50);
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 460px;
  padding: 40px;
}
.auth-card .auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-card h2 { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 6px; }
.auth-card .subtitle { text-align: center; font-size: 0.875rem; color: var(--grey-500); margin-bottom: 28px; }

/* === GRID HELPERS === */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

/* === RESPONSIVE === */
@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .order-cards-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .sidebar { width: var(--sidebar-collapsed); }
  .sidebar .sidebar-link span,
  .sidebar .sidebar-section-title,
  .sidebar .sidebar-user-info,
  .sidebar .sidebar-badge,
  .sidebar .sidebar-link .badge { display: none; }
  .sidebar-header { justify-content: center; padding: 20px 12px; }
  .sidebar-logo { font-size: 0; }
  .sidebar-logo .esy { font-size: 1.25rem; }
  .sidebar-logo .prints { display: none; }
  .sidebar-link { justify-content: center; padding: 12px; }
  .sidebar-user { justify-content: center; }
  .main-content { margin-left: var(--sidebar-collapsed); }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .page-content { padding: 16px; }
  .top-bar { padding: 0 16px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar .search-input { width: 100%; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .tabs { overflow-x: auto; }
  .catalogue-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .catalogue-grid { grid-template-columns: 1fr; }
}
