/* Account — Filament desk
   Dynamic Island chrome · high-contrast controls · --lg-nav-* baseline */

.fg-account {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 96px;
  color: var(--lg-ink);
}

.fg-hero {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
  animation: lgFadeUp 0.7s var(--lg-ease) both;
}

.fg-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lg-copper-deep);
  font-weight: 800;
}

.fg-invite .fg-kicker { color: #f3c4a0; }

.fg-hero h1 {
  margin: 0;
  font-family: var(--lg-font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--lg-ink);
}

.fg-hero h1 span {
  color: var(--lg-sap);
  font-style: italic;
  font-weight: 600;
}

.fg-hero > p {
  margin: 0;
  max-width: 46ch;
  color: var(--lg-nav-muted);
  line-height: 1.55;
  font-weight: 500;
}

.fg-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px;
  border: 1px dashed rgba(19, 32, 25, 0.22);
  border-radius: var(--lg-nav-radius);
  background: rgba(255, 255, 255, 0.88);
  color: var(--lg-nav-muted);
  font-weight: 600;
}

.fg-loading-spin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(19, 32, 25, 0.18);
  border-top-color: var(--lg-sap);
  animation: fgSpin 0.8s linear infinite;
}

@keyframes fgSpin { to { transform: rotate(360deg); } }

.fg-desk {
  display: grid;
  gap: 20px;
}

.fg-id {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 22px;
  padding: 22px;
  border-radius: var(--lg-nav-radius);
  background:
    linear-gradient(135deg, rgba(179, 92, 42, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(19, 32, 25, 0.14);
  box-shadow: 0 12px 32px rgba(19, 32, 25, 0.07);
}

.fg-mono {
  width: 72px;
  height: 72px;
  border-radius: var(--lg-nav-radius-sm);
  display: grid;
  place-items: center;
  font-family: var(--lg-font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: #ffffff;
  background: var(--lg-nav-ink);
}

.fg-id h2 {
  margin: 4px 0 0;
  font-family: var(--lg-font-display);
  font-size: 1.55rem;
  color: var(--lg-ink);
}

.fg-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ——— Action chips / buttons ——— */
.fg-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1.5px solid rgba(19, 32, 25, 0.18);
  background: var(--lg-panel);
  color: var(--lg-nav-ink);
  border-radius: var(--lg-nav-radius-sm);
  padding: 0 14px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--lg-ease), border-color 0.2s, background 0.2s, color 0.2s;
}

.fg-chip:hover,
.fg-chip:focus-visible {
  transform: translateY(-1px);
  background: var(--lg-nav-ink);
  border-color: var(--lg-nav-ink);
  color: #ffffff;
  outline: none;
}

.fg-chip--warn {
  border-color: rgba(138, 66, 24, 0.45);
  background: #f8efe6;
  color: var(--lg-copper-deep);
}

.fg-chip--warn:hover,
.fg-chip--warn:focus-visible {
  background: var(--lg-copper-deep);
  border-color: var(--lg-copper-deep);
  color: #ffffff;
}

.fg-chip--danger {
  border-color: rgba(140, 40, 40, 0.4);
  background: #f8eaea;
  color: #6b1f1f;
}

.fg-chip--danger:hover,
.fg-chip--danger:focus-visible {
  background: #6b1f1f;
  border-color: #6b1f1f;
  color: #ffffff;
}

.fg-switcher {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  border-radius: var(--lg-nav-radius);
  background: rgba(19, 32, 25, 0.07);
  border: 1px solid rgba(19, 32, 25, 0.14);
}

.fg-switcher button,
.dash-nav-link {
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: calc(var(--lg-nav-radius) - 4px);
  min-height: 44px;
  padding: 10px 8px;
  font: inherit;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--lg-nav-muted);
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color 0.2s;
}

.fg-switcher button.is-active,
.dash-nav-link.is-active {
  color: var(--lg-ink);
}

.fg-switcher button:hover,
.fg-switcher button:focus-visible,
.dash-nav-link:hover,
.dash-nav-link:focus-visible {
  color: var(--lg-ink);
  outline: none;
}

.fg-switcher-ink {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: calc(33.333% - 4px);
  border-radius: calc(var(--lg-nav-radius) - 4px);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(19, 32, 25, 0.1);
  transition: transform 0.35s var(--lg-ease);
  z-index: 0;
}

.fg-panel,
.dash-panel {
  display: none;
  padding: 24px;
  border-radius: var(--lg-nav-radius);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(19, 32, 25, 0.14);
  box-shadow: 0 10px 28px rgba(19, 32, 25, 0.06);
  animation: lgFadeUp 0.45s var(--lg-ease) both;
}

.fg-panel.is-active,
.dash-panel.is-active { display: block; }

.fg-panel h3,
.dash-panel h3 {
  margin: 0 0 6px;
  font-family: var(--lg-font-display);
  font-size: 1.35rem;
  color: var(--lg-ink);
}

.fg-panel > p,
.fg-panel-head p,
.dash-panel > p {
  margin: 0 0 18px;
  color: var(--lg-nav-muted);
  font-weight: 500;
  line-height: 1.5;
}

.fg-panel-head--row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 8px;
}

.fg-panel-head--row a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--lg-nav-radius-sm);
  background: var(--lg-nav-ink);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.82rem;
  text-decoration: none;
  border: 1px solid var(--lg-nav-ink);
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.fg-panel-head--row a:hover,
.fg-panel-head--row a:focus-visible {
  background: var(--lg-sap);
  border-color: var(--lg-sap);
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.fg-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 700px) {
  .fg-facts { grid-template-columns: 1fr; }
  .fg-id { grid-template-columns: 1fr; }
  .fg-panel-head--row {
    flex-direction: column;
    align-items: stretch;
  }
  .fg-switcher {
    grid-template-columns: 1fr;
    border-radius: var(--lg-nav-radius);
  }
  .fg-switcher-ink { display: none; }
  .fg-switcher button.is-active,
  .dash-nav-link.is-active {
    background: #ffffff;
    color: var(--lg-ink);
    box-shadow: 0 4px 12px rgba(19, 32, 25, 0.08);
  }
}

.fg-facts dl,
.profile-grid dl {
  margin: 0;
  padding: 14px;
  border-radius: var(--lg-nav-radius-sm);
  background: var(--lg-panel);
  border: 1px solid rgba(19, 32, 25, 0.12);
}

.fg-facts dt,
.profile-grid dt {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lg-copper-deep);
  font-weight: 800;
  margin-bottom: 4px;
}

.fg-facts dd,
.profile-grid dd {
  margin: 0;
  font-weight: 700;
  color: var(--lg-ink);
}

.fg-prefs { margin-bottom: 8px; }

.fg-toggle {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  margin-bottom: 10px;
  border-radius: var(--lg-nav-radius-sm);
  background: var(--lg-panel);
  border: 1px solid rgba(19, 32, 25, 0.12);
  cursor: pointer;
}

.fg-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.fg-toggle-ui {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(19, 32, 25, 0.22);
  position: relative;
  transition: background 0.25s;
  flex-shrink: 0;
}

.fg-toggle-ui i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(19, 32, 25, 0.2);
  transition: transform 0.25s var(--lg-ease);
}

.fg-toggle input:checked + .fg-toggle-ui { background: var(--lg-sap); }
.fg-toggle input:checked + .fg-toggle-ui i { transform: translateX(20px); }

.fg-toggle:focus-within {
  outline: 2px solid var(--lg-sap);
  outline-offset: 2px;
}

.fg-toggle strong {
  display: block;
  font-size: 0.95rem;
  color: var(--lg-ink);
}

.fg-toggle em {
  font-style: normal;
  color: var(--lg-nav-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.fg-form {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.fg-field { display: block; min-width: 0; }

.fg-field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lg-nav-muted);
}

.fg-field input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(19, 32, 25, 0.2);
  border-radius: var(--lg-nav-radius-sm);
  padding: 12px 14px;
  font: inherit;
  font-weight: 600;
  color: var(--lg-ink);
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fg-field input::placeholder {
  color: #6a7a71;
  opacity: 1;
}

.fg-field input:focus {
  outline: none;
  border-color: var(--lg-sap);
  box-shadow: 0 0 0 3px rgba(15, 107, 72, 0.16);
}

.fg-field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: stretch;
}

.fg-eye {
  appearance: none;
  border: 1.5px solid rgba(19, 32, 25, 0.18);
  background: var(--lg-panel);
  color: var(--lg-nav-ink);
  border-radius: var(--lg-nav-radius-sm);
  min-width: 72px;
  min-height: 48px;
  padding: 0 12px;
  font: inherit;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.fg-eye:hover,
.fg-eye:focus-visible {
  background: var(--lg-nav-ink);
  border-color: var(--lg-nav-ink);
  color: #ffffff;
  outline: none;
}

.fg-submit {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--lg-nav-active-bg);
  border-radius: var(--lg-nav-radius-sm);
  min-height: 52px;
  padding: 0 20px;
  background: var(--lg-nav-active-bg);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 107, 72, 0.22);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, color 0.2s;
}

.fg-submit:hover,
.fg-submit:focus-visible {
  background: #0c563a;
  border-color: #0c563a;
  color: #ffffff;
  transform: translateY(-1px);
  outline: none;
}

.fg-submit--ghost {
  background: #ffffff;
  color: var(--lg-sap);
  border-color: var(--lg-sap);
  box-shadow: none;
}

.fg-submit--ghost:hover,
.fg-submit--ghost:focus-visible {
  background: var(--lg-sap);
  border-color: var(--lg-sap);
  color: #ffffff;
}

.fg-gate {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .fg-gate { grid-template-columns: 1fr; }
}

.fg-invite {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--lg-nav-radius);
  overflow: hidden;
  background: var(--lg-nav-ink);
  color: #f4f8f5;
}

.fg-invite::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  top: -40px;
  border-radius: 40% 60% 55% 45%;
  background: radial-gradient(circle, rgba(20, 145, 95, 0.45), transparent 70%);
}

.fg-invite > * { position: relative; }

.fg-invite h2 {
  margin: 8px 0 12px;
  font-family: var(--lg-font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  color: #ffffff;
}

.fg-invite > p {
  margin: 0;
  color: rgba(244, 248, 245, 0.9);
  line-height: 1.55;
  font-weight: 500;
}

.fg-invite ul {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.fg-invite li {
  padding: 10px 12px;
  border-left: 3px solid var(--lg-copper);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 600;
  animation: lgFadeUp 0.55s var(--lg-ease) both;
  animation-delay: calc(var(--b, 0) * 70ms);
}

.fg-auth {
  padding: 24px;
  border-radius: var(--lg-nav-radius);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(19, 32, 25, 0.14);
  box-shadow: 0 12px 32px rgba(19, 32, 25, 0.07);
}

.fg-mode {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  border-radius: var(--lg-nav-radius);
  background: rgba(19, 32, 25, 0.07);
  border: 1px solid rgba(19, 32, 25, 0.1);
}

.fg-mode button,
.auth-split-tab {
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: calc(var(--lg-nav-radius) - 4px);
  min-height: 44px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  position: relative;
  z-index: 1;
  color: var(--lg-nav-muted);
  transition: color 0.2s;
}

.fg-mode button.is-active,
.auth-split-tab.is-active {
  color: var(--lg-ink);
}

.fg-mode button:hover,
.fg-mode button:focus-visible,
.auth-split-tab:hover,
.auth-split-tab:focus-visible {
  color: var(--lg-ink);
  outline: none;
}

.fg-mode-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: calc(var(--lg-nav-radius) - 4px);
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(19, 32, 25, 0.1);
  transition: transform 0.3s var(--lg-ease);
  z-index: 0;
}

.fg-auth[data-active="register"] .fg-mode-thumb { transform: translateX(100%); }

.auth-split-panel { display: none; }
.auth-split-panel.is-active {
  display: block;
  animation: lgFadeUp 0.35s var(--lg-ease) both;
}

.fg-forgot {
  margin-top: 16px;
  border-top: 1px dashed rgba(19, 32, 25, 0.2);
  padding-top: 12px;
}

.fg-forgot summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--lg-copper-deep);
  padding: 6px 0;
}

.fg-forgot summary:hover,
.fg-forgot summary:focus-visible {
  color: var(--lg-ink);
  outline: none;
}

.fg-toast,
.toast.fg-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: var(--lg-nav-radius-sm);
  background: var(--lg-nav-ink);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(19, 32, 25, 0.2);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.fg-toast.is-visible,
.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.order-list article,
.kx-orders article,
.fg-orders article {
  padding: 14px;
  margin-bottom: 10px;
  border-radius: var(--lg-nav-radius-sm);
  background: var(--lg-panel);
  border: 1px solid rgba(19, 32, 25, 0.12);
  color: var(--lg-ink);
}

/* Verify notice injected by JS */
#profileVerifyNotice:not(:empty) {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: var(--lg-nav-radius-sm);
  background: #f8efe6;
  border: 1px solid rgba(138, 66, 24, 0.35);
  color: var(--lg-copper-deep);
  font-weight: 700;
  font-size: 0.88rem;
}
