html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1100px 520px at 10% -10%, rgba(124, 58, 237, 0.28), transparent 65%),
    radial-gradient(900px 420px at 90% 0%, rgba(16, 185, 129, 0.18), transparent 60%),
    #070a12;
  color: #eef1ff;
}

:root {
  --card: rgba(255, 255, 255, 0.05);
  --cardBorder: rgba(255, 255, 255, 0.08);
  --muted: rgba(238, 241, 255, 0.72);
  --muted2: rgba(238, 241, 255, 0.56);
  --primary: #7c3aed;
  --primary2: #a78bfa;
  --danger: #ef4444;
  --ok: #22c55e;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 10, 18, 0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cardBorder);
}

.topbarInner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.brandLogo {
  width: 30px;
  height: 30px;
}

.brandText {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brandName {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brandSub {
  font-size: 12px;
  color: var(--muted2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  appearance: none;
  border: 1px solid var(--cardBorder);
  background: rgba(255, 255, 255, 0.05);
  color: #eef1ff;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.btn:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
}

.btnPrimary {
  border-color: rgba(124, 58, 237, 0.55);
  background: rgba(124, 58, 237, 0.28);
}

.btnPrimary:hover {
  background: rgba(124, 58, 237, 0.35);
  border-color: rgba(124, 58, 237, 0.75);
}

.btnDanger {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.14);
}

.btnDanger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.7);
}

.main {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 18px 42px;
  flex: 1;
}

.grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--cardBorder);
  border-radius: 16px;
  padding: 16px;
}

.cardTitle {
  font-weight: 700;
  font-size: 16px;
}

.cardSub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.sectionTitle {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.fieldLabel {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.fieldInput {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 10, 18, 0.45);
  color: #eef1ff;
  outline: none;
}

.fieldInput:focus {
  border-color: rgba(167, 139, 250, 0.65);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

.status {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.statusErr {
  color: rgba(239, 68, 68, 0.95);
}

.statusOk {
  color: rgba(34, 197, 94, 0.95);
}

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 14px;
}

.tab {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}

.tabActive {
  color: #eef1ff;
  border-color: rgba(124, 58, 237, 0.55);
  background: rgba(124, 58, 237, 0.24);
}

.plans {
  display: grid;
  gap: 12px;
}

.plan {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  display: grid;
  gap: 10px;
}

.planTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.planName {
  font-weight: 800;
}

.priceLine {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.priceMain {
  font-weight: 900;
  font-size: 22px;
}

.priceMeta {
  font-size: 13px;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.table th,
.table td {
  text-align: left;
  font-size: 13px;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.pillOk {
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(34, 197, 94, 0.12);
  color: rgba(206, 255, 228, 0.95);
}

.pillWarn {
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(245, 158, 11, 0.1);
  color: rgba(255, 245, 206, 0.92);
}

.pillErr {
  border-color: rgba(239, 68, 68, 0.38);
  background: rgba(239, 68, 68, 0.1);
  color: rgba(255, 220, 220, 0.95);
}

.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px 26px;
  color: var(--muted2);
  font-size: 12px;
}

.modalBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 100;
}

.modalCard {
  width: 100%;
  max-width: 520px;
  background: rgba(10, 14, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 65px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.modalHeader {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modalTitle {
  font-weight: 800;
}

.modalClose {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #eef1ff;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
}

.modalBody {
  padding: 16px;
}

.modalActions {
  padding: 14px 16px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body {
  background: #ffffff;
  color: #1B1748;
}
