:root {
  --bg: #07080d;
  --card: rgba(28, 28, 32, .82);
  --line: rgba(255, 255, 255, .1);
  --txt: #f5f6fa;
  --txt-2: #9d9ea9;
  --txt-3: #6e6f7b;
  --blue: #3375bb;
  --blue-2: #4a8ed6;
  --green: #30d158;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }

body {
  background:
    radial-gradient(680px 340px at 50% -12%, rgba(51, 117, 187, .34), transparent 70%),
    radial-gradient(520px 280px at 88% 108%, rgba(120, 80, 220, .18), transparent 72%),
    var(--bg);
  color: var(--txt);
  font: 400 16px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 372px;
  margin: auto;
}

/* notification card */
.notif {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 15px 17px 17px;
  box-shadow: 0 26px 70px -22px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .35);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  animation: drop .58s cubic-bezier(.2, .9, .25, 1) both;
}
@keyframes drop {
  from { opacity: 0; transform: translateY(-22px) scale(.965); }
  to { opacity: 1; transform: none; }
}

.notif-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
}
.app-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  background: #3375bb;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.app-name {
  font-size: 13px;
  font-weight: 600;
  color: #cfd1da;
  letter-spacing: .1px;
}
.app-time {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--txt-3);
}

.notif-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.4px;
}
.notif-title b { font-weight: 700; }

.notif-sub {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--txt-2);
}
.notif-sub img {
  border-radius: 50%;
  flex: 0 0 15px;
  display: block;
}

.meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 12.5px;
  color: var(--txt-3);
  font-variant-numeric: tabular-nums;
}
.meta-dot { opacity: .55; }

/* CTA */
.cta {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 18px;
  border: 0;
  border-radius: 17px;
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.2px;
  box-shadow: 0 16px 36px -14px rgba(74, 142, 214, .9);
  transition: transform .12s ease, opacity .12s ease, box-shadow .12s ease;
  animation: rise .5s cubic-bezier(.2, .9, .25, 1) .14s both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.cta:active { transform: scale(.987); }
.cta[disabled] { opacity: .6; }
.cta.is-ok {
  background: linear-gradient(180deg, #34d95f, #23b84c);
  color: #04230f;
  box-shadow: 0 16px 36px -14px rgba(48, 209, 88, .85);
}

.foot {
  margin: 13px 4px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--txt-3);
  text-align: center;
  animation: rise .5s cubic-bezier(.2, .9, .25, 1) .2s both;
}

/* done */
.done {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 15px;
  background: rgba(48, 209, 88, .1);
  border: 1px solid rgba(48, 209, 88, .28);
  color: #6ee392;
  font-size: 13.5px;
  animation: rise .4s ease both;
}
.check {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background: var(--green);
}

/* panel (deep links) */
.panel {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  animation: rise .4s ease both;
}
.panel-t { margin: 0 0 11px; font-size: 13.5px; font-weight: 600; color: #cfd1da; }
.wl {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  margin-bottom: 8px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  color: var(--txt);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
}
.wl em { margin-left: auto; font-style: normal; color: var(--txt-3); font-size: 18px; }
.wl:active { background: rgba(255, 255, 255, .1); }
.panel-s { margin: 12px 0 10px; font-size: 12.5px; color: var(--txt-3); }
.copy-row { display: flex; gap: 8px; }
code {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 11px;
  background: #0c0d13;
  border: 1px solid var(--line);
  color: #a8aab8;
  font: 12px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ghost {
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .06);
  color: var(--txt);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
