
.auth-shell{
  max-width:980px;
  margin:0 auto;
}
.auth-card{
  max-width:560px;
  margin:0 auto;
  padding:26px;
}
.auth-tabs{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin:18px 0;
}
.auth-tab{
  border:1px solid var(--line);
  border-radius:999px;
  padding:10px 12px;
  background:rgba(17,24,33,.78);
  color:var(--soft);
  cursor:pointer;
  font:inherit;
  font-weight:700;
}
.auth-tab.active{
  background:var(--gold);
  color:#05070b;
  border-color:transparent;
}
.auth-panel[hidden]{display:none!important}
.psd-form{
  display:grid;
  gap:14px;
}
.psd-field{
  display:grid;
  gap:7px;
}
.psd-field label{
  color:var(--soft);
  font-size:13px;
  font-weight:700;
}
.psd-input,
.psd-select{
  width:100%;
  box-sizing:border-box;
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px 13px;
  background:rgba(8,12,18,.92);
  color:var(--text);
  font:inherit;
}
.psd-input:focus,
.psd-select:focus{
  outline:2px solid rgba(210,153,34,.35);
  border-color:var(--gold);
}
.psd-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:999px;
  padding:12px 16px;
  background:var(--gold);
  color:#05070b;
  font:inherit;
  font-weight:900;
  cursor:pointer;
}
.psd-button:hover{background:var(--gold2)}
.psd-button.secondary{
  background:transparent;
  color:var(--soft);
  border:1px solid var(--line);
}
.psd-button.danger{
  background:#8f2828;
  color:#fff;
}
.psd-button:disabled{
  opacity:.55;
  cursor:not-allowed;
}
.psd-status{
  min-height:22px;
  margin:12px 0 0;
  font-size:13px;
  color:var(--muted);
}
.psd-status.success{color:var(--green)}
.psd-status.error{color:var(--red)}
.psd-help{
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}
.account-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  max-width:1180px;
  margin:0 auto;
}
.account-card{
  padding:22px;
}
.account-card.full{
  grid-column:1/-1;
}
.account-card h2{
  margin-top:0;
  font-size:22px;
}
.account-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}
.account-email{
  color:#ffd780;
  font-weight:800;
}
.inline-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.watchlist-list{
  list-style:none;
  padding:0;
  margin:16px 0 0;
  display:grid;
  gap:8px;
}
.watchlist-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px;
  background:rgba(8,12,18,.68);
}
.watchlist-remove{
  border:1px solid rgba(248,81,73,.45);
  border-radius:999px;
  background:transparent;
  color:#ffaaa6;
  padding:6px 10px;
  cursor:pointer;
}
.checkbox-row{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--soft);
}
.danger-zone{
  border-color:rgba(248,81,73,.35);
}
.hidden{display:none!important}
@media(max-width:780px){
  .account-grid{grid-template-columns:1fr}
  .account-card.full{grid-column:auto}
  .auth-tabs{grid-template-columns:1fr}
}
/* Sign-in popup */
body.psd-auth-modal-open{
  overflow:hidden;
}

.psd-auth-modal{
  position:fixed;
  inset:0;
  z-index:2147483646;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}

.psd-auth-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.76);
  backdrop-filter:blur(7px);
}

.psd-auth-modal-card{
  position:relative;
  z-index:1;
  width:min(510px,calc(100vw - 32px));
  max-height:min(760px,calc(100vh - 36px));
  overflow:auto;
  padding:30px;
  border:1px solid rgba(210,153,34,.42);
  border-radius:22px;
  background:
    radial-gradient(circle at top center,rgba(210,153,34,.10),transparent 18rem),
    #0d121b;
  box-shadow:
    0 28px 90px rgba(0,0,0,.72),
    0 0 34px rgba(210,153,34,.15);
}

.psd-auth-modal-close{
  position:absolute;
  top:12px;
  right:13px;
  display:flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border:1px solid var(--line);
  border-radius:50%;
  background:#111821;
  color:#fff;
  font:inherit;
  font-size:25px;
  line-height:1;
  cursor:pointer;
}

.psd-auth-modal-close:hover,
.psd-auth-modal-close:focus-visible{
  color:#05070b;
  background:var(--gold);
  border-color:var(--gold);
  outline:none;
}

.psd-auth-modal-badge{
  width:max-content;
  margin:0 auto 10px;
  padding:7px 13px;
  border:1px solid rgba(210,153,34,.44);
  border-radius:999px;
  background:rgba(210,153,34,.13);
  color:#ffd780;
  font-size:12px;
  font-weight:800;
}

.psd-auth-modal-card h2{
  margin:0;
  padding:0 35px;
  color:#fff;
  font-size:clamp(25px,4vw,34px);
  line-height:1.12;
  text-align:center;
}

.psd-auth-modal-intro{
  margin:12px auto 17px;
  max-width:420px;
  color:var(--soft);
  font-size:14px;
  line-height:1.55;
  text-align:center;
}

.psd-auth-modal-card .auth-tabs{
  margin:14px 0 18px;
}

.psd-auth-modal-card .psd-button{
  width:100%;
}

.psd-auth-modal-links{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:7px 17px;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--line);
  font-size:12px;
}

.psd-auth-modal-links a{
  color:var(--soft);
}

.psd-auth-modal-links a:hover{
  color:#ffd780;
}

.psd-auth-modal-note{
  margin:10px 0 0;
  text-align:center;
}

/* Center the badge on the backup full-page auth screen too. */
.auth-card > .page-chip{
  display:flex;
  margin:0 auto 12px;
}

.auth-card > h1,
.auth-card > h1 + p{
  text-align:center;
}

@media(max-width:600px){
  .psd-auth-modal{
    padding:10px;
    align-items:flex-start;
  }

  .psd-auth-modal-card{
    width:100%;
    max-height:calc(100vh - 20px);
    margin-top:0;
    padding:24px 18px 20px;
    border-radius:18px;
  }

  .psd-auth-modal-card h2{
    padding:0 28px;
    font-size:26px;
  }

  .psd-auth-modal-card .auth-tabs{
    grid-template-columns:1fr;
  }
}
/* Password visibility control */
.psd-password-wrap{
  position:relative;
  width:100%;
}

.psd-password-wrap .psd-input{
  width:100%;
  padding-right:52px;
}

.psd-password-toggle{
  position:absolute;
  top:50%;
  right:10px;
  transform:translateY(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  padding:0;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#c9d1d9;
  font-size:17px;
  line-height:1;
  cursor:pointer;
}

.psd-password-toggle:hover,
.psd-password-toggle:focus-visible{
  background:rgba(210,153,34,.14);
  color:#ffd780;
  outline:1px solid rgba(210,153,34,.35);
}
/* Remember-me confirmation toast */
.psd-remember-toast{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:2147483647;
  display:flex;
  align-items:center;
  gap:12px;
  max-width:min(430px,calc(100vw - 36px));
  padding:13px 15px;
  border:1px solid rgba(210,153,34,.50);
  border-radius:14px;
  background:rgba(13,17,23,.98);
  color:#e6edf3;
  box-shadow:0 18px 50px rgba(0,0,0,.55);
  font:600 13px Inter,Segoe UI,Arial,sans-serif;
}

.psd-remember-toast button{
  flex-shrink:0;
  border:1px solid rgba(210,153,34,.38);
  border-radius:999px;
  padding:7px 10px;
  background:rgba(210,153,34,.13);
  color:#ffd780;
  font:700 11px Inter,Segoe UI,Arial,sans-serif;
  cursor:pointer;
}

html{
  scroll-behavior:smooth;
}

#profile,
#preferences{
  scroll-margin-top:190px;
}


.watchlist-card-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
.watchlist-open-link{
  width:max-content;
  text-decoration:none;
}


.notification-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.notification-title-row h2{
  margin-bottom:0;
}
.coming-soon-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border:1px solid rgba(139,148,158,.38);
  border-radius:999px;
  background:rgba(139,148,158,.10);
  color:#9aa5b1;
  font-size:11px;
  font-weight:800;
  letter-spacing:.03em;
  text-transform:uppercase;
  white-space:nowrap;
}
.notification-disabled{
  min-width:0;
  margin:0;
  padding:0;
  border:0;
  opacity:.42;
  filter:grayscale(1);
}
.notification-disabled .checkbox-row,
.notification-disabled input,
.notification-disabled button{
  cursor:not-allowed!important;
}
.notification-disabled .psd-button{
  background:#5b6470;
  color:#c9d1d9;
  box-shadow:none;
}
.notification-coming-soon{
  margin:14px 0 0;
  padding:12px 14px;
  border:1px dashed rgba(139,148,158,.38);
  border-radius:12px;
  background:rgba(139,148,158,.07);
  color:#aab4c0;
  font-size:12px;
  line-height:1.55;
}
