@import url('../inter/inter.css');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

:root {
  --bg-outer: #0f1419;
  --bg-app: #f8fafb;
  --text-body: #0f172a;
  --text-muted: #64748b;
  --nav-inactive: #94a3b8;
  --topbar-bg: rgba(15, 23, 42, 0.95);
  --accent: #0ea5e9;
  --accent-bright: #06b6d4;
  --accent-teal: #10b981;
  --accent-soft: rgba(14, 165, 233, 0.12);
  --accent-soft-bg: rgba(14, 165, 233, 0.08);
  --tint-row: #e0f2fe;
  --tint-label: #0369a1;
  --divider-accent: rgba(14, 165, 233, 0.35);
  --chip-inactive: #e2e8f0;
  --shadow-card: rgba(15, 23, 42, 0.08);
}

body {
  background: var(--bg-outer);
  color: var(--text-body);
  display: flex;
  justify-content: center;
}

#app {
  width: min(420px, 100%);
  min-height: 100vh;
  background: var(--bg-app);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  position: relative;
}

main {
  padding: 18px 18px 178px;
}

main.main--welcome {
  padding-top: 28px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 100%);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: var(--topbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  z-index: 20;
  display: none;
}

.brand-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
}

.brand-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-teal));
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 19px;
  cursor: pointer;
}

.screen {
  display: none;
  gap: 12px;
  flex-direction: column;
}

.screen.active {
  display: flex;
}

.screen--welcome {
  text-align: left;
  gap: 16px;
}

.hero-card {
  padding: 22px;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 0%, #1e3a5f, #0f172a 55%);
  color: #fff;
  display: grid;
  gap: 14px;
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.4);
}

.hero-card__chip {
  width: 52px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #a7b3c2, #5c6471);
}

.hero-card__label {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 4px;
}

.hero-card h1 {
  font-size: 31px;
  margin-bottom: 6px;
}

.hero-card__subtitle {
  font-size: 15px;
  opacity: 0.8;
  line-height: 1.4;
}

.section-title {
  font-size: 27px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  text-align: center;
}

.featured-card {
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: linear-gradient(145deg, #0c4a6e, #134e4a);
  color: #fff;
  box-shadow: 0 22px 44px rgba(12, 74, 110, 0.35);
  cursor: pointer;
  display: grid;
  gap: 8px;
}

.featured-card__badge {
  font-weight: 600;
  font-size: 18px;
  text-align: center;
}

.featured-card__subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  line-height: 1.25;
  max-width: 100%;
  margin: 0 auto;
  white-space: nowrap;
}

.featured-card__media {
  display: flex;
  justify-content: center;
}

.featured-card__card {
  width: min(100%, 170px);
  aspect-ratio: 1.72 / 1;
  border-radius: 8px;
  background: radial-gradient(circle at top, #1e293b, #0f172a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 10px 26px rgba(0, 0, 0, 0.5);
}

.featured-card__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  padding: 8px;
}

.featured-card__footer-item {
  display: grid;
  gap: 2px;
  text-align: center;
}

.featured-card__value {
  font-weight: 700;
  font-size: clamp(15px, 4.2vw, 18px);
  white-space: nowrap;
}

.featured-card__label {
  font-size: 12px;
  opacity: 0.8;
  white-space: nowrap;
}

.featured-card__divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
}

.card-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.referral-promo {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 2px 0 2px;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(58, 92, 255, 0.22);
}

.referral-promo--fixed {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 80px;
  width: min(396px, calc(100% - 24px));
  z-index: 19;
  margin: 0;
}

.referral-promo img {
  display: block;
  width: 100%;
  height: auto;
}

.card-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  background: #fff;
  padding: 14px;
  border-radius: 14px;
  box-shadow: 0 12px 28px var(--shadow-card);
  cursor: pointer;
}

.card-item__top {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: start;
}

.card-preview {
  border-radius: 5px;
  aspect-ratio: 1.64 / 1;
  background: #dbeafe;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.card-item__content {
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.card-item h3 {
  font-size: 18px;
  margin-bottom: 2px;
}

@media (max-width: 380px) {
  .card-item h3 {
    font-size: 16px;
    white-space: nowrap;
  }
}

.card-item p {
  font-size: 14px;
  color: var(--text-muted);
}

.card-item__footer {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 8px;
  align-items: center;
  background: var(--tint-row);
  border-radius: 10px;
  padding: 9px 10px;
  color: #2a2f3d;
  width: 100%;
  justify-self: stretch;
  align-self: stretch;
  box-sizing: border-box;
}

.card-item__value {
  font-weight: 700;
  font-size: 16px;
  text-align: center;
}

.card-item__label {
  font-size: 12px;
  color: var(--tint-label);
  text-align: center;
}

.card-item__divider {
  width: 1px;
  height: 24px;
  background: var(--divider-accent);
}

/* Каталог карт: первая карта featured, остальные используют те же размеры и отступы. */
/* Заголовок секции — только общий .section-title (27px, margin-bottom 6px и т.д.) */

.card-catalog .card-list + .section-title {
  margin-top: 28px;
}

.card-catalog .featured-card-link {
  display: block;
  margin-bottom: 24px;
}

.card-catalog .featured-card {
  padding: 14px 14px 12px;
  box-shadow: 0 24px 48px rgba(12, 74, 110, 0.42);
}

.card-catalog .featured-card__badge {
    font-weight: 600;
    font-size: 18px;
    text-align: center;
}

.card-catalog .card-list {
  margin-top: 6px;
  gap: 20px;
}

.card-catalog .card-list > .card-item {
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
}

.card-catalog .card-list > .card-item .card-item__top {
  gap: 12px;
  align-items: center;
}

.card-catalog .card-list > .card-item .card-preview {
  width: 96px;
  max-width: 96px;
  aspect-ratio: 1.64 / 1;
  height: auto;
  box-sizing: border-box;
  overflow: hidden;
  flex-shrink: 0;
  align-self: center;
}

.card-catalog .card-list > .card-item .card-item__content {
  gap: 6px;
}

.card-catalog .card-list > .card-item .card-item__content h3 {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  margin: 0 0 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

.card-catalog .card-list > .card-item .card-item__content p {
  margin: 0;
  font-size: 12px;
  line-height: 1.25;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-catalog .card-list > .card-item .card-item__footer {
  padding: 8px;
  border-radius: 12px;
  gap: 8px;
}

.card-catalog .card-list > .card-item .card-item__divider {
  height: 28px;
}

.card-catalog .card-list > .card-item .card-item__footer .card-item__value {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-catalog .card-list > .card-item .card-item__label {
  font-size: 12px;
  line-height: 1.2;
  opacity: 0.85;
}

@media (max-width: 380px) {
  .card-catalog .card-list > .card-item .card-item__content h3 {
    font-size: 17px;
  }
}

.primary-button {
  width: 100%;
  padding: 13px 18px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.primary-button:hover {
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.45);
  transform: translateY(-1px);
}

.primary-button:active {
  transform: translateY(0);
}

.primary-button i {
  font-size: 18px;
}

.primary-button:disabled {
  opacity: 0.82;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.25);
}

.primary-button.is-loading {
  pointer-events: none;
}

.button-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: button-spin 0.8s linear infinite;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

.secondary-button {
  width: 100%;
  padding: 14px 24px;
  border-radius: 12px;
  border: 2px solid var(--accent);
  background: #fff;
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.secondary-button:hover {
  background: var(--accent-soft-bg);
}

.secondary-button i {
  font-size: 18px;
}

.saved-card-billing {
  margin-top: 12px;
  padding: 12px 12px 10px;
  background: var(--tint-row);
  border-radius: 10px;
  border: 1px solid #eef0f3;
}

.saved-card-billing-lines {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.saved-card-billing-line {
  margin: 0;
  line-height: 1.45;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.saved-card-billing-line strong {
  color: #1a1d21;
  font-weight: 600;
  flex: 1;
}

.saved-billing-copy-btn {
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 4px;
  flex-shrink: 0;
}

.saved-billing-copy-btn:hover {
  background: rgba(0, 122, 255, 0.1);
  transform: scale(1.1);
}

.saved-billing-copy-btn:active {
  transform: scale(0.95);
}

.saved-card-topup-row {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid #eef0f3;
}

.saved-card-topup-row .secondary-button {
  width: 100%;
}

.detail-header {
  display: grid;
  gap: 16px;
}

.detail-carousel {
  display: grid;
  gap: 10px;
}

.detail-carousel__viewport {
  width: 100%;
  max-width: 100%;
  background: transparent;
}

.detail-carousel__track {
  display: flex;
  gap: 0;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0;
  border-bottom: none;
  box-shadow: none;
  scrollbar-width: none;
}

.detail-carousel__track::-webkit-scrollbar {
  display: none;
}

.detail-slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0;
  box-shadow: none;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Одна высота для всех превью; картинка как в файле — width: auto, по центру. */
.detail-slide__bg {
  width: 100%;
  height: 200px;
  margin: 0;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.detail-slide__img {
  height: 200px;
  width: auto;
  max-width: 100%;
  display: block;
}

.detail-slide__gradient {
  position: absolute;
  inset: 0;
}

.detail-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.detail-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d7dbe3;
  border: none;
}

.detail-dot.active {
  width: 28px;
  background: var(--accent);
}

.detail-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

.detail-subtitle {
  color: var(--text-muted);
  margin-top: 6px;
  text-align: center;
}

.detail-price {
  font-size: 34px;
  font-weight: 700;
  margin-top: 10px;
  text-align: center;
  color: var(--accent);
}

.detail-rate {
  margin-top: 4px;
  color: var(--text-muted);
  text-align: center;
}

.payment-systems {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.payment-badge {
  border: 1px solid #d7dbe3;
  border-radius: 10px;
  padding: 6px 10px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #3a3d44;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  background: #fff;
  padding: 16px 18px;
  border-radius: 12px;
  box-shadow: 0 10px 22px var(--shadow-card);
}

.feature-item strong {
  display: block;
  margin-bottom: 4px;
}

.feature-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 700;
}

.detail-section {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 10px 22px var(--shadow-card);
}

.detail-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.detail-section__list {
  display: grid;
  gap: 8px;
  color: #3a3d44;
  font-size: 14px;
}

.detail-section__item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eef0f3;
  padding-bottom: 8px;
}

.detail-section__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-section--spoiler .detail-section__list {
  margin-top: 12px;
}

.spoiler-toggle {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
}

.spoiler-arrow {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.spoiler-toggle[aria-expanded="true"] .spoiler-arrow {
  transform: rotate(180deg);
}

details.detail-section--spoiler > summary {
  list-style: none;
}

details.detail-section--spoiler > summary::-webkit-details-marker {
  display: none;
}

details.detail-section--spoiler[open] .spoiler-arrow {
  transform: rotate(180deg);
}

.muted {
  color: var(--text-muted);
  margin-top: 4px;
}

.filters {
  display: flex;
  gap: 10px;
  margin: 18px 0;
}

.chip {
  padding: 10px 16px;
  border-radius: 14px;
  border: none;
  background: var(--chip-inactive);
  cursor: pointer;
  color: #2b2d33;
  font-weight: 600;
}

.chip--active {
  background: var(--accent);
  color: #fff;
}

.history-list {
  display: grid;
  gap: 12px;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-item {
  background: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 10px 22px var(--shadow-card);
  display: grid;
  gap: 10px;
}

.admin-item__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.admin-item__meta {
  color: var(--text-muted);
  font-size: 13px;
}

.admin-approve {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.admin-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 24px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.saved-cards-list {
  display: grid;
  gap: 10px;
}

.saved-card-item {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.saved-card-item__main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.saved-card-item__thumb {
  width: 48px;
  flex: 0 0 48px;
  aspect-ratio: 1.64 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: #e2e8f0;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.saved-card-item__thumb img,
.saved-card-item__thumb > span {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.saved-card-item__thumb--grad > span {
  background-size: cover;
  background-position: center;
}

a.saved-card-item {
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.saved-card-item strong {
  display: block;
}

.saved-card-item small {
  color: var(--text-muted);
}

.saved-card-item.is-active {
  outline: 2px solid var(--accent);
}

.saved-card-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--tint-row);
  border-radius: 999px;
  padding: 5px 10px;
}

.saved-card-details {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.saved-card-details__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.saved-card-details__head h3 {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.saved-card-details__thumb {
  width: 72px;
  flex: 0 0 72px;
  aspect-ratio: 1.64 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #e2e8f0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.saved-card-details__thumb img,
.saved-card-details__thumb > span {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.saved-card-details__thumb--grad > span {
  background-size: cover;
  background-position: center;
}

.saved-card-grid {
  display: grid;
  gap: 8px;
}

.saved-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #eef0f3;
  padding-bottom: 8px;
  font-size: 14px;
}

.saved-card-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.saved-card-row span {
  color: var(--text-muted);
}

.saved-card-value-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.saved-copy-btn {
  border: none;
  background: var(--tint-row);
  color: var(--accent);
  font-size: 16px;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  min-width: 36px;
  min-height: 36px;
}

.saved-copy-btn:hover {
  background: var(--accent-soft-bg);
  transform: scale(1.05);
}

.saved-copy-btn:active {
  transform: scale(0.95);
}

.knowledge-list {
  display: grid;
  gap: 12px;
}

.knowledge-item {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.knowledge-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.knowledge-item p {
  color: #5f6672;
  line-height: 1.45;
  font-size: 14px;
}
.history-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 24px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.history-item {
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.history-item small {
  color: var(--text-muted);
}

.profile-card {
  background: linear-gradient(160deg, #0c4a6e, #134e4a);
  color: #fff;
  padding: 26px;
  border-radius: 16px;
  text-align: center;
  position: relative;
}

.profile-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent));
  margin: 0 auto 14px;
  background-size: cover;
  background-position: center;
}

.profile-name {
  font-size: 26px;
  font-weight: 700;
}

.profile-version {
  display: none;
}

.menu-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: #fff;
  border-radius: 14px;
  padding: 17px 20px;
  border: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  box-shadow: 0 12px 28px var(--shadow-card);
  transition: all 0.2s ease;
}

.menu-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px var(--shadow-card);
}

.menu-text {
  display: grid;
  gap: 4px;
}

.menu-item small {
  display: block;
  color: var(--text-muted);
  margin-top: 4px;
}

.menu-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--tint-row);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 20px;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 100%);
  display: flex;
  justify-content: space-around;
  padding: 16px 12px 20px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -12px 36px rgba(15, 23, 42, 0.12);
  z-index: 20;
}

.nav-item {
  border: none;
  background: transparent;
  color: var(--nav-inactive);
  font-weight: 600;
  display: grid;
  gap: 4px;
  font-size: 12px;
  cursor: pointer;
}

.nav-item--active {
  color: var(--accent);
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
  padding: 12px 8px;
}

.empty-state h2 {
  font-size: 28px;
  font-weight: 700;
  color: #2f2f33;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 16px;
}

.empty-illustration {
  width: 220px;
  height: 180px;
  position: relative;
  display: grid;
  place-items: center;
}

.empty-card {
  width: 140px;
  height: 100px;
  background: #e9ebf2;
  border-radius: 12px;
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.04);
  position: relative;
}

.empty-card::before {
  content: "";
  position: absolute;
  width: 70px;
  height: 36px;
  background: #d8dbe6;
  border-radius: 8px;
  top: 18px;
  left: 35px;
}

.empty-bubble {
  position: absolute;
  right: 8px;
  top: 14px;
  width: 60px;
  height: 44px;
  background: #e9ebf2;
  border-radius: 18px;
}

.empty-bubble::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: #e9ebf2;
  border-radius: 50%;
  left: -6px;
  bottom: 6px;
}

.toast {
  position: fixed;
  bottom: 118px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  background: rgba(22, 24, 34, 0.92);
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  font-size: 14px;
}

.toast.show {
  opacity: 1;
}

.topup-validation-error {
  color: #c00;
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 14px;
}

.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 22, 0.58);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 30;
}

.sheet-overlay[hidden] {
  display: none !important;
}

.sheet {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 22px;
  box-shadow: 0 -24px 48px rgba(15, 23, 42, 0.18);
  display: grid;
  gap: 18px;
  position: relative;
}

.sheet-handle {
  width: 64px;
  height: 6px;
  border-radius: 999px;
  background: #e2e5eb;
  justify-self: center;
}

.sheet-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: #f1f3f7;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #5a5f6b;
  cursor: pointer;
}

.sheet h3 {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.sheet-list {
  display: grid;
  gap: 10px;
  color: var(--text-muted);
  font-size: 15px;
  padding-left: 18px;
}

.qr-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  display: grid;
  place-items: center;
}

.qr-card img {
  width: 180px;
  height: 180px;
}

.sheet-text {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.4;
}

.sheet-link {
  border: none;
  background: none;
  color: #5a5f6b;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  cursor: pointer;
}

.topup-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #3a3f4a;
  margin-bottom: 6px;
}

.topup-min-hint {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
}

.topup-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #d5d8e0;
  font-size: 18px;
  margin-bottom: 8px;
}

.topup-rate-hint {
  font-size: 13px;
  margin-bottom: 8px;
}

.topup-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 16px;
  margin: 14px 0 18px;
  border-radius: 12px;
  background: var(--accent-soft-bg);
  color: #1f2937;
  font-size: 15px;
}

.topup-preview strong {
  font-size: 20px;
  color: #0f172a;
}
