* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #101936;
  background:
    radial-gradient(circle at 12% 10%, rgba(10, 156, 166, .13), transparent 28%),
    radial-gradient(circle at 86% 16%, rgba(98, 67, 230, .12), transparent 30%),
    #ffffff;
  font-family: Inter, Arial, sans-serif;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.account-card {
  width: min(920px, 100%);
  padding: 34px;
  border: 1px solid #e3e7f2;
  border-radius: 26px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 70px rgba(27, 37, 80, .12);
}

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-line img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1;
}

.created {
  margin: 0;
  padding: 10px 14px;
  border-radius: 999px;
  color: #066446;
  background: #e8fff5;
  font-weight: 900;
}

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

.panel {
  padding: 22px;
  border: 1px solid #e1e6f2;
  border-radius: 18px;
  background: #fff;
}

.panel h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.limits-panel {
  grid-column: 1 / -1;
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf1f8;
}

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

.label {
  color: #66718b;
  font-weight: 800;
}

.value {
  color: #111936;
  font-weight: 900;
  text-align: right;
}

.current-plan {
  display: grid;
  gap: 12px;
}

.current-plan p {
  margin: 0;
  color: #4d5875;
  line-height: 1.5;
}

.plan-pill {
  display: inline-flex;
  width: fit-content;
  padding: 7px 13px;
  border-radius: 999px;
  color: #5739e8;
  background: #f0edff;
  font-weight: 900;
}

.inline-button {
  margin-top: 18px;
  min-width: 210px;
}

.limits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.limit-item {
  display: grid;
  gap: 7px;
}

.limit-item.muted {
  opacity: .72;
}

.limit-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-weight: 900;
}

.limit-note {
  color: #66718b;
  font-size: 13px;
}

.bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f8;
}

.bar span {
  display: block;
  height: 100%;
  width: var(--value);
  border-radius: inherit;
  background: linear-gradient(90deg, #0d58bd, #5739e8);
}

.loading {
  grid-column: 1 / -1;
  color: #5739e8;
  font-weight: 900;
  text-align: center;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

button {
  min-width: 180px;
  height: 46px;
  border-radius: 999px;
  border: 0;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.primary {
  color: white;
  background: linear-gradient(135deg, #0d58bd, #5739e8);
  box-shadow: 0 14px 30px rgba(87, 57, 232, .24);
}

.secondary {
  color: #5739e8;
  background: #f0edff;
}

.ghost {
  color: #303b5d;
  background: #f5f7fb;
}

.error {
  grid-column: 1 / -1;
  padding: 18px;
  color: #b42318;
  background: #fff0ed;
  border-radius: 14px;
  font-weight: 900;
}

@media (max-width: 760px) {
  .account-card {
    padding: 24px 18px;
  }

  .account-header,
  .brand-line {
    align-items: flex-start;
  }

  .account-header {
    flex-direction: column;
  }

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

  .info-row {
    flex-direction: column;
    gap: 4px;
  }

  .value {
    text-align: left;
  }

  button {
    width: 100%;
  }
}

.community-panel,
.password-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid #e1e6f2;
  border-radius: 18px;
  background: #fff;
}

.community-panel h2,
.password-panel h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.community-panel p,
.password-panel p {
  margin: 0;
  color: #66718b;
  line-height: 1.45;
}

.community-panel button,
.password-panel button {
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .community-panel,
  .password-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .community-panel button,
  .password-panel button {
    width: 100%;
  }
}
