/* Pages */
.page-hero {
  padding: 76px 0 42px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: end;
}

.page-title {
  max-width: 860px;
  margin-top: 18px;
  font-size: clamp(48px, 7.2vw, 92px);
  line-height: .9;
  letter-spacing: -.085em;
  font-weight: 780;
}

.page-lead {
  max-width: 680px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.55;
  letter-spacing: -.02em;
}

.page-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 250, 241, .44);
}

.form-shell {
  width: min(520px, calc(100% - 32px));
  margin: 74px auto 90px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 250, 241, .66);
  box-shadow: 0 32px 90px rgba(54, 45, 33, .1);
}

.form-shell h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 6vw, 58px);
}

.form-shell p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 241, .82);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.input:focus {
  border-color: var(--line-strong);
}

.form-note {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 16px;
}

.form-link {
  color: var(--ink);
  font-weight: 720;
}

.dashboard {
  padding: 42px 0 88px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 16px;
  align-items: start;
}

.dashboard-sidebar,
.dashboard-main,
.status-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 250, 241, .44);
}

.dashboard-sidebar {
  padding: 24px;
  position: sticky;
  top: 108px;
}

.dashboard-main {
  padding: 24px;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--cream);
  font-weight: 800;
}

.user-badge strong {
  display: block;
  letter-spacing: -.035em;
}

.user-badge span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.side-links {
  display: grid;
  gap: 8px;
}

.side-links a {
  padding: 13px 14px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 650;
}

.side-links a.active,
.side-links a:hover {
  background: rgba(21, 21, 21, .06);
  color: var(--ink);
}

.dashboard-title {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -.066em;
  margin-bottom: 18px;
}

.status-panel {
  padding: 22px;
  margin-bottom: 16px;
}

.status-panel.dark {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.status-panel h3 {
  font-size: 24px;
  letter-spacing: -.045em;
  margin-bottom: 12px;
}

.status-panel p {
  color: var(--muted);
  line-height: 1.58;
}

.status-panel.dark p {
  color: rgba(248, 242, 231, .68);
}

.copy-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.copy-row .input {
  flex: 1;
}

.table-list {
  display: grid;
  gap: 10px;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 250, 241, .38);
}

.table-row span {
  color: var(--soft);
  font-size: 13px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 17px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--ink);
}

.mobile-menu {
  display: none;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(248, 242, 231, .92);
  backdrop-filter: blur(20px);
}

.mobile-menu a {
  display: block;
  padding: 13px 14px;
  color: var(--muted);
  font-weight: 650;
}

body.mobile-nav-open .mobile-menu {
  display: block;
}

.form-message {
  display: none;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 241, .62);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.form-message.is-visible {
  display: block;
}

.form-message.is-error {
  border-color: rgba(160, 48, 48, .28);
  background: rgba(160, 48, 48, .08);
  color: #8a2f2f;
}

.form-message.is-success {
  border-color: rgba(70, 130, 88, .28);
  background: rgba(70, 130, 88, .08);
  color: #356c47;
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.account-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 241, .42);
}

.account-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--soft);
}

.account-card span {
  display: block;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 760;
}

.admin-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.admin-actions-grid .button {
  width: 100%;
  min-height: 52px;
}

.admin-actions-grid .account-card {
  min-height: 124px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.admin-actions-grid .admin-back-card {
  justify-content: center;
}

.admin-actions-grid .admin-back-card .button {
  min-height: 72px;
}

.admin-only {
  display: none;
}

body.user-is-admin .admin-only {
  display: inline-flex;
}

.auth-only {
  display: none;
}

body.user-authenticated .auth-only {
  display: inline-flex;
}

body.user-authenticated .guest-only {
  display: none;
}

@media (max-width: 640px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
}

.account-page {
  width: min(1180px, calc(100% - 56px));
  margin: 48px auto 84px;
}

.account-page-label {
  margin-bottom: 10px;
  color: rgba(26, 26, 26, .45);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.account-page-title {
  margin: 0 0 32px;
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 950;
  line-height: .92;
  letter-spacing: -.065em;
}

.account-status-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  padding: 11px 20px;
  border: 1px solid rgba(0, 0, 0, .09);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(55, 45, 30, .08);
  font-size: 14px;
  font-weight: 650;
}

.account-status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .18);
}

.account-status-pill b {
  font-size: 14px;
  font-weight: 750;
}

.account-main-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.account-subscription-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  padding: 34px 38px;
  border: 1px solid #1a1a1a;
  border-radius: 30px;
  background: #1a1a1a;
  color: #fff;
  box-shadow: 0 28px 80px rgba(20, 18, 14, .18);
}

.account-subscription-card::before {
  content: "";
  position: absolute;
  top: -58px;
  right: -26px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(200, 169, 110, .16);
}

.account-subscription-card::after {
  content: "";
  position: absolute;
  top: 92px;
  right: 98px;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: rgba(200, 169, 110, .1);
}

.account-balance-card,
.account-info-card {
  padding: 30px 32px;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(55, 45, 30, .08);
}

.account-balance-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #f7f3ec;
}

.account-info-card {
  min-height: 156px;
}

.account-small-label {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  color: rgba(26, 26, 26, .45);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.account-subscription-card .account-small-label {
  color: rgba(255, 255, 255, .4);
}

.account-big-value {
  position: relative;
  z-index: 1;
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 950;
  line-height: .92;
  letter-spacing: -.06em;
}

.account-balance-value {
  font-size: clamp(34px, 3vw, 44px);
}

.account-medium-value {
  overflow: hidden;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 950;
  line-height: .98;
  letter-spacing: -.055em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-user-value {
  font-size: clamp(21px, 2.2vw, 28px);
  letter-spacing: -.04em;
}

.account-muted-text {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  color: rgba(26, 26, 26, .42);
  font-size: 14px;
  line-height: 1.4;
}

.account-subscription-card .account-muted-text {
  color: rgba(255, 255, 255, .4);
}

.account-progress-line {
  position: relative;
  z-index: 1;
  height: 7px;
  margin: 34px 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}

.account-progress-line i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c8a96e, #e8c98e);
  transition: width .2s ease;
}

.account-progress-labels {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, .34);
  font-size: 12px;
  font-weight: 700;
}

.account-round-button {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 22px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #1a1a1a;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.account-info-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.account-keys-title {
  margin: 34px 0 16px;
  color: rgba(26, 26, 26, .45);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.account-keys-list {
  display: grid;
  gap: 14px;
}

.account-proxy-block {
  margin: 34px 0 34px;
}

.account-proxy-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.account-proxy-title {
  margin: 0 0 8px;
}

.account-proxy-subtitle {
  margin: 0;
  color: rgba(26, 26, 26, .42);
  font-size: 15px;
  line-height: 1.45;
}

.account-proxy-buy-button {
  min-height: 46px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  background: #1a1a1a;
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform .18s ease,
    opacity .18s ease;
}

.account-proxy-buy-button:hover {
  opacity: .88;
  transform: translateY(-1px);
}

.account-proxy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 18px;
}

.account-proxy-empty-card,
.account-proxy-preview-card {
  min-height: 178px;
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(55, 45, 30, .08);
}

.account-proxy-empty-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background:
    radial-gradient(circle at 92% 8%, rgba(200, 169, 110, .16), transparent 34%),
    #fff;
}

.account-proxy-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: #1a1a1a;
  color: #fff;
  box-shadow: 0 18px 42px rgba(20, 18, 14, .16);
}

.account-proxy-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-proxy-empty-content {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.account-proxy-empty-content strong {
  color: #1a1a1a;
  font-size: 25px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.055em;
}

.account-proxy-empty-content span {
  max-width: 620px;
  color: rgba(26, 26, 26, .48);
  font-size: 15px;
  line-height: 1.55;
}

.account-proxy-preview-card {
  background: #f7f3ec;
}

.account-proxy-preview-list {
  display: grid;
  gap: 10px;
}

.account-proxy-preview-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.account-proxy-preview-list div:last-child {
  border-bottom: 0;
}

.account-proxy-preview-list span {
  color: rgba(26, 26, 26, .42);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
}

.account-proxy-preview-list strong {
  overflow: hidden;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 850;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-key {
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .92)),
    #fff;
  box-shadow: 0 22px 70px rgba(55, 45, 30, .08);
  transform: translateY(0);
  transition:
    border-color .22s ease,
    box-shadow .22s ease,
    transform .22s ease,
    opacity .22s ease,
    max-height .26s ease,
    margin .26s ease;
  animation: accountKeyIn .34s ease both;
}

.account-key:hover {
  border-color: rgba(0, 0, 0, .14);
  box-shadow: 0 28px 80px rgba(55, 45, 30, .12);
  transform: translateY(-2px);
}

.account-key.is-removing {
  max-height: 0;
  margin: 0;
  opacity: 0;
  transform: translateY(-8px) scale(.985);
  pointer-events: none;
}

.account-key-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .22s ease;
}

.account-key-head:hover {
  background: #faf8f5;
}

.account-key-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.account-key-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .95), transparent 34%),
    #f0ebe0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}

.account-key-icon svg {
  width: 25px;
  height: 25px;
  fill: #1a1a1a;
}

.account-key-icon.is-dead {
  background: #f5f5f5;
}

.account-key-icon.is-dead svg {
  fill: rgba(26, 26, 26, .28);
}

.account-key-left strong {
  display: block;
  overflow: hidden;
  margin-bottom: 5px;
  color: #1a1a1a;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-key-left strong.is-dead {
  color: rgba(26, 26, 26, .3);
}

.account-key-left small {
  display: block;
  color: rgba(26, 26, 26, .42);
  font-size: 14px;
}

.account-key-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-key-right em {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: .04em;
}

.account-key-right em.is-active {
  background: rgba(34, 197, 94, .1);
  color: #16a34a;
}

.account-key-right em.is-off {
  background: #f3f3f3;
  color: rgba(26, 26, 26, .35);
}

.account-key-chevron {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(26, 26, 26, .045);
  color: rgba(26, 26, 26, .45);
  font-style: normal;
  transition:
    transform .28s cubic-bezier(.2, .8, .2, 1),
    background .22s ease,
    color .22s ease;
}

.account-key-chevron svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.account-key-head:hover .account-key-chevron {
  background: #1a1a1a;
  color: #fff;
}

.account-key-chevron.is-open {
  transform: rotate(180deg);
}

.account-key-body {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0 28px;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    grid-template-rows .34s cubic-bezier(.2, .8, .2, 1),
    padding .34s cubic-bezier(.2, .8, .2, 1),
    opacity .22s ease,
    transform .34s cubic-bezier(.2, .8, .2, 1);
}

.account-key-body.is-open {
  grid-template-rows: 1fr;
  padding: 0 28px 28px;
  opacity: 1;
  transform: translateY(0);
}

.account-key-body-inner {
  min-height: 0;
  overflow: hidden;
}

.account-key-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 15px 18px;
  border: 1px solid rgba(0, 0, 0, .04);
  border-radius: 16px;
  background: #f0ebe0;
}

.account-key-link span {
  flex: 1;
  overflow: hidden;
  color: #777;
  font-family: "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-key-link button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 11px;
  background: #1a1a1a;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform .18s ease,
    opacity .18s ease;
}

.account-key-link button:hover {
  opacity: .86;
  transform: translateY(-1px);
}

.account-key-qr {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.account-key-qr-box {
  width: 116px;
  height: 116px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e8e2d8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(55, 45, 30, .08);
}

.account-key-qr-box img {
  width: 116px;
  height: 116px;
  padding: 9px;
}

.account-key-qr-text {
  color: #777;
  font-size: 15px;
  line-height: 1.65;
}

.account-key-qr-text b {
  color: #444;
  font-size: 16px;
  font-weight: 850;
}

.account-key-qr-text small {
  color: rgba(26, 26, 26, .4);
  font-size: 12px;
}

.account-key-delete-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.account-key-delete-row button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 13px;
  background: #fff;
  color: rgba(26, 26, 26, .62);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition:
    border-color .18s ease,
    color .18s ease,
    transform .18s ease,
    background .18s ease;
}

.account-key-delete-row button:hover {
  border-color: rgba(220, 38, 38, .28);
  background: rgba(220, 38, 38, .045);
  color: #dc2626;
  transform: translateY(-1px);
}

.account-key-delete-row .account-key-reissue-button {
  border-color: #151515;
  background: #151515;
  color: #fff;
}

.account-key-delete-row .account-key-reissue-button:hover {
  border-color: #000;
  background: #000;
  color: #fff;
}

@keyframes accountKeyIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.account-empty-card {
  display: grid;
  gap: 14px;
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(55, 45, 30, .08);
}

.account-empty-card strong {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.055em;
}

.account-empty-card span {
  max-width: 660px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.account-empty-card .button {
  width: fit-content;
  min-height: 48px;
  padding: 0 22px;
  font-size: 15px;
}

.account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  margin-top: 30px;
}

.account-action-primary,
.account-action-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 26px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 850;
}

.account-action-primary {
  background: #1a1a1a;
  color: #fff;
}

.account-action-secondary {
  border: 1.5px solid rgba(0, 0, 0, .1);
  background: #fff;
  color: #1a1a1a;
}

@media (max-width: 900px) {
  .account-page {
    width: min(100% - 28px, 1180px);
    margin-top: 28px;
  }

  .account-proxy-head {
    align-items: stretch;
    flex-direction: column;
  }

  .account-proxy-buy-button {
    width: fit-content;
  }

  .account-proxy-grid {
    grid-template-columns: 1fr;
  }

  .account-page-title {
    font-size: 40px;
  }

  .account-main-row,
  .account-info-row,
  .account-actions {
    grid-template-columns: 1fr;
  }

  .account-subscription-card,
  .account-balance-card,
  .account-info-card {
    min-height: auto;
    padding: 24px;
    border-radius: 24px;
  }

  .account-big-value {
    font-size: 42px;
  }

  .account-balance-value {
    font-size: 34px;
  }

  .account-medium-value {
    font-size: 28px;
  }

  .account-key-qr {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .account-key-link {
    align-items: stretch;
    flex-direction: column;
  }

  .account-key-link span {
    white-space: normal;
    word-break: break-all;
  }

  .account-key-link button {
    width: 100%;
    padding: 10px;
  }
}

@media (max-width: 440px) {
  .account-page {
    width: min(100% - 20px, 1180px);
  }

  .account-page-title {
    font-size: 34px;
  }

  .account-status-pill {
    align-items: flex-start;
    font-size: 12px;
  }

  .account-status-pill b {
    font-size: 12px;
  }

  .account-key-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-key-left {
    align-items: flex-start;
  }

  .account-key-right {
    width: 100%;
    justify-content: space-between;
  }

  .account-key-icon {
    width: 48px;
    height: 48px;
  }

  .account-progress-labels {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* ── Account page polish ── */

.account-round-button {
  transition: transform .18s ease, opacity .18s ease;
  text-decoration: none;
  letter-spacing: -.015em;
}
.account-round-button:hover {
  transform: translateY(-1px);
  opacity: .88;
}

.account-action-primary,
.account-action-secondary {
  letter-spacing: -.02em;
  transition: transform .18s ease, opacity .18s ease, background .18s ease;
}
.account-action-primary:hover  { transform: translateY(-1px); opacity: .88; }
.account-action-secondary:hover { transform: translateY(-1px); background: var(--cream); }

.account-key {
  transition: box-shadow .2s ease;
}
.account-key:hover {
  box-shadow: 0 28px 80px rgba(55, 45, 30, .12);
}

.account-key-link button {
  transition: opacity .15s ease;
  letter-spacing: -.01em;
}
.account-key-link button:hover { opacity: .8; }

.account-key-delete-row button {
  transition: background .15s ease, color .15s ease;
}
.account-key-delete-row button:hover {
  background: rgba(21,21,21,.05);
  color: var(--ink);
}

.account-status-dot {
  transition: background .3s ease, box-shadow .3s ease;
}
.account-status-dot.is-off {
  background: var(--soft);
  box-shadow: none;
}

/* Subscription card — keep content layout */
.account-subscription-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Balance card muted text */
.account-balance-card .account-muted-text {
  color: rgba(21,21,21,.38);
}

@media (max-width: 900px) {
  .account-main-row,
  .account-info-row,
  .account-actions {
    grid-template-columns: 1fr;
  }
  .account-subscription-card,
  .account-balance-card,
  .account-info-card {
    min-height: auto;
    padding: 24px;
    border-radius: 24px;
  }
  .account-big-value   { font-size: 42px; }
  .account-balance-value { font-size: 34px; }
  .account-medium-value  { font-size: 28px; }
  .account-key-qr { align-items: center; flex-direction: column; text-align: center; }
  .account-key-link { align-items: stretch; flex-direction: column; }
  .account-key-link span { white-space: normal; word-break: break-all; }
  .account-key-link button { width: 100%; padding: 12px; }
}

@media (max-width: 440px) {
  .account-page { width: min(100% - 20px, 1180px); }
  .account-page-title { font-size: 34px; }
  .account-status-pill { font-size: 12px; padding: 9px 16px; }
  .account-key-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .account-key-right { width: 100%; justify-content: space-between; }
  .account-key-icon { width: 48px; height: 48px; }
  .account-progress-labels { flex-wrap: wrap; gap: 4px; }
  .account-actions { grid-template-columns: 1fr; }
}

.account-round-button svg,
.account-action-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-round-button {
  gap: 9px;
  text-decoration: none;
}

.account-round-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.account-action-row {
  align-items: stretch;
}

.account-action-card {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.account-action-card::after {
  content: "";
  position: absolute;
  top: -84px;
  right: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(200, 169, 110, .11);
  pointer-events: none;
}

.account-action-icon {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: #1a1a1a;
  color: #fff;
  box-shadow: 0 16px 38px rgba(20, 18, 14, .14);
}

.account-action-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.7;
}

.account-action-card .account-small-label,
.account-action-card .account-medium-value,
.account-action-card .account-muted-text,
.account-action-form,
.account-action-button {
  position: relative;
  z-index: 1;
}

.account-action-value {
  font-size: clamp(23px, 2.3vw, 31px);
}

.account-action-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.account-action-form input {
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 999px;
  background: rgba(247, 243, 236, .72);
  color: #1a1a1a;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  outline: none;
}

.account-action-form input:focus {
  border-color: rgba(26, 26, 26, .26);
  background: #fff;
}

.account-action-form button,
.account-action-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #1a1a1a;
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease;
}

.account-action-form button:hover,
.account-action-button:hover {
  opacity: .88;
  transform: translateY(-1px);
}

.account-action-card .account-muted-text.is-error {
  color: #b42318;
}

@media (max-width: 720px) {
  .account-action-form {
    grid-template-columns: 1fr;
  }

  .account-action-form button,
  .account-action-button {
    width: 100%;
  }
}

/* account visual polish: compact top space, smaller buttons, premium svg cards */
.account-page {
  margin-top: 30px;
}

.account-page-label {
  margin-bottom: 8px;
}

.account-page-title {
  margin-bottom: 20px;
}

.account-status-pill {
  margin-bottom: 24px;
  padding: 9px 18px;
}

.account-action-card {
  min-height: 176px;
  gap: 12px;
}

.account-action-form {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.account-action-form input {
  height: 40px;
  padding: 0 15px;
  font-size: 13px;
}

.account-action-form button,
.account-action-button {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 850;
}

.account-action-card .account-action-button {
  width: fit-content;
  min-width: 190px;
  align-self: stretch;
}

.account-action-card .account-action-link {
  width: 100%;
  min-width: 0;
}

.account-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .18), transparent 34%),
    linear-gradient(145deg, #23211d 0%, #111 72%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 18px 40px rgba(20, 18, 14, .16);
}

.account-action-icon svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.75;
}

.account-action-card-promo .account-action-icon svg {
  stroke: url(#promo-card-gradient);
}

.account-action-card-trial .account-action-icon svg {
  stroke: url(#trial-key-gradient);
}

.account-action-card-support .account-action-icon svg {
  stroke: url(#support-panel-gradient);
}

.account-action-card::after {
  top: -96px;
  right: -76px;
  width: 198px;
  height: 198px;
  background:
    radial-gradient(circle at 38% 38%, rgba(255, 255, 255, .35), transparent 34%),
    rgba(200, 169, 110, .105);
}

@media (max-width: 1180px) {
  .account-page {
    margin-top: 24px;
  }

  .account-page-title {
    margin-bottom: 18px;
  }

  .account-status-pill {
    margin-bottom: 20px;
  }
}

@media (max-width: 720px) {
  .account-page {
    margin-top: 22px;
  }

  .account-page-title {
    margin-bottom: 18px;
  }

  .account-status-pill {
    margin-bottom: 20px;
  }

  .account-action-card {
    min-height: 0;
  }

  .account-action-form button,
  .account-action-button,
  .account-action-card .account-action-button {
    width: 100%;
    min-width: 0;
  }
}

/* account useful cards: lower height */
.account-action-card {
  min-height: 150px;
  padding-top: 22px;
  padding-bottom: 22px;
  gap: 8px;
}

.account-action-card .account-small-label {
  margin-bottom: 6px;
}

.account-action-value {
  font-size: clamp(21px, 2.05vw, 28px);
  line-height: .98;
}

.account-action-card .account-muted-text {
  margin-top: 0;
  line-height: 1.35;
  font-size: 13px;
}

.account-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 15px;
}

.account-action-icon svg {
  width: 23px;
  height: 23px;
}

.account-action-form input {
  height: 38px;
}

.account-action-form button,
.account-action-button {
  min-height: 38px;
  padding: 0 15px;
}

.account-action-card::after {
  top: -104px;
  right: -84px;
  width: 190px;
  height: 190px;
}

@media (max-width: 720px) {
  .account-action-card {
    min-height: 0;
    padding-top: 20px;
    padding-bottom: 20px;
  }
}


/* account balance top up modal */
.account-round-button {
  border: 0;
  cursor: pointer;
}

.account-balance-modal-panel {
  width: min(520px, 100%);
}

.account-balance-modal .modal-close {
  display: grid;
  place-items: center;
}

.account-balance-modal .modal-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.account-balance-form {
  display: grid;
  gap: 16px;
}

.account-balance-field {
  display: grid;
  gap: 9px;
}

.account-balance-field span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.account-balance-field input {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .55);
  color: var(--ink);
  padding: 0 18px;
  font: inherit;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -.04em;
  outline: none;
}

.account-balance-field input:focus {
  border-color: rgba(200, 169, 110, .9);
  box-shadow: 0 0 0 4px rgba(200, 169, 110, .16);
}

.account-balance-presets,
.account-balance-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-balance-presets button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  color: var(--ink);
  padding: 0 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.account-balance-presets button:hover {
  border-color: rgba(200, 169, 110, .72);
  background: rgba(200, 169, 110, .12);
}

.account-balance-methods .button {
  min-height: 44px;
}

@media (max-width: 560px) {
  .account-balance-methods .button {
    width: 100%;
  }
}

.account-action-card-announcements .account-action-icon svg {
  stroke: url(#announcements-panel-gradient);
}

.account-action-button:disabled,
.account-action-form button:disabled {
  cursor: wait;
  opacity: .72;
}


/* referral card */
.account-referral-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 26px;
  align-items: stretch;
  margin: 18px 0;
  padding: 28px;
  border-radius: 34px;
  border: 1px solid rgba(0, 0, 0, .09);
  background:
    radial-gradient(circle at 10% 12%, rgba(200, 169, 110, .2), transparent 28%),
    linear-gradient(135deg, #171511 0%, #242018 58%, #f7f3ec 58%, #fff 100%);
  box-shadow: 0 26px 80px rgba(55, 45, 30, .12);
}

.account-referral-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .08), transparent 45%, rgba(255, 255, 255, .45));
  pointer-events: none;
}

.account-referral-content,
.account-referral-panel {
  position: relative;
  z-index: 1;
}

.account-referral-kicker {
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.account-referral-content h2 {
  max-width: 560px;
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 54px);
  line-height: .94;
  font-weight: 950;
  letter-spacing: -.06em;
}

.account-referral-content p {
  max-width: 560px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .58);
  font-size: 15px;
  line-height: 1.55;
}

.account-referral-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .65);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 20px 55px rgba(40, 34, 24, .12);
}

.account-referral-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-referral-stats span {
  display: grid;
  gap: 5px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(247, 243, 236, .88);
  border: 1px solid rgba(0, 0, 0, .06);
}

.account-referral-stats b {
  color: #1a1a1a;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.045em;
}

.account-referral-stats small,
.account-referral-note {
  color: rgba(26, 26, 26, .48);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.account-referral-link-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
}

.account-referral-link-box span {
  min-width: 0;
  padding-left: 14px;
  overflow: hidden;
  color: rgba(26, 26, 26, .76);
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-referral-link-box button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #1a1a1a;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.account-referral-note b {
  color: #1a1a1a;
}

@media (max-width: 900px) {
  .account-referral-card {
    grid-template-columns: 1fr;
    background:
      radial-gradient(circle at 12% 8%, rgba(200, 169, 110, .22), transparent 30%),
      linear-gradient(145deg, #171511 0%, #242018 100%);
  }
}

@media (max-width: 560px) {
  .account-referral-card {
    padding: 20px;
    border-radius: 28px;
  }

  .account-referral-panel {
    padding: 14px;
    border-radius: 24px;
  }

  .account-referral-stats,
  .account-referral-link-box {
    grid-template-columns: 1fr;
  }

  .account-referral-link-box {
    border-radius: 22px;
  }

  .account-referral-link-box span {
    padding: 8px 10px 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .account-referral-link-box button {
    width: 100%;
  }
}
