/* Account deletion page: forms, steps and request details on top of styles.css. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

/* Language menu: a pill like the nav links, opening a panel in the page's own colors (not the OS menu). */
.language-picker { position: relative; }
.language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 14px;
  border: 1px solid rgba(188, 164, 232, .19);
  border-radius: 30px;
  background: rgba(138, 61, 255, .21);
  color: #eee3ff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.language-trigger:hover, .language-trigger[aria-expanded="true"] { border-color: rgba(188, 164, 232, .45); background: rgba(138, 61, 255, .36); }
.language-trigger:focus-visible { outline: 2px solid #d8bcff; outline-offset: 3px; }
.language-trigger svg { transition: transform .16s ease; }
.language-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  z-index: 20;
  min-width: 100%;
  margin: 0;
  padding: 6px;
  border: 1px solid rgba(188, 164, 232, .28);
  border-radius: 16px;
  background: rgba(36, 19, 77, .96);
  box-shadow: 0 14px 34px rgba(8, 3, 24, .45);
  list-style: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.language-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 10px;
  color: #eee3ff;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}
.language-menu li::before { content: ""; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: transparent; }
.language-menu li[aria-selected="true"]::before { background: #d8bcff; }
.language-menu li:hover, .language-menu li:focus { outline: none; background: rgba(138, 61, 255, .36); }

.deletion-page { display: grid; gap: 22px; }
.deletion-page .back-link { margin-bottom: 4px; }
.deletion-card > p { margin: 12px 0 0; }
.deletion-step, .deletion-panel { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.deletion-panel { padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: rgba(12, 6, 32, .28); }
.deletion-card h2, .deletion-fallback h2 { margin: 0 0 10px; font-size: 22px; font-weight: 550; letter-spacing: -.02em; }
.deletion-card h2:focus { outline: none; }
.deletion-card h3 { margin: 26px 0 8px; font-size: 16px; font-weight: 600; }
.deletion-card p { margin: 0 0 10px; }

.field { display: grid; gap: 7px; margin-top: 18px; }
.field-label { color: var(--text); font-size: 14px; font-weight: 500; }
.field-hint { color: #a993cc; font-size: 13px; line-height: 1.6; }
.deletion-card .field-hint { margin-top: 8px; }
.field-count { justify-self: end; margin-top: 0 !important; }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid rgba(188, 164, 232, .28);
  border-radius: 10px;
  background: rgba(10, 4, 28, .45);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.field textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: #b98aff; outline: 2px solid rgba(185, 138, 255, .35); outline-offset: 1px; }
#code { max-width: 220px; font-size: 22px; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.code-email { color: var(--text); font-weight: 500; }

.check { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; color: #d8cbee; font-size: 14px; line-height: 1.6; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: #e0457b; cursor: pointer; }

.deletion-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; }
.deletion-actions .button { margin-top: 0; }
.button { font-family: inherit; }
.button[disabled] { opacity: .5; cursor: not-allowed; }
.button[disabled]:hover { background: #7935d8; }
.button-quiet { border-color: rgba(188, 164, 232, .3); background: rgba(138, 61, 255, .16); }
.button-quiet:hover, .button-quiet[disabled]:hover { background: rgba(138, 61, 255, .3); }
.button-danger { background: #c22f62; }
.button-danger:hover { background: #d93a71; }
.button-danger[disabled]:hover { background: #c22f62; }
.link-button { padding: 4px 0; border: 0; background: none; color: #d0adff; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.link-button:hover { color: white; }
.link-button[disabled] { opacity: .5; cursor: not-allowed; }

.deletion-notice { margin-top: 22px; padding: 14px 18px; border: 1px solid; border-radius: 12px; font-size: 14px; }
.deletion-notice p { margin: 0; color: inherit !important; }
.deletion-notice p + p { margin-top: 8px; }
.deletion-notice h3 { margin: 0 0 6px; }
.deletion-notice ul { margin: 8px 0 10px; padding-inline-start: 20px; }
.deletion-notice ul:last-child { margin-bottom: 0; }
.deletion-notice.is-error { border-color: rgba(255, 107, 151, .45); background: rgba(194, 47, 98, .14); color: #ffd6e3; }
.deletion-notice.is-info { border-color: rgba(188, 164, 232, .35); background: rgba(138, 61, 255, .14); color: #e6dbf7; }
.support-email { color: #e2c6ff !important; font-weight: 500; }

.account-card { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(12, 6, 32, .28); }
.account-avatar { position: relative; flex: none; display: grid; place-items: center; width: 54px; height: 54px; overflow: hidden; border-radius: 50%; background: #5a2a98; color: white; font-size: 22px; font-weight: 600; }
.account-avatar::before { content: attr(data-initial); }
.account-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.account-text { display: grid; min-width: 0; }
.account-text strong { overflow: hidden; color: var(--text); font-size: 17px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.account-id { color: #b9a5da; font-size: 13px; }

.balance-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.balance-list div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(12, 6, 32, .28); }
.balance-list dt { color: #b9a5da; font-size: 13px; }
.balance-list dd { margin: 2px 0 0; color: var(--text); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }

.request-list { margin: 14px 0 0; }
.request-list div { display: grid; grid-template-columns: minmax(130px, 38%) minmax(0, 1fr); gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.request-list dt { color: #b9a5da; }
.request-list dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }

.scope-list { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.scope { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding: 11px 14px; border-inline-start: 3px solid; border-radius: 8px; background: rgba(12, 6, 32, .24); font-size: 14px; }
.scope-name { color: var(--text); }
.scope-handling { font-size: 13px; font-weight: 600; text-align: end; white-space: nowrap; }
.scope-reason { grid-column: 1 / -1; color: #a993cc; font-size: 13px; line-height: 1.55; }
.handling-1 { border-color: #e0457b; }
.handling-1 .scope-handling { color: #ff9dbd; }
.handling-2 { border-color: #c7a24a; }
.handling-2 .scope-handling { color: #f1d38b; }
.handling-3 { border-color: #7d8cff; }
.handling-3 .scope-handling { color: #b9c1ff; }
.scope-details { margin-top: 14px; }
.scope-details summary { color: #d0adff; font-size: 14px; cursor: pointer; }

.deletion-fallback { padding: 28px 42px; }
.deletion-fallback p { margin: 0 0 8px; font-size: 14px; }

@media (max-width: 760px) {
  .deletion-panel { padding: 18px; }
  .deletion-fallback { padding: 24px 23px; }
  .scope { grid-template-columns: 1fr; }
  .scope-handling { text-align: start; white-space: normal; }
  .request-list div { grid-template-columns: 1fr; gap: 2px; }
  .inner-header .nav-links { flex-wrap: wrap; justify-content: flex-end; }
}
