.account-page { min-height: 100vh; }

/* Atmosphere behind login */
.login-atmosphere {
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(253, 186, 116, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(45, 212, 191, 0.28), transparent 50%),
    linear-gradient(180deg, #fff7ed 0%, #ecfeff 45%, #fff 100%);
}
.bookings-atmosphere {
  background: linear-gradient(180deg, #fff7ed 0%, #fff 40%);
}

.account-main { padding: 2rem 1rem 3rem; max-width: 860px; }
.account-main-login {
  max-width: 440px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: clamp(1.5rem, 6vh, 3.5rem);
}

.login-shell { width: 100%; }

.login-card {
  background: linear-gradient(165deg, #ffffff 0%, #fff7ed 55%, #f0fdfa 100%);
  border: 3px solid #fdba74;
  border-radius: 28px;
  padding: clamp(1.4rem, 4vw, 2rem);
  box-shadow:
    0 3px 0 #fb923c,
    0 18px 40px rgba(249, 115, 22, 0.18),
    0 40px 80px rgba(15, 23, 42, 0.06);
}

.auth-card-lift {
  animation: loginLiftIn .55s cubic-bezier(.22, .9, .3, 1.05) both;
  transition: transform .2s ease, box-shadow .2s ease;
}
.auth-card-lift:hover {
  transform: translateY(-3px);
  box-shadow:
    0 5px 0 #fb923c,
    0 22px 48px rgba(249, 115, 22, 0.22),
    0 48px 90px rgba(15, 23, 42, 0.08);
}

@keyframes loginLiftIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .35rem;
  margin-bottom: 1.35rem;
}
.login-brand-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 22px;
  background: #fff;
  border: 3px solid #fdba74;
  box-shadow: 0 4px 0 #fb923c, 0 14px 28px rgba(249, 115, 22, 0.25);
  animation: logoPop .7s cubic-bezier(.22, .9, .3, 1.2) .08s both;
}
@keyframes logoPop {
  from { opacity: 0; transform: translateY(10px) scale(.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.login-brand-name {
  font-size: clamp(1.55rem, 5vw, 1.85rem);
  font-weight: 900;
  color: #9a3412;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.login-brand-tag {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  color: #0f766e;
}

.login-form { display: flex; flex-direction: column; gap: .55rem; }
.login-label {
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #9a3412;
  margin-top: .25rem;
}
.login-form input,
.lookup-form input {
  padding: .8rem .95rem;
  border: 2px solid #fed7aa;
  border-radius: 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  background: #fff;
}
.login-form input:focus,
.lookup-form input:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, .15);
}

.login-submit-btn {
  margin-top: .55rem;
  min-height: 52px;
  font-weight: 900;
  border-radius: 16px;
  box-shadow: 0 4px 0 #c2410c, 0 12px 24px rgba(234, 88, 12, 0.28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.login-submit-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #c2410c, 0 6px 14px rgba(234, 88, 12, 0.22);
}

.login-or {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.15rem 0 .85rem;
  color: #a8a29e;
  font-weight: 800;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.login-or::before,
.login-or::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fed7aa, transparent);
}
.login-or span { flex-shrink: 0; }

.login-alt-stack {
  display: grid;
  gap: .55rem;
}
.auth-alt-btn {
  min-height: 48px;
  font-weight: 800;
  border-radius: 14px;
}
.google-btn-host {
  display: flex;
  justify-content: center;
  min-height: 48px;
  width: 100%;
}
.google-btn-host > div,
.google-btn-host > button {
  width: 100% !important;
  max-width: 100%;
}
.google-disabled-hint { text-align: center; margin: .25rem 0 0; }

.link-quiet {
  display: block;
  width: 100%;
  margin-top: 1rem;
  border: none;
  background: none;
  font: inherit;
  font-weight: 800;
  color: #0f766e;
  cursor: pointer;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.back-link { text-align: left; margin-top: 0; margin-bottom: .75rem; }

.other-ways {
  margin-top: .75rem;
  padding: .85rem;
  border-radius: 16px;
  border: 2px dashed #fed7aa;
  background: rgba(255, 255, 255, 0.75);
}
.other-ways .hint { margin-bottom: .55rem; }

.login-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem 1rem;
  margin: 1.25rem 0 0;
  font-weight: 800;
  font-size: .82rem;
}
.login-footer-links a { color: #9a3412; }

.account-card {
  background: linear-gradient(165deg, #fff, #fff7ed 50%, #ecfeff);
  border: 3px solid #fdba74;
  border-radius: 26px;
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: var(--shadow-card);
}
.bookings-card { animation: loginLiftIn .45s ease both; }

.brand-lockup {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1rem;
}
.brand-logo {
  width: 58px; height: 58px; object-fit: contain; border-radius: 16px;
  background: #fff; border: 2px solid #fdba74;
  box-shadow: 0 4px 14px rgba(249,115,22,.2);
}
.brand-text { display: grid; gap: .1rem; }
.brand-text strong {
  font-size: 1.1rem; font-weight: 900; color: #9a3412; line-height: 1.15;
}
.brand-text span {
  font-size: .75rem; font-weight: 800; color: #0f766e; letter-spacing: .04em;
  text-transform: uppercase;
}
.account-card h1 {
  font-size: 1.55rem; font-weight: 900; margin-bottom: .35rem; color: #9a3412;
}
.account-card h2 { font-size: 1.05rem; font-weight: 900; margin-bottom: .45rem; color: #9a3412; }
.account-sub { color: var(--text-muted); font-weight: 700; margin-bottom: 1.25rem; line-height: 1.45; }

.login-block {
  margin-top: 1.25rem; padding: 1rem 1.1rem; border-radius: 16px;
  background: linear-gradient(160deg, #fff, #fff7ed);
  border: 2px solid #fed7aa;
  box-shadow: 0 3px 0 #fb923c;
}
.login-block .hint,
.hint { font-size: .85rem; font-weight: 700; color: #78716c; margin-bottom: .75rem; }

.telegram-login-box { min-height: 48px; display: flex; justify-content: center; padding: .75rem 0; }
.lookup-form { display: flex; flex-direction: column; gap: .65rem; }
.error-text { color: #dc2626; font-weight: 800; margin-top: .75rem; text-align: center; }

.dash-head {
  display: flex; justify-content: space-between; gap: 1rem;
  align-items: flex-start; flex-wrap: wrap; margin-bottom: 1rem;
}
.dash-head-actions { display: flex; gap: .45rem; flex-wrap: wrap; }
.dash-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 1.5rem; }
.bookings-title { margin-bottom: .85rem; }
.my-bookings { display: flex; flex-direction: column; gap: 1rem; }
.my-booking {
  border: 2px solid #fed7aa; border-radius: 18px; padding: 1rem;
  background: white;
  transition: transform .18s ease, box-shadow .18s ease;
}
.my-booking:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}
.my-booking .mb-top {
  display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap;
  margin-bottom: .55rem;
}
.my-booking .mb-id { font-weight: 900; color: #ea580c; }
.my-booking .mb-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .75rem;
  font-size: .85rem; font-weight: 700; color: #78716c;
}
.my-booking .mb-grid strong { color: var(--text); }
.my-booking .mb-shots { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .65rem; }
.my-booking .mb-shots img {
  width: 72px; height: 72px; object-fit: cover; border-radius: 10px;
  border: 2px solid #fdba74;
}
.empty-bookings { color: #78716c; font-weight: 700; text-align: center; padding: 1rem; }
.status-badge {
  display: inline-flex; align-items: center;
  padding: .2rem .55rem; border-radius: 999px;
  font-size: .72rem; font-weight: 900; letter-spacing: .03em;
}
.status-pending { background: #ffedd5; color: #c2410c; }
.status-processing { background: #e0f2fe; color: #0369a1; }
.status-completed { background: #dcfce7; color: #15803d; }
.status-cancelled { background: #fee2e2; color: #b91c1c; }

.pw-field { position: relative; display: flex; align-items: center; width: 100%; }
.pw-field input { width: 100%; padding-right: 3rem; }
.pw-toggle {
  position: absolute; right: .45rem; top: 50%; transform: translateY(-50%);
  border: none; background: #fff7ed; border-radius: 10px; width: 2.35rem; height: 2.35rem;
  cursor: pointer; font-size: 1.05rem; box-shadow: 0 2px 0 #fdba74;
}
.remember-row {
  display: flex; align-items: center; gap: .55rem; font-weight: 800; color: #9a3412; font-size: .9rem; cursor: pointer;
}
.wallet-hero {
  display: grid; gap: .25rem; padding: 1.1rem 1.25rem; margin: 1rem 0 .75rem;
  border-radius: 18px; background: linear-gradient(135deg, #fff7ed, #ecfeff);
  border: 2px solid #fdba74; box-shadow: 0 3px 0 #fb923c, 0 12px 28px rgba(249,115,22,.16);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wallet-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #fb923c, 0 16px 32px rgba(249,115,22,.2);
}
.wallet-hero-label { font-size: .75rem; font-weight: 800; color: #78716c; text-transform: uppercase; }
.wallet-hero strong {
  font-size: 2rem; font-weight: 900;
  background: linear-gradient(90deg, #ea580c, #0d9488);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.wallet-hero-note {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #78716c;
}
.referral-box {
  margin: 1rem 0;
  padding: 1rem 1.05rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(249, 115, 22, 0.08));
  border: 1px solid rgba(14, 165, 233, 0.25);
}
.referral-box h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: #0e7490;
}
.referral-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.55rem;
}
.referral-row code {
  flex: 1;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: #c2410c;
  background: #fff;
  padding: 0.45rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px dashed #fdba74;
}
.referral-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #57534e;
}
.referral-stats strong { color: #0e7490; font-weight: 900; }
.referral-history {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.45rem;
}
.referral-history-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem;
  background: #fff;
  border: 1px solid rgba(14, 165, 233, 0.2);
  font-size: 0.85rem;
  font-weight: 700;
}
.referral-history-row .st-completed { color: #15803d; }
.referral-history-row .st-pending { color: #c2410c; }
.referral-history-row .st-cancelled { color: #78716c; }
.referral-apply {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(14, 165, 233, 0.35);
}
.referral-apply h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: #0f766e;
}
.referral-apply input {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  font-weight: 700;
}
.wallet-history { display: grid; gap: .55rem; margin-bottom: 1.25rem; }
.wallet-row {
  display: grid; gap: .15rem; padding: .75rem .9rem; border-radius: 14px;
  border: 2px solid #fed7aa; background: #fff; font-weight: 800;
}
.wallet-row.credit { border-color: #86efac; }
.wallet-row.debit { border-color: #fca5a5; }
.wallet-row.credit > span:first-child { color: #16a34a; }
.wallet-row.debit > span:first-child { color: #dc2626; }
.wallet-row small { font-size: .75rem; color: #78716c; }
.mb-refund {
  display: grid; gap: .45rem; margin-top: .65rem; padding: .75rem;
  border-radius: 14px; border: 2px dashed #fdba74; background: #fff7ed;
}
.mb-refund label { font-weight: 800; display: flex; gap: .4rem; align-items: center; }

@media (max-width: 640px) {
  .my-booking .mb-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .account-main {
    padding: 1.15rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card-lift,
  .login-brand-logo,
  .bookings-card { animation: none; }
  .auth-card-lift:hover,
  .wallet-hero:hover,
  .my-booking:hover { transform: none; }
}
