/* Extracted from html/login.html. Keep page-specific styles here. */

.account-settings-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.1rem;
      align-items: start;
      margin: 0 auto;
      width: min(1120px, 100%);
    }

.account-settings-nav {
      position: sticky;
      top: 4.5rem;
      display: flex;
      flex-direction: column;
  gap: 0.48rem;
  padding: 0.5rem;
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.03);
      backdrop-filter: blur(18px);
    }

.account-settings-nav button {
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 12px;
  min-height: 40px;
  padding: 0 1rem;
      font-weight: 700;
      color: rgba(255, 255, 255, 0.75);
      background: rgba(255, 255, 255, 0.02);
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .account-settings-nav button:hover,
    .account-settings-nav button:focus-visible {
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
      outline: none;
    }

    .account-settings-nav button.is-active {
      color: #fff;
      background: rgba(255, 43, 111, 0.18);
      border: 1px solid rgba(255, 43, 111, 0.4);
    }

    .account-settings-content {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .account-settings-panel {
      display: none;
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.03);
      padding: 1.25rem;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .account-settings-panel.is-active {
      display: block;
    }

.settings-panel-header {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.account-settings-wide-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 1.4rem 1.45rem;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.account-settings-wide-card h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.premium-status-compact {
  border-color: rgba(255, 43, 111, 0.36);
  background: linear-gradient(145deg, rgba(255, 43, 111, 0.09), rgba(255, 255, 255, 0.02));
  padding: 1.4rem 1.45rem;
}

.premium-benefit-summary {
  padding: 1.6rem 1.55rem;
}

.premium-status-compact .status-eyebrow {
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff2b6f;
  font-weight: 800;
}

.premium-status-compact .status-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.12rem;
  color: #fff;
}

.premium-status-compact .status-badge {
  width: fit-content;
}

.premium-status-compact .status-meta {
  color: rgba(255, 255, 255, 0.82);
  margin: 0.2rem 0 0;
}

.account-summary-list {
  margin: 0.75rem 0 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.account-summary-list li {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
}

.account-summary-list li::before {
  content: "✓";
  color: #22c55e;
  font-weight: 900;
}

.premium-benefit-summary .muted-note {
  margin-top: 0.65rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

.premium-explore-card {
  margin-top: 0.5rem;
  border: 1px solid rgba(255, 43, 111, 0.3);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  background: rgba(255, 43, 111, 0.08);
}

.premium-explore-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.premium-explore-list {
  margin: 0.6rem 0 0.75rem;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.premium-explore-list li {
  border: 1px solid rgba(255, 45, 102, 0.34);
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  font-size: 0.84rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

    .settings-eyebrow {
      font-size: 0.72rem;
      letter-spacing: 0.08em;
      font-weight: 700;
      text-transform: uppercase;
      color: #94a3b8;
      margin: 0 0 0.35rem;
    }

    .settings-title {
      font-size: 1.3rem;
      font-weight: 800;
      margin: 0 0 0.25rem;
      color: #fff;
    }

    .settings-subtitle {
      margin: 0;
      color: rgba(255, 255, 255, 0.75);
      max-width: 75ch;
    }

    .settings-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 0.75rem;
      margin-bottom: 0.75rem;
    }

    .account-settings-card {
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 12px;
      padding: 0.95rem 1rem;
      background: rgba(255, 255, 255, 0.04);
    }

    .account-settings-card strong {
      display: block;
      font-size: 0.75rem;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.68);
      margin-bottom: 0.35rem;
    }

    .account-settings-card span {
      color: #fff;
      font-weight: 700;
      word-break: break-word;
    }

    .settings-badge {
      display: inline-flex;
      width: fit-content;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      border: 1px solid rgba(34, 197, 94, 0.45);
      background: rgba(34, 197, 94, 0.14);
      color: #22c55e;
      font-size: 0.75rem;
      font-weight: 800;
      padding: 0.15rem 0.6rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }

    .settings-list {
      margin: 0.35rem 0 0;
      padding: 0;
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.55rem;
    }

    .settings-list li {
      display: flex;
      justify-content: space-between;
      gap: 0.75rem;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 12px;
      padding: 0.8rem 1rem;
      color: rgba(255, 255, 255, 0.9);
    }

    .settings-list li .value {
      color: #fff;
      font-weight: 700;
    }

    .settings-list li small {
      color: rgba(255, 255, 255, 0.72);
      margin-top: 0.18rem;
      display: block;
    }

.settings-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.6rem;
  margin-top: 1.3rem;
}

    .settings-cta {
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      background: rgba(255, 255, 255, 0.06);
      padding: 0.55rem 0.95rem;
      color: #fff;
      font-weight: 700;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
    }

    .settings-cta.primary {
      color: #fff;
      border-color: rgba(255, 43, 111, 0.5);
      background: rgba(255, 43, 111, 0.18);
    }

    .settings-cta:focus-visible {
      outline: 2px solid rgba(255, 43, 111, 0.7);
      outline-offset: 2px;
    }

    .settings-cta.ghost {
      background: rgba(255, 255, 255, 0.02);
    }

    .settings-cta.danger {
      color: #ff6f85;
      border-color: rgba(255, 43, 111, 0.4);
    }

    .settings-note {
      color: rgba(255, 255, 255, 0.72);
      margin: 0.9rem 0 0;
      font-size: 0.9rem;
      max-width: 55ch;
    }

    .account-settings-panel .activity-toggle-group {
      margin-bottom: 0.75rem;
      flex-wrap: wrap;
    }

    @media (max-width: 980px) {
      .account-settings-shell {
        grid-template-columns: 1fr;
      }

      .account-settings-nav {
        position: static;
        padding: 0.35rem;
        flex-direction: row;
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
      }

      .account-settings-nav::-webkit-scrollbar {
        display: none;
      }

      .account-settings-nav button {
        width: auto;
        min-width: 150px;
      }
    }

    @media (max-width: 640px) {
      .settings-grid {
        grid-template-columns: 1fr;
      }
    }

/* Notification preferences */
.notification-preferences-list {
  display: grid;
  gap: 0.85rem;
}

.notification-preference-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.notification-preference-copy {
  display: grid;
  gap: 0.24rem;
}

.notification-preference-copy strong {
  color: #fff;
}

.notification-preference-copy small {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
}

.notification-required-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.notification-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  cursor: pointer;
  user-select: none;
}

.notification-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.notification-switch-track {
  width: 52px;
  height: 30px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.notification-switch-track span {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease;
}

.notification-switch input:checked + .notification-switch-track {
  border-color: rgba(255, 43, 111, 0.62);
  background: rgba(255, 43, 111, 0.32);
  box-shadow: 0 0 20px rgba(255, 43, 111, 0.16);
}

.notification-switch input:checked + .notification-switch-track span {
  transform: translateX(22px);
}

.notification-switch input:focus-visible + .notification-switch-track {
  outline: 2px solid rgba(255, 43, 111, 0.65);
  outline-offset: 3px;
}

.notification-switch-state {
  min-width: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

body.theme-light .notification-preference-row {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

body.theme-light .notification-preference-copy strong {
  color: #111827;
}

body.theme-light .notification-preference-copy small,
body.theme-light .notification-switch-state {
  color: #4b5563;
}

body.theme-light .notification-required-badge {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.06);
  color: #374151;
}

body.theme-light .notification-switch-track {
  border-color: rgba(15, 23, 42, 0.16);
  background: rgba(15, 23, 42, 0.08);
}

body.theme-light .notification-switch-track span {
  background: #fff;
}

@media (max-width: 640px) {
  .notification-preference-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
