/* ============================================================
   ServCore Digital Marketplace — Main Stylesheet
   Design: Dark Professional / Editorial
   Fonts: Syne (display) + Outfit (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  /* Colors */
  --bg-base:       #070C18;
  --bg-surface:    #0E1628;
  --bg-elevated:   #141E30;
  --bg-overlay:    #1B2640;

  --border:        rgba(255, 255, 255, 0.07);
  --border-accent: rgba(6, 182, 212, 0.25);

  --text-primary:  #F0F4FC;
  --text-secondary:#94A3B8;
  --text-muted:    #4B5E78;
  --text-inverse:  #070C18;

  --cyan:          #06B6D4;
  --cyan-dark:     #0891B2;
  --cyan-glow:     rgba(6, 182, 212, 0.15);
  --cyan-dim:      rgba(6, 182, 212, 0.08);

  --amber:         #F59E0B;
  --amber-dim:     rgba(245, 158, 11, 0.12);

  --green:         #10B981;
  --green-dim:     rgba(16, 185, 129, 0.12);

  --red:           #EF4444;
  --red-dim:       rgba(239, 68, 68, 0.12);

  --blue:          #3B82F6;
  --blue-dim:      rgba(59, 130, 246, 0.12);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'Outfit', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Layout */
  --content-width: 1200px;
  --sidebar-width: 260px;
  --header-height: 64px;

  /* Radii */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow:     0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.6);
  --shadow-cyan: 0 0 30px rgba(6,182,212,0.12);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 200ms;

  /* Aliases — used in appended component CSS */
  --surface-1: var(--bg-surface);
  --surface-2: var(--bg-elevated);
  --surface-3: var(--bg-overlay);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

a:hover { color: #22D3EE; }

img, svg { display: block; }

ul, ol { list-style: none; }

input, textarea, select, button { font-family: inherit; }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(28px, 4vw, 48px); letter-spacing: -0.03em; }
h2 { font-size: clamp(22px, 3vw, 36px); letter-spacing: -0.02em; }
h3 { font-size: clamp(18px, 2.5vw, 26px); letter-spacing: -0.01em; }
h4 { font-size: 20px; }
h5 { font-size: 17px; }
h6 { font-size: 15px; }

p { color: var(--text-secondary); margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

strong { color: var(--text-primary); font-weight: 600; }
em { font-style: italic; }
code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--cyan);
  background: var(--cyan-dim);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* ============================================================
   Navigation / Header
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(7, 12, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-logo .dot { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--duration) var(--ease);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-notification {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.nav-notification:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.nav-notification .badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  border: 2px solid var(--bg-base);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
}

.nav-user:hover { border-color: var(--border-accent); }

.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--text-inverse);
  flex-shrink: 0;
}

.nav-user-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ============================================================
   Dashboard Layout
   ============================================================ */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - var(--header-height));
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--bg-surface);
  padding: var(--space-6) 0;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
}

.sidebar-section {
  padding: 0 var(--space-4);
  margin-bottom: var(--space-6);
}

.sidebar-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 var(--space-3);
  margin-bottom: var(--space-2);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--duration) var(--ease);
}

.sidebar-link:hover, .sidebar-link.active {
  background: var(--bg-overlay);
  color: var(--text-primary);
}

.sidebar-link.active {
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid var(--border-accent);
}

.sidebar-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sidebar-link .badge-count {
  margin-left: auto;
  background: var(--cyan);
  color: var(--text-inverse);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  min-width: 20px;
  text-align: center;
}

.main-content {
  flex: 1;
  padding: var(--space-8);
  overflow-x: hidden;
  max-width: calc(var(--content-width) - var(--sidebar-width));
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.card:hover {
  border-color: rgba(255,255,255,0.12);
}

.card-sm { padding: var(--space-4); }
.card-lg { padding: var(--space-8); }

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

.card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ============================================================
   Service Card
   ============================================================ */
.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.service-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-cyan);
  transform: translateY(-2px);
}

.service-card:hover::before { opacity: 1; }

.service-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--cyan-dim);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
}

.service-card-icon svg { width: 20px; height: 20px; }

.service-card-body { flex: 1; }

.service-card-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.service-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--bg-overlay);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  letter-spacing: 0.02em;
  font-family: var(--font-mono);
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.service-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
}

.service-price .currency {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-right: 2px;
}

.service-price-custom {
  font-size: 14px;
  color: var(--cyan);
  font-weight: 600;
}

.simulation-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid rgba(245,158,11,0.25);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ============================================================
   Stat Cards
   ============================================================ */
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--cyan-dim);
  transform: translate(30%, 30%);
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-change {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.stat-change.up { color: var(--green); }
.stat-change.down { color: var(--red); }

.stat-icon {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  z-index: 1;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  font-family: var(--font-body);
}

.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn-primary {
  background: var(--cyan);
  color: var(--text-inverse);
  border-color: var(--cyan);
}

.btn-primary:hover {
  background: #22D3EE;
  border-color: #22D3EE;
  color: var(--text-inverse);
  box-shadow: 0 0 20px rgba(6,182,212,0.3);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-overlay);
  border-color: rgba(255,255,255,0.15);
  color: var(--text-primary);
}

.btn-danger {
  background: var(--red-dim);
  color: var(--red);
  border-color: rgba(239,68,68,0.2);
}

.btn-danger:hover {
  background: var(--red);
  color: #fff;
}

.btn-success {
  background: var(--green-dim);
  color: var(--green);
  border-color: rgba(16,185,129,0.2);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-sm svg { width: 13px; height: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

.btn:disabled, .btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-loading { pointer-events: none; opacity: 0.7; }

/* ============================================================
   Forms
   ============================================================ */
.form-group { margin-bottom: var(--space-5); }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  letter-spacing: 0.01em;
}

.form-label .required { color: var(--red); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-body);
  transition: all var(--duration) var(--ease);
  outline: none;
  -webkit-appearance: none;
}

.form-control::placeholder { color: var(--text-muted); }

.form-control:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}

.form-control:invalid:not(:placeholder-shown) { border-color: var(--red); }

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.form-error {
  font-size: 12px;
  color: var(--red);
  margin-top: var(--space-1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.checkbox-item:hover { border-color: var(--border-accent); }

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--cyan);
  cursor: pointer;
}

.checkbox-item label {
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

.file-drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  background: var(--bg-elevated);
}

.file-drop:hover, .file-drop.dragover {
  border-color: var(--cyan);
  background: var(--cyan-dim);
}

.file-drop-icon { color: var(--text-muted); margin: 0 auto var(--space-3); }
.file-drop-icon svg { width: 36px; height: 36px; }
.file-drop-text { font-size: 14px; color: var(--text-secondary); }
.file-drop-text strong { color: var(--cyan); }
.file-drop-hint { font-size: 12px; color: var(--text-muted); margin-top: var(--space-1); }

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

.badge-warning { background: var(--amber-dim);  color: var(--amber);  border: 1px solid rgba(245,158,11,0.2); }
.badge-info    { background: var(--blue-dim);   color: var(--blue);   border: 1px solid rgba(59,130,246,0.2); }
.badge-success { background: var(--green-dim);  color: var(--green);  border: 1px solid rgba(16,185,129,0.2); }
.badge-danger  { background: var(--red-dim);    color: var(--red);    border: 1px solid rgba(239,68,68,0.2); }
.badge-muted   { background: var(--bg-elevated);color: var(--text-secondary); border: 1px solid var(--border); }
.badge-cyan    { background: var(--cyan-dim);   color: var(--cyan);   border: 1px solid var(--border-accent); }

/* ============================================================
   Tables
   ============================================================ */
.table-wrap { overflow-x: auto; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--bg-surface);
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
}

.table tr:last-child td { border-bottom: none; }

.table tbody tr { transition: background var(--duration) var(--ease); }
.table tbody tr:hover { background: var(--bg-elevated); }

.table-ref {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  font-weight: 500;
}

/* ============================================================
   Alerts / Flash Messages
   ============================================================ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: var(--space-4);
}

.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

.alert-success { background: var(--green-dim);  color: var(--green);  border: 1px solid rgba(16,185,129,0.2); }
.alert-error   { background: var(--red-dim);    color: var(--red);    border: 1px solid rgba(239,68,68,0.2); }
.alert-warning { background: var(--amber-dim);  color: var(--amber);  border: 1px solid rgba(245,158,11,0.2); }
.alert-info    { background: var(--cyan-dim);   color: var(--cyan);   border: 1px solid var(--border-accent); }

/* ============================================================
   Search Bar
   ============================================================ */
.search-bar {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.search-bar svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: all var(--duration) var(--ease);
}

.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-dim); }

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  overflow: hidden;
  display: none;
}

.search-results.open { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--duration) var(--ease);
  text-decoration: none;
}

.search-result-item:hover { background: var(--bg-overlay); }

.search-result-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.search-result-category {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   Order Timeline
   ============================================================ */
.timeline { padding: var(--space-2) 0; }

.timeline-item {
  display: flex;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

.timeline-dot svg { width: 14px; height: 14px; color: var(--text-muted); }
.timeline-dot.completed { background: var(--green-dim); border-color: rgba(16,185,129,0.3); }
.timeline-dot.completed svg { color: var(--green); }
.timeline-dot.current { background: var(--cyan-dim); border-color: var(--border-accent); }
.timeline-dot.current svg { color: var(--cyan); }

.timeline-body { flex: 1; padding-top: 5px; }

.timeline-event {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.timeline-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.timeline-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-overlay);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--cyan);
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  margin-top: var(--space-6);
}

.page-item {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}

.page-item:hover { border-color: var(--border-accent); color: var(--text-primary); }
.page-item.active { background: var(--cyan); border-color: var(--cyan); color: var(--text-inverse); }
.page-item.disabled { opacity: 0.3; pointer-events: none; }

/* ============================================================
   Filter Bar
   ============================================================ */
.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.filter-btn {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.filter-btn:hover, .filter-btn.active {
  color: var(--cyan);
  border-color: var(--border-accent);
  background: var(--cyan-dim);
}

/* ============================================================
   Empty State
   ============================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-6);
  text-align: center;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

.empty-state-icon svg { width: 28px; height: 28px; }
.empty-state h3 { font-size: 18px; margin-bottom: var(--space-2); }
.empty-state p { font-size: 14px; color: var(--text-muted); max-width: 300px; margin-bottom: var(--space-5); }

/* ============================================================
   Modal
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 12, 24, 0.85);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px);
  transition: transform var(--duration) var(--ease);
}

.modal-backdrop.open .modal { transform: translateY(0); }

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

.modal-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.modal-close:hover { color: var(--text-primary); border-color: var(--border-accent); }
.modal-close svg { width: 16px; height: 16px; }

.modal-body { padding: var(--space-6); }
.modal-footer {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
}

/* ============================================================
   Hero (home page)
   ============================================================ */
.hero {
  padding: var(--space-16) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse at center, rgba(6,182,212,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--space-5);
}

.hero h1 { margin-bottom: var(--space-5); }

.hero h1 .accent {
  background: linear-gradient(135deg, var(--cyan), #818CF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--space-8);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

/* ============================================================
   Footer
   ============================================================ */
/* Footer styles defined in Component Additions section below */

/* ============================================================
   Loading Spinner
   ============================================================ */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(6,182,212,0.25);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spinner-sm { width: 14px; height: 14px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Utilities
   ============================================================ */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--text-muted); }
.text-cyan    { color: var(--cyan); }
.text-green   { color: var(--green); }
.text-red     { color: var(--red); }
.text-amber   { color: var(--amber); }
.text-sm      { font-size: 13px; }
.text-xs      { font-size: 11px; }

.font-mono    { font-family: var(--font-mono); }
.font-display { font-family: var(--font-display); }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-6) 0;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   Page Header
   ============================================================ */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  gap: var(--space-4);
}

.page-header-text h1 {
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: var(--space-1);
}

.page-header-text p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   Notification Dropdown
   ============================================================ */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 150;
  overflow: hidden;
  display: none;
}

.notif-dropdown.open { display: block; }
.notif-dropdown-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.notif-dropdown-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.notif-item {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) var(--ease);
  cursor: pointer;
}
.notif-item:hover { background: var(--bg-overlay); }
.notif-item.unread { border-left: 3px solid var(--cyan); }
.notif-item-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.notif-item-body { font-size: 13px; color: var(--text-secondary); }
.notif-item-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .sidebar { display: none; }
  .main-content { max-width: 100%; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--space-4); }
  .nav-links { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; }
  .hero { padding: var(--space-10) 0; }
  .hero p { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .modal { max-width: 100%; border-radius: var(--radius-lg); }
  .main-content { padding: var(--space-4); }
}

@media (max-width: 480px) {
  h1 { font-size: 26px; }
  .stat-value { font-size: 28px; }
}

/* ============================================================
   Component Additions — Consolidated (replaces all appended blocks)
   ============================================================ */

/* --- Page structure --- */
.page-outer { padding: 48px 0; }
.page-title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 4px; }
.page-sub   { font-size: 14px; color: var(--text-muted); margin: 0; }
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .two-col-grid { grid-template-columns: 1fr; } }

/* --- Auth --- */
.auth-logo      { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.auth-logo-name { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.03em; }
.auth-logo-name .dot { color: var(--cyan); }
.auth-title     { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.auth-sub       { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.auth-footer    { text-align: center; font-size: 13px; color: var(--text-secondary); margin-top: 20px; }
.btn-block      { width: 100%; justify-content: center; }
.form-check     { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-secondary); cursor: pointer; }
.form-check input { margin-top: 2px; flex-shrink: 0; accent-color: var(--cyan); }

/* --- Alert close --- */
.alert-close { background: none; border: none; color: inherit; cursor: pointer; font-size: 18px; margin-left: auto; opacity: .5; padding: 0 4px; line-height: 1; }
.alert-close:hover { opacity: 1; }

/* --- Sidebar (dashboard) --- */
.sidebar-inner  { display: flex; flex-direction: column; height: 100%; }
.sidebar-group  { flex: 1; padding: 8px; }
.sidebar-bottom { padding: 8px; border-top: 1px solid var(--border); }
.sidebar-link-danger { color: var(--red) !important; }

/* --- Nav notification bell --- */
.nav-notif { position: relative; cursor: pointer; padding: 6px; display: flex; align-items: center; color: var(--text-secondary); border-radius: var(--radius-sm); transition: color var(--duration) var(--ease); }
.nav-notif:hover { color: var(--text-primary); background: var(--bg-elevated); }
.notif-dot { position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; background: var(--cyan); border-radius: 50%; border: 2px solid var(--bg-base); }

/* --- Notification dropdown (enhanced) --- */
.notif-dropdown-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--bg-elevated); }
.notif-count-badge   { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--cyan); color: var(--bg-base); font-size: 10px; font-weight: 800; margin-left: 6px; }
.notif-icon-wrap     { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-content       { flex: 1; min-width: 0; }
.notif-title         { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.notif-body          { font-size: 12px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-time          { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.notif-item          { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--border); transition: background var(--duration) var(--ease); }
.notif-item:hover    { background: var(--bg-overlay); }
.notif-item.unread   { background: rgba(6,182,212,.04); }
.notif-empty         { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 16px; color: var(--text-muted); font-size: 13px; text-align: center; gap: 8px; }
.notif-footer-link   { display: block; text-align: center; padding: 11px; font-size: 12px; font-weight: 600; color: var(--cyan); text-decoration: none; }
.notif-footer-link:hover { background: var(--bg-overlay); }
/* Override base notif-dropdown for new enhanced version */
.notif-dropdown      { position: absolute; top: calc(100% + 10px); right: -8px; width: 340px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0,0,0,.6); z-index: 200; display: none; max-height: 480px; overflow-y: auto; overflow-x: hidden; }

/* --- Full Notifications Page --- */
.notif-page-list      { display: flex; flex-direction: column; gap: 8px; }
.notif-page-item      { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); text-decoration: none; color: inherit; transition: border-color var(--duration); }
.notif-page-item:hover { border-color: var(--border-accent); }
.notif-page-item.unread { border-left: 3px solid var(--cyan); }
.notif-page-icon      { width: 44px; height: 44px; border-radius: 10px; border: 1px solid; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-page-content   { flex: 1; min-width: 0; }
.notif-page-label     { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.notif-page-title     { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.notif-page-body      { font-size: 13px; color: var(--text-secondary); margin-bottom: 5px; }
.notif-page-time      { font-size: 12px; color: var(--text-muted); }
.notif-page-unread-dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex-shrink: 0; margin-top: 6px; }

/* --- Services browse layout --- */
.services-layout      { display: flex; gap: 28px; align-items: flex-start; }
.filters-sidebar      { width: 210px; flex-shrink: 0; position: sticky; top: 80px; }
.services-grid-wrap   { flex: 1; min-width: 0; }
.service-grid         { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-bottom: 32px; }
@media (max-width: 860px) { .services-layout { flex-direction: column; } .filters-sidebar { width: 100%; position: static; } }

/* Service card (browse page — links) */
.service-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; position: relative; overflow: hidden; }
.service-card:hover   { border-color: var(--border-accent); transform: translateY(-2px); box-shadow: var(--shadow-cyan); }
.service-category     { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); font-weight: 600; }
.service-name         { font-size: 15px; font-weight: 700; color: var(--text-primary); line-height: 1.35; }
.service-desc         { font-size: 13px; color: var(--text-secondary); line-height: 1.6; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.service-tags         { display: flex; flex-wrap: wrap; gap: 6px; }
.service-footer       { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.service-price-label  { font-size: 16px; font-weight: 700; color: var(--cyan); }
.service-price-custom { font-size: 13px; color: var(--text-muted); font-style: italic; }
.simulation-tag       { position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(245,158,11,.3); border-radius: 4px; padding: 2px 8px; }

/* Filter button (sidebar) */
.filter-btn           { display: block; padding: 7px 12px; border-radius: 6px; font-size: 13px; color: var(--text-secondary); text-decoration: none; transition: background .12s, color .12s; margin-bottom: 2px; border: none; background: transparent; cursor: pointer; width: 100%; text-align: left; }
.filter-btn:hover     { background: var(--bg-elevated); color: var(--text-primary); }
.filter-btn.active    { background: var(--cyan-dim); color: var(--cyan); font-weight: 600; }

/* --- Service detail --- */
.service-detail-grid  { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .service-detail-grid { grid-template-columns: 1fr; } }

/* --- Order layout --- */
.order-grid           { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.order-main           { min-width: 0; }
.order-aside          { min-width: 0; }
@media (max-width: 860px) { .order-grid { grid-template-columns: 1fr; } }

/* --- Detail table (order info rows) --- */
.detail-table         { width: 100%; border-collapse: collapse; }
.detail-table th      { font-size: 12px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 0; text-align: left; width: 130px; border-bottom: 1px solid var(--border); vertical-align: top; white-space: nowrap; padding-right: 16px; }
.detail-table td      { font-size: 14px; color: var(--text-secondary); padding: 10px 0; border-bottom: 1px solid var(--border); }

/* --- Messages --- */
.message-thread       { display: flex; flex-direction: column; gap: 12px; padding: 4px 0; }
.message-item         { max-width: 82%; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.6; }
.message-user         { background: var(--bg-elevated); color: var(--text-secondary); align-self: flex-start; border-radius: 2px 12px 12px 12px; }
.message-admin        { background: var(--cyan-dim); border: 1px solid var(--border-accent); color: var(--text-primary); align-self: flex-end; border-radius: 12px 2px 12px 12px; }
.message-meta         { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.message-body         { word-break: break-word; }

/* --- Timeline (compact sidebar) --- */
.timeline-event       { font-size: 13px; color: var(--text-primary); font-weight: 500; }
.timeline-note        { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.timeline-time        { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* --- Stat icon variants --- */
.stat-icon--cyan      { background: rgba(6,182,212,.12);   color: var(--cyan);  }
.stat-icon--blue      { background: rgba(59,130,246,.12);  color: var(--blue);  }
.stat-icon--green     { background: rgba(16,185,129,.12);  color: var(--green); }
.stat-icon--yellow    { background: rgba(245,158,11,.12);  color: var(--amber); }

/* --- Static pages (terms, privacy, guide) --- */
.static-header        { margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.static-header h1     { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.static-body h2       { font-size: 18px; font-weight: 700; color: var(--text-primary); margin: 36px 0 12px; }
.static-body p        { font-size: 15px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 16px; }
.static-body ul       { padding-left: 20px; margin-bottom: 16px; }
.static-body ul li    { font-size: 15px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 6px; }
.static-body a        { color: var(--cyan); }
.static-body strong   { color: var(--text-primary); }

/* --- Checkbox group (service order form) --- */
.checkbox-label       { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--text-secondary); cursor: pointer; padding: 6px 0; }
.checkbox-label input { accent-color: var(--cyan); }

/* --- Custom job timeline --- */
.timeline-dot         { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex-shrink: 0; margin-top: 5px; }
.timeline-content     { flex: 1; }

/* --- Misc helpers --- */
.table-responsive     { overflow-x: auto; }
.form-hint            { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.btn-xs               { padding: 3px 10px; font-size: 11px; }
.text-danger          { color: var(--red); }
.empty-state--sm      { padding: 24px 16px; }

/* --- Responsive additions --- */
@media (max-width: 768px) {
  .two-col-grid { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .order-grid { grid-template-columns: 1fr; }
  .notif-dropdown { width: calc(100vw - 32px); right: -60px; }
}

/* ============================================================
   Footer — Clean redesign, no clutter
   ============================================================ */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.footer-logo span { color: var(--cyan); }

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 240px;
  margin-bottom: 0;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  margin-top: 14px;
  transition: color var(--duration);
}
.footer-email:hover { color: var(--cyan); }

.footer-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-link {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 0;
  transition: color var(--duration);
}
.footer-link:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  gap: 12px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand p { max-width: 100%; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; padding: 16px 0; }
  .footer { padding: 40px 0 0; }
}

/* ============================================================
   Auth Pages — Login / Register
   ============================================================ */
.auth-page {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  background: radial-gradient(ellipse at 50% 0%, rgba(6,182,212,0.04) 0%, transparent 60%);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; border-radius: var(--radius-lg); }
}

/* ============================================================
   Stat Grid (dashboard)
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

/* ============================================================
   Page Header (dashboard inner pages)
   ============================================================ */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-title { font-size: clamp(20px, 3vw, 28px); font-weight: 800; margin-bottom: 4px; letter-spacing: -0.02em; }
.page-sub   { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ============================================================
   Two-col grid
   ============================================================ */
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .two-col-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Order grid (detail page)
   ============================================================ */
.order-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.order-main { min-width: 0; }
.order-aside { min-width: 0; }
@media (max-width: 860px) { .order-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Page outer (public pages with no sidebar)
   ============================================================ */
.page-outer { padding: 48px 0; }

/* ============================================================
   Static pages (terms, privacy, guide)
   ============================================================ */
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.static-header { margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.static-header h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.static-body h2 { font-size: 18px; font-weight: 700; color: var(--text-primary); margin: 36px 0 12px; }
.static-body p  { font-size: 15px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 16px; }
.static-body ul { padding-left: 20px; margin-bottom: 16px; }
.static-body ul li { font-size: 15px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 6px; }
.static-body a  { color: var(--cyan); }
.static-body strong { color: var(--text-primary); }
