* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  background: var(--lp-bg);
  color: var(--lp-text);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

.user-shell { display: flex; min-height: 100vh; }
.user-side {
  width: 250px;
  background: linear-gradient(180deg, #1a1030 0%, #120a1f 100%);
  color: #e2e8f0;
  padding: 22px 16px;
  flex-shrink: 0;
}
.user-side .brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; margin-bottom: 24px; font-size: 0.95rem;
}
.user-side .brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  display: inline-flex;
}
.user-side .brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  color: #94a3b8; font-size: 0.88rem; margin-bottom: 4px;
}
.user-nav a:hover, .user-nav a.active { background: rgba(255,255,255,.08); color: #fff; }
.user-side-footer { margin-top: auto; padding-top: 20px; font-size: 0.8rem; }
.user-side-footer a { color: #94a3b8; display: block; padding: 8px 0; }

.user-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.user-top {
  padding: 16px 24px; border-bottom: 1px solid var(--lp-border);
  background: var(--lp-surface); display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.user-top h1 { margin: 0; font-size: 1.2rem; }
.user-content { padding: 24px; flex: 1; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card {
  background: var(--lp-surface); border: 1px solid var(--lp-border);
  border-radius: 14px; padding: 16px;
}
.stat-card strong { display: block; font-size: 1.4rem; }
.stat-card span { font-size: 0.78rem; color: var(--lp-muted); }

.card {
  background: var(--lp-surface); border: 1px solid var(--lp-border);
  border-radius: 16px; margin-bottom: 16px; overflow: hidden;
}
.card-head { padding: 16px 18px; border-bottom: 1px solid var(--lp-border); }
.card-head h2 { margin: 0; font-size: 1rem; }
.card-body { padding: 18px; }

table.data { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid var(--lp-border); text-align: left; }
table.data th { color: var(--lp-muted); font-size: 0.72rem; text-transform: uppercase; }
.key-code {
  font-family: ui-monospace, Consolas, monospace;
  background: var(--lp-bg-2); padding: 6px 10px; border-radius: 8px; font-size: 0.82rem;
}

.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.plan-buy {
  border: 1px solid var(--lp-border); border-radius: 16px; padding: 18px;
  background: var(--lp-surface-2);
}
.plan-buy.popular { border-color: var(--lov-magenta); box-shadow: 0 0 0 1px var(--lov-magenta); }
.plan-buy h3 { margin: 0 0 6px; }
.plan-buy .price { font-size: 1.6rem; font-weight: 800; margin: 8px 0 12px; }
.plan-buy ul { margin: 0 0 14px; padding-left: 18px; font-size: 0.84rem; color: var(--lp-muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 11px 18px; font-weight: 700;
  font-size: 0.88rem; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--lov-grad); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--lp-border); color: var(--lp-text); }
.btn-sm { padding: 8px 12px; font-size: 0.8rem; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.72rem; font-weight: 700; color: var(--lp-muted); margin-bottom: 6px; text-transform: uppercase; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--lp-border);
  border-radius: 10px; background: var(--lp-bg-2); color: var(--lp-text); font-size: 0.92rem;
}
.err { background: #fee2e2; color: #b91c1c; padding: 11px; border-radius: 10px; margin-bottom: 14px; font-size: 0.86rem; }
.ok { background: #ecfdf5; color: #047857; padding: 11px; border-radius: 10px; margin-bottom: 14px; font-size: 0.86rem; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.pill.pending { background: #fef3c7; color: #92400e; }
.pill.completed { background: #d1fae5; color: #047857; }
.pill.cancelled { background: #fee2e2; color: #b91c1c; }

.auth-page {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: var(--lp-hero-grad);
}
.auth-card {
  width: min(420px, 100%); background: var(--lp-surface);
  border: 1px solid var(--lp-border); border-radius: 18px; padding: 28px;
  box-shadow: var(--lp-shadow);
}

@media (max-width: 900px) {
  .user-shell { flex-direction: column; }
  .user-side { width: 100%; }
}
