
:root {
  --bg: #08182a;
  --surface: #0d2137;
  --row-border: rgba(157, 188, 218, 0.12);
  --text: #f7fbff;
  --muted: #86a0bb;
  --muted-strong: #adc0d2;
  --green: #38e09b;
  --green-bg: #0d3a35;
  --purple: #9148ff;
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  margin: 0;
  background: #030c16;
}

body {
  display: flex;
  justify-content: center;
  color: var(--text);
}

button, input { font: inherit; }

button {
  border: 0;
  color: inherit;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease,
    border-color 150ms ease, box-shadow 150ms ease,
    transform 120ms ease, opacity 150ms ease;
}

button:focus-visible,
input:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.9), 0 0 0 4px rgba(59,130,246,0.65);
}

button:active { transform: translateY(1px) scale(0.99); }
button:disabled, input:disabled { cursor: not-allowed; opacity: 0.5; }

.app-shell {
  position: relative;
  width: min(100vw, 390px);
  min-height: 100dvh;
  overflow: hidden;
  background: radial-gradient(circle at 90% -10%, rgba(43,100,145,0.18), transparent 34%), var(--bg);
}

.tg-env .app-shell { padding-bottom: max(12px, env(safe-area-inset-bottom)); }

.hidden { display: none !important; }

.tg-env .tg-chrome { display: none; }

.tg-chrome {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 82px 1fr 82px;
  align-items: start;
  height: 68px;
  padding: 22px 16px 0;
  background: transparent;
}

.light-chrome { background: #08182a; }

.light-chrome .chrome-action,
.light-chrome .back-action,
.light-chrome .chrome-title strong { color: #eef6fd; }

.chrome-action,
.back-action {
  min-height: 28px;
  padding: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 720;
  color: #eef4fc;
}

.back-action {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.chevron {
  width: 11px;
  height: 11px;
  border-bottom: 3px solid currentColor;
  border-left: 3px solid currentColor;
  transform: rotate(45deg);
}

.chrome-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.chrome-title strong {
  font-size: 15px;
  font-weight: 820;
  letter-spacing: -0.2px;
}

.chrome-title span {
  margin-top: 5px;
  color: #6f8aa5;
  font-size: 11px;
  font-weight: 650;
}

.header-bell-slot {
  position: absolute;
  top: 22px;
  right: 16px;
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.bell-button {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(167,198,226,0.12);
  border-radius: 50%;
  background: rgba(15,39,63,0.74);
  color: #a9bfd3;
}

.tg-env .bell-button {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 5;
}

.bell-button svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.bell-button svg path:last-child {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -5px;
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #08182a;
  border-radius: 20px;
  background: #38e09b;
  color: #06251b;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.screen { min-height: calc(100dvh - 68px); }
.tg-env .screen { min-height: 100dvh; }

.screen-home {
  position: relative;
  padding: 8px 16px 32px;
}

.balance-block {
  position: relative;
  margin-top: 16px;
  padding: 16px 18px 0;
  overflow: hidden;
  border: 1px solid rgba(149,190,225,0.09);
  border-radius: 18px;
  background: linear-gradient(145deg, #0f2840, #0b2137 70%);
  text-align: left;
}

.balance-block::after {
  content: "";
  position: absolute;
  right: -26px;
  top: -44px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(170,211,245,0.08);
  border-radius: 50%;
}

.balance-main {
  position: relative;
  z-index: 1;
}

.balance-amount {
  font-size: clamp(32px, 9vw, 40px);
  font-weight: 820;
  letter-spacing: -1.5px;
  line-height: 1;
}

.balance-amount span:last-child { color: #b9cce0; }

.detail-actions svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.row-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  color: #67839d;
  transform: rotate(45deg);
}

.cards-section { margin-top: 20px; }

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.section-heading h1 {
  margin: 0;
  color: #607a96;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading span {
  display: grid;
  min-width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 9px;
  background: rgba(126,174,211,0.1);
  color: #8fb2cf;
  font-size: 11px;
  font-weight: 800;
}

.card-row {
  display: grid;
  grid-template-columns: 43px 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 0 0 0 3px;
  border-bottom: 1px solid var(--row-border);
  background: transparent;
  text-align: left;
}

.card-row:hover { background: rgba(255,255,255,0.035); }

.screen-home .card-row {
  min-height: 62px;
  grid-template-columns: 38px minmax(0,1fr) auto;
  gap: 11px;
  padding: 0 13px;
  border: 0;
  border-bottom: 1px solid rgba(146,184,216,0.08);
  border-radius: 0;
  background: transparent;
}

.screen-home .card-row:hover {
  background: rgba(151,191,224,0.05);
}

.screen-home .reissue-status-row {
  grid-template-columns: 42px 1fr;
  margin-top: 8px;
}

.card-logo {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #8b3ffd;
  color: white;
  font-size: 17px;
  font-weight: 900;
  align-self: center;
  justify-self: center;
}

.card-logo::before { content: none; }

.card-row[data-card-type="yandex"] .card-logo {
  background: #fff;
  color: #f33;
}

.card-row[data-card-type="yandex"] .card-logo::before { content: none; }

.card-row[data-status="expired"] .card-logo {
  background: rgba(126,174,211,0.18);
  color: rgba(255,255,255,0.4);
}

.card-meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.card-title {
  color: #eef7ff;
  font-size: 14px;
  font-weight: 780;
}

.card-balance {
  color: #7592ae;
  font-size: 11px;
}

.card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  color: #91a9c0;
  font-size: 10px;
  font-weight: 720;
}

.card-status::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.card-row[data-status="active"] .card-status    { color: #55e6a9; }
.card-row[data-status="reissuing"] .card-status { color: #f4c96d; }
.card-row[data-status="expired"] .card-status   { color: #829db5; }

.cards-list {
  display: grid;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid rgba(146,184,216,0.08);
  border-radius: 14px;
  background: rgba(13,33,55,0.42);
}

.cards-list .card-row:last-child { border-bottom: 0; }

.list-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.list-pagination button {
  display: grid;
  width: 32px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(146,184,216,0.1);
  border-radius: 9px;
  background: rgba(13,33,55,0.65);
  color: #8faac2;
}

.list-pagination button:not(:disabled):hover {
  border-color: rgba(56,224,155,0.25);
  color: #55e6a9;
}

.list-pagination > span {
  min-width: 48px;
  color: #6f8da8;
  font-size: 10px;
  font-weight: 720;
  text-align: center;
}

.pagination-chevron {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.pagination-chevron-left { transform: rotate(-135deg); }

.cards-empty,
.notifications-empty {
  display: grid;
  place-items: center;
  padding: 28px 20px;
  color: #8fa5b9;
  text-align: center;
}

.cards-empty strong,
.notifications-empty strong {
  color: #eaf4fb;
  font-size: 15px;
}

.cards-empty span,
.notifications-empty span {
  max-width: 250px;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.45;
}

.duck-sticker {
  position: relative;
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  contain: paint;
  isolation: isolate;
}

.duck-sticker > img,
.duck-sticker > svg,
.duck-sticker > canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.duck-lottie-layer {
  position: absolute;
  inset: -3%;
  z-index: 1;
  display: block;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateZ(0);
}

.duck-lottie-layer svg,
.duck-lottie-layer canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.duck-sticker > svg,
.duck-sticker > canvas {
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
}

@keyframes duck-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-6px) rotate(1.5deg); }
}

@keyframes duck-money-pop {
  0%, 100% { transform: translateY(0) rotate(-2deg) scale(1); }
  35%      { transform: translateY(-5px) rotate(2deg) scale(1.035); }
  65%      { transform: translateY(1px) rotate(-1deg) scale(.99); }
}

@keyframes duck-loading-pulse {
  0%, 100% { transform: translateY(0) scale(1); opacity: .96; }
  50%      { transform: translateY(-4px) scale(1.035); opacity: 1; }
}

@keyframes duck-build-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30%      { transform: translateY(-5px) rotate(-3deg); }
  60%      { transform: translateY(1px) rotate(2deg); }
}

@keyframes duck-wave-sway {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50%      { transform: rotate(3deg) translateY(-4px); }
}

.duck-sticker > img {
  animation: duck-float 2.6s ease-in-out infinite;
  transform-origin: center bottom;
}

.duck-sticker[data-duck-sticker="money"] > img {
  animation: duck-money-pop 1.9s ease-in-out infinite;
}

.duck-sticker[data-duck-sticker="loading"] > img {
  animation: duck-loading-pulse 1.2s ease-in-out infinite;
}

.duck-sticker[data-duck-sticker="build"] > img {
  animation: duck-build-bounce 1.55s ease-in-out infinite;
}

.duck-sticker[data-duck-sticker="wave"],
.duck-sticker[data-duck-sticker="reissue"],
.duck-sticker[data-duck-sticker="cry"] {
  transform-origin: center bottom;
}

.duck-sticker[data-duck-sticker="wave"] > img,
.duck-sticker[data-duck-sticker="reissue"] > img,
.duck-sticker[data-duck-sticker="cry"] > img {
  animation: duck-wave-sway 2.2s ease-in-out infinite;
}

.duck-sticker[data-duck-sticker] > img {
  animation: none !important;
}

.duck-sticker[data-duck-ready="1"] > img,
.duck-sticker[data-duck-ready="1"] > svg,
.duck-sticker[data-duck-ready="1"] > canvas {
  animation: none;
}

.duck-sticker[data-duck-ready="1"] > img {
  opacity: 0;
}

.duck-sticker[data-duck-ready="static"] > img {
  opacity: 1;
}

.duck-sticker[data-duck-ready="1"] .duck-lottie-layer {
  opacity: 1;
}

.duck-sticker[data-duck-restarting="1"] > img {
  opacity: 1;
}

.duck-sticker[data-duck-restarting="1"] .duck-lottie-layer {
  opacity: 0;
}

.empty-duck      { width: 104px; height: 104px; margin-bottom: 8px; }
.creation-duck   { width: 190px; height: 190px; }
.reissue-duck    { width: 42px;  height: 42px; }
.money-duck {
  position: absolute;
  right: -22px;
  bottom: -15px;
  width: 178px;
  height: 178px;
}

.screen-issue {
  min-height: calc(100dvh - 68px);
  padding: 0 16px 92px;
}

.tg-env .screen-issue { min-height: 100dvh; }

.screen-intro { padding: 18px 6px 0; }

.screen-intro > span {
  color: #56dba5;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.screen-intro h1 {
  margin: 6px 0 0;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.issue-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0 0;
}

.issue-summary {
  display: grid;
  width: min(100%, 326px);
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.issue-summary > span {
  display: flex;
  min-height: 52px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  border: 1px solid rgba(145,180,211,0.1);
  border-radius: 13px;
  background: #0d2137;
}

.issue-summary small {
  color: #728da7;
  font-size: 9px;
  font-weight: 720;
}

.issue-summary strong {
  font-size: 13px;
  font-weight: 780;
}

.bottom-cta {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  width: min(calc(100vw - 32px), 358px);
  min-height: 52px;
  transform: translateX(-50%);
  border-radius: 14px;
  background: #38e09b;
  color: #06251b;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(20,190,125,0.22);
}

.bottom-cta:hover { filter: brightness(1.05); }

.screen-detail {
  min-height: calc(100dvh - 68px);
  padding: 20px 16px 34px;
}

.tg-env .screen-detail { min-height: 100dvh; }

.detail-card { width: 100%; }

.issued-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-height: 210px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(202,163,255,0.25);
  border-radius: 20px;
  background:
    radial-gradient(circle at 80% 16%, rgba(219,184,255,0.28), transparent 34%),
    linear-gradient(145deg, #8b43ef, #5220b7);
  box-shadow: 0 22px 44px rgba(61,18,131,0.32);
}

.flat-card-top,
.flat-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flat-card-chip {
  width: 38px;
  height: 29px;
  border-radius: 8px;
  background: linear-gradient(145deg, #f6dfa0, #b99743);
}

.flat-card-wifi {
  width: 22px;
  height: 22px;
  margin-left: auto;
  margin-right: 12px;
  border: 2px solid rgba(255,255,255,0.7);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(45deg);
}

.flat-card-eye {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  background: rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.72);
  cursor: pointer;
}

.flat-card-eye svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.flat-card-eye.revealed {
  color: #fff;
  background: rgba(255,255,255,0.21);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.06);
}

.flat-card-number {
  margin: 24px 0 14px;
  font-size: 16px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.card-balance-on-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}

.card-balance-on-card small {
  color: rgba(255,255,255,0.58);
  font-size: 8px;
  font-weight: 720;
  letter-spacing: 0.1em;
}

.card-balance-on-card strong {
  font-size: 25px;
  font-weight: 830;
  letter-spacing: -0.7px;
}

.flat-card-bottom { margin-top: auto; }

.flat-card-bottom span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.flat-card-bottom small {
  color: rgba(255,255,255,0.56);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.flat-card-bottom strong { font-size: 11px; }
.flat-card-bottom b      { font-size: 25px; }

.detail-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.detail-actions button {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 11px 5px;
  border: 1px solid rgba(145,180,211,0.1);
  border-radius: 13px;
  background: #0d2137;
  color: var(--muted);
  transition: border-color 160ms ease, background-color 160ms ease,
    color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.detail-actions button:hover,
.detail-actions button:focus-visible {
  border-color: rgba(132,180,219,0.25);
  background: #122d49;
  color: #b8d4e9;
  box-shadow: 0 8px 20px rgba(2,11,21,0.18);
  transform: translateY(-2px);
  outline: none;
}

.detail-actions button:hover span,
.detail-actions button:focus-visible span { background: rgba(126,174,211,0.13); }

.detail-actions button:active { transform: translateY(0) scale(0.98); }

.detail-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  transform: none;
}

.detail-actions button:disabled:hover {
  border-color: rgba(132,180,219,0.1);
  background: #0d2137;
  box-shadow: none;
  transform: none;
}

.detail-actions button:focus-visible { outline: none; }

.detail-actions span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 30px;
  border-radius: 9px;
  background: rgba(126,165,198,0.1);
  font-size: 0;
}

.detail-actions svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.detail-actions small {
  max-width: 72px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-card h2 {
  margin: 25px 2px 10px;
  color: #829bb4;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.requisites {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.requisite {
  position: relative;
  min-height: 62px;
  padding: 11px 38px 11px 12px;
  border: 1px solid rgba(145,180,211,0.1);
  border-radius: 13px;
  background: #0d2137;
  text-align: left;
}

.requisite.full { grid-column: 1 / -1; }

.requisite span {
  display: block;
  font-size: 11px;
  font-weight: 620;
  color: #748498;
}

.requisite strong {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.1;
  color: #f0f5fb;
}

.requisite i { display: none; }

.copy-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 21px;
  height: 21px;
  padding: 3px;
  transform: translateY(-50%);
  border: 1px solid rgba(143,177,207,0.16);
  border-radius: 6px;
  background: rgba(117,151,181,0.08);
  fill: none;
  stroke: #7895ae;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.requisite:hover .copy-icon {
  border-color: rgba(56,224,155,0.3);
  stroke: #38e09b;
}

.requisite.copied {
  border-color: rgba(56,224,155,0.5);
  background: rgba(56,224,155,0.08);
}

.management-row {
  display: grid;
  grid-template-columns: 42px 1fr 10px;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 0 13px;
  border: 1px solid rgba(145,180,211,0.1);
  border-radius: 13px;
  background: #0d2137;
  color: #c9d4e1;
  text-align: left;
}

.management-row:hover { color: #eef5ff; }

.management-row:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  transform: none;
}

.management-row strong {
  font-size: 14px;
  font-weight: 760;
}

.management-row .row-chevron { width: 8px; height: 8px; }

.screen-topup {
  min-height: calc(100dvh - 68px);
  background:
    radial-gradient(circle at 90% 0%, rgba(57,124,171,0.14), transparent 30%),
    var(--bg);
  color: var(--text);
}

.tg-env .screen-topup { min-height: 100dvh; }

.topup-panel {
  display: block;
  padding: 20px 16px 32px;
}

.topup-hero {
  position: relative;
  display: flex;
  min-height: 154px;
  align-items: center;
  padding: 20px 16px;
  overflow: hidden;
  border: 1px solid rgba(70,225,159,0.15);
  border-radius: 18px;
  background:
    linear-gradient(100deg, rgba(55,224,155,0.12), transparent 58%),
    #0d2d31;
}

.topup-hero > div:first-child {
  position: relative;
  z-index: 1;
  max-width: 210px;
}

.topup-hero span {
  color: #56dba5;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topup-hero h1 {
  margin: 8px 0 0;
  color: #f4fbff;
  font-size: 22px;
  font-weight: 820;
  letter-spacing: -0.5px;
}

.topup-hero p {
  margin: 8px 0 0;
  color: #9dbbb8;
  font-size: 11px;
  font-weight: 620;
  line-height: 1.4;
}

.topup-form {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.topup-field {
  display: flex;
  height: 64px;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 5px;
  padding: 8px 12px;
  border: 1px solid rgba(145,180,211,0.12);
  border-radius: 13px;
  background: #0d2137;
  transition: border-color 160ms ease, background-color 160ms ease,
    box-shadow 160ms ease;
}

.topup-field.full { grid-column: 1 / -1; }

.topup-field:hover {
  border-color: rgba(143,184,218,0.24);
  background: #102840;
}

.topup-field:focus-within {
  border-color: rgba(56,224,155,0.65);
  background: #102a42;
  box-shadow: 0 0 0 3px rgba(56,224,155,0.11);
}

.topup-field.invalid {
  border-color: rgba(239,93,104,0.58);
  background: rgba(239,93,104,0.05);
  box-shadow: 0 0 0 3px rgba(239,93,104,0.08);
}

.topup-field > span {
  color: #7894ae;
  font-size: 10px;
  font-weight: 720;
}

.topup-field input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: #f2f8fd;
  font-size: 14px;
  font-weight: 650;
}

.topup-field input:focus-visible { outline: none; box-shadow: none; }
.topup-field input::placeholder   { color: #57718a; }

.field-error {
  display: block;
  min-height: 0;
  color: #ef7780;
  font-size: 10px;
  font-weight: 680;
}

.field-error:empty { display: none; }

.topup-submit {
  min-height: 52px;
  border-radius: 13px;
  background: #38e09b;
  color: #06251b;
  font-size: 15px;
  font-weight: 800;
  transition: transform 150ms ease, filter 150ms ease, opacity 150ms ease;
}

.topup-submit.full {
  width: 100%;
  grid-column: 1 / -1;
}

.topup-submit:not(:disabled):hover,
.topup-submit:not(:disabled):focus-visible {
  outline: none;
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.topup-submit:disabled { cursor: not-allowed; opacity: 0.42; }

.topup-note {
  max-width: 280px;
  margin: 14px auto 0;
  color: #66819a;
  font-size: 10px;
  font-weight: 620;
  line-height: 1.4;
  text-align: center;
}

.screen-notifications {
  min-height: calc(100dvh - 68px);
  background:
    radial-gradient(circle at 85% 0%, rgba(57,124,171,0.14), transparent 30%),
    var(--bg);
  color: var(--text);
}

.tg-env .screen-notifications { min-height: 100dvh; }

.notifications-panel {
  min-height: inherit;
  padding: 20px 16px 32px;
}

.notifications-heading h1 {
  margin: 0 0 16px;
  color: #f4f9fd;
  font-size: 20px;
  font-weight: 780;
  letter-spacing: -0.3px;
}

.notification-day {
  margin: 18px 0 4px;
  color: #4e6a82;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.notification-day:first-child { margin-top: 0; }

.notification-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(145,180,211,0.07);
}

.notification-item > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.notification-item strong {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  color: #d8eaf6;
  font-size: 13px;
  font-weight: 700;
}

.notification-item.unread strong { color: #f4fbff; }

.notification-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: #7e9bb5;
}

.notification-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.notification-item.unread .notification-icon {
  background: rgba(56,224,155,0.08);
}

.notification-issued .notification-icon,
.notification-card-topup .notification-icon {
  color: #55e6a9;
}

.notification-reissue .notification-icon {
  color: #f4c96d;
}

.notification-deleted .notification-icon {
  color: #ef8f97;
}

.notification-balance .notification-icon {
  color: #82abf7;
}

.notification-item p {
  margin: 0;
  color: #6a8ba5;
  font-size: 12px;
  line-height: 1.4;
}

.notification-item time {
  color: #4a6880;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-height: 720px) {
  .notifications-panel {
    padding-top: 14px;
    padding-bottom: 18px;
  }

  .notifications-heading h1 {
    margin-bottom: 10px;
    font-size: 18px;
  }

  .notification-day {
    margin-top: 12px;
  }

  .notification-item {
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .notifications-panel .list-pagination {
    margin-top: 8px;
  }
}

@media (max-width: 360px) {
  .notifications-panel {
    padding-right: 12px;
    padding-left: 12px;
  }

  .notification-item {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
  }

  .notification-item strong {
    font-size: 12px;
  }

  .notification-item p {
    font-size: 11px;
  }
}
