/* Orbynox — кабинет клиента. Единый стиль с лендингом: тёмный космос + лайм (#CBFF00), MuseoModerno + Inter. */
:root {
  --bg: #07080F; --bg-2: #0C0E1E; --surface: #0F1124; --surface-2: #171A38; --header: #0A0C1C;
  --ink: #F5F7FF; --muted: #A7AECF; --faint: #6B7199;
  --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.055);
  --lime: #CBFF00; --lime-d: #9FD400; --lime-soft: rgba(203,255,0,.13); --cyan: #35D6FF;
  --ok: #3BD089; --signal: #E0A43C; --danger: #FF6B6B;
  --r: 12px; --r-s: 9px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --disp: "MuseoModerno", var(--font);
  /* совместимость со старыми именами в шаблонах/SVG */
  --orbit: var(--cyan); --orbit-d: var(--lime-d); --orbit-l: var(--lime-soft);
  --nox: #0A0C1C; --nox-2: #171A38; --nox-3: #262B50; --paper: var(--bg-2);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.55 var(--font); color: var(--ink); background: var(--bg);
  font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(900px 560px at 88% -8%, rgba(108,123,255,.12), transparent 60%),
    radial-gradient(760px 520px at 2% 2%, rgba(19,200,188,.08), transparent 58%); background-attachment: fixed; }
a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- верхняя панель ---------- */
.top { background: rgba(10,12,28,.9); backdrop-filter: blur(12px); color: #fff; border-bottom: 1px solid var(--line-2); }
.top-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--disp); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .mark { color: var(--lime); }
.mainnav { display: flex; gap: 2px; flex: 1; }
.mainnav a { color: var(--muted); padding: 8px 12px; border-radius: var(--r-s); font-weight: 500; }
.mainnav a:hover { color: #fff; background: var(--surface-2); text-decoration: none; }
.mainnav a.on { color: var(--lime); box-shadow: inset 0 -2px 0 var(--lime); border-radius: 0; }
.top-right { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.top-right a { color: var(--muted); } .top-right a:hover { color: #fff; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.lang a { padding: 4px 9px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lang a.on { background: var(--lime-soft); color: var(--lime); }
.lang a:hover { text-decoration: none; }
.burger { display: none; }

/* ---------- раскладка ---------- */
.layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 28px; padding-top: 28px; padding-bottom: 64px; align-items: start; }
.side { display: grid; gap: 16px; position: sticky; top: 16px; }
.main { min-width: 0; }
.head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.head h1 { font-family: var(--disp); font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.crumbs { font-size: 13px; color: var(--faint); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.head .tools { margin-left: auto; display: flex; gap: 8px; }

/* ---------- баланс: единственный «громкий» элемент ---------- */
.credit { position: relative; overflow: hidden; border-radius: var(--r); padding: 20px 20px 18px; color: #fff;
  background: linear-gradient(150deg, #11142E, #0B0D20); border: 1px solid rgba(203,255,0,.18); }
.credit::before { content: ""; position: absolute; right: -70px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(203,255,0,.2), transparent 70%); pointer-events: none; }
.credit .ring { position: absolute; right: -54px; top: -40px; width: 190px; height: 190px; pointer-events: none; }
.credit-l { color: var(--muted); font-size: 13px; position: relative; }
.credit-v { font-family: var(--disp); font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 14px; position: relative; }
.credit .btn { width: 100%; justify-content: center; position: relative; }

/* ---------- панели ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.panel > h2, .panel-h { display: flex; align-items: center; gap: 10px; margin: 0; padding: 16px 20px; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--line-2); }
.panel-h .more { margin-left: auto; font-size: 14px; font-weight: 500; }
.panel-b { padding: 18px 20px; }
.stack { display: grid; gap: 20px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* боковое меню-список с количеством */
.menu { list-style: none; margin: 0; padding: 6px; }
.menu a { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: var(--r-s); color: var(--ink); }
.menu a:hover { background: var(--surface-2); text-decoration: none; }
.menu a.on { background: var(--lime-soft); color: var(--lime); font-weight: 600; }
.menu .n { color: var(--faint); font-size: 13px; }
.menu a.on .n { color: var(--lime); }
.menu-t { padding: 12px 18px 4px; font-size: 13px; color: var(--faint); }

/* ---------- сводка доменов на главной ---------- */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip a { display: block; padding: 18px 20px 16px; color: var(--ink); border-right: 1px solid var(--line-2); border-top: 3px solid transparent; }
.strip a:last-child { border-right: 0; }
.strip a:hover { background: var(--surface-2); text-decoration: none; }
.strip .v { font-family: var(--disp); font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.strip .l { color: var(--muted); font-size: 14px; margin-top: 4px; }
.strip .s-active { border-top-color: var(--ok); }
.strip .s-expiring { border-top-color: var(--signal); }
.strip .s-expired { border-top-color: var(--danger); }
.strip .s-unpaid { border-top-color: var(--cyan); }

/* ---------- формы и кнопки ---------- */
label { display: block; font-size: 14px; font-weight: 500; margin: 14px 0 6px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
input, textarea, select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--bg-2); color: var(--ink); font: inherit; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
textarea { min-height: 180px; resize: vertical; line-height: 1.6; }
select option { background: var(--surface); color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: var(--r-s); padding: 10px 16px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; background: var(--lime); color: #0B0F00; white-space: nowrap; transition: .15s; }
.btn:hover { filter: brightness(1.07); text-decoration: none; transform: translateY(-1px); }
.btn-orbit { background: var(--lime); color: #0B0F00; } .btn-orbit:hover { filter: brightness(1.07); }
.btn-line { background: rgba(255,255,255,.03); color: var(--ink); border-color: var(--line); } .btn-line:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.28); filter: none; transform: none; }
.btn-danger { background: rgba(255,107,107,.08); color: var(--danger); border-color: rgba(255,107,107,.3); } .btn-danger:hover { background: rgba(255,107,107,.16); filter: none; transform: none; }
.btn-s { padding: 6px 11px; font-size: 13px; }
.btn-w { width: 100%; justify-content: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mt { margin-top: 16px; } .muted { color: var(--muted); } .small { font-size: 13px; } .right { margin-left: auto; }

/* ---------- таблицы ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-2); font-size: 14px; vertical-align: middle; }
th { color: var(--muted); font-weight: 500; font-size: 13px; background: rgba(255,255,255,.025); white-space: nowrap; }
th a { color: var(--muted); } th a.on { color: var(--ink); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255,255,255,.028); }
td.num, th.num { text-align: right; }
.dn { font-weight: 600; color: var(--ink); }
.dn:hover { color: var(--lime); }
.cb { width: 36px; } .cb input { width: 16px; height: 16px; accent-color: var(--lime); }
.yes { color: var(--ok); font-weight: 500; } .no { color: var(--faint); }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); }

/* статусы */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.chip.active::before, .chip.done::before, .chip.paid::before { background: var(--ok); }
.chip.expiring::before, .chip.awaiting_payment::before, .chip.pending::before, .chip.partial::before { background: var(--signal); }
.chip.expired::before, .chip.failed::before, .chip.cancelled::before { background: var(--danger); }
.chip.queued::before, .chip.processing::before, .chip.registering::before, .chip.ns_pending::before, .chip.hold::before, .chip.waiting_op::before { background: var(--lime); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.busy { font-size: 12px; color: var(--lime); margin-left: 6px; }

/* панель массовых действий */
.toolbar { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.toolbar input[type=search] { max-width: 280px; }
.toolbar select { width: auto; }
.bulk { position: sticky; bottom: 16px; margin-top: 16px; display: none; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--surface-2); color: #fff; border: 1px solid rgba(203,255,0,.2); border-radius: var(--r); padding: 12px 16px; box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.bulk.show { display: flex; }
.bulk select, .bulk input { width: auto; background: var(--bg-2); color: #fff; border-color: var(--line); }
.bulk input { min-width: 300px; }
.pager { display: flex; align-items: center; gap: 4px; padding: 12px 14px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.pager a, .pager span { min-width: 34px; padding: 5px 9px; border-radius: var(--r-s); text-align: center; font-size: 14px; color: var(--ink); }
.pager a:hover { background: var(--surface-2); text-decoration: none; }
.pager .cur { background: var(--lime); color: #0B0F00; font-weight: 600; }

/* ---------- карточка домена ---------- */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.facts div { padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.facts dt { font-size: 13px; color: var(--muted); } .facts dd { margin: 2px 0 0; font-weight: 600; }
.note { padding: 12px 16px; border-radius: var(--r-s); background: var(--lime-soft); color: var(--lime); font-size: 14px; }
.note.warn { background: rgba(224,164,60,.12); color: #F0C274; }
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 18px; letter-spacing: .04em; padding: 12px 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-s); display: inline-block; color: var(--lime); }

/* ---------- сообщения ---------- */
.flash { padding: 12px 16px; border-radius: var(--r-s); margin-bottom: 20px; font-weight: 500; border: 1px solid; }
.flash.ok { background: rgba(59,208,137,.1); border-color: rgba(59,208,137,.3); color: #8BEFC0; }
.flash.err { background: rgba(255,107,107,.1); border-color: rgba(255,107,107,.3); color: #FFB3B3; }
.demo { background: rgba(224,164,60,.14); color: #F0C274; text-align: center; padding: 6px; font-size: 13px; font-weight: 500; border-bottom: 1px solid rgba(224,164,60,.2); }

/* ---------- оплата ---------- */
.pay { display: grid; grid-template-columns: 196px 1fr; gap: 24px; align-items: start; }
.pay img { width: 196px; height: 196px; border-radius: var(--r-s); border: 6px solid #fff; background: #fff; }
.amount { font-family: var(--disp); font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--lime); }
.copy { cursor: pointer; border-bottom: 1px dashed var(--faint); }
.copy:hover { color: var(--lime); border-color: var(--lime); }
.addr { word-break: break-all; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; }
.wait { display: flex; gap: 10px; align-items: center; color: var(--muted); margin-top: 14px; }
.wait i { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--lime); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- вход ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { background: radial-gradient(700px 520px at 75% 40%, rgba(108,123,255,.28), transparent 60%), radial-gradient(600px 460px at 30% 110%, rgba(19,200,188,.2), transparent 60%), #090B18; color: #fff; position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; }
.auth-art .brand { font-family: var(--disp); font-size: 22px; }
.auth-art .big-ring { position: absolute; width: 820px; height: 820px; right: -330px; top: 50%; transform: translateY(-58%); opacity: .9; }
.auth-art h2 { font-family: var(--disp); font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; max-width: 14em; margin: auto 0 12px; position: relative; }
.auth-art p { color: var(--muted); max-width: 30em; position: relative; margin: 0 0 24px; }
.auth-form { display: grid; place-items: center; padding: 32px; position: relative; background: var(--bg); }
.auth-form form { width: 100%; max-width: 360px; }
.auth-form h1 { font-family: var(--disp); font-size: 26px; font-weight: 700; margin: 0 0 4px; }
.auth-form .lang { position: absolute; top: 24px; right: 24px; border-color: var(--line); }
.auth-form .lang a { color: var(--muted); } .auth-form .lang a.on { background: var(--lime-soft); color: var(--lime); }

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; padding-top: 20px; }
  .side { position: static; order: 2; }
  .main { order: 1; }
  .mainnav { display: none; } .mainnav.open { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--header); padding: 8px 24px 16px; z-index: 10; border-bottom: 1px solid var(--line-2); }
  .burger { display: inline-flex; background: none; border: 1px solid var(--line); color: #fff; border-radius: var(--r-s); padding: 6px 10px; cursor: pointer; }
  .top-in { position: relative; } .top-right .who { display: none; }
  .strip { grid-template-columns: 1fr 1fr; } .strip a:nth-child(2) { border-right: 0; }
  .cols, .facts { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; } .auth-art { min-height: 260px; }
  .pay { grid-template-columns: 1fr; }
  .hide-m { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
