.travmo-account-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px 6px 7px;
  border: 1px solid rgba(225, 229, 233, 0.92);
  border-radius: 999px;
  color: var(--text, #292C42);
  background: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(47, 67, 108, 0.08);
}

.travmo-account-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--travmo-blue, #4C7EFF), var(--travmo-teal, #38BFA7));
  font-size: 12px;
  font-weight: 800;
}

.travmo-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.travmo-account-meta {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.travmo-account-label,
.travmo-account-name {
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.travmo-account-label {
  color: var(--muted, #69738A);
  font-size: 11px;
  font-weight: 800;
}

.travmo-account-name {
  color: var(--text, #292C42);
  font-size: 13px;
}

.account-page {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text, #292C42);
  background:
    radial-gradient(circle at 12% 8%, rgba(76, 126, 255, 0.15), transparent 32%),
    radial-gradient(circle at 88% 10%, rgba(56, 191, 167, 0.16), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 52%, #eef7f5 100%);
}

.account-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(225, 229, 233, 0.72);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.account-header-inner,
.account-wrap {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.account-header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.account-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text, #292C42);
  text-decoration: none;
  font-size: 25px;
  font-weight: 800;
}

.account-brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--travmo-blue, #4C7EFF), var(--travmo-teal, #38BFA7));
}

.account-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.account-main {
  padding: 42px 0 72px;
}

.account-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.account-hero h1 {
  max-width: 760px;
  margin: 8px 0 0;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
}

.account-hero p:not(.section-kicker) {
  max-width: 660px;
  margin: 16px 0 0;
  color: var(--muted, #69738A);
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 700;
}

.account-status-card,
.account-card {
  border: 1px solid rgba(225, 229, 233, 0.88);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(47, 67, 108, 0.1);
}

.account-status-card {
  padding: 18px;
}

.account-user-mini {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-user-photo {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--travmo-blue, #4C7EFF), var(--travmo-teal, #38BFA7));
  font-size: 22px;
  font-weight: 800;
}

.account-user-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-user-mini strong {
  display: block;
  color: var(--text, #292C42);
  font-size: 18px;
}

.account-user-mini span {
  display: block;
  margin-top: 4px;
  color: var(--muted, #69738A);
  font-size: 13px;
  font-weight: 800;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 20px;
}

.account-card {
  padding: clamp(18px, 3vw, 28px);
}

.account-card h2,
.account-card h3 {
  margin: 0;
}

.account-card h2 {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.02;
}

.account-card h3 {
  font-size: 22px;
}

.account-card p {
  margin: 10px 0 0;
  color: var(--muted, #69738A);
  font-weight: 700;
}

.account-auth-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.account-auth-card[hidden],
.account-field-group[hidden],
#account-create-auth[hidden] {
  display: none;
}

.account-login-card {
  display: grid;
  gap: 18px;
}

.btn-google {
  width: 100%;
  color: var(--text, #292C42);
  background: #fff;
  border: 1px solid rgba(225, 229, 233, 0.95);
  box-shadow: 0 12px 28px rgba(47, 67, 108, 0.08);
}

.account-google-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

.account-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--app-muted, #8490A8);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-auth-divider::before,
.account-auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(225, 229, 233, 0.95);
}

.account-signed-out > .account-card {
  max-width: 640px;
  margin: 0 auto;
}

.account-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

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

.account-field-group {
  display: grid;
  gap: 8px;
}

.account-field-group.full {
  grid-column: 1 / -1;
}

.account-field-group label {
  color: var(--app-muted, #8490A8);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-field {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(225, 229, 233, 0.95);
  border-radius: 20px;
  color: var(--text, #292C42);
  background: #fff;
  outline: none;
  font: inherit;
  font-weight: 800;
}

.account-field:focus {
  border-color: var(--travmo-blue, #4C7EFF);
  box-shadow: 0 0 0 4px rgba(76, 126, 255, 0.12);
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.account-auth-card {
  padding: 18px;
  border: 1px solid rgba(225, 229, 233, 0.86);
  border-radius: 22px;
  background: #fff;
}

.account-pill-row,
.account-detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.account-pill,
.account-detail-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--text, #292C42);
  background: rgba(76, 126, 255, 0.08);
  font-size: 13px;
  font-weight: 800;
}

.account-status {
  min-height: 20px;
  margin-top: 14px;
  color: var(--muted, #69738A);
  font-size: 14px;
  font-weight: 800;
}

.account-status.is-error {
  color: #c03535;
}

.account-signed-in,
.account-signed-out {
  display: none;
}

.account-page.is-signed-in .account-signed-in,
.account-page:not(.is-signed-in) .account-signed-out {
  display: block;
}

.account-auth-open {
  overflow: hidden;
}

.account-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  padding: 18px;
}

.account-auth-modal.is-open {
  display: grid;
  place-items: center;
}

.account-auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(14px);
}

.account-auth-modal-shell {
  position: relative;
  width: min(900px, 100%);
  max-height: min(720px, calc(100dvh - 32px));
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  overflow: auto;
  border-radius: 30px;
  outline: none;
  -webkit-overflow-scrolling: touch;
  animation: accountModalIn 340ms var(--ease-out, cubic-bezier(.2, .8, .2, 1)) both;
}

.account-auth-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--text, #292C42);
  background: rgba(245, 248, 252, 0.94);
  font: inherit;
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
}

.account-auth-modal .account-card {
  padding: clamp(22px, 5vw, 34px);
  border-radius: 30px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.2);
}

.account-auth-modal .account-login-card {
  gap: 16px;
}

.account-auth-visual {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  display: grid;
  align-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 34px);
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 214, 107, 0.42), transparent 28%),
    radial-gradient(circle at 82% 68%, rgba(56, 191, 167, 0.32), transparent 28%),
    linear-gradient(145deg, #111827 0%, #1e3a8a 58%, #38bfa7 100%);
}

.account-auth-visual::after {
  content: "";
  position: absolute;
  inset: auto -20% -36% 16%;
  height: 56%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(-9deg);
}

.account-auth-visual .section-kicker {
  color: rgba(255, 255, 255, 0.72);
}

.account-auth-visual h3 {
  position: relative;
  z-index: 1;
  max-width: 280px;
  margin: 8px 0 0;
  font-size: clamp(34px, 4.8vw, 54px);
  line-height: 0.98;
}

.account-auth-ticket {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 26px;
  color: var(--text, #292C42);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.2);
}

.account-auth-ticket > span {
  color: var(--app-muted, #8490A8);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.account-auth-ticket div {
  display: grid;
  grid-template-columns: 1fr 54px 1fr;
  align-items: center;
  gap: 12px;
}

.account-auth-ticket strong {
  font-size: 34px;
  line-height: 1;
}

.account-auth-ticket strong:last-child {
  text-align: right;
}

.account-auth-ticket i {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--travmo-sun, #FFD66B);
}

.account-auth-ticket i::before {
  content: "";
  width: 22px;
  height: 16px;
  clip-path: polygon(0 0, 100% 50%, 0 100%, 24% 50%);
  border: 3px solid #111827;
  border-left: 0;
  transform: translateX(2px);
}

.account-auth-ticket small {
  color: var(--muted, #69738A);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.account-auth-modal .account-card h2 {
  max-width: 430px;
  padding-right: 34px;
  font-size: clamp(34px, 7vw, 56px);
}

.account-auth-modal .account-card p:not(.section-kicker):not(.account-status) {
  font-size: 17px;
}

.account-auth-modal .account-form {
  margin-top: 0;
}

.account-auth-modal .btn-google {
  justify-content: center;
}

@keyframes accountModalIn {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (max-width: 860px) {
  .travmo-account-meta {
    display: none;
  }

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

  .account-header-actions .btn-secondary {
    display: none;
  }

}

@media (max-width: 560px) {
  .account-header-inner,
  .account-wrap {
    width: min(100% - 28px, 1120px);
  }

  .account-main {
    padding-top: 28px;
  }

  .account-hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .account-card,
  .account-status-card {
    border-radius: 24px;
  }

  .account-actions .btn,
  .account-header-actions .btn-primary {
    width: 100%;
  }

  .account-auth-modal {
    padding: 12px;
    align-items: end;
  }

  .account-auth-modal-shell,
  .account-auth-modal .account-card {
    border-radius: 26px;
  }

  .account-auth-modal-shell {
    grid-template-columns: 1fr;
    max-height: calc(100dvh - 24px);
  }

  .account-auth-visual {
    display: none;
  }

  .account-auth-modal .account-card {
    border-radius: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-auth-modal-shell {
    animation: none;
  }
}
