@font-face { font-family: "Drive"; src: url("/fonts/drive-medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
:root {
  --bg: #0a0e16;
  --bg-2: #0f1520;
  --panel: #131a27;
  --panel-2: #182132;
  --line: #232d40;
  --text: #e7ecf5;
  --muted: #8b95a9;
  --accent: #2f7bff;
  --accent-2: #5a9bff;
  --gold: #ffd166;
  --ok: #3ccf7a;
  --warn: #ffcb6b;
  --bad: #ff5c5c;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 Inter, system-ui, sans-serif;
}
main { flex: 1; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- logo: "SONNET / RUST" in Drive with the mark after RUST ---------- */
.logo { display: inline-flex; flex-direction: column; color: var(--text); font: 500 21px/1.2 Drive, Unbounded, sans-serif; letter-spacing: .7px; text-transform: uppercase; }
.logo:hover { text-decoration: none; }
.logo .l2 { display: flex; align-items: center; gap: 6px; }
.logo img { width: 32px; height: 32px; margin: -6px 0 -4px; }

/* ---------- nav ---------- */
header.nav { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
header.nav .bar { height: 64px; padding: 0 22px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
nav.links { display: flex; align-items: center; gap: 64px; }
nav.links a { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font: 500 15px/1.55 Inter, sans-serif; white-space: nowrap; }
nav.links a svg { width: 16px; height: 16px; flex: none; }
nav.links a:hover, nav.links a.active { color: var(--text); text-decoration: none; }
nav.links a.hot { color: var(--gold); font-weight: 600; }
nav.links a.hot svg { width: 12px; height: 12px; }
.nav-user { justify-self: end; position: relative; display: flex; align-items: center; gap: 8px; }
.drop { position: relative; }
.bell-btn, .user-btn { display: flex; align-items: center; height: 44px; background: var(--panel); border: 1px solid transparent; border-radius: 6px; color: var(--muted); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.bell-btn:hover, .user-btn:hover, .bell-btn.open, .user-btn.open { background: var(--panel-2); color: var(--text); border-color: var(--line); }
.bell-btn { position: relative; width: 44px; justify-content: center; padding: 0; }
.bell-btn svg { width: 19px; height: 19px; }
.bell-btn .count { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: #fff; font: 700 10px/16px Inter, sans-serif; text-align: center; }
.user-btn { gap: 10px; padding: 0 12px 0 6px; }
.user-btn img, .user-btn .ph { width: 32px; height: 32px; border-radius: 4px; background: var(--panel-2); object-fit: cover; }
.user-btn .nm { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font: 500 15px/1 Drive, Unbounded, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; }
.user-btn svg { width: 14px; height: 14px; transition: transform .15s; }
.user-btn.open svg { transform: rotate(180deg); }
.menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 16px 36px rgba(0, 0, 0, .45); }
.user-menu { min-width: 100%; width: max-content; padding: 6px 0; display: flex; flex-direction: column; }
.user-menu a, .user-menu button { display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: none; border: 0; color: var(--text); font: 600 13px/1 Inter, sans-serif; letter-spacing: 1.6px; text-transform: uppercase; text-align: left; cursor: pointer; white-space: nowrap; }
.user-menu a:hover, .user-menu button:hover { background: var(--panel-2); text-decoration: none; }
.user-menu svg { width: 18px; height: 18px; color: var(--accent-2); flex: none; }
.user-menu hr { width: calc(100% - 36px); margin: 6px 18px; border: 0; border-top: 1px solid var(--line); }
.notif-menu { width: 340px; max-width: calc(100vw - 24px); }
.menu-head { padding: 14px 16px 10px; color: var(--muted); font: 600 12px Inter, sans-serif; letter-spacing: 1.6px; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.notif-list { max-height: 360px; overflow-y: auto; }
.notif { position: relative; display: block; padding: 12px 16px 12px 28px; border-bottom: 1px solid var(--line); color: var(--text); }
.notif:last-child { border-bottom: 0; }
a.notif:hover { background: var(--panel-2); text-decoration: none; }
.notif.new::before { content: ""; position: absolute; left: 12px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.notif b { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.notif span { display: block; margin-top: 3px; color: #c3cbda; font-size: 13px; line-height: 1.45; }
.notif small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.notif-empty { padding: 22px 16px; color: var(--muted); font-size: 14px; text-align: center; }
.login { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: 600 15px Inter, sans-serif; white-space: nowrap; }
.login:hover { border-color: var(--accent); text-decoration: none; }
.login svg { width: 18px; height: 18px; }
.burger { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 10px; font-size: 18px; cursor: pointer; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: 600 15px Inter, sans-serif; padding: 13px 22px; border-radius: 10px; transition: transform .1s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #4389ff; text-decoration: none; }
.btn-ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover:not(:disabled) { border-color: var(--accent); text-decoration: none; }

/* ---------- inner page header ---------- */
.page-head {
  padding: 52px 0 32px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(900px 300px at 15% 0%, rgba(47, 123, 255, .18), transparent 70%);
}
.page-head h1 { font: 800 clamp(28px, 5vw, 44px)/1.1 Unbounded, sans-serif; margin: 0 0 10px; }
.page-head h1 span { color: var(--accent); }
.page-head p { color: #c3cbda; max-width: 680px; margin: 0; }
.page-body { padding: 40px 0 72px; }
h2 { font: 800 22px Unbounded, sans-serif; margin: 0 0 16px; }

/* ---------- cards ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .ic, .contact .ic { width: 42px; height: 42px; border-radius: 10px; background: rgba(47, 123, 255, .14); color: var(--accent-2); display: grid; place-items: center; margin-bottom: 14px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- tables ---------- */
.search { display: flex; gap: 10px; margin-bottom: 18px; max-width: 520px; }
.inp, .search input { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 12px 14px; font: 15px Inter, sans-serif; outline: none; }
.inp:focus, .search input:focus { border-color: var(--accent); }
.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
th { color: var(--muted); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; background: var(--panel-2); }
tr:last-child td { border-bottom: 0; }
td.sid { font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: #b9c6dd; }
td.sid a { color: inherit; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.perm { background: rgba(255, 92, 92, .14); color: #ff8a8a; }
.pill.temp { background: rgba(255, 190, 70, .14); color: var(--warn); }
.empty { padding: 34px 16px; text-align: center; color: var(--muted); }

/* ---------- contacts ---------- */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--text); transition: border-color .15s, transform .15s; }
.contact:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.contact .ic { margin-bottom: 0; }
.contact .ic svg { width: 24px; height: 24px; }
.contact h3 { margin: 12px 0 4px; font-size: 17px; }
.contact p { margin: 0; color: var(--muted); font-size: 14px; }
.contact .go { display: inline-block; margin-top: 12px; color: var(--accent-2); font-size: 14px; font-weight: 600; }

/* ---------- legal text pages ---------- */
.doc { max-width: 760px; }
.doc h2 { font-size: 18px; margin: 34px 0 10px; }
.doc p, .doc li { color: #c3cbda; }
.doc ul { padding-left: 22px; }
.doc .upd { color: var(--muted); font-size: 14px; }

/* ---------- footer ---------- */
footer.foot { border-top: 1px solid rgba(217, 217, 217, .19); padding: 14px 28px 24px; }
footer.foot .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
footer.foot .row + .row { margin-top: 38px; align-items: flex-end; }
footer.foot .logo { opacity: .32; }
footer.foot .logo img { width: 28px; height: 28px; margin: -4px 0 -2px; }
footer.foot .social { display: flex; }
footer.foot .social a { display: block; width: 49px; height: 49px; }
footer.foot .social svg { width: 49px; height: 49px; transition: fill-opacity .15s; }
footer.foot .social a:hover path { fill-opacity: .9; }
footer.foot small { display: block; color: #fff; font: 400 12px/1.55 Inter, sans-serif; }
footer.foot small svg { width: 15px; height: 15px; vertical-align: -3px; margin-left: 4px; }
footer.foot .legal { text-align: right; }
footer.foot .legal a { display: block; color: #fff; font: 400 12px/1.55 Inter, sans-serif; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--panel-2); border: 1px solid var(--accent); color: var(--text); padding: 10px 16px; border-radius: 10px; font-size: 14px; transition: .2s; pointer-events: none; z-index: 20; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1180px) {
  nav.links { gap: 32px; }
}
@media (max-width: 900px) {
  .features, .contacts { grid-template-columns: 1fr 1fr; }
  header.nav .bar { grid-template-columns: 1fr auto auto; gap: 14px; padding: 0 16px; }
  nav.links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
  nav.links.open { display: flex; }
  nav.links a { padding: 14px 16px; border-top: 1px solid var(--line); }
  .burger { display: block; order: 3; }
  .user-btn .nm, .user-btn svg { display: none; }
  .user-btn { padding: 0 6px; }
  .notif-menu { position: fixed; top: 64px; left: 12px; right: 12px; width: auto; max-width: none; }
}
@media (max-width: 600px) {
  .features, .contacts { grid-template-columns: 1fr; }
  .page-body { padding: 28px 0 52px; }
  .login span { display: none; }
  footer.foot { padding: 14px 16px 20px; }
  footer.foot .row + .row { flex-direction: column; align-items: flex-start; }
  footer.foot .legal { text-align: left; }
}
