/**
 * Appily Fortysix — Account Hub (new layout)
 * Centered hero · identity bar · vertical tabs + panel · guest auth card · orbit links
 */

@keyframes acct-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -10px) scale(1.04); }
}
@keyframes acct-ring-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes acct-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(174, 213, 129, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(174, 213, 129, 0); }
}
@keyframes acct-panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes acct-load-spin {
  to { transform: rotate(360deg); }
}

.page-account-hub {
  --acct-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --acct-display: 'Syne', 'Plus Jakarta Sans', system-ui, sans-serif;
  --acct-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --acct-lime: #AED581;
  --acct-coral: #FF7043;
  --acct-shadow: 0 20px 50px rgba(38, 50, 56, 0.1);
  --acct-shadow-sm: 0 8px 24px rgba(38, 50, 56, 0.07);
  background: #eef2ef;
  font-family: var(--acct-body);
  color: var(--fg-ink, #263238);
  -webkit-font-smoothing: antialiased;
}
.page-account-hub .page-main { padding-top: 0; }
body.page-account-hub.a46-store:not(.page-home) .page-main { background: #eef2ef; }

.page-account-hub h2,
.page-account-hub h3,
.page-account-hub h4 {
  font-family: var(--acct-display);
  color: var(--fg-ink, #263238);
  line-height: 1.2;
}

/* Hero headings stay on dark background */
.acct-hub-hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--acct-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
}
.acct-hub-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--acct-lime), #FDD835);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.acct-hub-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.acct-hub-lede {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 48ch;
  margin-inline: auto;
}

.page-account-hub p,
.page-account-hub label,
.page-account-hub input,
.page-account-hub button,
.page-account-hub summary {
  font-family: var(--acct-body);
}

.page-account-hub button {
  appearance: none;
  -webkit-appearance: none;
}

.acct-hub { padding-bottom: 0; }
.acct-hub-stage.auth-page {
  padding: 0 0 3rem;
  background: transparent;
  margin-top: -0.75rem;
  position: relative;
  z-index: 2;
}

/* Reveal */
.acct-hub-reveal, .page-account-hub .a46-grove-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--acct-ease), transform 0.65s var(--acct-ease);
}
.acct-hub-reveal.is-visible, .page-account-hub .a46-grove-reveal.is-visible { opacity: 1; transform: none; }

/* ── Hero ── */
.acct-hub-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.25rem, 5vw, 3.5rem) 0 clamp(1.75rem, 3vw, 2.5rem);
  color: #fff;
  text-align: center;
}
.acct-hub-hero-bg {
  position: absolute;
  inset: 0;
  background: #0f1f14;
  pointer-events: none;
  overflow: hidden;
}
.acct-hub-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(174, 213, 129, 0.28), transparent 42%),
    radial-gradient(circle at 80% 75%, rgba(255, 112, 67, 0.2), transparent 40%),
    linear-gradient(155deg, #1b3a1f, #0f1f14 55%, #152820);
}
.acct-hub-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  animation: acct-blob 12s ease-in-out infinite;
}
.acct-hub-blob--1 { width: 260px; height: 260px; top: -40px; right: 15%; background: rgba(255, 111, 0, 0.32); }
.acct-hub-blob--2 { width: 200px; height: 200px; bottom: -20px; left: 8%; background: rgba(174, 213, 129, 0.28); animation-delay: -4s; }
.acct-hub-blob--3 { width: 140px; height: 140px; top: 45%; left: 48%; background: rgba(38, 166, 154, 0.22); animation-delay: -7s; }
.acct-hub-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
}
.acct-hub-ring--outer { width: min(220px, 35vw); height: min(220px, 35vw); animation: acct-ring-spin 32s linear infinite; }
.acct-hub-ring--inner { width: min(140px, 22vw); height: min(140px, 22vw); border-color: rgba(253, 216, 53, 0.18); animation: acct-ring-spin 22s linear infinite reverse; }

.acct-hub-hero-inner { position: relative; z-index: 1; max-width: 620px; margin-inline: auto; }
.acct-hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.acct-hub-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acct-lime); animation: acct-pulse 2.5s ease-out infinite; }

/* Loading */
.acct-hub-loading.notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: #fff;
  border: 1px solid rgba(38, 50, 56, 0.08);
  border-radius: 20px;
  box-shadow: var(--acct-shadow-sm);
  font-size: 0.88rem;
  color: var(--fg-muted);
}
.acct-hub-loading-ring {
  width: 22px; height: 22px;
  border: 2px solid rgba(85, 139, 47, 0.2);
  border-top-color: var(--fg-green);
  border-radius: 50%;
  animation: acct-load-spin 0.8s linear infinite;
}

/* ── Logged-in dashboard ── */
.acct-hub-dashboard {
  display: grid;
  gap: 1.25rem;
}

.acct-hub-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--fg-green-dark), var(--fg-green));
  border-radius: 24px;
  color: #fff;
  box-shadow: 0 16px 40px rgba(51, 105, 30, 0.3);
}
.acct-hub-identity-main { display: flex; align-items: center; gap: 1rem; }
.acct-hub-avatar {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-family: var(--acct-display);
  font-size: 1.1rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}
.acct-hub-identity-tag { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; margin-bottom: 0.2rem; }
.acct-hub-identity-copy h2 {
  margin: 0;
  font-family: var(--acct-display);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
.acct-hub-identity-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.acct-hub-member-id {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  font-family: var(--acct-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.acct-hub-identity-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }

/* Shell: vertical tabs + content */
.acct-hub-shell {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.acct-hub-tabs {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem;
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(38, 50, 56, 0.06);
  box-shadow: var(--acct-shadow-sm);
  position: sticky;
  top: 5.5rem;
}
.acct-hub-tabs-glider {
  position: absolute;
  top: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--fg-green-dark), var(--fg-green));
  box-shadow: 0 6px 20px rgba(51, 105, 30, 0.28);
  transition: transform 0.4s var(--acct-ease), height 0.4s var(--acct-ease);
  z-index: 0;
}
.acct-hub-tab {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  font-family: var(--acct-body);
  text-align: left;
  color: var(--fg-muted);
  transition: color 0.25s, background 0.25s;
}
.acct-hub-tab.is-active { color: #fff; }
.acct-hub-tab-icon { font-size: 1.15rem; line-height: 1; flex-shrink: 0; }
.acct-hub-tab-text strong {
  display: block;
  font-family: var(--acct-display);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
}
.acct-hub-tab-text small {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 0.1rem;
  letter-spacing: 0.01em;
}
.acct-hub-tab:not(.is-active) .acct-hub-tab-text small { color: var(--fg-muted); }

.acct-hub-content {
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(38, 50, 56, 0.06);
  box-shadow: var(--acct-shadow);
  padding: 1.35rem 1.5rem 1.5rem;
  min-height: 320px;
}

.page-account-hub .dash-panel { display: none; }
.page-account-hub .dash-panel.is-active {
  display: block;
  animation: acct-panel-in 0.45s var(--acct-ease);
}

.acct-hub-panel-head { margin-bottom: 1.15rem; padding-bottom: 1rem; border-bottom: 1px solid var(--fg-border); }
.acct-hub-panel-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.acct-hub-panel-badge { display: inline-block; margin-bottom: 0.35rem; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-green); }
.acct-hub-panel-head h3 { margin: 0 0 0.3rem; font-family: var(--acct-display); font-size: 1.25rem; font-weight: 700; color: var(--fg-ink); }
.acct-hub-panel-head p { margin: 0; font-size: 0.86rem; color: var(--fg-muted); line-height: 1.5; }

/* Profile grid */
.acct-hub-profile.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.acct-hub-profile .profile-item {
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: #f8fbf8;
  border: 1px solid rgba(38, 50, 56, 0.06);
  transition: transform 0.25s var(--acct-ease), border-color 0.25s;
}
.acct-hub-profile .profile-item:hover { transform: translateY(-2px); border-color: rgba(85, 139, 47, 0.25); }
.acct-hub-profile .profile-item .k {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.3rem;
}
.acct-hub-profile .profile-item .v {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg-ink);
  word-break: break-word;
}
.acct-hub-profile .profile-item .v.mono { font-family: ui-monospace, monospace; font-size: 0.78rem; font-weight: 500; }

/* Orders */
.acct-hub-orders .order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  margin-bottom: 0.55rem;
  border-radius: 16px;
  background: #f8fbf8;
  border: 1px solid rgba(38, 50, 56, 0.06);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.acct-hub-orders .order-row:hover { border-color: rgba(85, 139, 47, 0.25); box-shadow: var(--acct-shadow-sm); }
.acct-hub-orders .order-row strong { display: block; font-family: var(--acct-display); font-size: 0.92rem; margin-bottom: 0.2rem; }
.acct-hub-orders .order-row .btn,
.acct-hub-orders .order-row .btn-soft,
.acct-hub-orders .order-row .acct-hub-btn {
  flex-shrink: 0;
  min-width: 96px;
}

.page-account-hub .mini-copy {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.5;
  margin: 0;
}
.page-account-hub .mini-copy + .mini-copy { margin-top: 0.15rem; }
.acct-hub-orders .mini-copy strong { color: var(--fg-ink); font-weight: 600; }

.acct-hub-orders .acct-hub-empty,
.acct-hub-orders > .mini-copy {
  padding: 1.25rem 1rem;
  border-radius: 16px;
  background: #f8fbf8;
  border: 1px dashed rgba(85, 139, 47, 0.25);
  text-align: center;
  font-size: 0.88rem;
}

/* Orbit quick links */
.acct-hub-orbit {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 0.25rem;
}
.acct-hub-orbit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 88px;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid rgba(38, 50, 56, 0.08);
  border-radius: 18px;
  text-decoration: none !important;
  color: var(--fg-ink);
  box-shadow: var(--acct-shadow-sm);
  transition: transform 0.3s var(--acct-ease), box-shadow 0.3s;
}
.acct-hub-orbit-item:hover { transform: translateY(-4px); box-shadow: var(--acct-shadow); }
.acct-hub-orbit-item--accent {
  background: linear-gradient(145deg, var(--fg-green-dark), var(--fg-green));
  color: #fff;
  border-color: transparent;
}
.acct-hub-orbit-icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 1.2rem;
  background: rgba(174, 213, 129, 0.2);
  border: 2px solid var(--fg-green);
}
.acct-hub-orbit-item--accent .acct-hub-orbit-icon { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.35); }
.acct-hub-orbit-label { font-size: 0.76rem; font-weight: 700; }

/* Buttons */
.acct-hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-family: var(--acct-body);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  border: 0;
  white-space: nowrap;
  transition: filter 0.2s, transform 0.2s, border-color 0.2s, background 0.2s, color 0.2s;
}
.acct-hub-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
.acct-hub-btn--sm { padding: 0.48rem 0.95rem; font-size: 0.78rem; min-height: 36px; }
.acct-hub-btn--primary {
  background: linear-gradient(120deg, var(--fg-green), var(--fg-green-dark));
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(51, 105, 30, 0.28);
}
.acct-hub-btn--primary:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.acct-hub-btn--ghost {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff !important;
}
.acct-hub-identity .acct-hub-btn--ghost { background: rgba(255,255,255,0.1); }
.acct-hub-content .acct-hub-btn--ghost,
.acct-hub-auth .acct-hub-btn--ghost {
  background: #fff;
  border: 1px solid var(--fg-border);
  color: var(--fg-ink) !important;
  box-shadow: none;
}
.acct-hub-content .acct-hub-btn--ghost:hover:not(:disabled),
.acct-hub-auth .acct-hub-btn--ghost:hover:not(:disabled) {
  border-color: var(--fg-orange);
  color: var(--fg-orange) !important;
  background: #fff;
}
.acct-hub-btn--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.45);
  color: #fff !important;
}
.acct-hub-btn--outline:hover:not(:disabled) { background: rgba(255,255,255,0.1); }

/* Legacy btn classes inside account hub */
.page-account-hub .btn,
.page-account-hub .btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--fg-green), var(--fg-green-dark));
  color: #fff !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none !important;
  border: 0;
}

/* Forms */
.acct-hub-form {
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.acct-hub-form .acct-hub-btn--primary,
.acct-hub-form .acct-hub-btn[type="submit"] {
  width: 100%;
  margin-top: 0.35rem;
  min-height: 46px;
}
.acct-hub-field { display: block; margin-bottom: 0.65rem; }
.acct-hub-field span {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #546e7a;
}
.acct-hub-field input {
  width: 100%;
  padding: 0.72rem 0.95rem;
  border: 2px solid var(--fg-border);
  border-radius: 14px;
  background: #fafafa;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--fg-ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.acct-hub-field input::placeholder { color: #90a4ae; font-weight: 400; }
.acct-hub-field input:focus {
  border-color: var(--fg-green);
  box-shadow: 0 0 0 4px rgba(85, 139, 47, 0.12);
  background: #fff;
}

.page-account-hub .auth-form { display: flex; flex-direction: column; gap: 0; }
.page-account-hub .auth-form label.acct-hub-field {
  display: block;
  margin-bottom: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  cursor: pointer;
}

/* Notices */
.page-account-hub .notice,
.page-account-hub #profileVerifyNotice {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.55;
  font-weight: 500;
  border: 1px solid rgba(38, 50, 56, 0.08);
  background: #fff;
  color: var(--fg-ink);
}
.page-account-hub .acct-hub-content .notice,
.page-account-hub #profileVerifyNotice.notice {
  margin-bottom: 1rem;
}
.page-account-hub .notice.success { border: 1px solid rgba(85, 139, 47, 0.3); background: rgba(174, 213, 129, 0.15); color: var(--fg-green-dark); }
.page-account-hub .notice.warning { border: 1px solid rgba(249, 168, 37, 0.35); background: rgba(253, 216, 53, 0.12); color: #7a5c00; }

/* Toast & inline status */
.page-account-hub .toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  left: auto;
  max-width: min(420px, calc(100vw - 2rem));
  padding: 0.95rem 1.15rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(38, 50, 56, 0.18);
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 2000;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s, transform 0.35s;
  pointer-events: none;
}
.page-account-hub .toast.visible,
.page-account-hub .toast.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.page-account-hub .toast.success { border-left: 4px solid var(--fg-green); }
.page-account-hub .toast.error { border-left: 4px solid #e53935; }
.page-account-hub .toast.warning { border-left: 4px solid var(--fg-yellow-dark); }

.page-account-hub .auth-inline-status {
  display: none;
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.84rem;
}
.page-account-hub .auth-inline-status.visible { display: block; }
.page-account-hub .auth-inline-status.success { background: rgba(174, 213, 129, 0.15); color: var(--fg-green-dark); }
.page-account-hub .auth-inline-status.error { background: rgba(244, 67, 54, 0.1); color: #c62828; }
.page-account-hub .auth-inline-status.warning { background: rgba(253, 216, 53, 0.15); color: #7a5c00; }

/* Forgot password */
.page-account-hub .auth-forgot-block { margin-top: 0; }
.acct-hub-reset { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--fg-border); }
.acct-hub-reset .form-subhead { margin: 0 0 0.75rem; font-size: 0.95rem; font-weight: 700; }

/* ── Guest layout ── */
.acct-hub-guest {
  display: grid;
  gap: 1.5rem;
  max-width: 960px;
  margin-inline: auto;
  padding-top: 0.5rem;
}

.acct-hub-benefits { padding: 0.25rem 0; }
.acct-hub-benefits-label {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-green-dark, #33691E);
  text-align: center;
}
.acct-hub-benefits-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.acct-hub-benefit {
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid rgba(38, 50, 56, 0.08);
  border-radius: 18px;
  box-shadow: var(--acct-shadow-sm);
  transition: transform 0.3s var(--acct-ease), border-color 0.3s;
}
.acct-hub-benefit:hover {
  transform: translateY(-3px);
  border-color: rgba(85, 139, 47, 0.22);
}
.acct-hub-benefit-num {
  display: block;
  font-family: var(--acct-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--fg-orange, #FF6F00);
  margin-bottom: 0.35rem;
}
.acct-hub-benefit p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--fg-ink, #263238);
}

.acct-hub-auth {
  background: #fff;
  border-radius: 28px;
  border: 1px solid rgba(38, 50, 56, 0.08);
  box-shadow: var(--acct-shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow: hidden;
}
.acct-hub-auth-head {
  text-align: center;
  margin-bottom: 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--fg-border, #E0E0E0);
}
.acct-hub-auth-badge {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(85, 139, 47, 0.1);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-green-dark, #33691E);
}
.acct-hub-auth-head h2 {
  margin: 0 0 0.4rem;
  font-family: var(--acct-display);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 700;
  color: var(--fg-ink, #263238);
}
.acct-hub-auth-head p {
  margin: 0 auto;
  max-width: 36ch;
  font-size: 0.88rem;
  color: var(--fg-muted, #607D8B);
  line-height: 1.55;
}

.acct-hub-auth-tabs {
  position: relative;
  display: flex;
  gap: 0.35rem;
  padding: 0.35rem;
  margin: 0 auto 1.35rem;
  max-width: 360px;
  background: rgba(85, 139, 47, 0.1);
  border-radius: 16px;
}
.acct-hub-auth-glider {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  height: calc(100% - 0.7rem);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--fg-green-dark), var(--fg-green));
  box-shadow: 0 4px 16px rgba(51, 105, 30, 0.28);
  transition: transform 0.4s var(--acct-ease), width 0.4s var(--acct-ease);
  z-index: 0;
}
.acct-hub-auth-tab {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  font-family: var(--acct-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #546e7a;
  transition: color 0.25s;
}
.acct-hub-auth-tab.is-active { color: #fff; }
.acct-hub-auth-tab:not(.is-active):hover { color: var(--fg-green-dark, #33691E); }

.page-account-hub .auth-split-panel { opacity: 1; transform: none; padding: 0; background: transparent; box-shadow: none; }
.page-account-hub .auth-split-panel[hidden] { display: none !important; }
.page-account-hub .auth-split-panel:not(.is-active) { display: none; }
.page-account-hub .auth-split-panel.is-active { display: block; animation: acct-panel-in 0.45s var(--acct-ease); }

.acct-hub-auth-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.acct-hub-auth-panel {
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
}

.acct-hub-auth-panel h3 {
  margin: 0 0 0.4rem;
  font-family: var(--acct-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg-ink, #263238);
  text-align: center;
}
.acct-hub-auth-panel .lead {
  margin: 0 auto 1.15rem;
  font-size: 0.88rem;
  color: var(--fg-muted, #607D8B);
  line-height: 1.55;
  max-width: 34ch;
  text-align: center;
}

.acct-hub-auth .acct-hub-form {
  max-width: none;
  width: 100%;
}

.acct-hub-forgot {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(38, 50, 56, 0.12);
  width: 100%;
}
.acct-hub-forgot summary {
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--fg-green);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.acct-hub-forgot summary::-webkit-details-marker { display: none; }
.acct-hub-forgot summary::after {
  content: '›';
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s;
}
.acct-hub-forgot[open] summary::after { transform: rotate(90deg); }
.acct-hub-forgot summary:hover { color: var(--fg-orange); }
.acct-hub-forgot .acct-hub-form { margin-top: 0.85rem; }

.acct-hub-auth-foot {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--fg-border);
}
.acct-hub-auth-foot a { font-size: 0.82rem; font-weight: 600; color: var(--fg-green); text-decoration: none !important; }
.acct-hub-auth-foot a:hover { color: var(--fg-orange); }

/* ── Responsive ── */
@media (min-width: 900px) {
  .acct-hub-guest {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    align-items: start;
    gap: 1.75rem;
    max-width: 980px;
  }
  .acct-hub-benefits-label { text-align: left; }
  .acct-hub-benefits-track { grid-template-columns: 1fr; }
}

@media (min-width: 640px) and (max-width: 899px) {
  .acct-hub-benefits-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .acct-hub-shell { grid-template-columns: 1fr; }
  .acct-hub-tabs {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .acct-hub-tabs::-webkit-scrollbar { display: none; }
  .acct-hub-tab { flex: 0 0 auto; min-width: 140px; }
  .acct-hub-tabs-glider { display: none; }
  .acct-hub-tab.is-active { background: linear-gradient(135deg, var(--fg-green-dark), var(--fg-green)); border-radius: 14px; }
  .acct-hub-profile.profile-grid { grid-template-columns: 1fr; }
  .acct-hub-identity { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .acct-hub-guest { gap: 1.15rem; }
  .acct-hub-benefits-track { grid-template-columns: 1fr; }
  .acct-hub-auth { padding: 1.15rem 1rem 1rem; border-radius: 22px; }
  .acct-hub-auth-tabs { max-width: none; }
  .acct-hub-auth-panel { max-width: none; }
  .acct-hub-panel-head-row { flex-direction: column; }
  .acct-hub-orders .order-row { flex-direction: column; align-items: flex-start; }
  .acct-hub-orbit { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .acct-hub-orbit::-webkit-scrollbar { display: none; }
  .acct-hub-hero { padding-bottom: 2rem; }
  .acct-hub-stage.auth-page { margin-top: 0; }
}

@media (max-width: 480px) {
  .acct-hub-benefit p { font-size: 0.82rem; }
  .acct-hub-field input { font-size: 16px; /* prevent iOS zoom */ }
}

@media (prefers-reduced-motion: reduce) {
  .acct-hub-reveal, .page-account-hub .dash-panel.is-active { animation: none !important; transition: none; opacity: 1; transform: none; }
  .acct-hub-blob, .acct-hub-ring, .acct-hub-badge-dot, .acct-hub-loading-ring { animation: none !important; }
  .acct-hub-tabs-glider, .acct-hub-auth-glider { transition: none; }
}
