
                body {
                  background-color: white;
                }


:root {
  /* === Цветовая палитра === */
  --bg-primary: #06080D;
  --bg-secondary: #0C1120;
  --bg-tertiary: #111827;
  --bg-elevated: #1A2235;

  --surface-card: rgba(17, 24, 39, 0.6);
  --surface-card-hover: rgba(26, 34, 53, 0.8);
  --surface-glass: rgba(10, 14, 23, 0.75);

  --accent-cyan: #00D4FF;
  --accent-cyan-dark: #00A3CC;
  --accent-cyan-glow: rgba(0, 212, 255, 0.25);
  --accent-cyan-subtle: rgba(0, 212, 255, 0.08);

  --accent-yellow: #FFD166;
  --accent-yellow-glow: rgba(255, 209, 102, 0.2);

  --accent-green: #10B981;
  --accent-green-glow: rgba(16, 185, 129, 0.2);

  --accent-red: #EF4444;
  --accent-red-glow: rgba(239, 68, 68, 0.2);

  --accent-orange: #F59E0B;
  --accent-orange-glow: rgba(245, 158, 11, 0.2);

  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-inverse: #0F172A;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(0, 212, 255, 0.3);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow-cyan: 0 0 20px var(--accent-cyan-glow);
  --shadow-glow-cyan-lg: 0 0 40px var(--accent-cyan-glow);

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* === ФОНОВЫЕ ЭФФЕКТЫ === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.035) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(ellipse 600px 600px at 20% 10%, rgba(0, 212, 255, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 80% 80%, rgba(0, 163, 204, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 60% 30%, rgba(255, 209, 102, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: ambientDrift 30s ease-in-out infinite alternate;
}

@keyframes ambientDrift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-30px, -20px) rotate(2deg); }
}


.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}


.page {
  display: none;
  min-height: 80vh;
  padding-top: 100px;
}

.page.active {
  display: block;
  animation: pageIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}


.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  padding: 0;
  transition: var(--transition-base);
}

.navbar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan-glow), transparent);
  opacity: 0;
  transition: var(--transition-slow);
}

.navbar:hover::after {
  opacity: 1;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-brand h1 {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #ffffff 50%, var(--accent-cyan) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.nav-brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-glow-cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: var(--transition-base);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--accent-cyan);
  background: var(--accent-cyan-subtle);
}

.nav-link.active::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-accent);
  pointer-events: none;
}

/* === КНОПКИ === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-cyan-dark) 100%);
  color: var(--text-inverse);
  box-shadow: var(--shadow-glow-cyan);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-cyan-lg);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-subtle);
  color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.btn-warning {
  background: linear-gradient(135deg, var(--accent-orange), #D97706);
  color: var(--text-inverse);
  box-shadow: 0 0 15px var(--accent-orange-glow);
}

.btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--accent-orange-glow);
}

.btn-success {
  background: linear-gradient(135deg, var(--accent-green), #059669);
  color: #fff;
  box-shadow: 0 0 15px var(--accent-green-glow);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--accent-green-glow);
}

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

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}


.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
  animation: heroPulse 6s ease-in-out infinite alternate;
}

@keyframes heroPulse {
  0% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero h2 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -2px;
  position: relative;
}

.hero h2 span {
  background: linear-gradient(135deg, var(--accent-yellow) 0%, #FF9500 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

/* === FEATURES === */
.features {
  padding: 80px 0;
  text-align: center;
}

.features h3 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 48px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: left;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: var(--transition-base);
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-cyan-subtle), transparent 70%);
  opacity: 0;
  transition: var(--transition-base);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg), var(--shadow-glow-cyan);
}

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

.feature-card:hover::after {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-cyan-subtle);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
  transition: var(--transition-base);
}

.feature-card:hover .feature-icon {
  box-shadow: var(--shadow-glow-cyan);
  transform: scale(1.05);
}

.feature-card h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* === МОДАЛЬНЫЕ ОКНА === */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
  animation: modalOverlayIn 0.3s ease both;
}

@keyframes modalOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalContentIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes modalContentIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan-glow), transparent);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  border: none;
  background: transparent;
}

.modal-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.modal-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: -0.5px;
}

.modal-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 14px;
}

/* === ФОРМЫ === */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  transition: var(--transition-base);
  font-family: inherit;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-cyan-glow);
  background: rgba(26, 34, 53, 0.6);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.form-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 13px;
  color: var(--text-secondary);
}

.form-checkbox:hover {
  border-color: var(--border-medium);
  background: var(--bg-elevated);
}

.form-checkbox input {
  accent-color: var(--accent-cyan);
  width: 16px;
  height: 16px;
}

.form-checkbox input:checked + span {
  color: var(--text-primary);
}

.modal-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.modal-links a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.modal-links a:hover {
  text-decoration: underline;
  color: #33DFFF;
}

/* === СЕЛЕКТОР РОЛИ === */
.role-selector {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.role-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
}

.role-option:hover {
  border-color: var(--border-medium);
  background: var(--bg-elevated);
}

.role-option input {
  display: none;
}

.role-option input:checked ~ .role-badge {
  background: var(--accent-cyan);
  color: var(--text-inverse);
  box-shadow: var(--shadow-glow-cyan);
  border-color: transparent;
}

.role-badge {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-base);
}

/* === ДАШБОРД === */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.dashboard-header h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.badge-info {
  background: var(--accent-cyan-subtle);
  color: var(--accent-cyan);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-accent);
}

/* === KANBAN ДОСКА === */
.board-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.board-column {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  min-height: 320px;
  backdrop-filter: blur(10px);
  transition: var(--transition-base);
}

.board-column:hover {
  border-color: var(--border-medium);
}

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

.column-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.column-header .count {
  background: var(--bg-tertiary);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  border: 1px solid var(--border-subtle);
}

.column-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* === КАРТОЧКИ ЗАКАЗОВ === */
.order-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.order-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  border-radius: 0 2px 2px 0;
  transition: var(--transition-base);
}

.order-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 0 15px var(--accent-cyan-glow);
}

.order-card:hover::before {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan-glow);
}

.order-id {
  font-size: 12px;
  color: var(--accent-cyan);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.order-route {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.order-date {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.order-type-badge,
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  margin-right: 6px;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.order-type-cargo {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.order-type-passenger {
  background: rgba(255, 209, 102, 0.1);
  color: var(--accent-yellow);
  border: 1px solid rgba(255, 209, 102, 0.2);
}

.status-new {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-orange);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-progress {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.status-completed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-cancelled {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.order-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* === ДЕТАЛИ ЗАКАЗА (МОДАЛКА) === */
.order-detail-modal .modal-content {
  max-width: 560px;
}

.order-detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  gap: 16px;
}

.order-detail-row:last-child {
  border-bottom: none;
}

.order-detail-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  min-width: 120px;
}

.order-detail-value {
  font-size: 14px;
  color: var(--text-primary);
  text-align: right;
  word-break: break-word;
}

/* === ТАБЛИЦА ИСТОРИИ === */
.order-history {
  margin-top: 48px;
}

.order-history h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  backdrop-filter: blur(10px);
}

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

.history-table th,
.history-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.history-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

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

.history-table tbody tr {
  transition: var(--transition-fast);
}

.history-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.history-table td {
  color: var(--text-primary);
}

.history-table td strong {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* === КАРТА === */
.map-container {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 20px 0;
  position: relative;
}

.map-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-accent);
  opacity: 0;
  transition: var(--transition-base);
  pointer-events: none;
  z-index: 10;
}

.map-container:hover::before {
  opacity: 1;
}

#map {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-lg);
}

.map-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

/* === УВЕДОМЛЕНИЯ === */
.notifications {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.notification {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  animation: notificationIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 300px;
  max-width: 420px;
  pointer-events: auto;
  backdrop-filter: blur(16px);
}

.notification-exit {
  animation: notificationOut 0.3s cubic-bezier(0.4, 0, 1, 1) both;
}

.notification-success {
  border-left: 3px solid var(--accent-green);
  box-shadow: var(--shadow-lg), 0 0 12px var(--accent-green-glow);
}

.notification-error {
  border-left: 3px solid var(--accent-red);
  box-shadow: var(--shadow-lg), 0 0 12px var(--accent-red-glow);
}

.notification-warning {
  border-left: 3px solid var(--accent-orange);
  box-shadow: var(--shadow-lg), 0 0 12px var(--accent-orange-glow);
}

.notification-info {
  border-left: 3px solid var(--accent-cyan);
  box-shadow: var(--shadow-lg), 0 0 12px var(--accent-cyan-glow);
}

@keyframes notificationIn {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes notificationOut {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }
}

/* === СКРОЛЛБАР === */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-medium);
}

/* === РАЗДЕЛИТЕЛЬ === */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
  margin: 32px 0;
}

/* === ПУСТОЕ СОСТОЯНИЕ === */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 15px;
  margin-bottom: 8px;
}

.empty-state-hint {
  font-size: 13px;
  color: var(--text-muted);
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 1024px) {
  .board-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .navbar .container {
    height: 56px;
  }

  .nav-brand h1 {
    font-size: 17px;
  }

  .nav-links {
    gap: 6px;
  }

  .nav-link {
    font-size: 13px;
    padding: 6px 10px;
  }

  .nav-link:not(.btn) {
    display: none;
  }

  .page {
    padding-top: 76px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero h2 {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .features {
    padding: 48px 0;
  }

  .features h3 {
    font-size: 24px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .board-columns {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-content {
    padding: 24px;
    margin: 16px;
    border-radius: var(--radius-lg);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .role-selector {
    flex-direction: column;
  }

  .order-detail-row {
    flex-direction: column;
    gap: 4px;
  }

  .order-detail-value {
    text-align: left;
  }

  .notifications {
    top: 70px;
    right: 10px;
    left: 10px;
  }

  .notification {
    min-width: auto;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .hero h2 {
    font-size: 28px;
  }

  .board-column {
    padding: 14px;
    min-height: 200px;
  }

  .order-card {
    padding: 14px;
  }
}

/* === УТИЛИТЫ === */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glow-cyan {
  box-shadow: var(--shadow-glow-cyan);
}

.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;
}


              