/* =========================================================================
   Customer area: login/register, profile, bookings, booking form
   ========================================================================= */

/* ---------- Login + registration ---------- */
.page-auth .site-footer { margin-top: 0; }
.auth-shell { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: calc(100vh - var(--header-h)); }
.auth-aside {
  position: relative; background: var(--ink) var(--aside-image, none) center / cover no-repeat; color: #fff; display: flex; align-items: flex-end;
}
.auth-aside::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,20,32,.35) 0%, rgba(30,20,32,.92) 100%); }
.auth-aside-inner { position: relative; padding: clamp(2rem, 5vw, 3.5rem); max-width: 32rem; }
.auth-aside h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: 1.5rem; }
.auth-points { display: grid; gap: .85rem; }
.auth-points li { display: flex; gap: .8rem; align-items: flex-start; color: #E6D9E3; }
.auth-points i { color: var(--gold); margin-top: .3rem; width: 1.2rem; text-align: center; }

.auth-main { display: flex; justify-content: center; align-items: flex-start; padding: clamp(1.5rem, 4vw, 3.5rem) var(--gutter); background: var(--paper); }
.auth-card { width: 100%; max-width: 620px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3.5vw, 2.5rem); box-shadow: var(--shadow); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--blush); border-radius: 999px; margin-bottom: 1.75rem; }
.tab { text-align: center; padding: .7rem 1rem; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
.tab:hover { color: var(--ink); }
.tab.active { background: #fff; color: var(--ink); box-shadow: 0 1px 6px rgba(30,20,32,.14); }
.auth-panel h2 { font-size: 1.8rem; margin-bottom: .25rem; }
.auth-sub { color: var(--muted); margin-bottom: 1.5rem; }
.auth-switch { text-align: center; margin: 1.4rem 0 0; color: var(--muted); font-size: .95rem; }
.auth-switch a { color: var(--rose); font-weight: 600; }

.strength { display: flex; align-items: center; gap: .75rem; margin: -.3rem 0 1rem; }
.strength-bar { flex: 1; height: 6px; background: var(--blush); border-radius: 99px; overflow: hidden; }
.strength-bar i { display: block; height: 100%; width: 0; background: var(--danger); transition: width .25s, background .25s; }
.strength-text { font-size: .8rem; font-weight: 600; color: var(--muted); min-width: 4.5rem; text-align: right; }

.simple-card-section { min-height: 60vh; display: flex; align-items: center; }
.simple-card-section .container { width: 100%; }
.simple-card { max-width: 480px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.simple-card h1 { font-size: 1.9rem; }

/* ---------- Account layout ---------- */
.account-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.account-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 1rem; }
.account-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; }
.account-card .avatar-xl { margin: 0 auto .9rem; }
.account-card h2 { font-size: 1.3rem; margin-bottom: .15rem; }
.account-card p { margin: 0; overflow-wrap: anywhere; }
.account-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .5rem; display: grid; gap: 2px; }
.account-nav a, .account-nav button { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .75rem .9rem; border: 0; border-radius: 12px; background: transparent; font-weight: 600; font-size: .95rem; cursor: pointer; text-align: left; }
.account-nav i { width: 1.1rem; text-align: center; color: var(--muted); }
.account-nav a:hover, .account-nav button:hover { background: var(--blush); }
.account-nav a.active { background: var(--rose-soft); color: var(--rose); }
.account-nav a.active i { color: var(--rose); }
.account-nav form button { color: var(--danger); } .account-nav form i { color: var(--danger); }
.account-main { min-width: 0; }
.photo-edit { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.photo-edit > div { flex: 1; min-width: 0; }
.photo-edit .field { margin-bottom: .5rem; }
.photo-edit input[type=file] { padding: .55rem; }

/* ---------- Bookings ---------- */
.booking-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.1rem, 3vw, 1.75rem); margin-bottom: 1.25rem; transition: box-shadow .3s, border-color .3s; }
.booking-card.is-highlighted { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(176,42,91,.12); }
.booking-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.booking-head h2 { font-size: 1.5rem; margin: 0; }
.booking-ref { font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); margin: 0 0 .15rem; }
.booking-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1.5rem; padding: 1rem 0; border-block: 1px solid var(--line); }
.booking-facts .wide { grid-column: 1 / -1; }
.booking-facts small { font-weight: 400; color: var(--muted); }
.booking-facts dt { font-size: .78rem; color: var(--muted); font-weight: 600; margin-bottom: .15rem; }
.booking-facts dd { margin: 0; font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
.booking-status-text { margin: 1rem 0 0; font-size: .95rem; color: #4A3B47; }
.booking-note { margin: .75rem 0 0; padding: .75rem 1rem; background: var(--blush); border-radius: 12px; font-size: .92rem; display: flex; gap: .7rem; align-items: flex-start; }
.booking-note i { color: var(--rose); margin-top: .25rem; }
.booking-cancelled { color: var(--danger); font-weight: 600; margin: 0; }
.booking-history { margin-top: 1rem; font-size: .9rem; }
.booking-history summary { cursor: pointer; font-weight: 600; color: var(--rose); width: fit-content; padding-block: .5rem; }
.booking-history ul { margin-top: .75rem; display: grid; gap: .6rem; }
.booking-history li { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; color: var(--muted); }

.status { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-sm { padding: .2rem .6rem; font-size: .72rem; }
.status-booked { background: #FFF1D1; color: #7A5300; }
.status-in_process { background: #EBDDF5; color: #5B2A7A; }
.status-done { background: #DAF2E3; color: #17603A; }
.status-cancelled { background: #F9DEE3; color: #8F1F3A; }

.tracker { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.track-step { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; gap: .5rem; }
.track-step:not(:first-child)::before { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.track-step.is-complete:not(:first-child)::before, .track-step.is-current:not(:first-child)::before { background: var(--rose); }
.track-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; font-size: .75rem; color: transparent; }
.track-step.is-complete .track-dot { background: var(--rose); border-color: var(--rose); color: #fff; }
.track-step.is-current .track-dot { border-color: var(--rose); background: #fff; box-shadow: 0 0 0 5px rgba(176,42,91,.15); }
.track-step.is-current .track-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--rose); }
.track-label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.track-step.is-complete .track-label, .track-step.is-current .track-label { color: var(--ink); }

.success-card { max-width: 620px; margin: clamp(1rem, 4vw, 3rem) auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.75rem, 5vw, 3rem); box-shadow: var(--shadow); }
.success-icon { width: 72px; height: 72px; margin: 0 auto 1.25rem; border-radius: 50%; display: grid; place-items: center; background: #DAF2E3; color: var(--success); font-size: 1.8rem; }
.success-card h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.success-summary { display: grid; gap: .1rem; text-align: left; margin: 1.5rem 0; background: var(--paper); border-radius: var(--radius); padding: .5rem 1.25rem; }
.success-summary div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.success-summary div + div { border-top: 1px solid var(--line); }
.success-summary dt { color: var(--muted); font-size: .92rem; }
.success-summary dd { margin: 0; font-weight: 600; }
.success-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; min-height: 0; }
  .auth-aside { display: none; }
  .account-layout { grid-template-columns: 1fr; }
  .account-side { position: static; grid-template-columns: 1fr; }
  .account-card { display: grid; grid-template-columns: auto 1fr; text-align: left; gap: 0 1rem; align-items: center; padding: 1rem; }
  .account-card .avatar-xl { grid-row: 1 / 4; margin: 0; width: 64px; height: 64px; font-size: 1.3rem; }
  .account-nav { display: flex; overflow-x: auto; padding: .4rem; gap: 4px; scrollbar-width: none; }
  .account-nav::-webkit-scrollbar { display: none; }
  .account-nav a, .account-nav button { width: auto; white-space: nowrap; }
  .account-nav form { display: contents; }
  .booking-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .booking-head { flex-direction: column; }
  .photo-edit { flex-direction: column; align-items: flex-start; }
  .track-label { font-size: .78rem; }
}
