/*
 * AccountView presentation. It is scoped so the persistent application shell
 * keeps ownership of viewport sizing, safe areas and bottom navigation.
 */
.account-view-root {
  width: 100%;
  min-height: 100%;
  contain: style;
  padding: 8px 0 calc(24px + env(safe-area-inset-bottom, 0px));
  color: #111827;
  font-family: "Noto Sans", Inter, Arial, sans-serif;
}

.account-view-root *,
.account-view-root *::before,
.account-view-root *::after {
  box-sizing: border-box;
}

.account-view-root h1,
.account-view-root h2 {
  display: block !important;
  text-align: left !important;
}

.account-card {
  width: 96%;
  max-width: 800px;
  margin: 8px auto;
  box-sizing: border-box;
  border: 1px solid #e6ebf3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(10, 24, 64, .06);
}

.account-state {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  color: #60708a;
  text-align: center;
}

.account-state p { margin: 0; font-size: 13px; font-weight: 700; }
.account-state--error { justify-content: flex-start; text-align: left; color: #b4234d; }
.account-state--error h2 { margin: 0 0 5px; color: #0a1840; font-size: 17px; }
.account-state--error p { margin-bottom: 12px; color: #697386; font-weight: 500; line-height: 1.4; }
.account-state-icon {
  display: inline-grid;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff0f3;
  font-weight: 900;
}
.account-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid #dce7f7;
  border-top-color: #0962d6;
  border-radius: 50%;
  animation: account-spin .8s linear infinite;
}
@keyframes account-spin { to { transform: rotate(360deg); } }

.account-auth-card { padding: 20px; }
.account-card-heading { margin-bottom: 16px; }
.account-card-heading h1,
.account-card-heading h2 { margin: 0 0 5px; color: #0a1840; font-size: 20px; line-height: 1.25; }
.account-card-heading p { margin: 0; color: #697386; font-size: 12px; line-height: 1.45; }
.account-kicker {
  display: block;
  margin-bottom: 5px;
  color: #0962d6;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.account-google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 45px;
  border: 1px solid #e1e7f0;
  border-radius: 10px;
  padding: 10px 14px;
  background: #fff;
  color: #0a1840;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(10, 24, 64, .04);
}
.account-google-button img { width: 18px; height: 18px; }
.account-google-button:hover { background: #f8fbff; }
.account-google-button:disabled { cursor: wait; opacity: .62; }
.account-divider {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0 13px;
  color: #9aa5b5;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.account-divider::before,
.account-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e6ebf3;
}
.account-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  margin-bottom: 15px;
  border-radius: 11px;
  background: #f2f5f9;
}
.account-mode-switch button,
.account-dashboard-nav button {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  padding: 10px 8px;
  background: transparent;
  color: #697386;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.account-mode-switch button.is-active,
.account-dashboard-nav button.is-active { background: #fff; color: #0962d6; box-shadow: 0 2px 8px rgba(10, 24, 64, .08); }
.account-form { display: flex; flex-direction: column; gap: 8px; }
.account-privacy-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 16px 0 0;
  padding: 10px 12px;
  border: 1px solid #d6e5f9;
  border-radius: 9px;
  color: #536b8b;
  background: #f5f9ff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}
.account-privacy-link a {
  color: #0962d6;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.account-privacy-link a:hover,
.account-privacy-link a:focus-visible {
  color: #08469a;
}
.account-form label { margin-top: 3px; color: #0a1840; font-size: 12px; font-weight: 800; }
.account-form input {
  width: 100%;
  min-height: 43px;
  min-width: 0;
  border: 1px solid #e1e7f0;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 13px;
}
.account-form input:focus-visible,
.account-button:focus-visible,
.account-mode-switch button:focus-visible,
.account-dashboard-nav button:focus-visible {
  outline: 3px solid rgba(9, 98, 214, .2);
  outline-offset: 2px;
}
.cid-phone-country-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cid-phone-country-field label {
  margin-top: 3px;
}
.cid-phone-country-name {
  min-height: 16px;
  color: #61708d;
  font-size: 11px;
  font-weight: 600;
}
.account-form-error { margin: 4px 0 0; color: #b4234d; font-size: 12px; font-weight: 700; }
.account-button {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.account-button--primary { margin-top: 6px; background: #0962d6; color: #fff; box-shadow: 0 8px 18px rgba(9, 98, 214, .18); }
.account-button--quiet { flex: 0 1 180px; min-height: 34px; padding: 7px 8px; background: transparent; color: #697386; }
.account-button:disabled { cursor: wait; opacity: .62; }

.account-dashboard { width: 100%; padding-bottom: 8px; }
.account-dashboard-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; }
.account-dashboard-header > div { min-width: 0; }
.account-dashboard-header h1 { margin: 0; color: #0a1840; font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
.account-dashboard-header p { margin: 4px 0 0; color: #697386; font-size: 12px; overflow-wrap: anywhere; }
.account-dashboard-header-meta {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}
.account-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f0f2f5;
  color: #536273;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.account-status-pill.is-subscriber {
  background: #e8f7ef;
  color: #138a55;
}
.account-country-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 96%;
  max-width: 800px;
  margin: 8px auto 12px;
  color: #0a1840;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.account-country-picker select {
  min-width: 150px;
  min-height: 38px;
  padding: 7px 32px 7px 11px;
  border: 1px solid #dce5f2;
  border-radius: 10px;
  background: #fff;
  color: #0a1840;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: normal;
}
.account-country-picker select:focus-visible {
  outline: 3px solid rgba(9, 98, 214, .18);
  outline-offset: 2px;
}
.account-dashboard-nav {
  display: flex;
  align-items: stretch;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  width: 96%;
  max-width: 800px;
  margin: 10px auto;
  padding: 4px;
  border-radius: 11px;
  background: #edf2f8;
}
.account-dashboard-nav::-webkit-scrollbar { display: none; }
.account-dashboard-nav button {
  flex: 0 0 auto;
  width: auto;
  white-space: nowrap;
}

.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.account-quick-access-section {
  width: 96%;
  max-width: 800px;
  margin: 14px auto 8px;
}
.account-quick-access-section h2 {
  margin: 0 0 8px;
  color: #0a1840;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.account-quick-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.account-quick-access {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 70px;
  padding: 12px;
  border: 1px solid #e2e8f1;
  border-radius: 13px;
  background: #fff;
  color: #0a1840;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(10, 24, 64, .05);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.account-quick-access:hover,
.account-quick-access:focus-visible {
  border-color: #9fc4f5;
  outline: none;
  box-shadow: 0 0 0 3px rgba(9, 98, 214, .1), 0 7px 18px rgba(10, 24, 64, .08);
  transform: translateY(-1px);
}
.account-quick-access:active { transform: translateY(0); }
.account-quick-access-icon {
  display: inline-grid;
  flex: 0 0 35px;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: #edf4ff;
  font-size: 18px;
}
.account-quick-access--subscription .account-quick-access-icon { background: #fff4cf; }
.account-quick-access--history .account-quick-access-icon { background: #e9f7ef; }
.account-quick-access--privacy .account-quick-access-icon { background: #f0edf9; }
.account-quick-access-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.account-quick-access-copy strong {
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.25;
}
.account-quick-access-copy small {
  color: #697386;
  font-size: 10px;
  line-height: 1.3;
}
@media (min-width: 561px) {
  .account-quick-access {
    min-height: 74px;
    padding: 13px 15px;
  }
  .account-quick-access-copy strong {
    font-size: 13px;
  }
  .account-quick-access-copy small {
    font-size: 11px;
  }
}
.account-summary-card { min-width: 0; padding: 14px; }
.account-summary-card strong { display: block; color: #0a1840; font-size: 17px; overflow-wrap: anywhere; }
.account-summary-card p,
.account-panel-card > p { margin: 5px 0 0; color: #697386; font-size: 11px; line-height: 1.45; }
.account-summary-card--wide { grid-column: 1 / -1; }
.account-panel-card { padding: 16px; }
.account-muted { color: #697386; font-size: 12px; }
.account-history-list { display: grid; gap: 7px; padding: 0; margin: 10px 0 0; list-style: none; }
.account-history-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 9px 10px; border-radius: 9px; background: #f7f9fc; color: #36445a; font-size: 11px; }
.account-history-list li > span { min-width: 0; overflow-wrap: anywhere; }
.account-history-list li > div { display: grid; gap: 3px; min-width: 0; }
.account-history-list li small { color: #697386; font-size: 10px; }
.account-history-list strong { flex: 0 0 auto; }
.account-history-list .is-credit { color: #138a55; }
.account-history-list .is-debit { color: #b4234d; }
.account-history-list .account-history-expiry { color: #0962d6; font-weight: 700; }
.account-history-list--full li { align-items: flex-start; padding: 12px; }
.account-history-list--full li > div { flex: 1 1 auto; }
.account-subscription-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 16px;
  color: #0a1840;
}
.account-subscription-status strong { font-size: 17px; }
.account-subscription-status span:last-child {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8f7ef;
  color: #138a55;
  font-size: 10px;
  font-weight: 900;
}
.account-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22a06b;
  box-shadow: 0 0 0 4px rgba(34, 160, 107, .13);
}
.account-subscription-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.account-subscription-facts > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 11px;
  border-radius: 10px;
  background: #f7f9fc;
}
.account-subscription-facts span {
  color: #697386;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.account-subscription-facts strong {
  color: #0a1840;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.account-subscription-features {
  margin: 0 0 10px;
  color: #536b8b;
  font-size: 12px;
  line-height: 1.5;
}
.account-empty-state {
  padding: 12px;
  border-radius: 11px;
  background: #f7f9fc;
}
.account-empty-state strong { color: #0a1840; font-size: 14px; }
.account-empty-state p { margin: 4px 0 0; color: #697386; font-size: 12px; line-height: 1.45; }
.account-privacy-panel > p { line-height: 1.55; }
.account-privacy-block {
  margin: 0 0 9px;
  padding: 12px;
  border: 1px solid #e6ebf3;
  border-radius: 11px;
  background: #f8fafd;
}
.account-privacy-block strong {
  display: block;
  margin-bottom: 4px;
  color: #0a1840;
  font-size: 12px;
}
.account-privacy-block p {
  margin: 0;
  color: #697386;
  font-size: 11px;
  line-height: 1.55;
}
.account-privacy-action {
  display: inline-flex;
  margin-top: 13px;
  color: #0962d6;
  font-size: 12px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.account-admin-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 96%;
  max-width: 800px;
  min-width: 0;
  min-height: 68px;
  margin: 16px auto 8px;
  padding: 14px 16px;
  border: 1px solid #f0b37e;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7ed, #fff);
  color: #9a3412;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(154, 52, 18, .1);
  transition: border-color .16s ease, background .16s ease,
    transform .16s ease, box-shadow .16s ease;
}
.account-admin-entry:hover,
.account-admin-entry:focus-visible {
  border-color: #ea8a3a;
  background: #fff;
  outline: none;
  box-shadow: 0 10px 22px rgba(154, 52, 18, .16);
  transform: translateY(-1px);
}
.account-admin-entry:active { transform: translateY(1px); }
.account-admin-entry-content {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.account-admin-entry strong {
  color: #9a3412;
  font-size: 14px;
  font-weight: 900;
}
.account-admin-entry small {
  color: #b45309;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 560px) {
  .account-auth-card,
  .account-dashboard-header,
  .account-panel-card { padding: 14px; }
  .account-dashboard-header { align-items: flex-start; }
  .account-dashboard-header-meta { align-items: flex-end; }
  .account-button--quiet { flex-basis: 120px; }
  .account-grid { grid-template-columns: 1fr; }
  .account-summary-card--wide { grid-column: auto; }
  .account-dashboard-nav { width: calc(100% - 16px); }
  .account-dashboard-nav button { padding-inline: 8px; font-size: 11px; }
  .account-subscription-facts { grid-template-columns: 1fr; }
  .account-country-picker { align-items: flex-start; flex-direction: column; gap: 7px; }
  .account-country-picker select { width: 100%; }
}
