body {
  margin: 0;
  padding: 0;
  font-size: 16px;
  background-color: #121212;
  color: #eee;
  font-family: Arial, sans-serif;
  background-image: url('https://jfjxjiybfhjjvyvnkzqj.supabase.co/storage/v1/object/public/cards//newgenaibottemplate.png');
  background-size: cover;         /* Картинка полностью покрывает экран */
  background-position: center;    /* Центрирование картинки */
  background-repeat: no-repeat;   /* Без повторений */
  background-attachment: fixed;   /* Фон не прокручивается */
  background-color: #121212;      /* Цвет фона на случай, если картинка не загрузится */
}
  
.container {
  text-align: center;
  width: 100%;
  max-width: 600px;
}
  
  h1 {
    margin-bottom: 2rem;
  }
  
  .button {
    width: 100%;
    max-width: 300px;
    font-size: 1.1rem;
    display: block;
    margin: 1rem auto;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;  
    text-decoration: none;
    color: white;
    transition: 0.3s;
  }
  
  .button.chat {
    background: linear-gradient(45deg, #4a00e0, #8e2de2);
  }
  
  .button.tarot {
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
  }
  
  .button.food {
    background: linear-gradient(45deg, #ff8c00, #ffb347); /* тёплые гастрономические оттенки */
  }
  
  .button.dream {
    background: linear-gradient(45deg, #3a1c71, #d76d77); /* фиолетово-розовые сны */
  }
  
  .button.movie {
    background: linear-gradient(45deg, #434343, #000000); /* киношный noir */
  }
  
  .button.grammar {
    background: linear-gradient(45deg, #2980b9, #6dd5fa); /* строгий и ясный, как грамматика */
  }
  
  .button.clothing {
    background: linear-gradient(45deg, #bdc3c7, #2c3e50); /* стилистично нейтральный */
  }
  
  .button.images {
    background: linear-gradient(45deg, #ff6a00, #ee0979); /* яркость и креатив для генерации картинок */
  }
  
  .button.hugs {
    background: linear-gradient(45deg, #f857a6, #ff5858); /* тёплое объятие */
  }
  
  .button.files {
    background: linear-gradient(45deg, #4568dc, #b06ab3); /* нейтрально-доверительный */
  }
  
  .button.gifts {
    background: linear-gradient(45deg, #00c9ff, #92fe9d); /* лёгкий и праздничный */
  }
  
  .button.character {
    background: linear-gradient(45deg, #614385, #516395); /* фэнтезийная атмосфера */
  }
  
  .button.whatif {
    background: linear-gradient(45deg, #1e3c72, #2a5298); /* загадочные "а что если..." */
  }

  .button.catalog {
    background: linear-gradient(45deg, #00c6ff, #0072ff);
  }
  .button.favorites {
    background: linear-gradient(45deg, #f6d365, #fda085);
  }

  .button.translate {
    background: linear-gradient(45deg, #00b4db, #0083b0);
  }
  
  .button.fun {
    background: linear-gradient(90deg, #f7971e, #ffd200);
  }

  .button.tools {
    background: linear-gradient(90deg, #797979, #ffffff);
  }

  .button.creative {
    background: linear-gradient(90deg, #8758ad, #f651fc);
  }

  .button.lifestyle {
    background: linear-gradient(90deg, #19a855, #83ff9e);
  }

  .button.continue {
    background: linear-gradient(45deg, #00c853, #64dd17); /* зелёный градиент */
  }
  
  .button.back {
    background: #333;
  }
  
  .chat-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #1e1e1e;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.6);
  }
  
  .chat-window {
    text-align: left;
    margin-bottom: 0.5rem;
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 1rem;
    height: 300px;
    overflow-y: auto;
    color: #eee;
    font-size: 1rem;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    box-sizing: border-box;
  }
  
  .chat-form {
    position: sticky;
    bottom: 0;
    background-color: #1e1e1e;
    padding-bottom: env(safe-area-inset-bottom); /* для iPhone с вырезом */
    z-index: 10;
  }
  
  input:focus,
  button:focus {
    outline: none;
  } 
  
  .chat-form input[type="text"] {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    background-color: #333;
    color: #fff;
  }
  
  .chat-form button {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(45deg, #4a00e0, #8e2de2);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
  }
  
  .chat-form button:hover {
    background: linear-gradient(45deg, #5f22e5, #a04de8);
  }

  .chat-window .user-msg {
    color: #ffffff;
    margin-bottom: 16px;
  }
  
  .chat-window .bot-msg {
    color: #ffd700;
    margin-bottom: 16px;
  }
  
  .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #252525;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0 0 15px 15px;
  font-size: 1rem;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin-right: 0.75rem;
}

.user-info {
  flex: 1;
  margin-left: 0.75rem;
}

.user-info #name {
  font-weight: bold;
  font-size: 1.1rem;
}

.gem {
  color: #a9f;
  font-weight: bold;
}

.topup-btn {
  background-color: #1fab89;
  color: white;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.topup-btn:hover {
  background-color: #0eab73;
}

.main-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 72px); /* высота окна минус хедер */
  padding: 1rem;
  box-sizing: border-box;
}

.button-row.column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.button-row.column .button {
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
  margin: 0.5rem auto;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  text-align: center;
}

.button.proceed {
  background: linear-gradient(45deg, #00c853, #b2ff59); /* приятный зелёный */
  color: white;
  border: none;
}

.favorite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 1rem 0;
}

.remove-btn {
  background: #8b0000;
  color: white;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
}
.remove-btn:hover {
  background: #a10000;
}
