/* ------------------------------
   Общие стили
------------------------------ */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  background-color: #1a1a1a;
  color: white;
}

/* ------------------------------
   Контейнер
------------------------------ */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;
}

/* ------------------------------
   Логотип
------------------------------ */
.logo {
  text-align: center;
  margin-bottom: 20px;
}

.logo img {
  display: block;
  margin: 0 auto;
  max-width: 220px;
  height: auto;
}

/* ------------------------------
   Заголовок и описание
------------------------------ */
.intro {
  margin-bottom: 30px;
}

.intro h2 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 10px;
}

.intro p {
  font-size: 16px;
  text-align: center;
  color: #ccc;
  margin-bottom: 30px;
}

/* ------------------------------
   Главная кнопка
------------------------------ */
.btn {
  display: block;
  background-color: #a31b1b;
  color: white;
  text-align: center;
  padding: 18px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 auto 40px;
  max-width: 300px;
  font-size: 18px;
}

.btn:hover {
  background-color: #c62828;
}

/* ------------------------------
   Меню ссылок
------------------------------ */
.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
}

.link {
  background-color: #2a2a2a;
  color: white;
  text-decoration: none;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
  font-size: 15px;
  transition: background-color 0.3s ease;
}

.link:hover {
  background-color: #a31b1b;
}

/* ------------------------------
   Секции (личный кабинет)
------------------------------ */
.section {
  background-color: #2a2a2a;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  text-align: center;
}

/* ------------------------------
   Баланс (в стиле устройств)
------------------------------ */
.balance-box {
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 12px 0;
  width: 100%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  font-family: 'Segoe UI', sans-serif;
  transition: background-color 0.3s ease;
  text-align: center;
  display: block;
  box-sizing: border-box;
}

.balance-box:hover {
  background-color: #222;
}

.balance-box p {
  margin: 6px 0;
  color: #e6e6e6;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.5;
  word-break: break-word;
}

.balance-box .balance {
  font-size: 28px;
  font-weight: bold;
  color: #e6e6e6;
}

.balance-box .status {
  color: #e6e6e6;
  font-weight: bold;
}

/* ------------------------------
   Кнопки баланса
------------------------------ */
.button-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn-red {
  background-color: #a31b1b;
  color: white;
  text-align: center;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 17px;
  width: 180px;
  height: 50px;
  line-height: 50px;
  transition: background-color 0.3s ease;
  display: block;
}

.btn-red:hover {
  background-color: #c62828;
}

/* ------------------------------
   Устройства
------------------------------ */
.device-box {
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 12px 0;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  font-family: 'Segoe UI', sans-serif;
  transition: background-color 0.3s ease;
}

.device-box:hover {
  background-color: #222;
}

.device-box p {
  margin: 6px 0;
  color: #e6e6e6;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.5;
  word-break: break-word;
}

.device-box .device-id {
  color: #ffffff;
  font-weight: bold;
}

/* ------------------------------
   Тариф
------------------------------ */
.tariff {
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
}

/* ------------------------------
   Реферальные кнопки
------------------------------ */
.button-pair {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.button-pair a {
  background-color: #a31b1b;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 17px;
  width: 180px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  display: block;
  transition: background-color 0.3s ease;
}

.button-pair a:hover {
  background-color: #c62828;
}

/* ------------------------------
   Футер
------------------------------ */
.footer {
  text-align: center;
  font-size: 14px;
  color: #888;
  margin-top: 40px;
}

/* ------------------------------
   Адаптация под мобильные
------------------------------ */
@media (max-width: 480px) {
  .button-row,
  .button-pair {
    flex-direction: column;
    align-items: center;
  }

  .btn,
  .btn-red,
  .button-pair a {
    width: 100%;
    max-width: 300px;
  }

  .device-box {
    text-align: center;
  }

  .balance-box {
    width: 100%;
    max-width: 100%;
    margin: 12px 0;
  }
}

/* ------------------------------
   Десктопная адаптация
------------------------------ */
@media (min-width: 768px) {
  .container {
    max-width: 640px;
  }

  .btn,
  .btn-red,
  .button-pair a {
    max-width: 280px;
    white-space: normal;
    word-wrap: break-word;
    font-size: 16px;
    line-height: 1.3;
    padding: 14px 20px;
  }

  .button-row,
  .button-pair {
    justify-content: center;
    gap: 20px;
  }

  .links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .link {
    width: 140px;
  }

  .intro h2 {
    font-size: 28px;
  }

  .intro p {
    font-size: 18px;
  }

  .section {
    padding: 30px;
  }

  .balance-box {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}
