/* FOXYVERSE – App pages (Universe theme) */

body.lv.lv-shell:not(.lv-home) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -12%, rgba(124, 58, 237, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 35% at 95% 60%, rgba(255, 122, 61, 0.08), transparent 50%),
    radial-gradient(ellipse 45% 30% at 5% 80%, rgba(56, 189, 248, 0.1), transparent 45%),
    #020208;
}

/* ── Header (floating pill) ─────────────────────────────── */
.lv-shell:not(.lv-home) .lv-header {
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0.75rem auto 0;
  padding: 0.65rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(110, 184, 255, 0.12);
  background: rgba(4, 6, 18, 0.78);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.08);
}

.lv-shell:not(.lv-home) .lv-header.lv-header-scrolled {
  width: 100%;
  max-width: none;
  margin-top: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  background: rgba(4, 6, 18, 0.92);
}

.lv-shell:not(.lv-home) .lv-logo span {
  color: var(--lv-accent);
  text-shadow: 0 0 20px rgba(255, 122, 61, 0.35);
}

/* ── Auth pages ─────────────────────────────────────────── */
.lv-auth-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 2rem 0 3rem;
}

.lv-auth-card {
  position: relative;
  width: min(440px, 92%);
  padding: 2rem 2rem 1.6rem;
  background: rgba(6, 8, 24, 0.72);
  border: 1px solid rgba(110, 184, 255, 0.14);
  border-radius: 20px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(124, 58, 237, 0.06);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.lv-auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), transparent 45%, rgba(255, 122, 61, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.lv-auth-card-wide { width: min(520px, 92%); }

.lv-auth-icon {
  background: rgba(255, 122, 61, 0.12);
  border: 1px solid rgba(255, 122, 61, 0.25);
  box-shadow: 0 0 24px rgba(255, 122, 61, 0.15);
}

.lv-auth-head h1 {
  font-family: var(--lv-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.lv-auth-switch a {
  color: var(--lv-cosmic);
}

.lv-auth-switch a:hover {
  color: var(--lv-blue);
}

/* ── Forms ──────────────────────────────────────────────── */
.lv-field input[type="text"],
.lv-field input[type="email"],
.lv-field input[type="password"],
.lv-field input[type="url"],
.lv-field input[type="number"],
.lv-field select,
.lv-field textarea {
  background: rgba(4, 6, 18, 0.65);
  border-color: rgba(110, 184, 255, 0.12);
}

.lv-field input:focus,
.lv-field select:focus,
.lv-field textarea:focus {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.lv-field-link {
  color: var(--lv-cosmic);
}

.lv-btn-solid {
  background: linear-gradient(135deg, #ffb347, var(--lv-accent));
  color: #050508;
  border-color: transparent;
  box-shadow: 0 6px 24px rgba(255, 122, 61, 0.3);
}

.lv-btn-solid:hover {
  box-shadow: 0 10px 32px rgba(255, 122, 61, 0.4);
}

.lv-btn-line {
  border-color: rgba(110, 184, 255, 0.2);
  background: rgba(6, 8, 24, 0.4);
}

.lv-btn-line:hover {
  border-color: rgba(110, 184, 255, 0.35);
  background: rgba(110, 184, 255, 0.08);
}

.lv-btn-ghost {
  border-color: rgba(110, 184, 255, 0.15);
}

/* ── App layout ─────────────────────────────────────────── */
.lv-app-main {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: clamp(1.25rem, 3vh, 2rem) 0 clamp(2rem, 4vh, 2.5rem);
}

.lv-page-intro {
  margin-bottom: 1.75rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgba(110, 184, 255, 0.1);
}

.lv-page-intro-inner {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

.lv-page-intro-copy {
  flex: 1 1 260px;
  max-width: 620px;
  min-width: 0;
}

.lv-page-intro-action {
  flex: 0 0 auto;
}

.lv-page-intro h1 {
  margin: 0.35rem 0 0;
}

.lv-page-sub {
  margin: 0.5rem 0 0;
  max-width: 52ch;
  line-height: 1.6;
  color: var(--lv-muted);
}

.lv-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lv-cosmic);
}

.lv-page-intro h1,
.lv-page-hero h1 {
  font-family: var(--lv-display);
  letter-spacing: -0.03em;
  text-shadow: 0 0 40px rgba(124, 58, 237, 0.12);
}

.lv-label {
  color: var(--lv-cosmic);
  letter-spacing: 0.12em;
}

/* ── Hub / profile ──────────────────────────────────────── */
.lv-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lv-avatar {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--lv-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--lv-text);
  background: linear-gradient(135deg, rgba(255, 122, 61, 0.35), rgba(124, 58, 237, 0.35));
  border: 1px solid rgba(110, 184, 255, 0.25);
  box-shadow:
    0 0 24px rgba(124, 58, 237, 0.2),
    0 0 16px rgba(255, 122, 61, 0.15);
}

.lv-hub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lv-hub-bar h2,
.lv-page-hero h1 {
  font-family: var(--lv-display);
  font-weight: 800;
}

/* ── Catalog / project cards ────────────────────────────── */
.lv-catalog-item {
  border-radius: 16px;
  border: 1px solid rgba(110, 184, 255, 0.1);
  background: rgba(6, 8, 24, 0.55);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.lv-catalog-item:hover {
  border-color: rgba(110, 184, 255, 0.22);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.35),
    0 0 30px rgba(124, 58, 237, 0.06);
  background: rgba(10, 12, 28, 0.72);
}

.lv-catalog-item--blue::before { background: var(--lv-blue); }
.lv-catalog-item--orange::before { background: var(--lv-accent); }
.lv-catalog-item--purple::before { background: var(--lv-purple); }

/* ── Docs ───────────────────────────────────────────────── */
.lv-doc-list {
  border: 1px solid rgba(110, 184, 255, 0.12);
  border-radius: 16px;
  background: rgba(6, 8, 24, 0.5);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.lv-doc-list a:hover {
  background: rgba(56, 189, 248, 0.06);
}

.lv-doc-article {
  padding: 1.5rem 1.6rem;
  border-radius: 16px;
  line-height: 1.7;
}

.lv-doc-article h2,
.lv-doc-article h3 {
  font-family: var(--lv-display);
  margin-top: 1.5rem;
}

.lv-doc-article code {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.2);
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  font-size: 0.88em;
}

/* ── Support tickets ────────────────────────────────────── */
.lv-ticket-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lv-ticket-row {
  display: block;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(110, 184, 255, 0.1);
  background: rgba(6, 8, 24, 0.55);
  backdrop-filter: blur(12px);
  text-decoration: none;
  transition: border-color 250ms, box-shadow 250ms, transform 250ms;
}

.lv-ticket-row:hover {
  border-color: rgba(110, 184, 255, 0.22);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.lv-ticket-msg {
  border: 1px solid rgba(110, 184, 255, 0.1);
  background: rgba(6, 8, 24, 0.5);
}

/* ── Glass panels ───────────────────────────────────────── */
.lv-glass,
.lv-panel {
  background: rgba(6, 8, 24, 0.6);
  border: 1px solid rgba(110, 184, 255, 0.12);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.lv-panel {
  padding: 1.4rem 1.5rem;
}

.lv-panel h2 {
  font-family: var(--lv-display);
  font-size: 1.05rem;
  font-weight: 700;
}

/* ── Team panel ─────────────────────────────────────────── */
.lv-team-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
  padding: 0.45rem;
  border-radius: 12px;
  border: 1px solid rgba(110, 184, 255, 0.1);
  background: rgba(6, 8, 24, 0.45);
}

.lv-team-nav-link {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--lv-muted);
  text-decoration: none;
  transition: background 200ms, color 200ms;
}

.lv-team-nav-link:hover {
  color: var(--lv-text);
  background: rgba(110, 184, 255, 0.08);
}

.lv-team-nav-link-active {
  color: var(--lv-text);
  background: rgba(255, 122, 61, 0.15);
  border: 1px solid rgba(255, 122, 61, 0.25);
}

.lv-list-item {
  border-radius: 14px;
  border-color: rgba(110, 184, 255, 0.1);
  background: rgba(4, 6, 18, 0.55);
}

.lv-section-label {
  font-family: var(--lv-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--lv-cosmic);
}

/* ── Breadcrumb ─────────────────────────────────────────── */
.lv-breadcrumb a:hover {
  color: var(--lv-cosmic);
}

/* ── Status badges ──────────────────────────────────────── */
.lv-badge-live,
.lv-badge-live.lv-status {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #6ee7b7;
}

.lv-empty {
  margin: 0;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  border: 1px dashed rgba(110, 184, 255, 0.15);
  background: rgba(6, 8, 24, 0.4);
  color: var(--lv-muted);
  line-height: 1.6;
}

/* ── Footer (matches header pill) ───────────────────────── */
.lv-shell:not(.lv-home) .lv-footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: min(1120px, calc(100% - 1.5rem));
  margin: 1.5rem auto 0.75rem;
  margin-top: auto;
  padding: 0.85rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(110, 184, 255, 0.12);
  background: rgba(4, 6, 18, 0.78);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.06);
}

.lv-shell:not(.lv-home) .lv-footer .lv-container {
  width: 100%;
  margin: 0;
}

.lv-shell:not(.lv-home) .lv-footer-inner {
  gap: 0.75rem 1.25rem;
}

.lv-info-text {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--lv-muted);
  text-align: center;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 820px) {
  .lv-shell:not(.lv-home) .lv-header,
  .lv-shell:not(.lv-home) .lv-footer {
    width: calc(100% - 1rem);
  }

  .lv-page-intro-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .lv-page-intro-action {
    width: 100%;
  }

  .lv-page-intro-action .lv-btn {
    width: 100%;
    justify-content: center;
  }

  .lv-hub-links {
    width: 100%;
  }

  .lv-shell:not(.lv-home) .lv-footer-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .lv-field-row,
  .lv-form-grid {
    grid-template-columns: 1fr;
  }

  .lv-profile {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lv-catalog-item:hover,
  .lv-ticket-row:hover {
    transform: none;
  }
}
