* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Golos Text", "Commissioner", "Segoe UI", system-ui, sans-serif;
}

body {
  background: #101419;
  color: #1f1f1f;
  display: flex;
  justify-content: center;
}

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

main {
  padding: 88px 20px 96px;
}

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

.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 100%);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(16, 20, 25, 0.85);
  color: #fff;
  z-index: 20;
}

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

.brand-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2e88ff, #4be3ff);
}

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

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

.screen.active {
  display: flex;
}

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

.hero-card {
  padding: 28px;
  border-radius: 26px;
  background: radial-gradient(circle at top, #2f323a, #1a1d23);
  color: #fff;
  display: grid;
  gap: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.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: 30px;
  margin-bottom: 6px;
}

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

.section-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 4px;
}

.featured-card {
  padding: 20px;
  border-radius: 26px;
  background: linear-gradient(135deg, #121212, #3b3b3b);
  color: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: grid;
  gap: 10px;
}

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

.featured-card__subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  line-height: 1.35;
}

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

.featured-card__card {
  width: 190px;
  height: 110px;
  border-radius: 18px;
  background: radial-gradient(circle at top, #1e1e1e, #0b0b0b);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 26px rgba(0, 0, 0, 0.5);
}

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

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

.featured-card__value {
  font-weight: 700;
  font-size: 20px;
}

.featured-card__label {
  font-size: 13px;
  opacity: 0.8;
}

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

.card-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.card-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  background: #fff;
  padding: 16px;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

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

.card-preview {
  border-radius: 14px;
  height: 64px;
  background: #dbe5f6;
  background-size: cover;
  background-position: center;
}

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

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

.card-item p {
  font-size: 14px;
  color: #6a6d75;
}

.card-item__footer {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 12px;
  align-items: center;
  background: #edf3ff;
  border-radius: 14px;
  padding: 10px 12px;
  color: #2c3a52;
  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: #4f6fb0;
  text-align: center;
}

.card-item__divider {
  width: 1px;
  height: 24px;
  background: rgba(63, 112, 199, 0.25);
}

.primary-button {
  width: 100%;
  padding: 16px 18px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(135deg, #1f6bff, #4aa8ff);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
}

.secondary-button {
  width: 100%;
  padding: 14px 18px;
  border-radius: 18px;
  border: 2px solid #1f6bff;
  background: #fff;
  color: #1f6bff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.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: 12px;
}

.detail-carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0;
  border-bottom: none;
  box-shadow: none;
}

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

.detail-slide {
  min-width: 100%;
  padding: 0;
  border-radius: 24px;
  color: #fff;
  box-shadow: none;
  scroll-snap-align: center;
  background: transparent;
  display: grid;
  gap: 0;
  align-items: center;
}

.detail-slide__bg {
  width: 100%;
  height: 200px;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
  margin: 0;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  overflow: hidden;
}

.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: #2f79ff;
}

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

.detail-subtitle {
  color: #6b6f78;
  margin-top: 6px;
  text-align: center;
}

.detail-price {
  font-size: 34px;
  font-weight: 700;
  margin-top: 10px;
  text-align: center;
  color: #1f6bff;
}

.detail-rate {
  margin-top: 4px;
  color: #6b6f78;
  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: 14px 16px;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

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

.feature-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(31, 107, 255, 0.12);
  display: grid;
  place-items: center;
  color: #1f6bff;
  font-weight: 700;
}

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

.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: #1f6bff;
  cursor: pointer;
}

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

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

.muted {
  color: #7b7f86;
  margin-top: 4px;
}

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

.chip {
  padding: 8px 14px;
  border-radius: 12px;
  border: none;
  background: #e6e8ee;
  cursor: pointer;
  color: #2b2d33;
  font-weight: 600;
}

.chip--active {
  background: #2f79ff;
  color: #fff;
}

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

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

.admin-item {
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  display: grid;
  gap: 10px;
}

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

.admin-item__meta {
  color: #7b7f86;
  font-size: 13px;
}

.admin-approve {
  border: none;
  border-radius: 14px;
  padding: 10px 14px;
  background: #1f6bff;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.admin-empty {
  text-align: center;
  color: #7b7f86;
  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: 16px;
  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 strong {
  display: block;
}

.saved-card-item small {
  color: #7b7f86;
}

.saved-card-item.is-active {
  outline: 2px solid #2f79ff;
}

.saved-card-badge {
  font-size: 12px;
  font-weight: 700;
  color: #1f6bff;
  background: #eaf1ff;
  border-radius: 999px;
  padding: 4px 8px;
}

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

.saved-card-details h3 {
  margin-bottom: 12px;
}

.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: #7b7f86;
}

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

.saved-copy-btn {
  border: none;
  background: #eaf1ff;
  color: #1f6bff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}

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

.knowledge-item {
  background: #fff;
  border-radius: 16px;
  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: #7b7f86;
  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: 16px;
  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: #7b7f86;
}

.profile-card {
  background: #3d3f48;
  color: #fff;
  padding: 24px;
  border-radius: 24px;
  text-align: center;
  position: relative;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8fd3ff, #2f79ff);
  margin: 0 auto 12px;
  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;
  background: #fff;
  border-radius: 22px;
  padding: 16px 18px;
  border: none;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

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

.menu-item small {
  display: block;
  color: #6b6f78;
  margin-top: 4px;
}

.menu-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f3f7;
  display: grid;
  place-items: center;
  color: #1f6bff;
  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: 14px 10px 18px;
  background: #fff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

.nav-item {
  border: none;
  background: transparent;
  color: #8a8f98;
  font-weight: 600;
  display: grid;
  gap: 4px;
  font-size: 12px;
  cursor: pointer;
}

.nav-item--active {
  color: #1f6bff;
}

.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: #7b7f86;
  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: 16px;
  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: 110px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  font-size: 14px;
}

.toast.show {
  opacity: 1;
}

.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 23, 0.55);
  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: 24px 24px 0 0;
  padding: 20px;
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.2);
  display: grid;
  gap: 16px;
  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: #6b6f78;
  font-size: 15px;
  padding-left: 18px;
}

.qr-card {
  background: #fff;
  border-radius: 18px;
  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: #6b6f78;
  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: #6b6f78;
}

.topup-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  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: 12px 14px;
  margin: 12px 0 16px;
  border-radius: 16px;
  background: rgba(31, 107, 255, 0.08);
  color: #1f2937;
  font-size: 15px;
}

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