:root {
  --bg: #05080c;
  --panel: #0d1117;
  --panel-soft: #101722;
  --border: #273140;
  --text: #f4f7fb;
  --muted: #9fb0c5;
  --accent: #12c2df;
  --accent-soft: rgba(18, 194, 223, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;

  background: var(--bg);
  color: var(--text);

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.site-header {
  min-height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 32px;

  border-bottom: 1px solid var(--border);
}

.brand-logo {
  width: 170px;
  max-height: 48px;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle,
.back-link {
  min-height: 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 14px;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: var(--panel);
  color: var(--text);

  text-decoration: none;
  cursor: pointer;
}

.profile-page {
  width: min(1180px, calc(100% - 40px));

  margin: 0 auto;
  padding: 55px 0 80px;
}

.profile-hero {
  max-width: 760px;
  margin-bottom: 35px;
}

.eyebrow {
  margin: 0 0 7px;

  color: var(--accent);

  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.profile-hero h1 {
  margin: 0 0 12px;

  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
}

.profile-hero p {
  margin: 0;

  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.profile-card {
  padding: 28px;

  border: 1px solid var(--border);
  border-radius: 18px;

  background: var(--panel);
}

.card-heading {
  margin-bottom: 24px;
}

.card-heading h2,
.usage-header h2 {
  margin: 0;

  font-size: 24px;
}

.field {
  display: flex;
  flex-direction: column;

  gap: 8px;
  margin-bottom: 18px;
}

.field label {
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;

  padding: 0 14px;

  background: var(--panel-soft);
  color: var(--text);

  border: 1px solid var(--border);
  border-radius: 10px;

  font-size: 15px;
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: var(--accent);
}

.field input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.field-help {
  color: var(--muted);
  font-size: 12px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;
  margin-top: 10px;
}

.form-actions button {
  min-height: 44px;

  padding: 0 20px;

  border: 0;
  border-radius: 10px;

  background: var(--accent);
  color: #041014;

  font-weight: 800;

  cursor: pointer;
}

.profile-status {
  margin: 0;

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

.account-list {
  display: flex;
  flex-direction: column;
}

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
  padding: 17px 0;

  border-bottom: 1px solid var(--border);
}

.account-row:last-child {
  border-bottom: 0;
}

.account-row span {
  color: var(--muted);
}

.account-row strong {
  text-align: right;
}

.usage-card {
  grid-column: 1 / -1;
}

.usage-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;
}

.usage-percent {
  padding: 7px 11px;

  border-radius: 999px;

  background: var(--accent-soft);
  color: var(--accent);

  font-size: 13px;
  font-weight: 800;
}

.usage-progress {
  height: 13px;

  margin: 26px 0;

  overflow: hidden;

  background: var(--panel-soft);

  border: 1px solid var(--border);
  border-radius: 999px;
}

.usage-progress-bar {
  width: 0%;
  height: 100%;

  background: var(--accent);

  border-radius: inherit;

  transition: width 0.35s ease;
}

.usage-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 16px;
}

.usage-stat {
  padding: 18px;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: var(--panel-soft);
}

.usage-stat span {
  display: block;

  margin-bottom: 7px;

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

.usage-stat strong {
  font-size: 25px;
}

.reset-row {
  display: flex;
  justify-content: space-between;

  gap: 20px;

  margin-top: 22px;
  padding-top: 20px;

  border-top: 1px solid var(--border);
}

.reset-row span {
  color: var(--muted);
}

@media (max-width: 800px) {
  .site-header {
    padding: 12px 18px;
  }

  .brand-logo {
    width: 145px;
  }

  .profile-page {
    width: min(100% - 28px, 1180px);
    padding-top: 35px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .usage-card {
    grid-column: auto;
  }

  .usage-stats {
    grid-template-columns: 1fr;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
  }
}

.delete-account-btn {
  background: #7f1d1d;
  color: #ffffff;
  border: 1px solid #9f454d;
}

.delete-account-btn:hover {
  background: #991b1b;
  border-color: #b64b55;
}