* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: #0f0f0f;
  color: #ffffff;
  padding-bottom: 80px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: #161616;
  border-bottom: 3px solid #E2242A;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo { font-size: 20px; font-weight: 800; letter-spacing: 0.5px; }
.logo span { color: #E2242A; }

.bonus-pill {
  background: #E2242A;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
}

.screen { display: none; padding: 18px; }
.screen.active { display: block; }

.hero {
  background: linear-gradient(135deg, #E2242A 0%, #8c1418 100%);
  border-radius: 18px;
  padding: 24px 20px;
  margin-bottom: 18px;
}
.hero h1 { font-size: 22px; line-height: 1.2; margin-bottom: 8px; }
.hero p { font-size: 13px; opacity: 0.9; }

.promo-box {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}
.promo-box input {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 2px solid #2a2a2a;
  background: #1a1a1a;
  color: #fff;
}
.promo-box button, .ref-box button {
  background: #E2242A;
  border: none;
  color: #fff;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 700;
}

.section-title { font-size: 16px; margin-bottom: 12px; margin-top: 20px; }

.catalog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.package-card {
  background: #1a1a1a;
  border: 2px solid #2a2a2a;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  transition: 0.15s;
}
.package-card:active { transform: scale(0.96); border-color: #E2242A; }
.package-card .amount { font-size: 22px; font-weight: 800; }
.package-card .label { font-size: 11px; color: #999; margin-bottom: 10px; }
.package-card .price { font-size: 16px; color: #E2242A; font-weight: 700; margin-bottom: 10px; }
.package-card button {
  width: 100%;
  background: #E2242A;
  border: none;
  color: #fff;
  padding: 10px;
  border-radius: 10px;
  font-weight: 700;
}

.profile-card, .ref-box { background: #1a1a1a; border-radius: 14px; padding: 4px 16px; margin-bottom: 8px; }
.profile-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #2a2a2a; }
.profile-row:last-child { border-bottom: none; }

.ref-box { display: flex; gap: 8px; padding: 10px; align-items: center; }
.ref-box input { flex: 1; background: transparent; border: none; color: #999; font-size: 12px; }

.hint { color: #888; font-size: 12px; margin-top: 8px; }

.order-item {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  background: #161616;
  border-top: 2px solid #2a2a2a;
}
.nav-btn {
  flex: 1;
  background: none;
  border: none;
  color: #888;
  padding: 10px 0;
  font-size: 11px;
}
.nav-btn.active { color: #E2242A; }

.modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 100;
  align-items: flex-end;
}
.modal.active { display: flex; }
.modal-content {
  background: #1a1a1a;
  width: 100%;
  border-radius: 20px 20px 0 0;
  padding: 20px;
}
.modal-content label { display: block; font-size: 12px; color: #999; margin: 12px 0 6px; }
.modal-content input, .modal-content select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 2px solid #2a2a2a;
  background: #0f0f0f;
  color: #fff;
}
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.btn-primary, .btn-secondary { flex: 1; padding: 12px; border-radius: 10px; border: none; font-weight: 700; }
.btn-primary { background: #E2242A; color: #fff; }
.btn-secondary { background: #2a2a2a; color: #fff; }

.loading { color: #888; grid-column: 1 / -1; text-align: center; padding: 20px; }
