/* Member auth + account */
.auth-bay{padding-top:10px;}
.auth-alert{
  margin-bottom:18px;
  padding:12px 14px;
  border-radius:12px;
  font-size:.88rem;
  line-height:1.45;
}
.auth-alert--error{
  background:rgba(192,88,79,.08);
  border:1px solid rgba(192,88,79,.28);
  color:#8f3d35;
}
.auth-alert--success{
  background:rgba(60,170,92,.08);
  border:1px solid rgba(60,170,92,.28);
  color:#2b7a42;
}
.btn-google{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  padding:.9rem 1rem;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  font-family:var(--heading);
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--ink);
  transition:all .25s ease;
}
.btn-google:hover{
  border-color:rgba(184,134,11,.4);
  transform:translateY(-1px);
  box-shadow:0 10px 24px -12px rgba(28,24,20,.2);
}
.auth-divider{
  display:flex;
  align-items:center;
  gap:14px;
  margin:18px 0 8px;
  color:var(--ink-muted);
  font-size:.68rem;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.auth-divider::before,
.auth-divider::after{
  content:"";
  flex:1;
  height:1px;
  background:var(--line);
}
.auth-remember{
  display:flex;
  align-items:center;
  gap:8px;
  margin:6px 0 12px;
  font-size:.82rem;
  color:var(--ink-soft);
}
.auth-footer-note{
  font-size:.78rem;
  text-align:center;
  color:var(--ink-muted);
  margin-top:14px;
}
.auth-footer-note a{color:var(--gold-1);font-weight:600;}
.auth-google-hint{
  margin-top:18px;
  text-align:center;
  font-size:.72rem;
  color:var(--ink-muted);
}

.account-bay{padding-top:12px;}
.account-grid{
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  gap:28px;
  align-items:start;
}
.account-card{
  background:var(--paper-2);
  border:1px solid var(--line);
  border-radius:22px;
  padding:26px;
  box-shadow:var(--sh-2);
  margin-bottom:18px;
}
.account-avatar{
  width:64px;height:64px;border-radius:50%;
  display:grid;place-items:center;
  margin:0 auto 14px;
  background:linear-gradient(135deg,#1C1814,#2B251D);
  color:var(--gold-5,#F5DFA3);
  font-family:var(--heading);
  font-weight:600;
  letter-spacing:.08em;
}
.account-card h3{text-align:center;margin-bottom:4px;}
.account-card > p{text-align:center;font-size:.9rem;color:var(--ink-muted);margin:0;}
.account-phone{margin-top:4px !important;}
.account-stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:20px 0;
  padding:14px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.account-stats div{text-align:center;}
.account-stats strong{display:block;font-family:var(--serif);font-size:1.5rem;color:var(--ink);}
.account-stats span{font-size:.62rem;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-muted);}
.account-logout{margin-top:12px;}
.account-card h4{margin-bottom:14px;}

.account-section{margin-bottom:42px;}
.account-empty{
  padding:28px;
  border:1px dashed rgba(184,134,11,.28);
  border-radius:18px;
  background:rgba(255,252,245,.55);
  text-align:center;
}
.account-empty a{color:var(--gold-1);font-weight:600;}

.booking-table{display:flex;flex-direction:column;gap:12px;}
.booking-row{
  display:grid;
  grid-template-columns:180px minmax(0,1.4fr) minmax(0,1fr);
  gap:18px;
  align-items:center;
  padding:18px 20px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--paper-2);
}
.booking-row.is-past{opacity:.88;}
.booking-ref{display:flex;flex-direction:column;gap:8px;}
.booking-ref strong{font-family:var(--heading);letter-spacing:.04em;}
.booking-status{
  display:inline-flex;
  width:fit-content;
  padding:.28rem .55rem;
  border-radius:999px;
  font-size:.62rem;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  background:rgba(184,134,11,.1);
  color:var(--gold-1);
}
.booking-status.status-completed,
.booking-status.status-confirmed{background:rgba(60,170,92,.1);color:#2b7a42;}
.booking-status.status-cancelled,
.booking-status.status-no_show{background:rgba(192,88,79,.1);color:#8f3d35;}
.booking-route .from{font-weight:600;color:var(--ink);margin-bottom:4px;}
.booking-route .to{font-size:.9rem;color:var(--ink-soft);}
.booking-meta{
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:.84rem;
  color:var(--ink-muted);
  text-align:right;
}

@media (max-width:900px){
  .account-grid{grid-template-columns:1fr;}
  .booking-row{grid-template-columns:1fr;}
  .booking-meta{text-align:left;}
}

[data-theme="dark"] .btn-google{background:#16120e;color:#f5efe3;}
[data-theme="dark"] .account-card,
[data-theme="dark"] .booking-row{background:linear-gradient(135deg,#1F1A14,#0A0805);border-color:rgba(184,134,11,.18);}
[data-theme="dark"] .account-empty{background:rgba(255,255,255,.03);}

/* Profile drawer dashboard */
.profile-backdrop{
  position:fixed;inset:0;z-index:970;
  background:rgba(28,24,20,.42);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  opacity:0;pointer-events:none;
  transition:opacity .35s ease;
}
.profile-backdrop.is-open{opacity:1;pointer-events:auto;}
.profile-drawer{
  position:fixed;top:0;right:0;bottom:0;z-index:980;
  width:min(420px,100vw);
  padding:28px 22px 36px;
  overflow-y:auto;
  background:linear-gradient(180deg,#FFFEF9 0%,#F7F2E8 100%);
  color:var(--ink,#1C1814);
  border-left:1px solid rgba(184,134,11,.18);
  box-shadow:-18px 0 48px -20px rgba(28,24,20,.35);
  transform:translateX(105%);
  transition:transform .4s cubic-bezier(.22,1,.36,1);
}
.profile-drawer.is-open{transform:translateX(0);}
.profile-close{
  position:absolute;top:18px;right:18px;
  width:40px;height:40px;border-radius:50%;
  border:1px solid rgba(184,134,11,.22);
  background:rgba(255,252,245,.8);
  color:var(--ink);font-size:1rem;
  display:grid;place-items:center;
}
.profile-panel{display:none;}
.profile-panel.is-active{display:block;animation:profileIn .35s ease;}
@keyframes profileIn{from{opacity:0;transform:translateX(12px);}to{opacity:1;transform:none;}}
.profile-head{padding-right:48px;margin-bottom:18px;}
.profile-head h2,.profile-panel-title{
  font-family:var(--heading);font-size:1.55rem;font-weight:600;color:var(--ink);margin:0;
}
.profile-panel-title{margin:8px 0 16px;}
.profile-panel-lead{font-size:.9rem;color:var(--ink-soft);margin:-6px 0 18px;}
.profile-panel-top{margin-bottom:8px;}
.profile-back{
  display:inline-flex;align-items:center;gap:6px;
  padding:.45rem .8rem;border-radius:999px;
  border:1px solid rgba(184,134,11,.35);color:var(--gold-1,#B8860B);
  font-size:.72rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
}
.profile-back svg{width:16px;height:16px;}
.profile-user-card{
  display:flex;align-items:center;gap:14px;padding:16px;border-radius:18px;
  background:linear-gradient(135deg,rgba(184,134,11,.08),rgba(255,252,245,.9));
  border:1px solid rgba(184,134,11,.2);margin-bottom:22px;
}
.profile-avatar{
  width:52px;height:52px;border-radius:50%;flex:0 0 auto;display:grid;place-items:center;
  background:linear-gradient(135deg,#8a611f,#b98431);color:#fff;
  font-family:var(--heading);font-weight:700;letter-spacing:.04em;
}
.profile-user-meta{min-width:0;}
.profile-user-meta strong{display:block;font-size:1rem;color:var(--ink);margin-bottom:2px;}
.profile-user-meta span{display:block;font-size:.82rem;color:var(--ink-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.profile-menu{display:flex;flex-direction:column;gap:8px;}
.profile-menu-form{margin:0;}
.profile-menu-item{
  width:100%;display:flex;align-items:center;gap:12px;padding:14px;
  border-radius:14px;border:1px solid transparent;background:transparent;
  color:var(--ink);font-family:var(--heading);font-size:.92rem;font-weight:500;
  text-align:left;cursor:pointer;transition:all .2s ease;
}
.profile-menu-item:hover,.profile-menu-item.is-accent{
  background:rgba(184,134,11,.1);border-color:rgba(184,134,11,.18);color:var(--gold-1,#B8860B);
}
.profile-menu-item.is-danger{color:#c0584f;}
.profile-menu-item.is-danger:hover{background:rgba(192,88,79,.08);border-color:rgba(192,88,79,.2);}
.profile-ico{
  width:34px;height:34px;border-radius:10px;display:grid;place-items:center;
  background:rgba(184,134,11,.1);color:inherit;
}
.profile-ico svg{width:18px;height:18px;}
.profile-fab{
  position:sticky;bottom:8px;float:right;clear:both;margin-top:28px;
  width:54px;height:54px;border-radius:50%;display:grid;place-items:center;
  background:linear-gradient(135deg,#8a611f,#b98431);color:#fff;font-size:1.6rem;
  box-shadow:0 12px 28px -10px rgba(184,134,11,.55);text-decoration:none;
}
.profile-form{display:flex;flex-direction:column;gap:14px;}
.profile-field{display:flex;flex-direction:column;gap:7px;}
.profile-field span{font-size:.72rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-muted);}
.profile-field input{
  width:100%;border:1px solid rgba(184,134,11,.22);border-radius:14px;padding:.95rem 1rem;
  background:#FFFEF9;color:var(--ink);font-size:.95rem;
}
.profile-field input:disabled{opacity:.65;background:rgba(28,24,20,.04);}
.profile-field input:focus{outline:none;border-color:var(--gold-2);box-shadow:0 0 0 4px rgba(184,134,11,.12);}
.profile-btn-primary,.profile-btn-secondary,.profile-btn-danger,.profile-call{
  width:100%;display:inline-flex;align-items:center;justify-content:center;gap:10px;
  border-radius:14px;padding:1rem 1.1rem;font-family:var(--heading);
  font-size:.78rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  border:1px solid transparent;cursor:pointer;text-decoration:none;
}
.profile-btn-primary,.profile-call{
  background:linear-gradient(135deg,#8a611f,#b98431 55%,#cda35a);color:#fff;
  box-shadow:0 10px 24px -10px rgba(184,134,11,.55);margin-top:6px;
}
.profile-btn-secondary{margin-top:8px;background:transparent;border-color:rgba(28,24,20,.18);color:var(--ink);}
.profile-btn-danger{margin-top:6px;background:rgba(192,88,79,.12);border-color:rgba(192,88,79,.35);color:#8f3d35;}
.profile-help-box{padding:16px;border-radius:16px;border:1px solid rgba(184,134,11,.28);background:rgba(184,134,11,.06);margin-bottom:20px;}
.profile-help-box p{margin:0;font-size:.9rem;line-height:1.55;color:var(--ink-soft);}
.profile-help-box.is-warn{border-color:rgba(192,88,79,.3);background:rgba(192,88,79,.06);}
.profile-section-label{margin:18px 0 10px;font-size:.62rem;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:var(--ink-muted);}
.profile-info-card{
  display:flex;align-items:center;gap:12px;padding:14px;border-radius:14px;
  border:1px solid rgba(184,134,11,.16);background:#FFFEF9;margin-bottom:10px;
}
.profile-info-ico{
  width:40px;height:40px;border-radius:12px;flex:0 0 auto;display:grid;place-items:center;
  background:rgba(184,134,11,.12);color:var(--gold-1);
}
.profile-info-ico svg{width:18px;height:18px;}
.profile-info-card .l{display:block;font-size:.7rem;color:var(--gold-1);margin-bottom:2px;}
.profile-info-card strong{font-size:.95rem;color:var(--ink);}
.profile-info-card a{color:inherit;text-decoration:none;}
.profile-rides{display:flex;flex-direction:column;gap:12px;}
.profile-ride-card{padding:14px 16px;border-radius:16px;border:1px solid rgba(184,134,11,.16);background:#FFFEF9;}
.profile-ride-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;}
.profile-ride-status{
  display:inline-flex;padding:.28rem .6rem;border-radius:999px;
  font-size:.6rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  background:rgba(184,134,11,.12);color:var(--gold-1);
}
.profile-ride-card.is-completed .profile-ride-status{background:rgba(60,170,92,.12);color:#2b7a42;}
.profile-ride-card.is-cancelled .profile-ride-status,
.profile-ride-card.is-no_show .profile-ride-status{background:rgba(192,88,79,.12);color:#8f3d35;}
.profile-ride-route div:first-child{font-weight:600;color:var(--ink);margin-bottom:3px;}
.profile-ride-route div:last-child{font-size:.86rem;color:var(--ink-soft);}
.profile-ride-meta{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:10px;font-size:.78rem;color:var(--ink-muted);}
.profile-empty{text-align:center;padding:28px 16px;border:1px dashed rgba(184,134,11,.3);border-radius:16px;}
.profile-empty a{color:var(--gold-1);font-weight:600;}
body.profile-open{overflow:hidden;}
.h-signin-cta{padding:.72rem 1.35rem;}
.h-reserve{display:none !important;}
[data-theme="dark"] .profile-drawer{background:linear-gradient(180deg,#1A1610 0%,#0F0C08 100%);color:#F5EFE3;border-left-color:rgba(232,200,112,.18);}
[data-theme="dark"] .profile-head h2,
[data-theme="dark"] .profile-panel-title,
[data-theme="dark"] .profile-user-meta strong,
[data-theme="dark"] .profile-info-card strong,
[data-theme="dark"] .profile-ride-route div:first-child{color:#F5EFE3;}
[data-theme="dark"] .profile-close,
[data-theme="dark"] .profile-field input,
[data-theme="dark"] .profile-info-card,
[data-theme="dark"] .profile-ride-card{background:#16120e;border-color:rgba(232,200,112,.2);color:#F5EFE3;}
[data-theme="dark"] .profile-user-card{background:rgba(255,255,255,.04);}
[data-theme="dark"] .profile-menu-item{color:#F5EFE3;}
[data-theme="dark"] .profile-btn-secondary{border-color:rgba(245,239,227,.2);color:#F5EFE3;}

/* Phone country code */
.lux-phone-field{width:100%;position:relative;}
.lux-phone-label{
  display:block;
  font-size:.68rem;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink-muted);
  margin-bottom:7px;
}
.lux-phone-row{display:grid;grid-template-columns:minmax(108px,128px) 1fr;gap:10px;align-items:stretch;}
.lux-phone-cc,.lux-phone-local{margin:0;display:block;min-width:0;position:relative;}
.lux-phone-trigger{
  width:100%;
  min-height:48px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:.7rem .7rem;
  border:1px solid var(--line,rgba(184,134,11,.22));
  border-radius:14px;
  background:#FFFEF9;
  color:var(--ink,#1C1814);
  cursor:pointer;
  font-size:.9rem;
}
.lux-phone-flag{width:20px;height:15px;object-fit:cover;border-radius:2px;flex:0 0 auto;box-shadow:0 0 0 1px rgba(0,0,0,.08);}
.lux-phone-dial{font-weight:600;letter-spacing:.02em;}
.lux-phone-chevron{margin-left:auto;opacity:.55;font-size:.7rem;}
.lux-phone-menu{
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  z-index:300;
  width:min(320px,78vw);
  max-height:260px;
  overflow:auto;
  padding:6px;
  border-radius:14px;
  border:1px solid rgba(184,134,11,.22);
  background:#FFFEF9;
  box-shadow:0 16px 36px -18px rgba(28,24,20,.35);
}
.lux-phone-field:has(.lux-phone-menu:not([hidden])),
.lux-phone-cc:has(.lux-phone-menu:not([hidden])){
  z-index:120;
  position:relative;
}
.lux-phone-option{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--ink);
  text-align:left;
  cursor:pointer;
  font-size:.88rem;
}
.lux-phone-option:hover,
.lux-phone-option.is-selected{background:rgba(184,134,11,.1);}
.lux-phone-option img{width:20px;height:15px;object-fit:cover;border-radius:2px;flex:0 0 auto;}
.lux-phone-option-dial{font-weight:700;min-width:42px;}
.lux-phone-option-name{color:var(--ink-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.lux-phone-local input{
  width:100%;
  min-height:48px;
  border:1px solid var(--line,rgba(184,134,11,.22));
  border-radius:14px;
  padding:.85rem 1rem;
  background:#FFFEF9;
  color:var(--ink,#1C1814);
  font-size:.9rem;
}
.lux-phone-trigger:focus,
.lux-phone-local input:focus{
  outline:none;
  border-color:var(--gold-2,#B8860B);
  box-shadow:0 0 0 4px rgba(184,134,11,.12);
}
.profile-field .lux-phone-label{margin-bottom:0;}
.profile-field .lux-phone-field{display:flex;flex-direction:column;gap:7px;}
.auth-form .form-field .lux-phone-label{margin-bottom:7px;}
.contact-form .form-field .lux-phone-label{
  font-size:.62rem;
  font-weight:600;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--ink-muted);
  margin-bottom:6px;
}
.contact-form .lux-phone-trigger,
.contact-form .lux-phone-local input{
  border:1px solid var(--line-2);
  border-radius:var(--r-2);
  background:var(--paper);
  font-family:var(--body);
  color:var(--ink);
  min-height:48px;
}
.contact-form .lux-phone-menu{
  border:1px solid var(--line-2);
  background:var(--paper);
  z-index:320;
}
.contact-form .lux-phone-option{font-family:var(--body);}
.contact-form .form-field:focus-within,
.contact-form .form-field.form-field-open,
.contact-form .form-field:has(.lux-phone-menu:not([hidden])),
.auth-form .form-field:focus-within,
.auth-form .form-field.form-field-open,
.auth-form .form-field:has(.lux-phone-menu:not([hidden])),
.auth-stage .form-field:focus-within,
.auth-stage .form-field.form-field-open,
.profile-field:focus-within,
.profile-field.form-field-open,
.profile-field:has(.lux-phone-menu:not([hidden])),
.account-card .form-field:focus-within,
.account-card .form-field.form-field-open,
.account-card .form-field:has(.lux-phone-menu:not([hidden])){
  position:relative;
  z-index:90;
}
.contact-form,
.auth-stage,
.account-card,
.profile-form{
  position:relative;
  z-index:2;
}
.contact-form:has(.lux-phone-menu:not([hidden])),
.contact-form:has(.form-field:focus-within),
.auth-stage:has(.lux-phone-menu:not([hidden])),
.auth-stage:has(.form-field:focus-within){
  z-index:30;
}
@media (max-width:860px){
  .contact-form .form-row{grid-template-columns:1fr;}
}
.account-danger-copy{font-size:.86rem;color:var(--ink-soft);margin:0 0 12px;line-height:1.5;}
.account-card--danger{border-color:rgba(192,88,79,.28);}
.account-delete-btn{
  background:rgba(192,88,79,.1)!important;
  border:1px solid rgba(192,88,79,.35)!important;
  color:#8f3d35!important;
}
.screen-reader-text{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
@media (max-width:480px){
  .lux-phone-row{grid-template-columns:1fr;}
}
[data-theme="dark"] .lux-phone-trigger,
[data-theme="dark"] .lux-phone-menu,
[data-theme="dark"] .lux-phone-local input{
  background:#16120e;border-color:rgba(232,200,112,.2);color:#F5EFE3;
}
[data-theme="dark"] .lux-phone-option{color:#F5EFE3;}
[data-theme="dark"] .lux-phone-option:hover,
[data-theme="dark"] .lux-phone-option.is-selected{background:rgba(232,200,112,.12);}
[data-theme="dark"] .lux-phone-option-name{color:rgba(245,239,227,.7);}
