/* Kiwi TopUp — Account / profile dashboard (scoped .acct-) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.acct-wrap {
  min-height: 100vh;
  padding-top: calc(var(--nav-h, 90px) + 28px);
  padding-bottom: max(96px, env(safe-area-inset-bottom, 0px) + 72px);
}
.acct-container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.acct-bc {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  margin-bottom: 12px;
}
.acct-bc a {
  color: var(--clr-primary);
  text-decoration: none;
}
.acct-bc a:hover {
  text-decoration: underline;
}
.acct-h1 {
  font-family: 'Syne', var(--font-body), system-ui, sans-serif;
  font-size: clamp(1.65rem, 4.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  color: var(--clr-text);
}
.acct-lead {
  margin: 0;
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  line-height: 1.55;
  max-width: 520px;
}
.acct-head-block {
  margin-bottom: 28px;
}

/* ─── Logged-out gate ──────────────────────────────────────── */
.acct-gate-hero {
  text-align: center;
  padding: 36px 0 44px;
  max-width: 560px;
  margin: 0 auto;
}
.acct-gate-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 22px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  color: var(--clr-primary);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}
html.light .acct-gate-icon {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}
.acct-gate-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 10px;
}
.acct-gate-copy {
  color: var(--clr-text-muted);
  margin-bottom: 28px;
  line-height: 1.55;
}
.acct-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
  text-align: left;
}
.acct-ft {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
}
.acct-ft .uic {
  flex-shrink: 0;
  color: var(--clr-primary);
  margin-top: 2px;
}
.acct-ft-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-text-muted);
  margin-bottom: 4px;
}
.acct-ft-copy {
  font-size: 0.86rem;
  color: var(--clr-text-sub);
  line-height: 1.45;
}

.acct-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}
.acct-gate-actions .btn {
  padding: 14px 28px;
  font-size: 0.96rem;
  min-height: 48px;
}

.acct-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 4vw, 28px);
  max-width: 460px;
  margin: 0 auto;
  box-sizing: border-box;
}
.acct-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  margin: 0 0 8px;
}
.acct-card-lead {
  font-size: 0.89rem;
  color: var(--clr-text-muted);
  margin: 0 0 20px;
  line-height: 1.55;
}

/* ─── Logged-in dashboard ─────────────────────────────────── */
.acct-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 270px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.acct-sidebar {
  position: sticky;
  top: calc(var(--nav-h, 90px) + 16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.acct-user-card {
  padding: 20px;
  border-radius: var(--radius-xl);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.acct-user-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-family: 'Syne', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  box-shadow: 0 10px 30px rgba(74, 222, 128, 0.25);
}
.acct-user-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  margin: 0;
  color: var(--clr-text);
  word-break: break-word;
}
.acct-user-email {
  margin: 0;
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  word-break: break-all;
}

.acct-rail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: var(--radius-xl);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
}
.acct-rail-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.89rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  color: var(--clr-text-muted);
  background: transparent;
  transition: background 0.15s, color 0.15s;
}
.acct-rail-btn .uic {
  flex-shrink: 0;
  opacity: 0.85;
}
.acct-rail-btn:hover {
  background: var(--clr-surface);
  color: var(--clr-text);
}
.acct-rail-btn.active {
  background: rgba(74, 222, 128, 0.12);
  color: var(--clr-primary);
  border: 1px solid rgba(74, 222, 128, 0.25);
}
.acct-rail-btn.active .uic i {
  color: var(--clr-primary);
}
.acct-rail-meta {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(74, 222, 128, 0.2);
  color: var(--clr-text);
  padding: 3px 8px;
  border-radius: 999px;
  min-width: 1.4em;
  text-align: center;
}

.acct-rail-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--clr-primary);
  text-decoration: none;
  border-radius: var(--radius-md);
}
.acct-rail-link:hover {
  background: var(--clr-surface);
}

.acct-sidebar-out {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.86rem;
  border: 1px solid var(--clr-border);
  background: transparent;
  color: var(--clr-text-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.acct-sidebar-out:hover {
  border-color: rgba(248, 113, 113, 0.45);
  color: rgb(248, 113, 113);
}

.acct-mobile-tabs {
  display: none;
}

.acct-mobile-logout {
  display: none;
}

/* Main column wrapper */
.acct-maincol {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Main column */
.acct-main {
  min-width: 0;
}

.acct-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.acct-toolbar h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.acct-badge {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.15);
  color: var(--clr-primary);
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.acct-link-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--clr-primary);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
}
.acct-link-soft:hover {
  border-color: var(--clr-primary-glow);
}

.acct-panel {
  display: none;
}
.acct-panel.active {
  display: block;
  animation: acctFade 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes acctFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ac-orders-intro {
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  background: rgba(74, 222, 128, 0.06);
}
html.light .ac-orders-intro {
  background: rgba(74, 222, 128, 0.08);
}
.ac-orders-intro-copy {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--clr-text-muted);
}
.ac-orders-intro-copy strong {
  color: var(--clr-primary);
}

.ac-link-order-panel {
  margin-bottom: 22px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(74, 222, 128, 0.28);
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.09), transparent 48%);
  overflow: hidden;
}
.ac-link-order-inner {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  align-items: flex-start;
}
.ac-link-order-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 222, 128, 0.18);
  color: var(--clr-primary);
  font-size: 1.15rem;
}
.ac-link-order-text {
  flex: 1;
  min-width: 0;
}
.ac-link-order-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ac-link-order-copy {
  margin: 0 0 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--clr-text-muted);
}
.ac-link-order-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.ac-link-order-input.form-input {
  min-height: 48px;
  padding: 12px 14px;
}
.ac-link-order-btn {
  flex-shrink: 0;
}
.ac-link-order-panel .ac-field-msg {
  margin-top: 10px;
  margin-bottom: 0;
}

/* Orders (reuse structural classes from markup) */
.ac-order-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ac-order-card:hover {
  border-color: rgba(74, 222, 128, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
}

.ac-order-head,
.ac-order-summary {
  width: 100%;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  display: block;
  padding: 16px 20px;
  cursor: pointer;
  background: none;
  border: none;
  box-sizing: border-box;
}
.ac-order-summary {
  cursor: default;
}

.ac-order-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 18px;
  align-items: start;
  width: 100%;
}

.ac-order-head-primary {
  min-width: 0;
}

.ac-order-code {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--clr-primary);
}

.ac-order-code--muted {
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  opacity: 0.65;
}

.ac-order-submeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  line-height: 1.35;
}

.ac-order-dot {
  opacity: 0.4;
  user-select: none;
}

.ac-order-id-inner {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--clr-text-muted);
}

.ac-order-preview {
  flex: 1 1 140px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ac-order-head-aside {
  display: grid;
  justify-items: end;
  gap: 8px;
  flex-shrink: 0;
}

.ac-order-status-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ac-order-date {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
}

.ac-order-status {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ac-order-status.fulfilled {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}
.ac-order-status.not-fulfilled {
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
}
.ac-order-status.pending-whatsapp {
  background: rgba(251, 191, 36, 0.14);
  color: #fcd34d;
}
.ac-order-status.received {
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
}
.ac-order-status.processing {
  background: rgba(96, 165, 250, 0.14);
  color: #93c5fd;
}
.ac-order-status.sent-whatsapp {
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
}
.ac-order-status.refunded {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}
.ac-order-status.cancelled {
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}
.ac-order-status.unknown,
.ac-order-status.unknown-status {
  background: var(--clr-surface);
  color: var(--clr-text-muted);
}
.ac-order-total {
  font-weight: 800;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.ac-order-chevron i {
  transition: transform 0.25s ease;
}
.ac-order-card.expanded .ac-order-chevron i {
  transform: rotate(180deg);
}

.ac-order-body {
  display: none;
  padding: 0 20px 20px;
  border-top: 1px solid var(--clr-border);
}
.ac-order-card.expanded .ac-order-body {
  display: block;
}

.ac-order-items {
  margin-top: 12px;
}
.ac-order-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--clr-border);
  font-size: 0.88rem;
}
.ac-order-item:last-child {
  border-bottom: none;
}
.ac-order-item-price {
  font-weight: 800;
  color: var(--clr-primary);
  font-variant-numeric: tabular-nums;
}
.ac-order-item-qty {
  color: var(--clr-text-muted);
}

.ac-fulfillment-box {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.22);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ac-fulfillment-box .uic.ac-fulfill-ic i {
  color: var(--clr-primary);
  font-size: 1.05rem;
}
.ac-fulfillment-box strong {
  color: var(--clr-primary);
}

.ac-empty {
  text-align: center;
  padding: 56px 20px;
  color: var(--clr-text-muted);
  border-radius: var(--radius-xl);
  border: 1px dashed var(--clr-border);
  background: rgba(0, 0, 0, 0.12);
}
html.light .ac-empty {
  background: rgba(0, 0, 0, 0.02);
}

.ac-pagination-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
}
.ac-pagination-meta {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--clr-text-muted);
}
.ac-pagination-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ac-page-btn {
  padding: 8px 12px;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--clr-border);
  background: transparent;
  color: var(--clr-text);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}
.ac-page-btn.active {
  background: rgba(74, 222, 128, 0.15);
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}
.ac-page-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.ac-page-ellipsis {
  padding: 0 4px;
  color: var(--clr-text-muted);
}

/* Profile & security grid */
.acct-profile-layout,
.acct-settings-layout {
  display: grid;
  gap: 20px;
}
@media (min-width: 880px) {
  .acct-settings-layout {
    grid-template-columns: 1fr 1fr;
  }
}

/* Profile: single column, comfortable reading width */
.acct-profile-layout {
  max-width: 620px;
  grid-template-columns: 1fr;
}

.acct-settings-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
}
.acct-settings-row-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--clr-text);
}
.acct-settings-row-meta {
  margin: 6px 0 0;
  font-size: 0.84rem;
  color: var(--clr-text-muted);
  line-height: 1.45;
}
.acct-settings-action {
  flex-shrink: 0;
}
.acct-signout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.acct-legal-layout {
  max-width: 720px;
}
.acct-legal-list {
  margin: 0 0 22px;
  padding-left: 1.35rem;
  color: var(--clr-text-sub);
  font-size: 0.9rem;
  line-height: 1.55;
}
.acct-legal-list li + li {
  margin-top: 10px;
}
.acct-legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.acct-legal-wa {
  text-decoration: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.acct-legal-foot {
  margin: 22px 0 0;
  font-size: 0.84rem;
  color: var(--clr-text-muted);
}

.acct-subcard {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 22px 22px 20px;
  transition:
    border-color 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.acct-subcard:hover {
  border-color: color-mix(in srgb, var(--clr-primary) 22%, var(--clr-border));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1);
}
html.light .acct-subcard:hover {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
.acct-subcard h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  margin: 0 0 6px;
}
.acct-subcard-lead {
  font-size: 0.84rem;
  color: var(--clr-text-muted);
  margin: 0 0 18px;
  line-height: 1.45;
}

.ac-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
@media (max-width: 520px) {
  .ac-stat-row {
    grid-template-columns: 1fr;
  }
}
.ac-stat-pill {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.ac-stat-pill-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-text-muted);
  margin-bottom: 6px;
}
.ac-stat-pill-val {
  font-size: 0.93rem;
  font-weight: 800;
  color: var(--clr-text);
  word-break: break-word;
}

@media (prefers-reduced-motion: reduce) {
  .acct-panel.active,
  .acct-subcard,
  .acct-mtab,
  .acct-rail-btn {
    animation: none;
    transition: none;
  }
  .acct-mtab:active {
    transform: none;
  }
}

.ac-field {
  margin-bottom: 16px;
}
.ac-field:last-of-type {
  margin-bottom: 0;
}
.ac-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--clr-text-muted);
  margin-bottom: 6px;
}
.ac-field input {
  width: 100%;
  padding: 12px 14px;
  min-height: 46px;
  box-sizing: border-box;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  background: var(--clr-bg);
  color: var(--clr-text);
  font-size: 0.92rem;
  transition: border-color 0.2s;
}
.ac-field input:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.12);
}
.ac-field input:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.ac-field-pin {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.ac-field-pin input {
  min-width: 0;
}

.ac-pin-toggle {
  min-width: 44px;
  height: 46px;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  color: var(--clr-text);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ac-pin-toggle .uic {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ac-pin-toggle:hover {
  border-color: var(--clr-primary);
}

.ac-hint-muted {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  margin: 10px 0 0;
  line-height: 1.4;
}

.ac-save-btn {
  width: 100%;
  padding: 14px;
  margin-top: 14px;
  min-height: 48px;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  background: var(--clr-text);
  color: var(--clr-bg);
  transition:
    opacity 0.15s,
    transform 0.15s;
}
html.light .ac-save-btn {
  color: #fff;
}
.ac-save-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.ac-save-btn.secondary {
  background: transparent;
  color: var(--clr-text);
  border: 1.5px solid var(--clr-border);
  margin-top: 10px;
}
.ac-save-btn.secondary:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

.ac-field-msg {
  margin-top: 10px;
  font-size: 0.82rem;
  min-height: 1.25em;
}
.ac-field-msg.ok {
  color: var(--clr-success);
}
.ac-field-msg.err {
  color: var(--clr-danger);
}

.ac-skeleton {
  background: linear-gradient(90deg, var(--clr-surface) 25%, var(--clr-border) 50%, var(--clr-surface) 75%);
  background-size: 200% 100%;
  animation: acctShimmer 1.35s infinite;
  border-radius: var(--radius-md);
  height: 72px;
  margin-bottom: 10px;
}
@keyframes acctShimmer {
  to {
    background-position: -200% 0;
  }
}

/* Guest lookup */
.ac-guest-box .ac-save-btn {
  margin-top: 8px;
}
.ac-guest-result {
  margin-top: 20px;
}
.ac-guest-result .ac-order-card {
  margin-bottom: 0;
}

.ac-guest-link-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--clr-border);
}
.ac-guest-link-actions .ac-save-btn {
  margin-top: 0;
}

.ac-guest-link-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  line-height: 1.45;
}
.ac-guest-link-note--ok {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.22);
  color: var(--clr-primary);
}
.ac-guest-link-note--warn {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #fcd34d;
}

.ac-guest-box {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 4vw, 32px);
  max-width: 460px;
  box-sizing: border-box;
}
.ac-guest-box h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  margin: 0 0 8px;
}
.ac-guest-box p {
  font-size: 0.89rem;
  color: var(--clr-text-muted);
  margin: 0 0 20px;
  line-height: 1.55;
}

.ac-gate-card {
  margin-top: 32px;
  padding: clamp(20px, 4vw, 26px);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  box-sizing: border-box;
}
.ac-gate-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.ac-gate-card > p:first-of-type {
  color: var(--clr-text-muted);
  font-size: 0.88rem;
  margin: 0 0 18px;
  line-height: 1.5;
}

.ac-empty h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--clr-text);
}

.ac-empty .acct-link-inline {
  color: var(--clr-primary);
  font-weight: 800;
  text-decoration: none;
}
.ac-empty .acct-link-inline:hover {
  text-decoration: underline;
}

.acct-user-stats {
  margin-top: 14px;
  width: 100%;
}

.ac-stat-row.acct-user-stats {
  margin-bottom: 0;
}

/* Touch / mobile dashboard */
@media (max-width: 900px) {
  .acct-dashboard {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .acct-sidebar {
    position: static;
    top: auto;
  }

  .acct-user-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: start;
    column-gap: 16px;
    row-gap: 12px;
    text-align: left;
    padding: 16px 18px;
    border-radius: calc(var(--radius-xl) + 2px);
    transition:
      border-color 0.25s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    box-sizing: border-box;
  }
  .acct-user-card:hover {
    border-color: color-mix(in srgb, var(--clr-primary) 18%, var(--clr-border));
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.1);
  }
  html.light .acct-user-card:hover {
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
  }
  .acct-user-card .acct-user-avatar {
    grid-column: 1;
    grid-row: 1;
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
  }

  .acct-user-text {
    grid-column: 2;
    grid-row: 1;
    flex: unset;
    min-width: 0;
  }

  .acct-mobile-logout {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--clr-border);
    background: transparent;
    color: var(--clr-text-muted);
    cursor: pointer;
    line-height: 0;
    transition:
      border-color 0.2s ease,
      color 0.2s ease,
      background 0.2s ease;
  }
  .acct-mobile-logout:hover {
    color: rgb(248, 113, 113);
    border-color: rgba(248, 113, 113, 0.4);
  }

  .acct-user-stats {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0;
  }

  .acct-mobile-tabs {
    display: flex;
    gap: 8px;
    padding: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x proximity;
    margin-top: 4px;
    margin-bottom: 10px;
    border-radius: var(--radius-xl);
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
  }
  .acct-mobile-tabs::-webkit-scrollbar {
    display: none;
  }
  .acct-mtab {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    color: var(--clr-text-muted);
    white-space: nowrap;
    font-family: inherit;
    transition:
      background 0.22s cubic-bezier(0.22, 1, 0.36, 1),
      color 0.22s ease,
      transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
    -webkit-tap-highlight-color: transparent;
  }
  .acct-mtab:active {
    transform: scale(0.96);
  }
  .acct-mtab.active {
    background: rgba(74, 222, 128, 0.15);
    color: var(--clr-primary);
  }

  .acct-rail,
  .acct-rail-link,
  .acct-sidebar-out {
    display: none !important;
  }
}

@media (max-width: 560px) {
  .acct-head-block .acct-h1,
  .acct-head-block .acct-lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .acct-head-block .acct-bc {
    justify-content: center;
  }
  .acct-gate-actions .btn,
  .acct-gate-actions button {
    flex: 1 1 calc(50% - 8px);
    min-height: 48px;
  }
  .ac-order-head,
  .ac-order-summary {
    padding: 14px 16px;
  }
  .ac-order-head-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ac-order-head-aside {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .ac-order-status-row {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
  }
}

/* ─── Order tracking (timeline + admin note) ─────────────────── */
.ac-tracking {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  background: rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0;
}
html.light .ac-tracking {
  background: rgba(74, 222, 128, 0.06);
}
.ac-tracking-step {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  align-items: start;
  padding: 8px 0;
  position: relative;
}
.ac-tracking-step + .ac-tracking-step {
  border-top: 1px solid var(--clr-border);
}
.ac-tracking-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 4px;
  background: var(--clr-border);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.08);
}
.ac-tracking-step--done .ac-tracking-dot {
  background: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.22);
}
.ac-tracking-step--active .ac-tracking-dot {
  background: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25);
}
.ac-tracking-step--pending .ac-tracking-label {
  color: var(--clr-text-muted);
}
.ac-tracking-label {
  font-size: 0.88rem;
  font-weight: 600;
}
.ac-tracking-meta {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--clr-text-muted);
}
.ac-tracking-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--clr-primary);
  background: var(--clr-surface);
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--clr-text);
}
.ac-tracking-note-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-primary);
  margin-bottom: 6px;
}
.ac-tracking-banner {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
}
.ac-tracking-banner--bad {
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}
.ac-tracking-banner--muted {
  background: var(--clr-surface);
  color: var(--clr-text-muted);
}
.ac-tracking-banner--warn {
  background: rgba(251, 191, 36, 0.15);
  color: var(--clr-text);
  border: 1px solid rgba(251, 191, 36, 0.35);
}
html.light .ac-tracking-banner--warn {
  background: rgba(251, 191, 36, 0.2);
}
.ac-order-ref {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--clr-surface-high);
  color: var(--clr-primary);
}
.ac-guest-legacy-hint {
  margin: 10px 0 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-text-muted);
}
