/* OVKON Platform app shell */
:root {
  --pl-bg: #0b1220;
  --pl-surface: #121a2b;
  --pl-surface-2: #182235;
  --pl-ink: #e8eef8;
  --pl-muted: #9aa8bd;
  --pl-line: rgba(232, 238, 248, 0.12);
  --pl-accent: #c8f547;
  --pl-accent-ink: #0b1220;
  --pl-danger: #ff6b6b;
  --pl-ok: #6ee7b7;
  --pl-font: "Space Grotesk", "Exo 2", system-ui, sans-serif;
  --pl-display: "Space Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(200, 245, 71, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(88, 140, 255, 0.1), transparent 50%),
    var(--pl-bg);
  color: var(--pl-ink);
  font-family: var(--pl-font);
}

a { color: var(--pl-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.pl-shell {
  display: grid;
  grid-template-columns: 16.5rem 1fr;
  min-height: 100vh;
}

.pl-sidebar {
  background: rgba(18, 26, 43, 0.92);
  border-right: 1px solid var(--pl-line);
  padding: 1rem 0.85rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pl-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.8rem;
  background: #ffffff;
  border-radius: 0.7rem;
  border: 1px solid rgba(232, 238, 248, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.pl-brand-logo {
  display: block;
  width: 2.35rem !important;
  height: 2.35rem !important;
  max-width: 2.35rem;
  max-height: 2.35rem;
  object-fit: contain;
  flex-shrink: 0;
}
.pl-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.pl-brand-text strong {
  font-family: var(--pl-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0b1220;
  line-height: 1.1;
}
.pl-brand-text span {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 560;
}

.pl-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.pl-nav a {
  color: var(--pl-ink);
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  border-radius: 0.45rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.pl-nav a:hover {
  background: rgba(255,255,255,0.04);
  text-decoration: none;
}
.pl-nav a.is-active {
  background: rgba(200, 245, 71, 0.12);
  color: var(--pl-accent);
}

.pl-nav-label {
  margin: 0.85rem 0.7rem 0.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pl-muted);
}

.pl-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--pl-line);
  background: rgba(11, 18, 32, 0.55);
  backdrop-filter: blur(8px);
}

.pl-top-context {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.pl-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--pl-line);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--pl-muted);
}
.pl-pill strong { color: var(--pl-ink); font-weight: 600; }

.pl-top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
}
.pl-top-actions .pl-user { color: var(--pl-muted); }

.pl-content {
  padding: 1.5rem;
  max-width: 72rem;
  width: 100%;
}

.pl-h1 {
  margin: 0 0 0.35rem;
  font-family: var(--pl-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.pl-lead {
  margin: 0 0 1.5rem;
  color: var(--pl-muted);
  max-width: 40rem;
  line-height: 1.5;
}

.pl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pl-card {
  background: var(--pl-surface);
  border: 1px solid var(--pl-line);
  border-radius: 0.75rem;
  padding: 1.1rem 1.15rem;
}
.pl-card h2, .pl-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}
.pl-card p { margin: 0; color: var(--pl-muted); font-size: 0.9rem; line-height: 1.45; }
.pl-stat {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0.35rem 0 0;
}

.pl-status {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pl-status.is-active, .pl-status.is-trial { color: var(--pl-ok); }
.pl-status.is-inactive { color: var(--pl-muted); }

.pl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 0;
  border-radius: 0.45rem;
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  background: var(--pl-accent);
  color: var(--pl-accent-ink);
  text-decoration: none;
}
.pl-btn:hover { filter: brightness(1.05); text-decoration: none; }
.pl-btn-ghost {
  background: transparent;
  color: var(--pl-ink);
  border: 1px solid var(--pl-line);
}
.pl-btn-sm { padding: 0.35rem 0.7rem; font-size: 0.82rem; }

.pl-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--pl-line);
  border-radius: 0.75rem;
  background: var(--pl-surface);
}
table.pl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.pl-table th, .pl-table td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--pl-line);
  vertical-align: top;
}
.pl-table th {
  color: var(--pl-muted);
  font-weight: 560;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pl-table tr:last-child td { border-bottom: 0; }

.pl-form {
  display: grid;
  gap: 0.85rem;
  max-width: 28rem;
}
.pl-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--pl-muted);
}
.pl-form input, .pl-form select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.45rem;
  border: 1px solid var(--pl-line);
  background: var(--pl-surface-2);
  color: var(--pl-ink);
  font: inherit;
}
.pl-alert {
  padding: 0.7rem 0.9rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.pl-alert-error {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: #ffb4b4;
}
.pl-alert-ok {
  background: rgba(110, 231, 183, 0.12);
  border: 1px solid rgba(110, 231, 183, 0.35);
  color: #b7f7dc;
}

.pl-guest {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}
.pl-guest-card {
  width: min(100%, 24rem);
  background: var(--pl-surface);
  border: 1px solid var(--pl-line);
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
}
.pl-guest-card img { height: 36px; margin-bottom: 1rem; }
.pl-guest-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}
.pl-guest-card .pl-lead { margin-bottom: 1.25rem; }

.pl-perm-list {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.pl-perm-list li {
  font-size: 0.72rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.3rem;
  background: rgba(255,255,255,0.05);
  color: var(--pl-muted);
}

@media (max-width: 860px) {
  .pl-shell { grid-template-columns: 1fr; }
  .pl-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--pl-line);
  }
  .pl-nav { flex-direction: row; flex-wrap: wrap; }
}
