
.screen-topup .topup-panel {
  padding-top: 18px;
}

.screen-topup .topup-hero {
  min-height: 126px;
  padding: 18px 118px 18px 16px;
  overflow: hidden;
  border: 1px solid rgba(145, 180, 211, 0.09);
  border-radius: 14px;
  background: rgba(13, 33, 55, 0.56);
}

.screen-topup .topup-hero > div:first-child {
  max-width: none;
  padding-right: 0;
}

.screen-topup .topup-hero h1 {
  font-size: 21px;
  line-height: 1.15;
}

.screen-topup .topup-hero p {
  margin-top: 9px;
  color: #7694a9;
  font-size: 11px;
  line-height: 1.45;
}

.screen-topup .money-duck {
  right: 3px;
  bottom: 2px;
  width: 112px;
  height: 112px;
  opacity: 0.88;
}

.screen-topup .topup-form {
  margin-top: 18px;
}

.screen-topup .topup-field {
  height: 66px;
  padding: 8px 2px;
}

.screen-topup .topup-submit {
  margin-top: 22px;
  background: #38e09b;
  color: #06251b;
}

.screen-topup .topup-submit:disabled {
  border: 1px solid rgba(145, 180, 211, 0.08);
  background: rgba(145, 180, 211, 0.08);
  color: #607d91;
  opacity: 1;
}

@media (max-width: 340px) {
  .screen-topup .topup-hero {
    min-height: 118px;
    padding-right: 98px;
  }

  .screen-topup .money-duck {
    right: -5px;
    width: 98px;
    height: 98px;
  }
}

.screen-detail .detail-card h2 {
  margin: 24px 0 10px;
  font-size: 13px;
}

.screen-detail .requisites {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(145, 180, 211, 0.09);
  border-radius: 13px;
  background: rgba(145, 180, 211, 0.09);
}

.screen-detail .requisite,
.screen-detail .requisite.full {
  position: relative;
  display: flex;
  min-height: 72px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  padding: 12px 42px 12px 13px;
  border: 0;
  background: #0b1e32;
  text-align: left;
}

.screen-detail .requisite.full { grid-column: 1 / -1; }

.screen-detail .requisite span {
  color: #66869d;
  font-size: 9px;
  font-weight: 650;
}

.screen-detail .requisite strong,
.screen-detail .requisite.full strong {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: #e3edf3;
  font-size: 12px;
  font-weight: 690;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-detail .requisite.full strong { font-size: 13px; }

.screen-detail .requisite .copy-icon {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 25px;
  height: 25px;
  padding: 5px;
  transform: translateY(-50%);
  border: 1px solid rgba(145, 180, 211, 0.1);
  border-radius: 7px;
  background: rgba(145, 180, 211, 0.05);
}

.screen-detail .requisite:hover { background: #0d2339; }

.screen-detail .management-row {
  min-height: 58px;
  padding: 0 12px;
  border: 1px solid rgba(145, 180, 211, 0.09);
  border-radius: 12px;
  background: rgba(13, 33, 55, 0.46);
}

.screen-detail .management-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: rgba(145, 180, 211, 0.06);
}

@media (max-width: 340px) {
  .screen-detail .requisite,
  .screen-detail .requisite.full {
    min-height: 66px;
    padding-right: 36px;
    padding-left: 10px;
  }

  .screen-detail .requisite .copy-icon {
    right: 8px;
    width: 23px;
    height: 23px;
  }
}

.screen-notifications .notifications-panel {
  padding: 22px 18px 30px;
}

.notifications-overview {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 0 22px;
  border-bottom: 1px solid rgba(145, 180, 211, 0.1);
}

.notifications-overview h1 {
  margin: 0;
  color: #edf4f8;
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -0.35px;
}

.notifications-overview p {
  margin: 7px 0 0;
  color: #66859c;
  font-size: 11px;
  line-height: 1.4;
}

.notifications-overview > span {
  display: grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(145, 180, 211, 0.1);
  border-radius: 9px;
  color: #82a0b5;
  font-size: 11px;
  font-weight: 720;
}

.screen-notifications .notifications-list {
  padding-top: 16px;
}

.screen-notifications .notification-day {
  margin: 18px 0 8px 46px;
  color: #5e7e95;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.screen-notifications .notification-day:first-child {
  margin-top: 0;
}

.screen-notifications .notification-item {
  position: relative;
  min-height: 72px;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border: 0;
}

.screen-notifications .notification-item::after {
  content: "";
  position: absolute;
  top: 47px;
  bottom: -10px;
  left: 17px;
  width: 1px;
  background: rgba(145, 180, 211, 0.09);
}

.screen-notifications .notification-item:last-of-type::after {
  display: none;
}

.screen-notifications .notification-icon,
.screen-notifications .notification-item.unread .notification-icon {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(145, 180, 211, 0.1);
  border-radius: 10px;
  background: #0b1e32;
}

.screen-notifications .notification-icon svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

.screen-notifications .notification-item > div {
  gap: 5px;
  padding-top: 1px;
}

.screen-notifications .notification-item strong {
  color: #dce8ef;
  font-size: 12px;
  font-weight: 690;
}

.screen-notifications .notification-item p {
  overflow: hidden;
  color: #69899f;
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-notifications .notification-item time {
  color: #55758c;
  font-size: 9px;
}

.screen-notifications .notification-issued .notification-icon,
.screen-notifications .notification-card-topup .notification-icon {
  border-color: rgba(85, 230, 169, 0.18);
  background: rgba(42, 157, 117, 0.08);
}

.screen-notifications .notification-reissue .notification-icon {
  border-color: rgba(244, 201, 109, 0.18);
  background: rgba(184, 140, 55, 0.08);
}

.screen-notifications .notification-deleted .notification-icon {
  border-color: rgba(239, 143, 151, 0.18);
  background: rgba(181, 77, 88, 0.08);
}

.screen-notifications .notification-balance .notification-icon {
  border-color: rgba(130, 171, 247, 0.18);
  background: rgba(69, 111, 184, 0.08);
}

.screen-notifications .list-pagination {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(145, 180, 211, 0.08);
}

.screen-notifications .list-pagination button {
  border: 1px solid rgba(145, 180, 211, 0.09);
  background: transparent;
}

@media (max-height: 720px) {
  .screen-notifications .notifications-overview {
    padding-bottom: 16px;
  }

  .screen-notifications .notifications-list {
    padding-top: 12px;
  }

  .screen-notifications .notification-item {
    min-height: 64px;
    padding-top: 7px;
    padding-bottom: 7px;
  }
}

@media (max-width: 340px) {
  .screen-notifications .notifications-panel {
    padding-right: 14px;
    padding-left: 14px;
  }

  .notifications-overview h1 {
    font-size: 18px;
  }
}

.screen-detail {
  padding: 20px 18px 40px;
}

.screen-detail .issued-card {
  min-height: 184px;
  padding: 18px;
  border: 1px solid rgba(145, 180, 211, 0.11);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(35, 75, 108, 0.42), transparent 58%),
    #102943;
  box-shadow: none;
}

.screen-detail .flat-card-chip {
  width: 34px;
  height: 26px;
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.screen-detail .flat-card-wifi {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.screen-detail .flat-card-eye {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.8);
}

.screen-detail .flat-card-number {
  margin: 20px 0 10px;
  font-size: 15px;
}

.screen-detail .card-balance-on-card {
  margin-bottom: 12px;
}

.screen-detail .card-balance-on-card strong {
  font-size: 23px;
}

.detail-provider-logo {
  display: grid;
  width: 32px;
  height: 28px;
  place-items: center;
  padding: 5px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
}

.detail-provider-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.screen-detail .detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 10px 0 30px;
  border-top: 1px solid rgba(145, 180, 211, 0.08);
  border-bottom: 1px solid rgba(145, 180, 211, 0.08);
}

.screen-detail .detail-actions button {
  min-height: 56px;
  flex-direction: row;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-right: 1px solid rgba(145, 180, 211, 0.08);
  border-radius: 0;
  background: transparent;
}

.screen-detail .detail-actions button:last-child {
  border-right: 0;
}

.screen-detail .detail-actions span,
.screen-detail .detail-actions button:hover span,
.screen-detail .detail-actions button:focus-visible span {
  width: 20px;
  height: 20px;
  border-radius: 0;
  background: transparent;
}

.screen-detail .detail-actions small {
  font-size: 11px;
  font-weight: 650;
}

.screen-detail .detail-card h2 {
  margin: 28px 0 8px;
  color: #dce8ef;
  font-size: 14px;
  font-weight: 710;
  letter-spacing: -0.1px;
  text-transform: none;
}

.screen-detail .requisites {
  display: block;
  border: 0;
  border-top: 1px solid rgba(145, 180, 211, 0.08);
  border-radius: 0;
  background: transparent;
}

.screen-detail .requisite,
.screen-detail .requisite.full {
  display: grid;
  width: 100%;
  min-height: 62px;
  grid-template-columns: minmax(90px, 0.75fr) minmax(0, 1.25fr) 22px;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(145, 180, 211, 0.08);
  border-radius: 0;
  background: transparent;
}

.screen-detail .requisite span {
  grid-column: 1;
  grid-row: 1;
  color: #69889f;
  font-size: 10px;
}

.screen-detail .requisite strong {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #dce8ef;
  font-size: 12px;
  font-weight: 680;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-detail .requisite .copy-icon {
  position: static;
  grid-column: 3;
  grid-row: 1;
  width: 20px;
  height: 20px;
  padding: 3px;
  transform: none;
  border: 0;
  background: transparent;
}

.screen-detail .requisite.copied {
  border-color: rgba(56, 224, 155, 0.28);
  background: transparent;
}

.screen-detail .management-row {
  min-height: 60px;
  padding: 0;
  border: 0;
  border-top: 1px solid rgba(145, 180, 211, 0.08);
  border-bottom: 1px solid rgba(145, 180, 211, 0.08);
  border-radius: 0;
  background: transparent;
}

.screen-detail .management-icon {
  width: 28px;
  height: 28px;
  background: transparent;
  color: #7898ad;
}

.screen-detail .management-row strong {
  font-size: 12px;
  font-weight: 680;
}

@media (max-width: 340px) {
  .screen-detail {
    padding-right: 14px;
    padding-left: 14px;
  }

  .screen-detail .requisite,
  .screen-detail .requisite.full {
    grid-template-columns: 82px minmax(0, 1fr) 20px;
    gap: 7px;
  }

  .screen-detail .requisite strong {
    font-size: 11px;
  }
}

.screen-detail .detail-card h2 {
  margin: 24px 0 10px;
  font-size: 13px;
}

.screen-detail .requisites {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(145, 180, 211, 0.09);
  border-radius: 13px;
  background: rgba(145, 180, 211, 0.09);
}

.screen-detail .requisite,
.screen-detail .requisite.full {
  position: relative;
  display: flex;
  min-height: 72px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  padding: 12px 42px 12px 13px;
  border: 0;
  background: #0b1e32;
  text-align: left;
}

.screen-detail .requisite.full {
  grid-column: 1 / -1;
}

.screen-detail .requisite span {
  color: #66869d;
  font-size: 9px;
  font-weight: 650;
}

.screen-detail .requisite strong {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: #e3edf3;
  font-size: 12px;
  font-weight: 690;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-detail .requisite.full strong {
  font-size: 13px;
}

.screen-detail .requisite .copy-icon {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 25px;
  height: 25px;
  padding: 5px;
  transform: translateY(-50%);
  border: 1px solid rgba(145, 180, 211, 0.1);
  border-radius: 7px;
  background: rgba(145, 180, 211, 0.05);
}

.screen-detail .requisite:hover {
  background: #0d2339;
}

.screen-detail .requisite:hover .copy-icon {
  border-color: rgba(86, 220, 174, 0.28);
  background: rgba(86, 220, 174, 0.07);
}

.screen-detail .requisite.copied {
  background: rgba(56, 224, 155, 0.07);
}

.screen-detail .management-row {
  min-height: 58px;
  padding: 0 12px;
  border: 1px solid rgba(145, 180, 211, 0.09);
  border-radius: 12px;
  background: rgba(13, 33, 55, 0.46);
}

.screen-detail .management-row:hover {
  border-color: rgba(145, 180, 211, 0.16);
  background: rgba(17, 43, 66, 0.64);
}

.screen-detail .management-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: rgba(145, 180, 211, 0.06);
}

@media (max-width: 340px) {
  .screen-detail .requisite,
  .screen-detail .requisite.full {
    min-height: 66px;
    padding-right: 36px;
    padding-left: 10px;
  }

  .screen-detail .requisite .copy-icon {
    right: 8px;
    width: 23px;
    height: 23px;
  }
}

.screen-topup .topup-panel {
  padding-top: 18px;
}

.screen-topup .topup-hero {
  min-height: 126px;
  padding: 18px 118px 18px 16px;
  overflow: hidden;
  border: 1px solid rgba(145, 180, 211, 0.09);
  border-radius: 14px;
  background: rgba(13, 33, 55, 0.56);
}

.screen-topup .topup-hero > div:first-child {
  max-width: none;
  padding-right: 0;
}

.screen-topup .topup-hero h1 {
  font-size: 21px;
  line-height: 1.15;
}

.screen-topup .topup-hero p {
  margin-top: 9px;
  color: #7694a9;
  font-size: 11px;
  line-height: 1.45;
}

.screen-topup .money-duck {
  right: 3px;
  bottom: 2px;
  width: 112px;
  height: 112px;
  opacity: 0.88;
}

.screen-topup .topup-form {
  margin-top: 18px;
}

.screen-topup .topup-field {
  height: 66px;
  padding: 8px 2px;
}

.screen-topup .topup-submit {
  margin-top: 22px;
  background: #38e09b;
  color: #06251b;
}

.screen-topup .topup-submit:disabled {
  border: 1px solid rgba(145, 180, 211, 0.08);
  background: rgba(145, 180, 211, 0.08);
  color: #607d91;
  opacity: 1;
}

@media (max-width: 340px) {
  .screen-topup .topup-hero {
    min-height: 118px;
    padding-right: 98px;
  }

  .screen-topup .money-duck {
    right: -5px;
    width: 98px;
    height: 98px;
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: end center;
  padding: 18px 12px;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(6px);
}

.modal-panel {
  width: min(100%, 366px);
  padding: 24px 18px 18px;
  border-radius: 24px 24px 12px 12px;
  background: #17283d;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}

.modal-panel::before {
  content: "";
  display: block;
  width: 96px;
  height: 8px;
  margin: -14px auto 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
}

.modal-panel h2  { margin: 0; font-size: 20px; }
.modal-panel p   { margin: 8px 0 14px; color: var(--muted-strong); }

.modal-panel input {
  width: 100%;
  height: 43px;
  padding: 0 12px;
  border: 1px solid rgba(170,187,207,0.2);
  border-radius: 6px;
  outline: 0;
  background: #101d2e;
  color: var(--text);
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.modal-actions button {
  height: 40px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  font-weight: 760;
}

.modal-actions button:last-child { background: var(--green); color: #062417; }
.modal-actions button:hover      { filter: brightness(1.05); }

#deleteModal {
  place-items: center;
  padding: 16px;
  background: rgba(3,10,18,0.72);
  backdrop-filter: blur(10px);
}

.delete-panel {
  width: min(calc(100% - 32px), 320px);
  padding: 18px;
  border: 1px solid rgba(145,180,211,0.1);
  border-radius: 16px;
  background: #12273d;
}

.delete-panel::before { display: none; }

.delete-panel h2 {
  font-size: 19px;
  letter-spacing: -0.3px;
}

.delete-panel p {
  margin: 8px 0 18px;
  color: #8fa5b9;
  font-size: 13px;
  line-height: 1.45;
}

.delete-panel .modal-actions { gap: 10px; margin-top: 0; }

.delete-panel .modal-actions button {
  height: 46px;
  border: 1px solid rgba(145,180,211,0.1);
  border-radius: 12px;
  background: #1a334d;
  color: #dbe8f2;
  font-size: 13px;
  font-weight: 780;
}

.delete-panel .modal-actions .delete-confirm {
  background: rgba(217,79,92,0.18);
  color: #ef8f97;
}

.delete-panel .modal-actions button:hover,
.delete-panel .modal-actions button:focus-visible {
  outline: none;
  filter: brightness(1.08);
  box-shadow: 0 8px 18px rgba(2,11,21,0.18);
}

#successModal {
  place-items: center;
  padding: 16px;
  background: rgba(3,10,18,0.72);
  backdrop-filter: blur(10px);
}

.success-panel {
  width: min(calc(100% - 32px), 344px);
  padding: 24px 20px 20px;
  border: 1px solid rgba(56,224,155,0.18);
  border-radius: 18px;
  background: #12273d;
  text-align: center;
}

.success-panel::before { display: none; }

.success-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 17px;
  background: rgba(56,224,155,0.12);
  color: #38e09b;
  font-size: 24px;
  font-weight: 900;
}

.success-panel h2 { margin: 0; font-size: 20px; }

.success-panel p {
  margin: 7px 0 19px;
  color: #8fa5b9;
  font-size: 12px;
  line-height: 1.45;
}

.success-close {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(56,224,155,0.24);
  border-radius: 12px;
  background: #38d99a;
  color: #06251b;
  font-weight: 820;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 8;
  width: min(calc(100vw - 24px), 366px);
  padding: 11px 13px;
  transform: translateX(-50%);
  border-radius: 8px;
  background: rgba(8,13,21,0.92);
  color: white;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
}

.creation-loading {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(10,20,33,0.94);
  backdrop-filter: blur(8px);
}

.creation-loading strong {
  font-size: 16px;
  font-weight: 780;
  color: var(--text);
}

.operation-pending button:not(.pending-safe) { pointer-events: none; }

@media (max-width: 340px) {
  .tg-chrome            { grid-template-columns: 74px 1fr 74px; }
  .screen-home          { padding-right: 12px; padding-left: 12px; }
  .balance-block        { padding-right: 14px; padding-left: 14px; }
  .screen-detail        { padding-left: 14px; padding-right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .duck-sticker > img { animation: none; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
