.auth-premium-page {
  margin: 0;
  min-height: 100dvh;
  background: #1a1d24;
  font-family: Manrope, system-ui, sans-serif;
  color: #101828;
}
.auth-stage {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .auth-stage {
    grid-template-columns: 1.05fr 1fr;
  }
}

/* LEFT visual */
.auth-visual {
  position: relative;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  min-height: 100dvh;
  background:
    linear-gradient(180deg, rgba(15,18,28,.35), rgba(15,18,28,.75)),
    url('https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
  color: #fff;
}
@media (min-width: 900px) {
  .auth-visual { display: flex; }
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}
.auth-brand img { filter: brightness(0) invert(1); width: 40px; height: 22px; }
.auth-back-web {
  position: absolute;
  top: 28px;
  right: 28px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.auth-visual-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.auth-visual-copy p {
  margin: 0;
  max-width: 360px;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  line-height: 1.55;
}
.auth-visual-dots {
  display: flex;
  gap: 6px;
}
.auth-visual-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
}
.auth-visual-dots .is-on { background: #fff; width: 22px; border-radius: 99px; }

/* RIGHT panel */
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 48px;
  background: #f4f5f7;
  min-height: 100dvh;
}
.auth-panel-inner,
.account-dash {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(16,24,40,.08);
}
.auth-panel-inner h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #101828;
}
.auth-switch {
  margin: 0 0 28px;
  color: #667085;
  font-size: 14px;
}
.auth-switch button {
  border: 0;
  background: none;
  color: #155eef;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}
.auth-form {
  display: grid;
  gap: 14px;
}
.auth-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.auth-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #344054;
}
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: #101828;
  outline: none;
  box-sizing: border-box;
}
.auth-form input:focus {
  border-color: #155eef;
  box-shadow: 0 0 0 3px rgba(21,94,239,.15);
}
.auth-password { position: relative; }
.auth-password input { padding-right: 44px; }
.toggle-pass {
  position: absolute;
  right: 8px;
  bottom: 6px;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: #98a2b3;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.auth-terms {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #475467 !important;
  grid-template-columns: none !important;
}
.auth-terms input { width: 16px; height: 16px; accent-color: #155eef; }
.auth-cta {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #6d5efc, #155eef);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  margin-top: 4px;
}
.auth-cta.compact {
  width: auto;
  min-height: 42px;
  padding: 0 18px;
  margin: 0;
}
.auth-cta:hover { filter: brightness(1.05); }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  color: #98a2b3;
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e4e7ec;
}
.auth-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.auth-social-btn {
  min-height: 44px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #344054;
  cursor: not-allowed;
  opacity: .7;
  font-family: inherit;
}
.auth-ghost {
  border: 1px solid #d0d5dd;
  background: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 13px;
  color: #101828;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.dash-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.dash-kicker {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #98a2b3;
  font-weight: 700;
}
.dash-top h1 {
  margin: 4px 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}
.dash-email { margin: 0; color: #667085; font-size: 13px; }
.dash-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid #eef0f3;
  margin-bottom: 18px;
}
.dash-tab {
  border: 0;
  background: none;
  padding: 12px 0;
  font-weight: 700;
  font-size: 13px;
  color: #98a2b3;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
}
.dash-tab.is-active { color: #101828; border-bottom-color: #155eef; }
.dash-h { font-size: 14px; font-weight: 700; margin: 0 0 12px; }
.dash-bento {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  background: #fafbfc;
  margin-bottom: 12px;
}
.dash-bento p { margin: 4px 0 0; color: #667085; font-size: 13px; }
.profile-bento { display: block; }
.profile-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eef0f3;
  font-size: 14px;
}
.profile-row:last-child { border-bottom: 0; }
.empty-soft { color: #667085; font-size: 14px; padding: 12px 0; }
.recent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.recent-grid a {
  display: block;
  text-decoration: none;
  color: #101828;
  font-size: 11px;
  font-weight: 600;
}
.recent-grid img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 10px;
  background: #eef0f3;
  display: block;
  margin-bottom: 6px;
}
.orders-list { display: grid; gap: 10px; }
.order-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 14px;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
}
.order-card small { display: block; color: #667085; margin-top: 4px; }

@media (max-width: 899px) {
  .auth-panel { background: #fff; padding: 20px 16px 40px; }
  .auth-panel-inner, .account-dash {
    box-shadow: none;
    padding: 12px 4px;
    border-radius: 0;
  }
}

/* Mobile logo on auth */
.mobile-logo {
  display: flex;
  justify-content: center;
  margin: 0 0 20px;
}
.mobile-logo img { width: 56px; height: 30px; }
@media (min-width: 900px) {
  .mobile-logo { display: none; }
}

/* Password strength */
.pass-meter { margin-top: -4px; }
.pass-bar {
  height: 6px;
  border-radius: 99px;
  background: #e4e7ec;
  overflow: hidden;
  margin-bottom: 10px;
}
.pass-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #f04438;
  transition: width .25s ease, background .25s ease;
}
.pass-bar span.ok { background: #12b76a; }
.pass-bar span.mid { background: #f79009; }
.pass-rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: #98a2b3;
}
.pass-rules li.is-ok { color: #12b76a; }
.pass-rules li.is-ok::before { content: "✓ "; font-weight: 700; }

/* Dashboard shell */
.account-dash { max-width: 100% !important; padding: 0 !important; box-shadow: none !important; background: transparent !important; border-radius: 0 !important; }
.dash-shell {
  display: grid;
  gap: 20px;
}
@media (min-width: 900px) {
  .dash-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    max-width: 980px;
    margin: 0 auto;
  }
  .auth-panel:has(#account-summary:not([hidden])) {
    align-items: flex-start;
    padding-top: 28px;
  }
}
.dash-side {
  display: none;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 20px 16px;
  height: max-content;
  position: sticky;
  top: 16px;
}
@media (min-width: 900px) {
  .dash-side { display: block; }
}
.dash-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: #155eef; color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 18px; margin-bottom: 10px;
}
.dash-side-meta strong { display: block; font-size: 14px; }
.dash-side-meta span { font-size: 12px; color: #667085; }
.dash-side-nav { display: grid; gap: 4px; margin: 18px 0; }
.dash-nav-btn {
  border: 0; background: transparent; text-align: left;
  padding: 10px 12px; border-radius: 10px; font: inherit; font-weight: 600;
  font-size: 13px; color: #475467; cursor: pointer;
}
.dash-nav-btn.is-active { background: #eef4ff; color: #155eef; }
.auth-ghost.danger { color: #f04438; border-color: #fecdca; width: 100%; justify-content: center; }
.mobile-only-signout { display: inline-flex; }
@media (min-width: 900px) { .mobile-only-signout { display: none; } }

.dash-main { width: 100%; }
@media (min-width: 900px) {
  .dash-main {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 16px;
    padding: 24px;
  }
}

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.bento-card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  padding: 16px;
}
@media (min-width: 900px) {
  .bento-card { background: #fafbfc; }
}
.bento-card.span-2 { grid-column: 1 / -1; }
.bento-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: #667085; margin-bottom: 10px;
}
.points { font-size: 28px; letter-spacing: -0.03em; display: block; margin-bottom: 4px; }
.muted { color: #667085; font-size: 13px; margin: 0; line-height: 1.45; }
.progress {
  height: 6px; border-radius: 99px; background: #e4e7ec; overflow: hidden; margin: 10px 0 12px;
}
.progress span { display: block; height: 100%; background: #155eef; border-radius: 99px; }
.mini-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #d0d5dd; background: #fff; border-radius: 8px;
  padding: 8px 12px; font-size: 12px; font-weight: 700; cursor: pointer;
  font-family: inherit; color: #101828; text-decoration: none;
}
.reorder-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.reorder-item {
  flex: 0 0 120px; text-decoration: none; color: #101828; font-size: 11px; font-weight: 600;
}
.reorder-item img {
  width: 120px; height: 150px; object-fit: cover; border-radius: 10px; background: #eef0f3; display: block; margin-bottom: 6px;
}
.order-progress {
  display: flex; justify-content: space-between; gap: 4px; margin: 14px 0;
  font-size: 10px; font-weight: 700; text-transform: uppercase; color: #98a2b3;
}
.order-progress .done { color: #155eef; }
.order-progress .line {
  flex: 1; height: 3px; background: #e4e7ec; align-self: center; border-radius: 99px;
}
.order-progress .line.done { background: #155eef; }


/* ===== LOGGED-IN: full dashboard, no lifestyle panel ===== */
body.is-logged-in .auth-visual {
  display: none !important;
}
body.is-logged-in .auth-stage {
  grid-template-columns: 1fr !important;
  min-height: 100dvh;
  background: #f4f5f7;
}
body.is-logged-in .auth-panel {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  padding: 24px 16px 64px !important;
  background: #f4f5f7 !important;
}
body.is-logged-in .account-dash {
  width: 100%;
  max-width: 1100px !important;
  margin: 0 auto;
}
body.is-logged-in .dash-shell {
  max-width: 1100px !important;
}
@media (min-width: 900px) {
  body.is-logged-in .dash-shell {
    grid-template-columns: 240px minmax(0, 1fr) !important;
    gap: 24px !important;
  }
  body.is-logged-in .dash-side {
    display: block !important;
  }
  body.is-logged-in .dash-main {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 16px;
    padding: 28px !important;
    min-height: 520px;
  }
}

/* Inline form feedback (no browser alerts) */
.form-toast {
  display: none;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.form-toast.is-error {
  display: block;
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
}
.form-toast.is-success {
  display: block;
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: #067647;
}
.form-toast.is-info {
  display: block;
  background: #eff8ff;
  border: 1px solid #b2ddff;
  color: #175cd3;
}
.auth-field-error input {
  border-color: #f04438 !important;
  box-shadow: 0 0 0 3px rgba(240,68,56,.12) !important;
}

/* Global soft toast (account + elsewhere) */
.btt-toast-host {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  display: grid;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}
.btt-toast {
  pointer-events: auto;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 12px 40px rgba(16,24,40,.12);
  font-size: 13px;
  font-weight: 600;
  color: #101828;
  animation: bttToastIn .2s ease;
}
.btt-toast.is-error { border-color: #fecdca; background: #fff5f5; color: #b42318; }
.btt-toast.is-success { border-color: #abefc6; background: #f6fef9; color: #067647; }
@keyframes bttToastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ===== ACCOUNT DASHBOARD — wave background, full width ===== */
body.is-logged-in.auth-premium-page {
  background: #0a1220 url('/bg-wave-deep.jpg') center center / cover no-repeat fixed !important;
  min-height: 100dvh;
}
body.is-logged-in .auth-stage {
  background: transparent !important;
  min-height: 100dvh;
}
body.is-logged-in .auth-panel {
  background: transparent !important;
  padding: 20px clamp(12px, 3vw, 32px) 48px !important;
  max-width: none !important;
  width: 100% !important;
}
body.is-logged-in .account-dash,
body.is-logged-in .dash-shell {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
}
@media (min-width: 900px) {
  body.is-logged-in .dash-shell {
    grid-template-columns: 260px minmax(0, 1fr) !important;
    gap: 20px !important;
    max-width: 100% !important;
  }
}
body.is-logged-in .dash-side {
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.35) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}
body.is-logged-in .dash-main {
  background: rgba(255,255,255,.9) !important;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.35) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
  min-height: 70vh;
}
body.is-logged-in .bento-card {
  background: rgba(255,255,255,.95) !important;
  border-color: rgba(226,232,240,.8) !important;
}
body.is-logged-in .dash-top h1,
body.is-logged-in #account-name {
  color: #0f172a;
}
/* Soft glass header bar when logged in */
body.is-logged-in .dash-kicker { color: #64748b; }

.auth-brand .logo-wordmark-text {
  font-family: "Great Vibes", cursive !important;
  font-size: 1.85rem !important;
  color: #fff !important;
}
.mobile-logo .logo-wordmark-text {
  font-family: "Great Vibes", cursive !important;
  font-size: 1.75rem !important;
  color: #101828 !important;
}


/* Mobile account dashboard navigation */
.dash-mobile-nav {
  display: none;
}
@media (max-width: 899px) {
  body.is-logged-in .dash-mobile-nav,
  .account-dash:not([hidden]) .dash-mobile-nav {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border-top: 1px solid #eef0f3;
    padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 24px rgba(16, 24, 40, 0.08);
  }
  body.is-logged-in .auth-panel,
  body.is-logged-in .account-dash {
    padding-bottom: 80px !important;
  }
  body.is-logged-in .dash-side {
    display: none !important;
  }
  body.is-logged-in .dash-side.is-open {
    display: block !important;
    position: fixed;
    inset: 0 30% 0 0;
    z-index: 90;
    border-radius: 0;
    height: 100%;
    overflow: auto;
    box-shadow: 8px 0 32px rgba(0,0,0,0.12);
  }
  body.is-logged-in .dash-side-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 85;
  }
  body.is-logged-in .dash-side-backdrop.is-on {
    display: block;
  }
}
.dash-mnav-btn {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  color: #667085;
  cursor: pointer;
}
.dash-mnav-btn .material-symbols-outlined {
  font-size: 22px;
}
.dash-mnav-btn.is-active {
  color: #155eef;
}
.mobile-only-menu {
  display: none;
}
@media (max-width: 899px) {
  body.is-logged-in .mobile-only-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #eef0f3;
    background: #fff;
    margin-left: 8px;
  }
  body.is-logged-in .dash-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }
}
