:root {
  --account-panel: #0d1813;
  --account-panel-2: #101f18;
  --account-line: #263a30;
}

.account-wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 64px 0 90px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 26px;
  align-items: start;
}

.account-card {
  background: linear-gradient(150deg, var(--account-panel-2), var(--account-panel));
  border: 1px solid var(--account-line);
  border-radius: 20px;
  padding: 34px;
  box-shadow: 0 24px 80px #00000038;
}

.account-card h1 {
  margin: 10px 0 8px;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.account-card > p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #ffffff06;
  border: 1px solid #ffffff0d;
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 22px;
}

.auth-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  padding: 11px 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.auth-tabs button.active {
  background: #ffffff0c;
  color: var(--text);
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field span {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--mono);
}

.field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #2a3d33;
  background: #08120e;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus {
  border-color: #58d29b88;
  box-shadow: 0 0 0 3px #58d29b18;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.form-actions .button {
  min-width: 150px;
}

.form-message {
  min-height: 20px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.form-message.error { color: #ff8f8f; }
.form-message.success { color: var(--green); }

.account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--account-line);
  margin-bottom: 22px;
}

.account-identity {
  display: flex;
  align-items: center;
  gap: 13px;
}

.account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #58d29b16;
  border: 1px solid #58d29b3d;
  color: #a9edc4;
  font-weight: 800;
  font-size: 18px;
}

.account-identity strong {
  display: block;
  font-size: 15px;
}

.account-identity small {
  color: var(--muted);
  font-size: 12px;
}

.ghost-button {
  border: 1px solid var(--account-line);
  background: #ffffff05;
  color: var(--muted);
  border-radius: 9px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.ghost-button:hover {
  color: var(--text);
  border-color: #3c5a4b;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.stat-box {
  border: 1px solid #ffffff0d;
  background: #ffffff04;
  border-radius: 12px;
  padding: 13px 14px;
}

.stat-box span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--mono);
  margin-bottom: 5px;
}

.stat-box strong {
  font-size: 17px;
}

.renewal-notice {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid #e9c98755;
  border-radius: 13px;
  background: #e9c9870c;
}

.renewal-notice strong { color: #f0d69e; }
.renewal-notice p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.renewal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.renewal-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #e9c98742;
  border-radius: 8px;
  color: #f0d69e;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.renewal-actions a:hover { background: #e9c98716; }

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--mono);
}

.key-list {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #ffffff0d;
  background: #ffffff04;
  border-radius: 11px;
  padding: 12px 14px;
}

.key-row code {
  font-family: var(--mono);
  font-size: 12px;
  color: #c9efd9;
}

.key-row small {
  color: var(--muted);
  font-size: 11px;
}

.key-empty {
  border: 1px dashed #2c4237;
  border-radius: 12px;
  padding: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 22px;
}

.radar-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #58d29b2e;
  background: linear-gradient(100deg, #143122, #101d18);
  border-radius: 14px;
  padding: 18px;
}

.radar-cta strong { display: block; margin-bottom: 3px; }
.radar-cta small { color: var(--muted); font-size: 12px; }

#panel {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 760px;
  justify-self: center;
}

.hidden { display: none !important; }

@media (max-width: 860px) {
  .account-wrap { grid-template-columns: 1fr; padding-top: 40px; }
  .account-card { padding: 26px; }
  .stat-grid { grid-template-columns: 1fr; }
}
