* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  background: #0b0f0d;
  color: #e5efe9;
  line-height: 1.5;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid #1a2420;
}
.brand { font-weight: 600; letter-spacing: -0.01em; font-size: 18px; color: #10b981; }
.who { font-size: 13px; color: #8aa59a; }
main { max-width: 880px; margin: 0 auto; padding: 32px 20px; }
.card {
  background: #0f1815;
  border: 1px solid #1a2420;
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 20px;
}
h2 { margin: 0 0 16px; font-size: 18px; font-weight: 600; }
h3 { margin: 0 0 8px; font-size: 16px; }
label {
  display: block;
  font-size: 13px;
  color: #8aa59a;
  margin-bottom: 14px;
}
input, select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  background: #060a08;
  color: #e5efe9;
  border: 1px solid #1a2420;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
input:focus, select:focus { outline: none; border-color: #10b981; }
button {
  padding: 10px 18px;
  background: #10b981;
  color: #041008;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
button:hover:not(:disabled) { background: #13d196; }
button:disabled { background: #1a2420; color: #8aa59a; cursor: not-allowed; }
.err { color: #ff7b7b; font-size: 13px; margin: 10px 0 0; min-height: 18px; }
.muted { color: #8aa59a; font-size: 13px; }

.tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid #1a2420; }
.tab {
  background: transparent;
  color: #8aa59a;
  padding: 10px 16px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  font-weight: 500;
}
.tab.active { color: #10b981; border-bottom-color: #10b981; }
.tab:hover { color: #e5efe9; background: transparent; }

.subnav { display: flex; gap: 4px; margin-bottom: 20px; }
.subnav-btn {
  background: transparent;
  color: #8aa59a;
  padding: 8px 14px;
  font-weight: 500;
}
.subnav-btn.active { color: #10b981; background: #0f1815; }
.subnav-btn:hover:not(.active) { color: #e5efe9; background: transparent; }
.subnav-btn.logout { margin-left: auto; color: #8aa59a; }

.stat { display: inline-block; margin-right: 28px; }
.stat .num { display: block; font-size: 28px; font-weight: 600; color: #10b981; }
.stat .lbl { font-size: 12px; color: #8aa59a; text-transform: uppercase; letter-spacing: 0.05em; }
.bar { height: 6px; background: #1a2420; border-radius: 3px; margin-top: 20px; overflow: hidden; }
.bar-fill { height: 100%; background: #10b981; width: 0%; transition: width 0.3s; }

.keylist { list-style: none; padding: 0; margin: 0 0 20px; }
.keylist li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #060a08;
  border: 1px solid #1a2420;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 14px;
}
.keylist .provider { font-weight: 600; color: #10b981; }
.keylist .label { color: #8aa59a; margin-left: 8px; }
.keylist .delete {
  background: transparent;
  color: #ff7b7b;
  padding: 4px 10px;
  font-size: 12px;
}
.keylist .delete:hover { background: #1a0b0b; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan {
  background: #060a08;
  border: 1px solid #1a2420;
  border-radius: 10px;
  padding: 24px;
}
.plan.featured { border-color: #10b981; }
.plan .price { font-size: 32px; font-weight: 600; color: #10b981; margin: 8px 0 16px; }
.plan .price span { font-size: 14px; color: #8aa59a; font-weight: 400; }
.plan ul { padding-left: 18px; margin: 0 0 20px; color: #8aa59a; font-size: 14px; }
.plan ul li { margin-bottom: 6px; }

@media (max-width: 600px) {
  .plans { grid-template-columns: 1fr; }
  main { padding: 20px 16px; }
}
