/* Dedicated customer account views: profile, credit, rides, cylinders and partner reward. */

:root {
  --account-ink: #071b3f;
  --account-muted: #687484;
  --account-line: #e7ebef;
  --account-green: #13a86b;
}

body > .app {
  width: min(100%, 600px) !important;
  padding: 0 24px 110px !important;
  box-shadow: 0 0 70px rgba(8, 24, 47, .055);
}

.account-topbar {
  min-height: 82px !important;
  margin: 0 !important;
  padding: 16px 0 12px !important;
  border-bottom: 0 !important;
  background: rgba(255, 255, 255, .96) !important;
}

.account-brand {
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  justify-content: flex-start !important;
}

.account-brand-wordmark {
  display: block;
  color: var(--account-ink);
  font-size: 36px;
  line-height: 1;
  font-weight: 740;
  letter-spacing: -.075em;
}

.account-pill {
  min-height: 44px !important;
  max-width: 280px;
  border: 1px solid var(--account-line) !important;
  background: #fff !important;
  color: var(--account-ink) !important;
  box-shadow: 0 7px 22px rgba(8, 24, 47, .055) !important;
}

.account-pill::before {
  content: none !important;
}

.account-menu {
  top: calc(100% + 2px) !important;
  z-index: 50;
}

.header {
  margin: 18px 0 20px !important;
}

.header h1 {
  color: var(--account-ink);
  font-size: clamp(38px, 9vw, 48px) !important;
  line-height: 1 !important;
  letter-spacing: -.055em !important;
  font-weight: 780 !important;
}

.single-balance {
  grid-template-columns: minmax(0, 1fr) !important;
}

.single-balance .card {
  border: 1px solid #d9eee5 !important;
  background: #eaf8f1 !important;
}

.single-balance .big-credit {
  color: #087949;
}

body > .app > .card,
body > .app > .balance-grid,
body > .app > .notice,
body > .app > .error {
  margin-top: 12px;
}

body > .app > .card:not(.white) {
  border: 1px solid var(--account-line);
  background: #f4f7f6;
}

.profile-title {
  font-size: 20px !important;
}

.filter {
  margin-top: 0 !important;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--account-line);
}

.list {
  margin-top: 12px !important;
}

.item {
  border-color: var(--account-line) !important;
  box-shadow: 0 5px 18px rgba(8, 24, 47, .035);
}

.partner-overview {
  margin-bottom: 16px !important;
}

.profile-form .primary-btn:disabled {
  background: #e8edeb !important;
  color: #8a9490 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

@media (max-width: 480px) {
  body > .app {
    padding: 0 16px 106px !important;
  }

  .account-topbar {
    padding-top: 13px !important;
  }

  .account-brand-wordmark {
    font-size: 33px;
  }

  .account-pill {
    max-width: 225px;
  }

  .header {
    margin-top: 13px !important;
  }
}


/* Mockup-aligned account hierarchy. */
.credit-balance-note {
  margin: 20px 4px 28px;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 550;
}
.history-section-title {
  margin: 8px 0 18px;
  color: var(--color-navy);
  font-size: 27px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.035em;
}
.single-balance .card {
  min-height: 150px;
  padding: 26px !important;
  border-color: var(--color-line) !important;
  background: #f8fafc !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.single-balance .muted { font-size: 18px; font-weight: 550; }
.single-balance .big-credit { margin-top: 12px; color: var(--color-navy); font-size: 42px; font-weight: 800; }
body > .app > .card:not(.white) { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
body > .app > .card:not(.white) > .filter { margin-bottom: 28px; }
.item { padding: 20px !important; border-radius: var(--radius-md) !important; }
.item-title { font-size: 18px; }
.item-amount { font-size: 20px; }
.item-meta { margin-top: 8px !important; font-size: 14px !important; line-height: 1.55 !important; }

/* Profile logout is intentionally a subtle destructive text action. */
.profile-logout-row {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--color-line, #e4ebe7);
  text-align: center;
}

.profile-logout-link {
  min-height: 44px;
  border: 0;
  padding: 8px 6px;
  background: transparent;
  color: var(--color-danger, #e8495d);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.profile-logout-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
