/* Liber Veda B2C portals — builds on universal lv-shell */
@import url("./lv-shell.css");

:root {
  --bg: var(--lv-bg);
  --card: var(--lv-bg-elevated);
  --border: var(--lv-border);
  --orange: var(--lv-orange);
  --cyan: var(--lv-cyan);
  --green: var(--lv-green);
  --red: var(--lv-red);
  --text: var(--lv-text);
  --muted: var(--lv-muted);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body:not(.page-shell) {
  font-family: var(--lv-font);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(249, 115, 22, 0.12), transparent), var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 0;
}

/* Legacy bare <header> → same shell look when not using .page-header */
body:not(.page-shell) > header {
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 9, 19, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 24px;
  margin: 0 0 0;
  position: sticky;
  top: 0;
  z-index: 40;
  box-sizing: border-box;
}

body:not(.page-shell) > header .brand {
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  margin-right: auto;
  letter-spacing: -0.03em;
}

body:not(.page-shell) > header .lv-mark {
  width: clamp(2.35rem, 3.2vw, 2.85rem);
  height: clamp(2.35rem, 3.2vw, 2.85rem);
  color: var(--orange);
}

body:not(.page-shell) > .layout,
body:not(.page-shell) > main {
  max-width: var(--lv-page-max);
  margin: 0 auto;
  padding: 28px 24px 56px;
  width: 100%;
  box-sizing: border-box;
}

.brand .brand-accent { color: var(--orange); }
.lv-mark path { fill: currentColor; }
.badge { background: transparent; color: var(--orange); font-size: 22px; font-weight: 800; padding: 0; border-radius: 0; text-transform: none; letter-spacing: -0.3px; }

.card h1 { font-size: 22px; margin-bottom: 4px; }
.card h2 { font-size: 15px; margin-bottom: 10px; }

.sub-hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: stretch;
}
@media (max-width: 720px) {
  .sub-hero { grid-template-columns: 1fr; }
  body:not(.page-shell) > header,
  body:not(.page-shell) > .layout,
  body:not(.page-shell) > main {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.price-xl { font-size: 34px; font-weight: 800; letter-spacing: -0.5px; margin: 8px 0 4px; }
.price-xl span { font-size: 14px; font-weight: 600; color: var(--muted); }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; background: rgba(16,185,129,0.15); color: #6ee7b7;
}
.status-pill.warn { background: rgba(245,158,11,0.15); color: #fcd34d; }
.status-pill.bad { background: rgba(239,68,68,0.15); color: #fca5a5; }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 16px; }
.meta-item { background: rgba(0,0,0,0.25); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.meta-item label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.3px; }
.meta-item strong { font-size: 14px; }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 4px; }
.action-btn {
  text-align: left; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; color: #fff; cursor: pointer; transition: 0.15s;
}
.action-btn:hover { border-color: rgba(249,115,22,0.55); background: rgba(249,115,22,0.08); }
.action-btn strong { display: block; font-size: 13px; margin-bottom: 3px; }
.action-btn small { display: block; font-size: 11px; color: var(--muted); line-height: 1.4; }
.action-btn.danger { border-color: rgba(239,68,68,0.35); }
.action-btn.danger:hover { background: rgba(239,68,68,0.1); }
.action-btn.primary { border-color: rgba(249,115,22,0.45); background: rgba(249,115,22,0.12); }
.form-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
input {
  background: rgba(0,0,0,0.35); border: 1px solid var(--border); color: #fff; border-radius: 8px;
  padding: 9px 12px; font-size: 13px; flex: 1; min-width: 140px;
}
input::placeholder { color: #64748b; }
button.solid, .solid {
  background: var(--orange); border: none; color: #fff; border-radius: 8px; padding: 9px 14px;
  font-size: 12px; font-weight: 700; cursor: pointer;
}
button.ghost {
  background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: #fff; border-radius: 8px;
  padding: 9px 14px; font-size: 12px; font-weight: 700; cursor: pointer;
}
button.danger-solid {
  background: transparent; border: 1px solid rgba(239,68,68,0.5); color: #fca5a5; border-radius: 8px;
  padding: 9px 14px; font-size: 12px; font-weight: 700; cursor: pointer;
}
table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
th { text-align: left; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.35px; padding: 8px 6px; border-bottom: 1px solid var(--border); }
td { padding: 10px 6px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(0,210,255,0.12); color: #7dd3fc; }
.pill.owner { background: rgba(249,115,22,0.18); color: #fdba74; }
.hint {
  margin-top: 12px; padding: 12px 14px; border-radius: 10px;
  background: rgba(0,210,255,0.07); border: 1px solid rgba(0,210,255,0.22); font-size: 13px; color: #cbd5e1; line-height: 1.5;
}
.trust { font-size: 12px; color: var(--muted); margin-top: 14px; line-height: 1.5; }
.err { color: #fca5a5; }
.modal-bg {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 50;
  align-items: center; justify-content: center; padding: 16px;
}
.modal-bg.open { display: flex; }
.modal {
  background: #101a2e; border: 1px solid var(--border); border-radius: 14px; padding: 20px; width: 100%; max-width: 420px;
}
.modal h3 { margin-bottom: 8px; }
.modal .row-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
