:root {
  --accent: #00ddb5;
  --bg-card: #1a1a2e;
  --border-card: #333a;
}

/* Общие стили */
body {
  background-color: #0f0f1a;
  color: #eee;
  font-family: 'Orbitron', sans-serif;
  margin: 0;
  padding: 0;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  text-align: center;
  overflow: hidden;
}

/* Header */
header {
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: space-around;;
  align-items: center;
  padding: 12px 8px;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 99;
}

header i {
  font-size: 26px;
  color: #00ffff;
  cursor: pointer;
  transition: color 0.3s;
  padding: 0 8px;
}

header i:hover {
  color: white;
}

/* Main */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 32px 12px 16px 12px;
  width: 100%;
  box-sizing: border-box;
}

/* Аватар и уровень */
.avatar {
  width: 150px;
  height: 150px;
  border-radius: 70%;
  border: 4px solid #00ffcc;
  margin-bottom: 16px;
  box-shadow: 0 2px 20px #00ffcc55;
  object-fit: cover;
  background: #191927;
  transition: box-shadow .3s, border-color .3s;
}

.level {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 600;
}

.progress-bar {
  width: 92%;
  max-width: 400px;
  margin: 12px auto 20px;
  background: #222;
  border: 1px solid #444;
  border-radius: 10px;
  overflow: hidden;
  height: 18px;
}

.progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, #00ffcc, #00d0f6 80%);
  width: 0%;
  transition: width 0.5s;
}
.progress-window {
  background: #171728;
  border: 1px solid #333a;
  border-radius: 18px;
  padding: 20px;
  max-width: 150px;
  margin: 5px auto;
  color: #eee;
  font-family: 'Orbitron', sans-serif;
}

.progress-window h2 {
  text-align: center;
  color: #00ffcc;
  margin-bottom: 20px;
}

.progress-item {
  margin-bottom: 16px;
}

.progress-item span {
  display: inline-block;
  margin-bottom: 4px;
}

.progress-item .value {
  float: right;
  font-weight: bold;
}

.progress-item .multiplier {
  float: right;
  color: #00ddb5;
  font-size: 0.9em;
  margin-left: 8px;
}

button.share-ref {
  width: 100%;
  padding: 12px 0;
  background: #00ffcc;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  color: #171728;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s;
}

button.share-ref:hover {
  background: #00ddb5;
}
#creon {
  font-size: 19px;
  margin: 14px 0 6px 0;
  color: #00ffcc;
  font-weight: bold;
}

#boostBanner {
  margin: 22px auto 0;
  background: #00ffcc;
  color: #1a1a2e;
  font-size: 16px;
  font-weight: bold;
  border-radius: 10px;
  display: none;
  max-width: 350px;
  padding: 9px 20px;
  letter-spacing: 1px;
  box-shadow: 0 2px 16px 0 #00ffcc22;
}

/* Котики */
.cats-bar {
  width: 100%;
  max-width: 430px;
  margin: 0 auto 10px auto;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 16px 0 0 0;
}

.cat-slot {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2.5px solid #353a45;
  background: #171728;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 14px #00ffcc14;
  position: relative;
  cursor: pointer;
  margin-top: 50px;
  margin: 0 6px;
  overflow: hidden;
  transition: border-color .24s, box-shadow .2s;
}

.cat-slot.selected {
  border: 2.5px solid #00ffcc;
  box-shadow: 0 0 16px #00ffcc99;
}

.cat-slot img {
  width: 92%;
  height: 92%;
  border-radius: 50%;
  object-fit: cover;
  background: #232942;
}

.cat-slot.empty {
  border: 2.5px dashed #3337;
  background: #13131f;
  cursor: pointer;
}

.cat-slot.empty::after {
  content: "+";
  color: #00ffcc77;
  font-size: 30px;
  position: absolute;
  top: 45%;              /* по центру по вертикали */
  left: 50%;             /* по центру по горизонтали */
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

/* Модальные окна */
.modal,
#catModal {
  display: none; /* скрыта по умолчанию */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  z-index: 1002;
  align-items: center;
  justify-content: center;
}

.modal.active,
#catModal.active {
  display: flex; /* отображение через класс */
}

.modal .modal-content,
#catModalContent {
  background: var(--bg-card);
  border-radius: 18px;
  box-shadow: 0 6px 32px 0 #00ffcc24;
  max-width: 340px;
  width: 90%;
  padding: 28px 16px 22px 16px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#catModalContent img {
  width: 110px;
  border-radius: 10%;
}

#closeCatModal {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 2em;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
}

/* Кнопки */
button,
.withdraw-button,
.buy-button,
#catSelectBtn,
#catBuyBtn,
.modal button {
  padding: 10px 18px;
  min-width: 150px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #171728;
  transition: background 0.25s, color 0.25s;
  box-shadow: 0 2px 14px #00ffcc22;
  margin: 10px 0;
  display: block;
  text-align: center;
}

button:hover,
.withdraw-button:hover,
.buy-button:hover,
#catSelectBtn:hover,
#catBuyBtn:hover,
.modal button:hover {
  background: #00ddb5;
  color: #fff;
}

/* Баланс */
.balance {
  font-size: 32px;
  margin: 16px 0 12px 0;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
}

.creon {
  color: #00ffcc;
  font-size: 36px;
  font-family: inherit;
}

/* Табсы */
.tab-buttons {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 470px;
  margin-bottom: 22px;
  gap: 20px;
}

.tab-btn {
  flex: 1;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 0;
  background: #191928;
  border: none;
  border-radius: 10px;
  color: #00ffcc;
  cursor: pointer;
  outline: none;
  transition: background .18s, color .18s;
}

.tab-btn.active {
  background: var(--accent);
  color: #171728;
}

/* Бусты */
.boost {
  width: 100%;
  max-width: 370px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 #00ffcc10;
  margin-bottom: 22px;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.boost h3 {
  color: var(--accent);
  font-size: 19px;
  margin: 0 0 12px 0;
  font-weight: 700;
}

.boost p {
  font-size: 15px;
  margin: 5px 0;
  color: #aee;
  letter-spacing: .5px;
}

.boost button {
  width: auto;
  min-width: 140px;
}

/* Коты */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 470px;
  margin-bottom: 24px;
  justify-items: center;
}

.cat-cell {
  background: #151526;
  border: 1.3px solid #333a;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: box-shadow .14s;
}

.cat-cell:hover {
  box-shadow: 0 0 12px #00ffcc66;
}

.cat-img {
  width: 64%;
  height: 64%;
  border-radius: 50%;
  object-fit: contain;
  background: #222c;
}

.cat-cell.empty {
  background: #11111a;
  border: 1.3px dashed #3336;
  cursor: default;
}

/* FAQ */
.faq-item {
  margin-bottom: 28px;
  background: var(--bg-card);
  border-radius: 14px;
  padding: 16px 16px 10px 16px;
  box-shadow: 0 2px 16px 0 #00ffcc11;
}

.faq-item h2 {
  color: var(--accent);
  font-size: 18px;
  margin: 0 0 6px 0;
  font-weight: 700;
}

.faq-item p {
  color: #b8e6e3;
  font-size: 15px;
  margin: 0;
  line-height: 1.6;
}

.faq-item a {
  color: #00ffff;
  text-decoration: underline;
}

.faq-item a:active {
  color: #00ccbb;
}

/* Footer */
footer {
  margin-top: auto;
  padding: 16px 4px 8px 4px;
  text-align: center;
  color: #555;
  font-size: 14px;
}

/* Мобильная верстка */
@media (max-width: 700px) {
  .cat-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
  }

  main {
    padding: 12px 1vw 12vw 1vw;
  }

  .avatar {
    width: 120px;
    height: 120px;
  }

  .cats-bar {
    max-width: 99vw;
    gap: 5px;
  }

  .cat-slot {
    width: 54px;
    height: 54px;
  }

  #catModalContent img {
    width: 88px;
  }

  header {
    padding: 7px 3px 7px 3px;
    position: fixed;
    bottom: 0;
    top: auto;
    border-top: 1px solid #333;
    border-bottom: none;
    background: rgba(0,0,0,0.98);
  }

  main {
    padding: 26px 4px 50px 4px;
    min-height: 76vh;
  }
}









