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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f1117;
  color: #e6e8ec;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card {
  background: #171a23;
  border: 1px solid #262b38;
  border-radius: 14px;
  padding: 32px;
  width: 100%;
  max-width: 400px;
}

.card.wide { max-width: 720px; }

h1 { font-size: 22px; margin-bottom: 6px; }
.subtitle { color: #8b90a0; font-size: 14px; margin-bottom: 24px; }

label { display: block; font-size: 13px; color: #b5b9c5; margin-bottom: 6px; margin-top: 16px; }

input[type=text], input[type=email], input[type=password] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #2a2f3d;
  background: #0f1117;
  color: #e6e8ec;
  font-size: 14px;
}
input:focus { outline: 2px solid #7c5cff; }

button, .btn {
  margin-top: 20px;
  width: 100%;
  padding: 11px;
  border-radius: 8px;
  border: none;
  background: #7c5cff;
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  display: inline-block;
  text-decoration: none;
}
button:hover, .btn:hover { background: #6a4be0; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.btn.secondary { background: #262b38; }
.btn.secondary:hover { background: #323848; }

.error {
  background: #3a1f24;
  border: 1px solid #5c2b33;
  color: #ff8a94;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 16px;
}
.success {
  background: #1f3a26;
  border: 1px solid #2b5c3a;
  color: #7dffa0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 16px;
}

.footer-link { text-align: center; margin-top: 18px; font-size: 13px; color: #8b90a0; }
.footer-link a { color: #a08cff; text-decoration: none; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge.active { background: #1f3a26; color: #7dffa0; }
.badge.expired { background: #3a1f24; color: #ff8a94; }

.row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.muted { color: #8b90a0; font-size: 13px; }

.plan-box {
  background: #0f1117;
  border: 1px solid #262b38;
  border-radius: 10px;
  padding: 16px;
  margin-top: 20px;
}

.subbot-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #262b38;
  font-size: 14px;
}
.subbot-item:last-child { border-bottom: none; }

.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.topbar form { margin: 0; width: auto; }
.topbar button { margin-top: 0; width: auto; padding: 8px 16px; }