/* Общие сбросы */
* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0;

  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* Фон + анимация */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  width: 100%;
  font-family: 'Arial', sans-serif;
  color: #fff;
  background: linear-gradient(180deg, #ff4f9a, #c83dee);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  overflow-x: hidden;
  padding-top: 80px;
}
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Прелоадер */
#preloader {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 1s ease;
}
#preloader .star {
  font-size: 80px;
  color: #fff;
  animation: pulse-loader 1s infinite ease-in-out;
}
@keyframes pulse-loader {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* Верхняя панель */
.top-panel {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 10px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 1000;
}
@keyframes slideDown {
  0% { transform: translateY(-100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.top-panel.hidden {
  visibility: visible;
  opacity: 0;
  transform: translateY(-100%);
}
.top-panel.show {
  animation: slideDown 0.8s ease forwards;
}

/* Glass box */
.glass-box {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 1001;
}

/* === PRICE LIST === */
.container.price-list {
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.price-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.price-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.price-item:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.star-cell {
    font-size: 18px;
    font-weight: 600;
    color: #ffdf00;
    text-shadow: 0 0 8px rgba(255, 223, 0, 0.6);
}

.price-cell {
    font-size: 16px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #ff4f9a, #c83dee);
    padding: 6px 12px;
    border-radius: 12px;
    min-width: 60px;
    text-align: center;
}

/* === INSTRUCTION MODAL === */
.instruction-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.instruction-modal.show {
    opacity: 1;
    visibility: visible;
}

.instruction-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    max-width: 350px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.instruction-modal.show .instruction-content {
    transform: scale(1) translateY(0);
}

.instruction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.instruction-header h3 {
    margin: 0;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.instruction-body {
    padding: 20px;
}

.purchase-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.stars-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffdf00;
    font-size: 20px;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 223, 0, 0.6);
}

.price-amount {
    color: white;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff4f9a, #c83dee);
    padding: 8px 15px;
    border-radius: 10px;
}

.instruction-steps {
    color: white;
}

.instruction-steps h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #ffdf00;
}

.instruction-steps ol {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.instruction-steps li {
    margin-bottom: 8px;
}

.payment-methods {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.payment-methods p {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.payment-icons {
    display: flex;
    gap: 12px;
    font-size: 24px;
}

.buy-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #28a745, #20c943);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.buy-btn:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.buy-btn:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 480px) {
    .instruction-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .instruction-header h3 {
        font-size: 16px;
    }
    
    .purchase-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .stars-amount {
        font-size: 18px;
    }
    
    .price-amount {
        font-size: 16px;
    }
}

/* Контейнер прайса */
.container {
  text-align: center;
  padding: 20px;
  background: rgba(5, 87, 101, 0.595);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(3, 160, 208, 0.7);
  max-width: 800px;
  width: 70%;
  position: relative;
}
.price-list { margin-top:40px; margin-bottom:40px; }

/* Заголовок и stats */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}
h1 {
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(255, 251, 8, 0.5);
  font-size: 2.2rem;
  color: #ffffff;
}
.stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 15px;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid #ffcc00;
}
.balance, .counter { font-size: 1.1rem; font-weight: bold; }

.sad-text {
    margin-top: 16px;
    font-size: 14px;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    line-height: 1.6;
}

/* Прайс-таблица */
.price-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  margin-top: 15px;
}
.price-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  min-width: 250px;
  width: 100%;
  max-width: 320px;
  padding: 10px 22px;
  font-size: 21px;
  font-weight: 500;
  background: rgba(255,255,255,0.18);
}
.star-cell {
  color: #fff;
  font-weight: 500;
  text-align: left;
}
.price-cell {
  color: #ffe066;
  font-weight: bold;
  text-align: right;
  font-size: 21px;
}

/* Адаптив */
@media (max-width:520px){
  .price-item{min-width:120px; font-size:13px; padding:7px 8px; max-width:98vw;}
  .price-cell{font-size:13px;}
}

/* Кнопка назад */
.back-button {
  position: fixed;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  z-index: 1001;
  transition: all 0.3s ease;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.back-button:active {
  transform: translateX(0);
  transition: transform 0.1s ease;
}

.arrow-left {
  font-size: 20px;
  font-weight: bold;
}

/* Адаптив для мобильных */
@media (max-width: 480px) {
  .back-button {
    top: 10px;
    left: 10px;
    padding: 8px 14px;
    font-size: 14px;
  }
  
  .arrow-left {
    font-size: 18px;
  }
}

/* Кнопки и нижняя панель */
.bottom-bar {
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  background: #000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 5px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
  z-index: 1000;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}
.bottom-bar.show {
  transform: translateY(0);
  opacity: 1;
}
.bottom-btn {
  background: #111;
  color: #ffcc00;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  flex: 1;
  margin: 0 3px;
  max-width: 90px;
  transition: all 0.2s;
}
.bottom-btn:hover { background: #222; transform: scale(1.05); }
.bottom-btn.active {
  background: #444;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}
@media (max-width: 480px) {
  .bottom-bar { padding: 6px 3px; }
  .bottom-btn { padding: 5px 6px; font-size: 12px; max-width: 70px; }
}
/* */