.account-body {
  min-height: 100vh;
  background: #0b1223;
}

.account-page {
  width: min(100%, 1200px);
  margin: auto;
  padding: 40px clamp(15px, 3vw, 30px) 75px;
}

.account-page h1 {
  margin: 0 0 28px;
  font-size: clamp(29px, 4.8vw, 43px);
  line-height: 1.2;
  letter-spacing: -.04em;
}

.account-columns {
  display: grid;
  grid-template-columns: minmax(0, .58fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 3vw, 34px);
}

.account-card {
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid #2e405b;
  border-radius: 23px;
  background: #111a2b;
  box-shadow: 0 12px 30px #080e1980;
}

.account-page h2 {
  margin: 0 0 14px;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -.025em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.account-card fieldset {
  display: grid;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.account-card label {
  margin: 13px 0 5px;
  color: #e6edf9;
  font-weight: 650;
}

.account-card label small, .account-hint {
  color: #a9bad4;
  font-size: 12px;
  font-weight: 400;
}

.account-card input {
  width: 100%;
  min-width: 0;
  min-height: 45px;
  padding: 10px 13px;
  border: 1px solid #344663;
  border-radius: 13px;
  background: #0d1628;
  color: #f3f6ff;
}

.account-card input:focus {
  border-color: #79a5fd;
  outline: 3px solid #719cf42a;
}

.account-hint {
  margin: 6px 0 0;
  line-height: 1.55;
}

.account-card .button {
  width: 100%;
  min-width: 0;
  margin: 25px 0 0;
  white-space: normal;
  background: linear-gradient(115deg, #245de1, #4941d5);
}

.account-description, .account-switch {
  margin: 0;
  color: #b9c8e0;
  line-height: 1.55;
}

.account-switch { margin-top: 15px; }

.account-switch a, .account-history a {
  color: #83b9ff;
  font-weight: 700;
}

.account-switch a:hover, .account-history a:hover { text-decoration: underline; }

.account-error {
  margin: 0 0 7px;
  padding: 9px 12px;
  border: 1px solid #805368;
  border-radius: 10px;
  background: #452334;
  color: #ffdbe2;
}

.account-tabs {
  display: flex;
  flex-wrap: wrap;
  margin: 20px 0;
  border-bottom: 1px solid #2d3e58;
}

.account-tabs button {
  padding: 11px clamp(9px, 1.6vw, 17px);
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #bdcce2;
  font-size: 13px;
  font-weight: 650;
}

.account-tabs button:hover, .account-tabs button[aria-selected="true"] { color: #89baff; }
.account-tabs button[aria-selected="true"] { border-bottom-color: #6ea7fd; }

.account-history {
  overflow: hidden;
  border: 1px solid #30435f;
  border-radius: 20px;
  background: #0e182a;
}

.account-table-scroll { overflow-x: auto; }

.account-history table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.account-history th, .account-history td {
  padding: 12px 10px;
  border-bottom: 1px solid #293951;
  vertical-align: top;
}

.account-history th:first-child, .account-history td:first-child { padding-left: 15px; }
.account-history th:last-child, .account-history td:last-child { padding-right: 15px; }
.account-history th { color: #bfcfe6; font-weight: 700; }
.account-history td:first-child { min-width: 107px; overflow-wrap: anywhere; }
.account-history td:nth-child(2) { min-width: 124px; }
.account-history td:nth-child(3) { min-width: 93px; }
.account-history td:nth-child(4) { min-width: 65px; }
.account-history td:nth-child(5) { min-width: 98px; }

.account-activity-link { cursor: pointer; }
.account-activity-link:hover, .account-activity-link:focus-within { background: #172640; }
.account-activity-link a:focus-visible {
  outline: 2px solid #8ebcff;
  outline-offset: 3px;
  border-radius: 2px;
}

.account-provider {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.account-provider img { flex: none; border-radius: 50%; }
.account-state[data-state="completed"], .account-state[data-state="paid"] { color: #78e1bd; }
.account-state[data-state="pending"] { color: #ffcf79; }
.account-state[data-state="failed"], .account-state[data-state="expired"] { color: #ffadba; }

.account-activity-message {
  padding: 22px 15px;
  margin: 0;
  color: #a9bad5;
  text-align: center;
}

.account-pages, .account-pages > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.account-pages {
  justify-content: space-between;
  padding: 10px 14px;
  color: #b9c9df;
  font-size: 13px;
}

.account-pages button, #activity-page-number {
  padding: 5px 10px;
  border: 1px solid #304765;
  border-radius: 9px;
  background: #15243b;
  color: #e4edf9;
}

.account-pages button:disabled { cursor: default; opacity: .45; }
#activity-page-number { background: #2c64d1; }

@media (max-width: 810px) {
  .account-columns { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .account-page { padding-top: 30px; }
}

@media (max-width: 480px) {
  .account-tabs button { font-size: 12px; padding-inline: 8px; }
  .account-table-scroll { font-size: 12px; }
  .account-page h1 { margin-bottom: 19px; }
}
