/* NyayTrack — update popup + welcome splash */
.nyay-upd-root {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 14px calc(18px + env(safe-area-inset-bottom, 0px));
  background: rgba(4, 11, 20, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: nyayUpdFade .22s ease both;
}
@media (min-width: 560px) {
  .nyay-upd-root { align-items: center; }
}
@keyframes nyayUpdFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes nyayUpdRise {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.nyay-upd-card {
  width: min(420px, 100%);
  background: linear-gradient(180deg, #fffcf7 0%, #f4f0e8 100%);
  border: 1px solid rgba(197, 160, 40, 0.4);
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  padding: 22px 18px 16px;
  text-align: center;
  color: #0a1628;
  animation: nyayUpdRise .32s cubic-bezier(.2,.8,.2,1) both;
}
.nyay-upd-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #c5a028;
  padding: 5px;
  margin: 0 auto 12px;
  display: block;
}
.nyay-upd-kicker {
  display: inline-block;
  margin: 0 0 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #fff4d6;
  color: #6b5310;
  border: 1px solid #e8d48b;
}
.nyay-upd-card.force .nyay-upd-kicker {
  background: #fdeceb;
  color: #7b241c;
  border-color: #e2b0ab;
}
.nyay-upd-card h2 {
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", "Libre Baskerville", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nyay-upd-card p {
  margin: 0 0 12px;
  color: #5c6d80;
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 500;
}
.nyay-upd-notes {
  text-align: left;
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #eef3f9;
  border: 1px solid #d5dee8;
  border-radius: 14px;
  list-style: none;
}
.nyay-upd-notes li {
  position: relative;
  padding: 5px 0 5px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #243447;
  line-height: 1.4;
}
.nyay-upd-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c5a028;
}
.nyay-upd-progress {
  height: 8px;
  margin: 0 0 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.nyay-upd-progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #c5a028, #e8d59a);
  transition: width .2s ease;
}
.nyay-upd-status {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #5c6d80;
  min-height: 1.2em;
}
.nyay-upd-actions {
  display: grid;
  gap: 8px;
}
.nyay-upd-actions a,
.nyay-upd-actions button {
  min-height: 48px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.nyay-upd-primary {
  background: linear-gradient(135deg, #f0dfa3, #c5a028 55%, #a8861d);
  color: #1a1405;
  box-shadow: 0 10px 22px rgba(154, 122, 34, 0.28);
}
.nyay-upd-primary:disabled {
  opacity: 0.75;
  cursor: wait;
}
.nyay-upd-secondary {
  background: transparent;
  color: #0a1628;
  border: 1px solid #cfd8e4 !important;
}

/* Welcome splash — matches auth v2: flat, quiet, institutional */
.nyay-boot-logo {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: max(24px, env(safe-area-inset-top, 0px)) 28px max(28px, env(safe-area-inset-bottom, 0px));
  background: #0a1018;
  color: #e4ebf3;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
@media (prefers-color-scheme: light) {
  .nyay-boot-logo {
    background: #e8edf3;
    color: #102033;
  }
}
html[data-theme="dark"] .nyay-boot-logo {
  background: #0a1018;
  color: #e4ebf3;
}
html[data-theme="light"] .nyay-boot-logo {
  background: #e8edf3;
  color: #102033;
}
.nyay-boot-logo.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.nyay-boot-logo .seal {
  width: 64px;
  height: 64px;
  margin: 0 0 4px;
  display: block;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  animation: nyayBootIn 0.45s ease both;
}
.nyay-boot-logo .mark {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.2;
  color: inherit;
  animation: nyayBootIn 0.45s ease 0.06s both;
}
.nyay-boot-logo .mark span {
  color: inherit;
  font-style: normal;
}
.nyay-boot-logo .sub {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: #92a0b2;
  animation: nyayBootIn 0.45s ease 0.12s both;
}
@media (prefers-color-scheme: light) {
  .nyay-boot-logo .sub { color: #5b6b7c; }
}
html[data-theme="light"] .nyay-boot-logo .sub { color: #5b6b7c; }
html[data-theme="dark"] .nyay-boot-logo .sub { color: #92a0b2; }

.nyay-boot-logo .pulse {
  width: 36px;
  height: 3px;
  margin-top: 16px;
  border-radius: 2px;
  background: #2a3748;
  overflow: hidden;
  animation: nyayBootIn 0.45s ease 0.18s both;
}
@media (prefers-color-scheme: light) {
  .nyay-boot-logo .pulse { background: #cfd8e3; }
}
html[data-theme="light"] .nyay-boot-logo .pulse { background: #cfd8e3; }
.nyay-boot-logo .pulse > i {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 2px;
  background: #f2f5f9;
  animation: nyayBootBar 0.9s ease-in-out infinite;
}
@media (prefers-color-scheme: light) {
  .nyay-boot-logo .pulse > i { background: #0b1220; }
}
html[data-theme="light"] .nyay-boot-logo .pulse > i { background: #0b1220; }

@keyframes nyayBootIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes nyayBootBar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}
@media (prefers-reduced-motion: reduce) {
  .nyay-boot-logo .seal,
  .nyay-boot-logo .mark,
  .nyay-boot-logo .sub,
  .nyay-boot-logo .pulse,
  .nyay-boot-logo .pulse > i {
    animation: none !important;
  }
}
