:root {
  --account-accent: #347f7a;
  --account-accent-soft: rgba(52, 127, 122, .1);
  --account-gold: #9c7432;
  --account-gold-soft: rgba(156, 116, 50, .1);
  --account-panel: rgba(255, 255, 255, .84);
  --account-line: rgba(41, 63, 67, .14);
}
:root[data-theme="dark"] {
  --account-accent: #7bc2bb;
  --account-accent-soft: rgba(123, 194, 187, .11);
  --account-gold: #d6ad67;
  --account-gold-soft: rgba(214, 173, 103, .12);
  --account-panel: rgba(16, 29, 37, .88);
  --account-line: rgba(226, 232, 225, .14);
}

.account-shell { width: min(100%, 430px); padding-inline: 12px; }
.account-hero {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 13px;
  overflow: hidden;
  min-height: 188px;
  margin-top: 10px;
  padding: 22px 19px 64px;
  border: 1px solid var(--account-line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 20%, var(--account-gold-soft), transparent 28%),
    radial-gradient(circle at 10% 100%, var(--account-accent-soft), transparent 34%),
    var(--account-panel);
  box-shadow: 0 16px 38px rgba(38, 57, 58, .12);
}
.account-hero::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -92px;
  width: 190px;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--account-gold) 25%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 27px var(--account-accent-soft), 0 0 0 54px var(--account-gold-soft);
}
.account-avatar {
  position: relative;
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--account-gold) 45%, transparent);
  border-radius: 50%;
  color: var(--account-gold);
  background: var(--arc-surface);
  box-shadow: 0 0 0 7px var(--account-gold-soft);
  font: 400 27px/1 var(--arc-display-font);
}
.account-avatar i { position: absolute; inset: 7px; border: 1px solid color-mix(in srgb, var(--account-accent) 35%, transparent); border-radius: inherit; }
.account-hero-copy { min-width: 0; padding-top: 4px; }
.account-hero-copy p { margin: 0 0 7px; color: var(--account-gold); font-size: 9px; font-weight: 740; letter-spacing: .08em; text-transform: uppercase; }
.account-hero-copy h1 { margin: 0; font-size: 27px; line-height: 1.06; font-weight: 690; letter-spacing: -.038em; }
.account-hero-copy > span { display: block; margin-top: 8px; color: var(--arc-muted); font-size: 10px; line-height: 1.4; }
.account-access {
  position: absolute;
  left: 19px;
  right: 19px;
  bottom: 16px;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--account-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--arc-surface) 80%, transparent);
  backdrop-filter: blur(12px);
}
.account-access > span { color: var(--account-gold); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.account-access strong { font-size: 11px; }
.account-access small { color: var(--arc-muted); font-size: 8px; }

.account-profile,
.account-section { margin-top: 14px; }
.account-profile {
  padding: 16px;
  border: 1px solid var(--account-line);
  border-radius: 17px;
  background: var(--account-panel);
}
.account-section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.account-section-head p { margin: 0 0 5px; color: var(--account-gold); font-size: 8px; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.account-section-head h2 { margin: 0; font-size: 18px; line-height: 1.16; font-weight: 680; letter-spacing: -.026em; }
.account-state { display: inline-flex; min-height: 26px; align-items: center; padding: 4px 8px; border: 1px solid var(--account-line); border-radius: 999px; color: var(--account-accent); background: var(--account-accent-soft); font-size: 8px; }
.account-state[data-complete="true"]::before { content: "✓"; margin-right: 4px; }

.account-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.account-field {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--account-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--arc-bg-soft) 62%, transparent);
}
.account-field-wide { grid-column: 1 / -1; }
.account-field span,
.account-field strong { display: block; }
.account-field span { color: var(--arc-muted); font-size: 8px; }
.account-field strong { margin-top: 5px; font-size: 11px; font-weight: 660; overflow-wrap: anywhere; }

.account-edit {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 58px;
  margin-top: 9px;
  padding: 8px 11px;
  border: 1px solid color-mix(in srgb, var(--account-accent) 34%, var(--account-line));
  border-radius: 13px;
  color: var(--arc-ink);
  background: var(--account-accent-soft);
  text-align: left;
  cursor: pointer;
}
.account-edit > span:first-child { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--account-accent); background: var(--arc-surface); font-size: 17px; }
.account-edit strong,
.account-edit small { display: block; }
.account-edit strong { font-size: 10px; }
.account-edit small { margin-top: 3px; color: var(--arc-muted); font-size: 7.5px; }
.account-status { margin-top: 9px; padding: 10px 11px; border-radius: 11px; color: var(--arc-muted); background: var(--arc-bg-soft); font-size: 8px; line-height: 1.4; }
.account-status[data-tone="success"] { color: var(--account-accent); background: var(--account-accent-soft); }
.account-status[data-tone="error"] { color: var(--arc-danger); background: var(--arc-berry-soft); }

.account-module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.account-module {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  min-height: 108px;
  padding: 12px;
  border: 1px solid var(--account-line);
  border-radius: 15px;
  color: var(--arc-ink);
  background: var(--account-panel);
  text-decoration: none;
}
.account-module::before,
.account-module::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.account-module::before {
  right: -30px;
  top: -34px;
  width: 116px;
  height: 116px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .14;
  box-shadow: 0 0 0 15px color-mix(in srgb, currentColor 7%, transparent);
}
.account-module::after {
  right: 19px;
  bottom: 14px;
  width: 42px;
  height: 1px;
  background: currentColor;
  opacity: .24;
  transform: rotate(-23deg);
  box-shadow: 10px -8px 0 -0.3px currentColor, -8px -5px 0 -0.3px currentColor;
}
.account-module > span,
.account-module strong,
.account-module small { position: relative; z-index: 1; }
.account-module > span { grid-row: 1 / span 2; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); border-radius: 50%; font-size: 18px; }
.account-module strong { align-self: end; font-size: 11px; }
.account-module small { align-self: start; color: var(--arc-muted); font-size: 7.5px; }
.account-module-psychology {
  background:
    radial-gradient(circle at 92% 10%, rgba(149, 204, 223, .27), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(225, 241, 244, .72));
}
.account-module-astrology {
  background:
    radial-gradient(circle at 90% 6%, rgba(190, 171, 221, .3), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(236, 229, 244, .74));
}
.account-module-psychology > span { color: var(--account-accent); background: var(--account-accent-soft); }
.account-module-astrology > span { color: var(--account-gold); background: var(--account-gold-soft); }
:root[data-theme="dark"] .account-module-psychology {
  background:
    radial-gradient(circle at 92% 10%, rgba(90, 158, 180, .2), transparent 43%),
    linear-gradient(145deg, rgba(14, 36, 50, .96), rgba(10, 29, 42, .92));
}
:root[data-theme="dark"] .account-module-astrology {
  background:
    radial-gradient(circle at 92% 9%, rgba(123, 99, 161, .24), transparent 43%),
    linear-gradient(145deg, rgba(27, 34, 56, .96), rgba(14, 27, 43, .92));
}

.account-actions { display: grid; gap: 7px; }
.account-actions a {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 64px;
  padding: 9px 12px;
  border: 1px solid var(--account-line);
  border-radius: 14px;
  color: var(--arc-ink);
  background: var(--account-panel);
  text-decoration: none;
}
.account-actions a > span:first-child { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--account-line); border-radius: 50%; color: var(--account-gold); background: var(--account-gold-soft); }
.account-actions strong,
.account-actions small { display: block; }
.account-actions strong { font-size: 11px; }
.account-actions small { margin-top: 3px; color: var(--arc-muted); font-size: 8px; }
.account-note { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--account-line); border-radius: 14px; color: var(--arc-muted); background: var(--account-accent-soft); font-size: 9px; line-height: 1.45; }

.account-bottom-nav {
  position: sticky;
  bottom: max(6px, env(safe-area-inset-bottom));
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin-top: 12px;
  padding: 6px;
  border: 1px solid var(--account-line);
  border-radius: 17px;
  background: color-mix(in srgb, var(--arc-surface) 90%, transparent);
  box-shadow: 0 10px 30px rgba(15, 24, 44, .18);
  backdrop-filter: blur(18px);
}
.account-bottom-nav a { display: grid; min-height: 50px; place-items: center; align-content: center; gap: 2px; border-radius: 12px; color: var(--arc-muted); text-decoration: none; }
.account-bottom-nav a[aria-current="page"] { color: var(--account-accent); background: var(--account-accent-soft); }
.account-bottom-nav a > span { font-size: 18px; line-height: 1; }
.account-bottom-nav a > strong { font-size: 8px; font-weight: 600; }

@media (max-width: 360px) {
  .account-hero { grid-template-columns: 58px 1fr; padding-inline: 15px; }
  .account-avatar { width: 58px; height: 58px; }
  .account-access { left: 15px; right: 15px; }
}
