/* ModunACCOUNT — content chrome on shared void atmosphere / header */
:root {
  --acct-panel: rgba(14, 18, 28, 0.72);
  --acct-panel-2: rgba(18, 24, 36, 0.85);
  --acct-line: rgba(150, 180, 230, 0.14);
  --acct-ink: #e8ecf4;
  --acct-muted: rgba(180, 196, 220, 0.72);
  --acct-accent: #7db4ff;
  --acct-accent-deep: #3275ff;
  --acct-danger: #ff8a98;
  --acct-radius: 12px;
}

.acct-page {
  min-height: 100vh;
  color: var(--acct-ink);
}

.acct-skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.acct-skip:focus {
  left: 8px;
  z-index: 99;
  background: #000;
  padding: 8px;
}

/* —— Guest gate (Netflix-style) —— */
.acct-gate {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 4.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
}

.acct-page[data-view="app"] .acct-gate {
  display: none !important;
}

.acct-gate__card {
  width: min(420px, 100%);
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(150, 180, 230, 0.16);
  background: rgba(10, 14, 24, 0.78);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.acct-gate__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8eb6ff;
}

.acct-gate__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display, "Syne", "Outfit", system-ui, sans-serif);
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f2f5fb;
}

.acct-gate__lede {
  margin: 0 0 1.25rem;
  color: var(--acct-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.acct-gate__form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.acct-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--acct-muted);
}

.acct-field input,
.acct-field select {
  appearance: none;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(150, 180, 230, 0.2);
  border-radius: 10px;
  background: rgba(6, 9, 16, 0.9);
  color: #e8ecf4;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
}

.acct-field input:focus,
.acct-field select:focus {
  outline: none;
  border-color: rgba(125, 180, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(50, 117, 255, 0.18);
}

.acct-terms {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--acct-muted);
  line-height: 1.45;
}
.acct-terms a {
  color: #8eb6ff;
}
.acct-terms input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.acct-gate__submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}

.acct-gate__submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.acct-gate__switch {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.86rem;
  color: var(--acct-muted);
}

.acct-text-link {
  appearance: none;
  border: none;
  background: none;
  color: #8eb6ff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.acct-oauth {
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--acct-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.acct-oauth__or {
  margin: 0;
  font-size: 0.72rem;
  color: var(--acct-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.acct-err {
  margin: 0;
  color: var(--acct-danger);
  font-size: 0.85rem;
}

/* —— Signed-in shell (Google Account geometry, ModunOS polish) —— */
.acct-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 4.25rem);
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

.acct-page[data-view="guest"] .acct-shell {
  display: none !important;
}

.acct-nav {
  border: none;
  background: transparent;
  padding: 0.85rem 0.65rem 1.5rem max(1.25rem, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.acct-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  align-items: stretch;
}

.acct-nav__item {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--acct-muted);
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  width: 100%;
}
.acct-nav__item:hover {
  color: var(--acct-ink);
  background: rgba(255, 255, 255, 0.04);
}
.acct-nav__item.is-active {
  color: var(--acct-ink);
  background: rgba(50, 117, 255, 0.16);
  box-shadow: none;
}

.acct-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 0 1.25rem 2.5rem;
}

.acct-main {
  width: 100%;
  max-width: 720px;
  padding: 1.15rem 0 0;
  margin: 0 auto;
}

.acct-page-title {
  margin: 0 0 1rem;
  font-family: var(--font-display, "Syne", "Outfit", system-ui, sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f2f5fb;
}

.acct-panel {
  min-width: 0;
}

/* Quiet About link in header (match ai chat) */
.acct-page .void-top__about {
  color: var(--acct-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}
.acct-page .void-top__about:hover {
  color: #f2f5fb;
  text-decoration: none;
}

/* Content cards */
.acct-btn {
  appearance: none;
  border: none;
  background: rgba(50, 117, 255, 0.85);
  color: #f4f7ff;
  font: inherit;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.acct-btn:hover {
  background: rgba(80, 140, 255, 0.95);
}
.acct-btn--ghost {
  background: transparent;
  color: var(--acct-ink);
  border: 1px solid var(--acct-line);
}
.acct-btn--ghost:hover {
  border-color: rgba(125, 180, 255, 0.45);
  color: #8eb6ff;
}

.acct-card {
  background: var(--acct-panel);
  border: 1px solid var(--acct-line);
  border-radius: var(--acct-radius);
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
  backdrop-filter: blur(8px);
}
.acct-id {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  min-width: 0;
}
.acct-id__text {
  min-width: 0;
  flex: 1;
}
.acct-id__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(50, 117, 255, 0.55), rgba(14, 20, 34, 0.85));
  border: 1px solid rgba(125, 180, 255, 0.35);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.acct-id__name {
  font-weight: 600;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}
.acct-id__meta {
  color: var(--acct-muted);
  font-size: 0.85rem;
  margin-top: 0.15rem;
  overflow-wrap: anywhere;
}
.acct-facts {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}
.acct-facts li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--acct-line);
  font-size: 0.9rem;
}
.acct-facts li:last-child {
  border-bottom: none;
}
.acct-facts .k {
  color: var(--acct-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.acct-facts .v {
  overflow-wrap: anywhere;
}
.acct-files {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}
.acct-files li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--acct-line);
  font-size: 0.86rem;
}
.acct-files li:last-child {
  border-bottom: none;
}
.acct-files__path {
  color: var(--acct-muted);
  font-size: 0.75rem;
  grid-column: 1 / -1;
}
.acct-files__size {
  color: var(--acct-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}
.acct-people {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}
.acct-people li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--acct-line);
  font-size: 0.92rem;
}
.acct-people li:last-child {
  border-bottom: none;
}
.acct-guest-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}
.acct-guest-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--acct-line);
}
.acct-guest-list li:last-child {
  border-bottom: none;
}
.acct-guest__hint {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--acct-muted);
}
.acct-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--acct-muted);
  cursor: pointer;
  user-select: none;
}
.acct-switch input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #3275ff;
}
.acct-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(50, 117, 255, 0.18);
  color: #8eb6ff;
}
.acct-badge--muted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--acct-muted);
}

.acct-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.85rem 0;
}
.acct-tile {
  appearance: none;
  border: 1px solid var(--acct-line);
  background: var(--acct-panel-2);
  border-radius: var(--acct-radius);
  padding: 0.9rem;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.acct-tile strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}
.acct-tile span {
  color: var(--acct-muted);
  font-size: 0.8rem;
}

.acct-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--acct-line);
}
.acct-row:last-child {
  border-bottom: none;
}
.acct-row.is-current em {
  color: #8eb6ff;
  font-style: normal;
  font-size: 0.78rem;
}
.acct-link {
  appearance: none;
  border: none;
  background: transparent;
  color: #8eb6ff;
  font: inherit;
  cursor: pointer;
}

.acct-label {
  display: block;
  font-size: 0.75rem;
  color: var(--acct-muted);
  margin: 0.55rem 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.acct-input {
  width: 100%;
  background: rgba(6, 9, 16, 0.9);
  border: 1px solid var(--acct-line);
  border-radius: 8px;
  color: var(--acct-ink);
  font: inherit;
  padding: 0.55rem 0.7rem;
  box-sizing: border-box;
}
.acct-mint {
  display: flex;
  gap: 0.5rem;
}
.acct-mint .acct-input {
  flex: 1;
}
.acct-mint-ok {
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 229, 204, 0.28);
  background: rgba(0, 229, 204, 0.08);
  font-size: 0.84rem;
  line-height: 1.4;
  color: rgba(200, 230, 224, 0.92);
}
.acct-mint-ok .acct-link {
  margin-left: 0.35rem;
}
.acct-card--world {
  margin-top: 0.75rem;
}
.acct-world__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 650;
}
.acct-world__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0.65rem 0 0;
}

.acct-muted {
  color: var(--acct-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.acct-todo {
  list-style: none;
  margin: 0;
  padding: 0;
}
.acct-todo li {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--acct-line);
  border-radius: 8px;
  margin-bottom: 0.45rem;
  background: var(--acct-panel);
}
.acct-todo span {
  color: var(--acct-muted);
  font-size: 0.78rem;
}
.acct-todo span.soon {
  color: var(--acct-muted);
  font-size: 0.75rem;
}
.acct-todo span.live {
  color: #8eb6ff;
  font-weight: 600;
}

.acct-billing-skus {
  list-style: none;
  margin: 0;
  padding: 0;
}
.acct-billing-skus li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--acct-line);
  color: var(--acct-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.acct-billing-skus li:last-child {
  border-bottom: none;
}
.acct-billing-skus strong {
  color: var(--acct-text, #e8ecf4);
  font-weight: 600;
}

.acct-modal__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.acct-card--claim {
  border-color: rgba(125, 180, 255, 0.35);
  background: linear-gradient(160deg, rgba(50, 117, 255, 0.1), transparent 55%);
}
.acct-claim__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.acct-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0;
}
.acct-chip {
  appearance: none;
  border: 1px solid var(--acct-line);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
  font-size: 0.84rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}
.acct-chip:hover {
  border-color: rgba(125, 180, 255, 0.45);
  color: #8eb6ff;
}
.acct-muted.is-bad,
#acct-handle-hint.is-bad {
  color: #ff8a98;
}
.acct-ok {
  color: #8eb6ff;
  font-size: 0.84rem;
  margin: 0.4rem 0 0;
}
.acct-pass-form {
  margin-top: 0.35rem;
}
.acct-pass-row {
  display: flex;
  gap: 0.45rem;
  align-items: stretch;
  margin-bottom: 0.55rem;
}
.acct-pass-row .acct-input {
  flex: 1;
  margin: 0;
}
.acct-pass-eye {
  appearance: none;
  border: 1px solid var(--acct-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--acct-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  min-width: 3.6rem;
}
.acct-pass-eye:hover {
  color: var(--acct-ink);
  border-color: rgba(125, 180, 255, 0.35);
}

@media (max-width: 820px) {
  .acct-shell {
    grid-template-columns: 1fr;
  }
  .acct-nav {
    border: none;
    border-bottom: none;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding-bottom: 0.5rem;
  }
  .acct-nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1;
  }
  .acct-stage {
    padding-top: 0.25rem;
  }
  .acct-grid {
    grid-template-columns: 1fr;
  }
}
