:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #63726c;
  --line: #dfe7e1;
  --surface: #ffffff;
  --soft: #f4f7f3;
  --brand: #14745f;
  --brand-dark: #0e4f43;
  --warn: #8a5b00;
}

* {
  box-sizing: border-box;
}

body.account-body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.account-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.account-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.account-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.account-brand img {
  width: 34px;
  height: 34px;
}

.account-brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}
.account-brand-mark::before {
  content: "";
  position: absolute;
  inset: 11%;
  background: #020304;
  clip-path: polygon(25% 4%, 75% 4%, 98% 50%, 75% 96%, 25% 96%, 2% 50%);
}
.account-brand-mark img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.account-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-link,
.ghost-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.account-link:hover,
.ghost-button:hover {
  color: var(--brand);
}

.account-panel {
  width: min(460px, 100%);
  margin: 56px auto;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(23, 33, 29, .08);
}

.account-panel h1,
.dashboard-head h1 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.1;
}

.account-panel p,
.dashboard-head p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.55;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.field label,
.check-field {
  color: #33413b;
  font-size: 14px;
  font-weight: 700;
}

.field input {
  width: 100%;
  height: 46px;
  border: 1px solid #cbd8d1;
  border-radius: 7px;
  padding: 0 13px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

.field input:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(20, 116, 95, .14);
}

.check-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0 18px;
  line-height: 1.45;
}

.check-field input {
  margin-top: 3px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  width: 100%;
  background: var(--brand);
  color: #fff;
}

.button-primary:hover {
  background: var(--brand-dark);
}

.button-secondary {
  background: #e7efe9;
  color: var(--brand-dark);
}

.button-secondary.full-width {
  width: 100%;
  margin-bottom: 10px;
}

.form-footer {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.form-footer a {
  color: var(--brand);
  font-weight: 800;
}

.errors {
  padding: 12px 14px;
  margin-bottom: 18px;
  color: #7d231c;
  background: #fff0ed;
  border: 1px solid #ffd1c9;
  border-radius: 7px;
  font-size: 14px;
}

.notice {
  padding: 12px 14px;
  margin-bottom: 18px;
  color: var(--brand-dark);
  background: #e2f4ec;
  border: 1px solid #bddfd2;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.errors ul {
  margin: 0;
  padding-left: 18px;
}

.dashboard {
  padding: 32px 0 64px;
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 24px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
}

.status-card,
.side-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.status-pill {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #dff2e9;
  font-size: 13px;
  font-weight: 800;
}

.status-pill.expired {
  color: var(--warn);
  background: #fff4cf;
}

.status-card h2,
.side-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.status-card p,
.side-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0;
}

.metric {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.notice {
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1px solid #bfe7d7;
  border-radius: 7px;
  background: #eefaf4;
  color: #174d3f;
}

.beta-promise {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid #c9e8dc;
  border-radius: 12px;
  background: #eff9f5;
}

.beta-promise p {
  margin: 0;
}

.beta-promise a {
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.feedback-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.feedback-list span {
  position: relative;
  padding: 12px 12px 12px 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #33413b;
  font-size: 14px;
}

.feedback-list span::before {
  position: absolute;
  left: 14px;
  color: var(--brand);
  content: "✓";
  font-weight: 900;
}

@media (max-width: 760px) {
  .account-shell {
    width: min(100% - 20px, 1120px);
  }

  .account-topbar,
  .dashboard-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-grid,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .account-panel {
    margin: 24px auto;
    padding: 22px;
  }
}

/* KLENTRA account surfaces — approved steel material. */
:root {
  --ink: #111a22;
  --muted: #5d6b76;
  --line: #9eafbc;
  --surface: #eef3f7;
  --soft: #d5dde4;
  --brand: #00bfdc;
  --brand-dark: #07343d;
  --warn: #8a5b00;
}

body.account-body {
  background-color: #d5dde4;
  background-image:
    radial-gradient(circle at 85% -10%, rgba(0, 207, 233, .14), transparent 32%),
    linear-gradient(132deg, rgba(255,255,255,.64) 0 17%, transparent 17.4% 39%, rgba(91,111,126,.18) 39.2%, transparent 39.7%),
    repeating-linear-gradient(112deg, transparent 0 15px, rgba(32,48,60,.018) 16px, transparent 17px 31px);
  color: var(--ink);
  font-family: Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
}

.account-topbar { padding: 18px 0; }
.account-brand {
  gap: 11px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.account-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 7px rgba(0, 207, 233, .28));
}
.account-panel,
.status-card,
.side-card {
  border: 1px solid #9eafbc;
  border-radius: 18px;
  background: linear-gradient(145deg, #fbfdff 0%, #edf2f6 50%, #dbe3e9 100%);
  box-shadow: 0 18px 48px rgba(25, 41, 53, .15), inset 0 1px rgba(255,255,255,.94);
}
.account-panel { margin-top: 42px; }
.account-panel h1 { letter-spacing: -.035em; }
.field label,
.check-field { color: #3d4b56; }
.field input {
  height: 47px;
  border-color: #9eafbc;
  border-radius: 12px;
  background: linear-gradient(145deg, #d7e0e7, #f4f7f9);
  box-shadow: inset 0 2px 5px rgba(23,38,50,.08), inset 0 1px rgba(255,255,255,.72);
}
.field input:focus {
  border-color: #00bfdc;
  outline: 3px solid rgba(0, 191, 220, .15);
}
.check-field input {
  accent-color: #00bfdc;
}
.button-primary {
  border: 1px solid #78f1ff;
  border-radius: 12px;
  background: linear-gradient(180deg, #87f5ff 0%, #12d4eb 50%, #00b7d4 100%);
  color: #031d23;
  box-shadow: 0 9px 24px rgba(0, 191, 220, .24), inset 0 1px #eaffff;
}
.button-primary:hover { background: linear-gradient(180deg, #9af8ff, #18d9ef 50%, #00bedb); }
.button-secondary {
  border: 1px solid #9eafbc;
  border-radius: 11px;
  background: linear-gradient(180deg, #f9fbfd, #e4ebf0);
  color: #18252e;
  box-shadow: 0 5px 14px rgba(25,41,53,.1), inset 0 1px #fff;
}
.form-footer a,
.account-link:hover,
.ghost-button:hover { color: #007f96; }

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #edf3f6;
    --muted: #9ba9b2;
    --line: #40515d;
    --surface: #0c1115;
    --soft: #050709;
    --brand: #00d8f4;
    --brand-dark: #8af5ff;
  }
  body.account-body {
    background-color: #050709;
    background-image:
      radial-gradient(circle at 85% -10%, rgba(0,216,244,.08), transparent 31%),
      linear-gradient(132deg, transparent 0 39%, rgba(255,255,255,.026) 39.2%, transparent 39.8%),
      repeating-linear-gradient(112deg, transparent 0 16px, rgba(255,255,255,.009) 17px, transparent 18px 33px);
  }
  .account-panel,
  .status-card,
  .side-card {
    border-color: #40515d;
    background: linear-gradient(145deg, #171e23 0%, #0d1216 52%, #080b0e 100%);
    box-shadow: 0 20px 52px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.07);
  }
  .field label,
  .check-field { color: #b9c4cb; }
  .field input {
    color: var(--ink);
    border-color: #40515d;
    background: linear-gradient(145deg, #080c0f, #141b20);
    box-shadow: inset 0 2px 5px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.04);
  }
  .button-secondary { color: var(--ink); border-color: #40515d; background: linear-gradient(180deg, #1a2329, #0d1317); box-shadow: 0 6px 16px rgba(0,0,0,.32), inset 0 1px rgba(255,255,255,.06); }
  .account-link,
  .ghost-button { color: var(--muted); }
}

@media (max-width: 760px) {
  .account-topbar { align-items: center; flex-direction: row; }
  .account-nav .account-link:not(:last-child) { display: none; }
  .account-panel { margin: 18px auto; padding: 21px; }
}

/* Match the approved KLENTRA material references on account screens. */
body.account-body {
  background-color: #d7dfe6;
  background-image:
    linear-gradient(rgba(239, 244, 248, .30), rgba(207, 217, 225, .46)),
    url("/assets/textures/klentra-steel-light.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

@media (prefers-color-scheme: dark) {
  body.account-body {
    background-color: #050709;
    background-image:
      linear-gradient(rgba(2, 5, 7, .56), rgba(2, 5, 7, .68)),
      url("/assets/textures/klentra-flint-dark.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
  }
}

.account-panel,
.status-card,
.side-card,
.button-primary,
.button-secondary {
  --account-cut: 14px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--account-cut)), calc(100% - var(--account-cut)) 100%, 0 100%);
}

.button-primary {
  border-color: #b8fbff;
  background: linear-gradient(135deg, #c9fdff 0%, #35ecf8 30%, #00c6e3 64%, #00aeca 82%, #79f6ff 100%);
  box-shadow: 0 0 16px rgba(0,216,244,.45), 0 9px 24px rgba(0,174,202,.26), inset 0 1px #f1ffff;
}

.button-secondary {
  border: 1px solid #96a7b3;
  background: linear-gradient(145deg, #ffffff 0%, #b8c5ce 43%, #eef3f6 70%, #99a8b3 100%);
  box-shadow: inset 0 1px #fff, 0 6px 15px rgba(29,45,56,.15);
}
