:root {
  --bg: #090b10;
  --surface: #11141c;
  --surface-2: #161a24;
  --surface-3: #1b202c;
  --border: rgba(255,255,255,.075);
  --border-strong: rgba(255,255,255,.12);
  --text: #f4f6fb;
  --muted: #8992a7;
  --muted-2: #667086;
  --accent: #7b5cff;
  --accent-2: #9c7cff;
  --green: #42d392;
  --yellow: #f2c94c;
  --red: #ff6b7a;
  --shadow: 0 24px 70px rgba(0,0,0,.34);
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: radial-gradient(circle at 80% -10%, rgba(123,92,255,.08), transparent 32%), var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 18px 18px; border-right: 1px solid var(--border); background: rgba(12,14,20,.92); backdrop-filter: blur(18px); display: flex; flex-direction: column; }
.brand { display:flex; align-items:center; gap:12px; padding: 0 8px 26px; }
.brand-mark { width:36px; height:36px; display:grid; place-items:center; border-radius:11px; background: linear-gradient(145deg,#8b6bff,#5a3df0); box-shadow: 0 8px 24px rgba(123,92,255,.3); font-weight:800; font-size:18px; }
.brand-mark.big { width:46px; height:46px; border-radius:14px; font-size:22px; }
.brand strong, .login-brand strong { display:block; font-size:16px; letter-spacing:.08em; }
.brand small, .login-brand small { display:block; color:var(--muted); font-size:9px; letter-spacing:.22em; margin-top:2px; }
.nav { display:flex; flex-direction:column; gap:6px; }
.nav-caption { color:var(--muted-2); font-size:10px; text-transform:uppercase; letter-spacing:.16em; padding: 8px 10px; }
.nav-item { display:flex; align-items:center; gap:10px; padding:10px 11px; border-radius:10px; color:#abb3c5; font-size:14px; font-weight:600; }
.nav-item:hover { background:rgba(255,255,255,.035); color:#fff; }
.nav-item.active { color:#fff; background:linear-gradient(90deg, rgba(123,92,255,.18), rgba(123,92,255,.07)); box-shadow: inset 0 0 0 1px rgba(123,92,255,.18); }
.nav-icon { width:25px; height:25px; display:grid; place-items:center; border-radius:7px; background:rgba(255,255,255,.055); font-size:11px; }
.nav-item.active .nav-icon { background:var(--accent); }
.sidebar-foot { margin-top:auto; border-top:1px solid var(--border); padding-top:16px; }
.admin-mini { display:flex; gap:10px; align-items:center; padding: 0 5px 12px; }
.avatar { width:31px; height:31px; display:grid; place-items:center; background:#232838; border-radius:9px; color:#c4c9d5; font-size:12px; font-weight:700; }
.admin-mini strong { display:block; font-size:12px; }
.admin-mini small { display:block; color:var(--muted); font-size:10px; margin-top:2px; }
.logout { width:100%; border:1px solid var(--border); background:transparent; color:var(--muted); border-radius:9px; padding:8px 10px; cursor:pointer; }
.logout:hover { color:#fff; border-color:var(--border-strong); }
.content { min-width:0; padding: 38px 42px 60px; max-width: 1600px; width:100%; margin:0 auto; }
.page-header { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:25px; }
.page-header.compact { margin-top:4px; }
.page-header h1 { margin:4px 0 7px; font-size:31px; line-height:1.1; letter-spacing:-.035em; }
.page-header p { margin:0; color:var(--muted); font-size:14px; }
.eyebrow { color:#8f7aff; font-size:10px; font-weight:800; letter-spacing:.16em; }
.read-only-badge { border:1px solid rgba(123,92,255,.25); color:#aa98ff; background:rgba(123,92,255,.08); font-size:9px; font-weight:800; letter-spacing:.14em; padding:7px 9px; border-radius:8px; }
.breadcrumbs { display:flex; gap:8px; align-items:center; color:var(--muted-2); font-size:12px; margin:0 0 18px; }
.breadcrumbs a:hover { color:#b8aaff; }
.metric-grid { display:grid; gap:12px; margin-bottom:18px; }
.metric-grid.four { grid-template-columns:repeat(4,minmax(0,1fr)); }
.metric-grid.five { grid-template-columns:repeat(5,minmax(0,1fr)); }
.metric-card { position:relative; overflow:hidden; min-height:116px; border:1px solid var(--border); background:linear-gradient(150deg,rgba(255,255,255,.026),rgba(255,255,255,.01)),var(--surface); border-radius:14px; padding:17px 18px; }
.metric-card:after { content:""; position:absolute; width:90px; height:90px; right:-50px; top:-45px; border-radius:50%; background:rgba(255,255,255,.025); }
.metric-card span { display:block; color:var(--muted); font-size:11px; }
.metric-card strong { display:block; font-size:27px; letter-spacing:-.035em; margin:8px 0 4px; }
.metric-card small { color:var(--muted-2); font-size:10px; }
.metric-card.accent { background:linear-gradient(145deg,rgba(123,92,255,.13),rgba(123,92,255,.025)),var(--surface); border-color:rgba(123,92,255,.16); }
.metric-card.success { background:linear-gradient(145deg,rgba(66,211,146,.09),rgba(66,211,146,.018)),var(--surface); border-color:rgba(66,211,146,.12); }
.metric-card .date-strong { font-size:16px; margin-top:14px; }
.panel { border:1px solid var(--border); background:rgba(17,20,28,.94); border-radius:15px; box-shadow:0 8px 30px rgba(0,0,0,.12); overflow:hidden; margin-top:14px; }
.panel-head { min-height:70px; padding:17px 20px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--border); gap:20px; }
.panel-head h2 { font-size:15px; margin:0 0 4px; }
.panel-head p { color:var(--muted); font-size:11px; margin:0; }
.table-wrap { overflow:auto; }
.data-table { width:100%; border-collapse:collapse; min-width:960px; }
.data-table th { background:rgba(255,255,255,.012); color:var(--muted-2); text-transform:uppercase; font-size:9px; letter-spacing:.075em; text-align:left; padding:11px 17px; border-bottom:1px solid var(--border); white-space:nowrap; }
.data-table td { padding:14px 17px; border-bottom:1px solid rgba(255,255,255,.045); color:#d4d8e2; font-size:12px; vertical-align:middle; }
.data-table tbody tr:last-child td { border-bottom:0; }
.data-table tbody tr:hover { background:rgba(255,255,255,.018); }
.primary-cell strong { display:block; color:#eef0f6; font-size:12px; font-weight:650; }
.primary-cell span, .subvalue { display:block; color:var(--muted-2); font-size:10px; margin-top:3px; white-space:nowrap; }
.number-success { color:#65dfaa; font-weight:700; }
.status { display:inline-flex; align-items:center; gap:6px; padding:5px 7px; border-radius:7px; font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; white-space:nowrap; }
.status i { width:5px; height:5px; border-radius:50%; }
.status.good { color:#72e1b1; background:rgba(66,211,146,.08); border:1px solid rgba(66,211,146,.12); }
.status.good i { background:var(--green); box-shadow:0 0 8px rgba(66,211,146,.7); }
.status.warn { color:#f1d273; background:rgba(242,201,76,.08); border:1px solid rgba(242,201,76,.13); }
.status.warn i { background:var(--yellow); }
.status.neutral { color:#a4adbf; background:rgba(255,255,255,.04); border:1px solid var(--border); }
.status.neutral i { background:#6d7688; }
.status.large { padding:7px 9px; font-size:10px; }
.progress-cell { min-width:130px; }
.progress-track { height:5px; background:#232838; border-radius:999px; overflow:hidden; }
.progress-track span { display:block; height:100%; background:linear-gradient(90deg,#7657ff,#9c84ff); border-radius:inherit; box-shadow:0 0 10px rgba(123,92,255,.28); }
.progress-track.large { height:6px; }
.progress-cell small { display:block; color:var(--muted-2); font-size:9px; margin-top:5px; }
.row-link { color:#a896ff; font-size:11px; font-weight:650; white-space:nowrap; }
.row-link:hover { color:#c1b4ff; }
.search-form { display:flex; align-items:center; gap:7px; }
.search-form input, .search-form select { height:34px; background:#0d1017; color:#dfe2eb; border:1px solid var(--border); border-radius:8px; padding:0 10px; outline:none; font-size:11px; min-width:235px; }
.search-form select { min-width:120px; }
.search-form input:focus, .search-form select:focus { border-color:rgba(123,92,255,.45); box-shadow:0 0 0 3px rgba(123,92,255,.07); }
.search-form button { height:34px; border:0; border-radius:8px; padding:0 12px; background:#6f52eb; color:#fff; font-size:11px; cursor:pointer; }
.search-form a { color:var(--muted); font-size:10px; }
.pool-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:16px; }
.pool-card { display:block; border:1px solid var(--border); background:linear-gradient(145deg,rgba(255,255,255,.018),rgba(255,255,255,.006)); border-radius:13px; padding:16px; transition:.14s ease; }
.pool-card:hover { transform:translateY(-1px); border-color:rgba(123,92,255,.28); background:linear-gradient(145deg,rgba(123,92,255,.055),rgba(255,255,255,.008)); }
.pool-top { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.pool-kicker { color:#776ca6; font-size:9px; font-weight:800; letter-spacing:.12em; }
.pool-card h3 { margin:4px 0 0; font-size:14px; }
.mono-id, .mono-inline { font-family:"SFMono-Regular",Consolas,monospace; color:#788196; font-size:9px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mono-id { margin:13px 0 15px; border-radius:6px; background:#0b0e14; padding:7px 8px; border:1px solid rgba(255,255,255,.04); }
.pool-progress-line { display:flex; justify-content:space-between; color:#929aab; font-size:10px; margin-bottom:7px; }
.pool-progress-line strong { color:#cbcfe0; }
.pool-stats { display:grid; grid-template-columns:repeat(4,1fr); margin-top:15px; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.pool-stats span { padding:11px 4px; }
.pool-stats small { display:block; color:var(--muted-2); font-size:8px; text-transform:uppercase; letter-spacing:.06em; }
.pool-stats strong { display:block; font-size:13px; margin-top:3px; }
.pool-foot { display:flex; justify-content:space-between; gap:12px; color:var(--muted-2); font-size:9px; padding-top:11px; }
.info-panel { padding:0; }
.info-grid { display:grid; grid-template-columns:repeat(4,1fr); }
.info-grid > div { padding:15px 18px; border-right:1px solid var(--border); }
.info-grid > div:last-child { border-right:0; }
.info-grid span { display:block; color:var(--muted-2); font-size:9px; text-transform:uppercase; letter-spacing:.06em; }
.info-grid strong { display:block; font-size:12px; margin:6px 0 3px; }
.info-grid small { color:var(--muted); font-size:9px; }
.slot-pill { display:inline-grid; place-items:center; min-width:32px; height:27px; border-radius:8px; background:rgba(123,92,255,.12); color:#b5a7ff; border:1px solid rgba(123,92,255,.17); font-weight:800; }
.tiny-badge { display:inline-block; margin-top:5px; padding:2px 5px; border-radius:5px; font-size:8px; text-transform:uppercase; }
.tiny-badge.bad { color:#ff8d98; background:rgba(255,107,122,.08); }
.alert { margin:0 0 14px; border-radius:10px; padding:10px 12px; font-size:11px; line-height:1.45; }
.alert.danger { color:#ffabb3; background:rgba(255,107,122,.08); border:1px solid rgba(255,107,122,.15); }
.alert.warn { color:#efd17a; background:rgba(242,201,76,.07); border:1px solid rgba(242,201,76,.13); }
.empty { text-align:center; padding:50px 20px; color:var(--muted); }
.empty strong { color:#cdd2de; font-size:13px; }
.empty p { margin:6px 0 0; font-size:11px; }
.primary-button { display:inline-flex; align-items:center; justify-content:center; min-height:39px; padding:0 15px; border:0; border-radius:10px; background:linear-gradient(135deg,#8162ff,#6748e6); color:#fff; font-weight:700; font-size:12px; cursor:pointer; box-shadow:0 8px 24px rgba(123,92,255,.18); }
.primary-button.full { width:100%; }
.not-found { padding:120px 20px; text-align:center; }
.not-found > span { color:#7b5cff; font-weight:800; letter-spacing:.1em; }
.not-found h1 { margin:8px 0; font-size:25px; }
.not-found p { color:var(--muted); font-size:12px; margin-bottom:20px; }
.login-body { min-height:100vh; display:grid; place-items:center; overflow:hidden; background:#080a0f; position:relative; }
.login-glow { position:absolute; width:430px; height:430px; border-radius:50%; filter:blur(100px); opacity:.16; pointer-events:none; }
.glow-one { background:#6544ff; top:-250px; right:-120px; }
.glow-two { background:#3f70ff; bottom:-320px; left:-160px; opacity:.1; }
.login-card { position:relative; width:min(410px,calc(100vw - 32px)); padding:28px; border:1px solid var(--border-strong); background:rgba(17,20,28,.88); backdrop-filter:blur(24px); border-radius:18px; box-shadow:var(--shadow); }
.login-brand { display:flex; gap:12px; align-items:center; margin-bottom:34px; }
.login-copy h1 { margin:0 0 7px; font-size:24px; letter-spacing:-.03em; }
.login-copy p { margin:0 0 24px; color:var(--muted); font-size:12px; line-height:1.5; }
.login-form { display:flex; flex-direction:column; gap:14px; }
.login-form label span { display:block; color:#9ba3b5; font-size:10px; margin:0 0 6px 2px; }
.login-form input { width:100%; height:42px; background:#0b0e14; color:#fff; border:1px solid var(--border); border-radius:10px; padding:0 12px; outline:none; }
.login-form input:focus { border-color:rgba(123,92,255,.5); box-shadow:0 0 0 3px rgba(123,92,255,.08); }
.login-hint { text-align:center; color:#586174; font-size:9px; margin:18px 0 0; }
@media (max-width: 1180px) {
  .metric-grid.five { grid-template-columns:repeat(3,1fr); }
  .pool-grid { grid-template-columns:1fr; }
  .info-grid { grid-template-columns:repeat(2,1fr); }
  .info-grid > div:nth-child(2) { border-right:0; }
  .info-grid > div:nth-child(-n+2) { border-bottom:1px solid var(--border); }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns:1fr; }
  .sidebar { position:relative; height:auto; flex-direction:row; align-items:center; gap:16px; padding:12px 16px; border-right:0; border-bottom:1px solid var(--border); }
  .brand { padding:0; }
  .nav { flex:1; }
  .nav-caption, .sidebar-foot { display:none; }
  .nav-item { width:max-content; }
  .content { padding:25px 18px 45px; }
  .metric-grid.four, .metric-grid.five { grid-template-columns:repeat(2,1fr); }
  .responsive-head { align-items:flex-start; flex-direction:column; }
  .search-form { width:100%; }
  .search-form input { flex:1; min-width:0; }
}
@media (max-width: 580px) {
  .page-header { align-items:flex-start; flex-direction:column; }
  .page-header h1 { font-size:26px; }
  .metric-grid.four, .metric-grid.five { grid-template-columns:1fr 1fr; }
  .metric-card { min-height:103px; padding:14px; }
  .metric-card strong { font-size:23px; }
  .pool-grid { padding:10px; }
  .pool-stats { grid-template-columns:repeat(2,1fr); }
  .info-grid { grid-template-columns:1fr; }
  .info-grid > div { border-right:0; border-bottom:1px solid var(--border); }
  .search-form.filters { flex-wrap:wrap; }
  .search-form select { min-width:120px; }
  .search-form.filters input { min-width:calc(100% - 127px); }
}
