/* Neural Shell paid portal: local prototype styles */
:root {
  color-scheme: dark;
  --bg: #06080f;
  --panel: #101624;
  --panel-2: #151e30;
  --panel-3: #1b2740;
  --line: #293956;
  --line-strong: #3a4d72;
  --ink: #edf4ff;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --accent: #8b7cff;
  --accent-strong: #a99fff;
  --good: #36d399;
  --warn: #f6c453;
  --danger: #ff6b87;
  --info: #64c9ff;
  --radius: 14px;
  --shadow: 0 16px 46px rgba(0, 0, 0, .28);
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 460px at 90% -8%, rgba(99, 82, 239, .2), transparent 68%),
    radial-gradient(760px 440px at -8% 18%, rgba(22, 129, 173, .12), transparent 70%),
    var(--bg);
  font: 15px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
a { color: var(--accent-strong); text-decoration: none; }
a:hover { color: #c7c1ff; text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .56; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.portal-header {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid rgba(58, 77, 114, .72);
  background: rgba(6, 8, 15, .88);
  backdrop-filter: blur(16px);
}
.portal-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 760; letter-spacing: -.02em; }
.brand-mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  color: #111326; background: linear-gradient(135deg, #f5d042, #9d8cff);
  box-shadow: 0 0 28px rgba(139, 124, 255, .26);
}
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .04em; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.nav-links a, .nav-button {
  border: 1px solid transparent; border-radius: 9px; padding: 7px 10px; color: var(--muted);
  background: transparent; font-size: 13px;
}
.nav-links a:hover, .nav-button:hover { color: var(--ink); background: rgba(139, 124, 255, .11); text-decoration: none; }
.hero { padding: 58px 0 30px; }
.eyebrow {
  margin: 0 0 9px; color: var(--accent-strong); font-size: 12px; font-weight: 760;
  letter-spacing: .13em; text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 780px; margin-bottom: 12px; font-size: clamp(30px, 5vw, 52px); line-height: 1.08; letter-spacing: -.045em; }
h2 { margin-bottom: 15px; font-size: 21px; letter-spacing: -.025em; }
h3 { margin-bottom: 8px; font-size: 16px; }
.lede { max-width: 720px; color: var(--muted); font-size: 17px; }
.notice {
  display: flex; gap: 10px; align-items: flex-start; margin: 20px 0; padding: 12px 14px;
  border: 1px solid rgba(100, 201, 255, .28); border-radius: 10px; color: #ccecff;
  background: rgba(42, 120, 160, .12);
}
.notice strong { color: var(--info); }
.notice.warning { border-color: rgba(246, 196, 83, .34); color: #fae7ae; background: rgba(135, 93, 12, .15); }
.notice.warning strong { color: var(--warn); }
.notice.danger { border-color: rgba(255, 107, 135, .36); color: #ffd8e0; background: rgba(117, 24, 48, .17); }
.notice.danger strong { color: var(--danger); }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.sidebar { grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); align-items: start; }
.card {
  min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(16, 22, 36, .88);
  box-shadow: var(--shadow);
}
.card.pad { padding: 22px; }
.card-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.card-body { padding: 20px; }
.muted { color: var(--muted); }
.subtle { color: var(--muted-2); font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.status {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 9px; color: var(--muted); font-size: 12px; white-space: nowrap;
}
.status.good { border-color: rgba(54, 211, 153, .34); color: #8af0c8; background: rgba(54, 211, 153, .1); }
.status.warn { border-color: rgba(246, 196, 83, .38); color: #ffe3a0; background: rgba(246, 196, 83, .1); }
.status.danger { border-color: rgba(255, 107, 135, .38); color: #ffc0ce; background: rgba(255, 107, 135, .1); }
.status.info { border-color: rgba(100, 201, 255, .35); color: #b8e9ff; background: rgba(100, 201, 255, .1); }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat {
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(21, 30, 48, .74);
}
.stat-label { color: var(--muted); font-size: 12px; }
.stat-value { margin-top: 3px; font-size: 19px; font-weight: 720; }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { color: #d9e5f7; font-size: 13px; font-weight: 650; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 9px; padding: 10px 11px;
  color: var(--ink); background: #0b101c;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid rgba(139, 124, 255, .19); }
.form-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 7px; border: 1px solid var(--line-strong);
  border-radius: 9px; padding: 9px 13px; color: var(--ink); background: #19243a; font-weight: 680;
}
.btn:hover { background: #243453; border-color: #526896; }
.btn.primary { border-color: transparent; color: #fff; background: linear-gradient(135deg, #6f61f2, #5141be); }
.btn.primary:hover { background: linear-gradient(135deg, #8b7cff, #6252db); }
.btn.ghost { color: var(--muted); background: transparent; }
.btn.danger { color: #ffd5dd; border-color: rgba(255, 107, 135, .38); background: rgba(117, 24, 48, .22); }
.btn.small { padding: 6px 9px; font-size: 12px; }
.btn.block { width: 100%; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan {
  display: flex; flex-direction: column; min-height: 280px; padding: 18px; border: 1px solid var(--line);
  border-radius: 13px; background: rgba(21, 30, 48, .72);
}
.plan.featured { border-color: rgba(139, 124, 255, .74); box-shadow: 0 0 0 1px rgba(139, 124, 255, .16), 0 18px 42px rgba(74, 57, 195, .18); }
.plan-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-price { margin: 18px 0 3px; font-size: 30px; font-weight: 760; letter-spacing: -.04em; }
.plan-price small { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.plan ul { flex: 1; padding-left: 18px; color: var(--muted); font-size: 13px; }
.plan li { margin: 6px 0; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.data-table th, .data-table td { padding: 11px 12px; border-bottom: 1px solid rgba(41, 57, 86, .72); text-align: left; vertical-align: top; }
.data-table th { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.data-table td { color: #d9e5f7; font-size: 13px; }
.data-table tr:last-child td { border-bottom: 0; }
.empty { padding: 24px 12px; color: var(--muted); text-align: center; }
.message {
  min-height: 20px; margin: 10px 0 0; color: var(--muted); font-size: 13px;
}
.message.good { color: #8af0c8; }
.message.error { color: #ffc0ce; }
.message.info { color: #b8e9ff; }
.inline-link { color: var(--accent-strong); font-size: 13px; }
.kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.kicker h2 { margin: 0; }
.footer { padding: 34px 0 42px; color: var(--muted-2); font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 7px; }
.auth-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); min-height: calc(100vh - 68px); align-items: center; gap: 54px; padding: 48px 0; }
.auth-copy h1 { max-width: 540px; }
.auth-card { max-width: 500px; width: 100%; margin-left: auto; }
.tab-row { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: #0b101c; }
.tab {
  flex: 1; border: 0; border-radius: 7px; padding: 9px; color: var(--muted); background: transparent;
  font-weight: 700;
}
.tab.active { color: var(--ink); background: #283756; }
.hero-points { display: grid; gap: 11px; max-width: 520px; margin-top: 24px; }
.hero-point { display: flex; gap: 10px; color: var(--muted); }
.hero-point b { color: var(--ink); }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.admin-tabs button.active { color: #fff; border-color: rgba(139, 124, 255, .8); background: rgba(111, 97, 242, .24); }
.row-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.row-actions select { min-width: 112px; border: 1px solid var(--line); border-radius: 7px; padding: 5px 7px; color: var(--ink); background: #0b101c; font-size: 12px; }
.loading { color: var(--muted); }
@media (max-width: 860px) {
  .grid.sidebar, .auth-wrap { grid-template-columns: 1fr; gap: 24px; }
  .auth-card { margin: 0; max-width: none; }
  .plan-grid, .grid.three { grid-template-columns: 1fr; }
  .grid.two { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .shell { width: min(100% - 22px, 1180px); }
  .portal-nav { align-items: flex-start; padding: 13px 0; flex-direction: column; }
  .nav-links { justify-content: flex-start; }
  .hero { padding-top: 38px; }
  h1 { font-size: 34px; }
  .stat-row { grid-template-columns: 1fr; }
  .card-head, .card-body { padding: 15px; }
}

