/* Sempanta — общие стили для информационных/служебных страниц (Фаза 2).
   Палитра и "стекло" повторяют sempanta_web_platform_002.html, чтобы все страницы
   выглядели одним продуктом, а не набором разных прототипов. */

:root {
  --bg-dark: #070a13;
  --panel-bg: rgba(13, 20, 36, 0.92);
  --panel-border: rgba(255, 255, 255, 0.09);
  --primary: #0284c7;
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.35);
  --b2b-color: #6366f1;
  --green-action: #22c55e;
  --danger: #f87171;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --gold: #fbbf24;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

body {
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.page-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

header.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--panel-border);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px; box-shadow: 0 0 24px var(--accent-glow);
}
.brand-title {
  font-size: 20px; font-weight: 800; letter-spacing: 0.6px;
  background: linear-gradient(to right, #ffffff, #93c5fd);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.brand-subtitle { font-size: 11px; color: var(--text-muted); }

.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-item {
  color: var(--text-muted); font-size: 12px; font-weight: 600;
  padding: 8px 12px; border-radius: 16px; transition: all 0.2s;
}
.nav-item:hover, .nav-item.active { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-item.b2b-pill { background: rgba(99, 102, 241, 0.18); color: #c7d2fe; border: 1px solid rgba(99, 102, 241, 0.4); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-nav {
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--panel-border);
  color: #fff; padding: 8px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.btn-nav.highlight { background: var(--primary); border-color: var(--primary); }

.panel {
  background: var(--panel-bg); border: 1px solid var(--panel-border);
  border-radius: 16px; padding: 22px 26px; margin-bottom: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
h2 { font-size: 17px; font-weight: 800; margin: 22px 0 10px; color: #fff; }
h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--accent); }
p { font-size: 13.5px; color: #cbd5e1; margin-bottom: 8px; }
ul, ol { padding-left: 20px; margin-bottom: 10px; }
li { font-size: 13.5px; color: #cbd5e1; margin-bottom: 4px; }

.subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.callout {
  background: rgba(56, 189, 248, 0.08); border-left: 4px solid var(--accent);
  padding: 12px 16px; border-radius: 8px; margin: 14px 0; font-size: 13px; color: #e0f2fe;
}
.callout.danger { background: rgba(248, 113, 113, 0.08); border-left-color: var(--danger); color: #fecaca; }

.badge {
  display: inline-block; font-size: 10.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.5px; background: #e0f2fe; color: var(--primary);
  padding: 3px 9px; border-radius: 4px;
}

table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 12.5px; }
th, td { border: 1px solid var(--panel-border); padding: 8px 10px; text-align: left; }
th { background: rgba(255, 255, 255, 0.04); color: var(--text-muted); font-weight: 700; }

/* Forms — shared across auth/b2b/cabinet pages */
form.stack { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.field input, .field select, .field textarea {
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--panel-border);
  border-radius: 10px; padding: 10px 12px; color: #fff; font-size: 13px; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }

button.btn-primary, .btn-cockpit {
  background: linear-gradient(135deg, #0284c7, #0369a1); color: #fff; border: none;
  padding: 11px 18px; border-radius: 22px; font-size: 13px; font-weight: 700; cursor: pointer;
}
button.btn-primary:hover { filter: brightness(1.08); }
button.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
button.btn-secondary {
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--panel-border); color: #fff;
  padding: 11px 18px; border-radius: 22px; font-size: 13px; font-weight: 600; cursor: pointer;
}
button.btn-b2b { background: linear-gradient(135deg, #4f46e5, #4338ca); color: #fff; border: none; padding: 11px 18px; border-radius: 22px; font-size: 13px; font-weight: 700; cursor: pointer; }

.form-error { color: var(--danger); font-size: 12.5px; min-height: 16px; }
.form-success { color: #86efac; font-size: 12.5px; }

.tabs-toggle { display: flex; gap: 6px; background: rgba(0,0,0,0.25); padding: 4px; border-radius: 14px; margin-bottom: 16px; width: fit-content; }
.tabs-toggle button { background: transparent; border: none; color: var(--text-muted); font-size: 12.5px; font-weight: 700; padding: 8px 16px; border-radius: 10px; cursor: pointer; }
.tabs-toggle button.active { background: rgba(56,189,248,0.15); color: var(--accent); }

.list-card {
  background: rgba(255,255,255,0.03); border: 1px solid var(--panel-border);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
}
.list-card .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.status-pill { font-size: 10.5px; font-weight: 800; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; background: rgba(255,255,255,0.08); color: var(--text-muted); }
.status-pill.requested { background: rgba(251, 191, 36, 0.15); color: var(--gold); }
.status-pill.confirmed { background: rgba(56, 189, 248, 0.15); color: var(--accent); }
.status-pill.handed_off, .status-pill.delivered { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; }
.status-pill.completed { background: rgba(34, 197, 94, 0.15); color: #86efac; }
.status-pill.cancelled { background: rgba(248, 113, 113, 0.15); color: var(--danger); }

.chat-box { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; padding: 10px; background: rgba(0,0,0,0.25); border-radius: 10px; margin-bottom: 10px; }
.chat-msg { font-size: 12.5px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,0.05); max-width: 80%; }
.chat-msg.mine { align-self: flex-end; background: rgba(2, 132, 199, 0.25); }
.chat-msg .author { font-size: 10.5px; color: var(--text-muted); margin-bottom: 2px; }
