﻿:root {
  --bg: #070b16;
  --bg-soft: #0e152b;
  --card: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --muted: #a5b4d4;
  --accent-a: #00d1ff;
  --accent-b: #7c4dff;
  --ok: #10b981;
  --warn: #f59e0b;
  --err: #ef4444;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 15%, rgba(0, 209, 255, 0.25), transparent 44%),
    radial-gradient(circle at 85% 20%, rgba(124, 77, 255, 0.24), transparent 50%),
    linear-gradient(180deg, #04070f 0%, #070b16 45%, #0a1020 100%);
}

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

.page {
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  display: grid;
  place-items: center;
  color: #06101f;
  font-weight: 900;
}

.brand__title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.brand__sub {
  font-size: 12px;
  color: var(--muted);
}

.status {
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.layout {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 14px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  backdrop-filter: blur(10px);
}

.panel h2 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #c4b5fd;
}

.group {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

label {
  font-size: 12px;
  color: var(--muted);
}

input[type="text"],
input[type="url"],
input[type="number"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 13px;
  background: #090f1e;
  color: var(--text);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
  background: #0b1328;
}

.btn:hover { filter: brightness(1.12); }

.btn--primary {
  border: none;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: #04111d;
  font-weight: 700;
}

.btn--ok { background: #083827; border-color: #14532d; }
.btn--warn { background: #452b08; border-color: #78350f; }
.btn--danger { background: #3a0f17; border-color: #7f1d1d; }

.right {
  display: grid;
  gap: 12px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 10px;
  font-size: 12px;
  vertical-align: top;
}

.table th {
  color: #cbd5ff;
  background: rgba(255, 255, 255, 0.03);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.notice {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  color: var(--muted);
}

.code {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #050b18;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #bfdbfe;
  font-size: 12px;
  padding: 8px;
  word-break: break-all;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.kpi {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.kpi__v {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 800;
}

.small { font-size: 11px; color: var(--muted); }

/* Language selector */
.lang-select {
  width: auto;
  min-width: 90px;
  padding: 5px 8px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  cursor: pointer;
}
.lang-select:hover { border-color: var(--accent-a); }

/* Section numbers */
.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: #04111d;
  font-size: 12px;
  font-weight: 800;
  margin-right: 4px;
  vertical-align: middle;
}

/* Guide panel */
.guide-panel {
  margin-bottom: 12px;
  border: 1px solid rgba(124,77,255,0.3);
  background: rgba(124,77,255,0.06);
}
.guide-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.guide-toggle h2 { margin: 0; }
.guide-arrow {
  font-size: 14px;
  color: var(--muted);
  transition: transform 0.2s;
}
.guide-content {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.guide-section {
  margin-bottom: 12px;
}
.guide-section h3 {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--accent-a);
}
.guide-section p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.guide-steps {
  margin: 0;
  font-family: inherit;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-wrap;
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
  padding: 10px;
  border: 1px solid var(--line);
}

@media (max-width: 1200px) {
  .layout { grid-template-columns: 1fr; }
}
