.login {
  background-color: #f7f7f7;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: start;
  padding-top: 20px;
  box-sizing: border-box;
  overflow: hidden;
}

.form-container {
  width: 390px;
  height: 100vh;
  overflow-y: auto;
  background-color: #f7f7f7;
  padding: 32px 24px;
  box-sizing: border-box;
  position: relative;
}

.logo {
  display: block;
  width: 100px;
  height: 100px;
  margin: 0 auto;
  object-fit: contain;
}

.title {
  text-align: center;
  margin-top: 16px;
  font-size: 32px;
  color: #143109;
  font-family: "Poppins-SemiBold", sans-serif;
}

.subtitle {
  text-align: center;
  font-size: 20px;
  margin-bottom: 32px;
  color: #000;
  font-family: "Poppins-Medium", sans-serif;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group .icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  font-size: 22px;
  color: #143109;
}

.input-group input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  box-sizing: border-box;
}

.button-wrapper {
  margin-top: 10px;
}

.button {
  width: 100%;
  padding: 14px;
  background-color: #143109;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.button.telegram {
  margin-top: 16px;
  background-color: #0088cc;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.error-msg {
  color: #ff4d4d;
  text-align: center;
  margin-top: 10px;
}

.note {
  text-align: center;
  color: #777;
  margin-top: 16px;
  font-size: 14px;
}

.auth-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  gap: 6px;
  font-size: 14px;
}

.auth-footer a {
  color: #000;
  text-decoration: underline;
  font-weight: 600;
}

.or {
  text-align: center;
  margin-top: 16px;
  font-size: 16px;
  font-weight: bold;
  color: #000;
}


.register {
  background-color: #f7f7f7;
  display: flex;
  justify-content: center;
  align-items: start;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.register .div {
  width: 390px;
  height: 100vh;
  background-color: #f7f7f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 20px;
}

.register .image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  margin: 0 auto 16px;
}

.register .header-text {
 text-align: center;
  margin-top: 16px;
  font-size: 32px;
  color: #143109;
  font-family: "Poppins-SemiBold", sans-serif;
}

.register .sub-text {
  text-align: center;
  font-size: 20px;
  margin-bottom: 32px;
  color: #000;
  font-family: "Poppins-Medium", sans-serif;
}

.register .form-fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.register .input-group {
  position: relative;
  width: 100%;
}

.register .input-field {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0 12px;
  height: 40px;
  background-color: #fff;
}

.register .input-field input {
  border: none;
  outline: none;
  font-size: 16px;
  width: 100%;
  background: transparent;
}

.register .phone-icon {
   font-size: 20px;
  color: #143109;
  margin-right: 8px;
}

.register .button-wrapper {
  margin-top: 8px;
}

.register .button {
  width: 100%;
  height: 48px;
  background-color: #143109;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.register .p {
  margin-top: 12px;
  font-size: 14px;
  color: #777;
  text-align: center;
}

.index {
  font-family: 'Poppins', sans-serif;
  background-color: #f0f0f0;
}

.index body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f0f0f0;
}

.index .app {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  background: transparent; /* фон тепер як у сторінки */
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.index .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: transparent; /* без фону */
  color: #000; /* чорний текст для контрасту на сірому */
}

.index .header-title {
  font-size: 20px;
  font-weight: 500;
  text-align: center;
  flex: 1;
  color: #000;
}

.index .icon-btn {
  width: 40px;
  height: 36px;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #000;
  padding: 0;
}

.index .icon-btn-user {
  background-color: var(--btn-bg-user);
}

.index .icon-btn-notifications {
  position: relative;
  background-color: var(--btn-bg-notifications);
}

.index .notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: red;
  color: white;
  font-size: 10px;
  font-weight: bold;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none; /* показувати тільки якщо count > 0 */
}



.index .icon-btn:active {
  opacity: 0.6;
}

.index .card {
  background: linear-gradient(135deg, #ffffff, #f6f6f6);
  border-radius: 16px;
  margin: 16px 20px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  text-align: center;
  position: relative;
}

.index .card h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #143109;
}

.index .card p {
  margin: 6px 0 12px;
  font-size: 13x;
  color: #444;
}

.index .balance-display {
  display: flex;
  justify-content: center;
  align-items: baseline;
  margin: 12px 0;
}

.index .balance-display .amount {
  font-size: 36px;
  font-weight: 600;
  color: #000;
  line-height: 1;
}

.index .balance-display .unit {
  font-size: 18px;
  margin-left: 8px;
  color: #555;
}

.index .progress-bar {
  width: 100%;
  background: #e0e0e0;
  height: 6px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.index .progress-bar-fill {
  height: 6px;
  background: linear-gradient(90deg, #143109, #2d5b10);
  width: 40%; /* Заміни на реальний відсоток */
  border-radius: 4px;
  transition: width 0.3s ease;
}

.index .progress-text {
  font-size: 13px;
  color: #666;
}

.index .level-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 10px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Стилі для різних рівнів */
.index .level-bronze {
  background: linear-gradient(90deg, #b17235, #e0a15d);
}

.index .level-silver {
  background: linear-gradient(90deg, #9eaebf, #d3d9df);
  color: #111;
}

.index .level-gold {
  background: linear-gradient(90deg, #d4af37, #ffd700);
  color: #111;
}


.index .barcode {
  margin: 20px;
  text-align: center;
}

.index .barcode svg {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 342px;
}

.index .barcode img {
  border-radius: 20px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 342px;
}

.index .barcode p {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;
}

.index .barcode p:first-of-type {
  margin-top: 4px !important;
  font-size: 14px;
  font-weight: normal;
}

.index .barcode p:last-of-type {
  margin-top: 2px !important;
  font-size: 13px;
  color: #6c757d;
  font-weight: normal;
}


.index .section-title {
  margin: 20px;
  font-size: 20px;
  font-weight: 500;
}

.offers-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 342px;
  margin: 0 auto 20px auto;
  border-radius: 20px;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  touch-action: pan-y;
}

.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  border-radius: 20px;
  user-select: none;
  -webkit-user-drag: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: white;
  font-size: 24px;
  padding: 6px 10px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }



.index .bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 390px;
  background: #ffffff; /* 👉 непрозорий світлий фон */
  border-top: 1px solid #e0e0e0; /* розділювальна лінія */
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  z-index: 100;
}

.index .nav-item {
  color: #2c2c2c;
  font-size: 13px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.index .nav-item i {
  font-size: 20px;
}

.index .nav-item.active {
  color: #143109;
  font-weight: 600;
}

.history {
  --bg:#f3f4f5;
  --card:#fff;
  --text:#111;
  --muted:#6b7280;
  --border:#e5e7eb;
  --shadow:0 2px 10px rgba(0,0,0,.06);
  --green:#0a7a33;
  --red:#c23;
  font-family:Poppins,sans-serif;
  background:var(--bg);
  color:var(--text);
}

.history * {
  box-sizing:border-box;
}

.history .wrap {
  max-width:390px;
  margin:0 auto;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
}

.history .topbar {
  position:sticky;
  top:0;
  z-index:10;
  background:var(--bg);
  padding:12px 16px 8px;
  display:flex;
  align-items:center;
  gap:8px;
}

.history .back {
  width:36px;
  height:36px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.history .title {
  flex:1;
  text-align:center;
  font-weight:600;
}

.history .spacer {
  width:36px;
}

.history .date-sep {
  margin:8px 16px 6px;
  color:var(--muted);
  font-size:12px;
  font-weight:600;
}

.history .card {
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:var(--shadow);
  margin:8px 16px;
  padding:12px;
  display:grid;
  grid-template-columns:40px 1fr auto;
  gap:12px;
  align-items:center;
}

.history .ic {
  width:40px;
  height:40px;
  border-radius:10px;
  background:#eef3ef;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
}

.history .main {
  min-width:0;
}

.history .op {
  font-size:14px;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.history .desc {
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.history .meta {
  font-size:11px;
  color:var(--muted);
  margin-top:2px;
}

.history .amt {
  text-align:right;
}

.history .uah {
  font-weight:600;
  font-size:14px;
}

.history .pts {
  font-size:12px;
  margin-top:2px;
}
/* Якщо потрібні кольори для плюс/мінус балів */
.history .pts.plus {
  color:var(--green);
}
.history .pts.minus {
  color:var(--red);
}
.reward-img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover; /* заповнює блок */
}