/* Мозайко design language: warm orange glass. Shared by every page (client, admin, login, invite). */
:root {
  color-scheme: light;
  --ink: #2a1a10;
  --ink-soft: #6f5a4c;
  --ink-faint: #a08b7d;
  --orange: #f26b1d;
  --orange-deep: #d9530c;
  --orange-soft: #ff9a52;
  --peach: #ffc49b;
  --cream: #ffeee2;
  --glass: rgba(255, 255, 255, 0.5);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-edge: rgba(255, 255, 255, 0.85);
  --shadow: 0 30px 80px -30px rgba(170, 70, 10, 0.35), 0 8px 24px -12px rgba(120, 50, 10, 0.18);
  --radius: 32px;
  --grad: linear-gradient(135deg, #ff9a52 0%, #f26b1d 55%, #e2560f 100%);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: "Manrope", system-ui, sans-serif; color: var(--ink); background: var(--cream);
  overflow: hidden; -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(242, 107, 29, 0.45); outline-offset: 3px; }
[hidden] { display: none !important; }

/* --- Background: slow-drifting blurred colour fields --- */
.aurora { position: fixed; inset: -20vmax; z-index: 0; pointer-events: none; filter: blur(60px) saturate(135%); }
.aurora i { position: absolute; border-radius: 50%; opacity: .9; animation: drift 38s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 60vmax; height: 60vmax; left: 30%; top: 15%; background: radial-gradient(circle, #ff9a4d, transparent 62%); }
.aurora i:nth-child(2) { width: 50vmax; height: 50vmax; left: -5%; top: 40%; background: radial-gradient(circle, #ffc2a3, transparent 62%); animation-duration: 46s; }
.aurora i:nth-child(3) { width: 45vmax; height: 45vmax; left: 65%; top: 45%; background: radial-gradient(circle, #ff7f5c, transparent 60%); animation-duration: 52s; animation-direction: alternate-reverse; }
.aurora i:nth-child(4) { width: 40vmax; height: 40vmax; left: 15%; top: -5%; background: radial-gradient(circle, #ffd28f, transparent 62%); animation-duration: 60s; }
@keyframes drift { to { transform: translate(6vmax, -5vmax) scale(1.12); } }

/* --- Glass --- */
.glass {
  position: relative; border-radius: var(--radius);
  background: linear-gradient(150deg, var(--glass-strong), var(--glass) 60%, rgba(255, 255, 255, 0.42));
  backdrop-filter: blur(28px) saturate(160%); -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* --- Top bar --- */
.topbar {
  position: relative; z-index: 5; margin: 18px auto 0; width: min(1500px, calc(100% - 48px));
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark { width: 30px; height: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; transform: rotate(-8deg); }
.brand-mark span { border-radius: 4px; }
.brand-mark span:nth-child(1) { background: #c8553d; } .brand-mark span:nth-child(2) { background: #e3b23c; }
.brand-mark span:nth-child(3) { background: #3e8e88; } .brand-mark span:nth-child(4) { background: #2f4858; }
.brand b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.brand small { color: var(--ink-faint); font-weight: 600; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.55); font-weight: 600; font-size: 14px;
  text-decoration: none; color: var(--ink); transition: background .2s, transform .2s;
}
.pill:hover { background: rgba(255, 255, 255, 0.85); }
.hero .pill { background: rgba(255, 255, 255, 0.8); box-shadow: 0 8px 20px -12px rgba(150, 60, 10, .35); }
.pill svg { width: 18px; height: 18px; }
.pill.active { background: rgba(242, 107, 29, 0.12); border-color: rgba(242, 107, 29, 0.35); color: var(--orange-deep); }

/* Shared responsive behaviour */
@media (max-width: 760px) {
  .topbar { width: calc(100% - 24px); margin-top: 12px; padding: 8px 8px 8px 14px; }
  .brand small { display: none; }
  .pill .label-long { display: none; }
}
@media (prefers-reduced-motion: reduce) { .aurora i { animation: none !important; } }

