/* Общие стили */
.lk-container {
  font-family: system-ui, sans-serif;
  background: #f7f8fa;
  padding: 40px 25px;
  color: #333;
  max-width: 1200px;
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.lk-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 15px;
}

.lk-user {
  font-weight: 700;
  font-size: 18px;
  color: #2c3e50;
  margin-bottom: 10px;
  flex-grow: 1;
}

.lk-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.lk-nav a.btn,
.lk-logout button {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.25s ease;
  border: none;
  cursor: pointer;
}

.lk-logout {
  margin: 0;
}

.lk-logout button.logout-btn {
  background: #dc3545;
  color: white;
}

.lk-logout button.logout-btn:hover {
  background: #b02a37;
}

.lk-nav a.btn {
  background: #007bff;
  color: #fff;
  text-decoration: none;
}

.lk-nav a.btn:hover {
  background: #0056b3;
}

/* Заголовки */
h1, h2 {
  text-align: center;
  color: #34495e;
  margin-bottom: 18px;
}

h2 {
  margin-top: 40px;
}

/* Основной блок */
.lk-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Текстовые блоки */
.info-text p {
  max-width: 900px;
  margin: 0 auto 15px;
  line-height: 1.5;
  font-size: 15px;
  color: #555;
  text-align: center;
  font-size: 18px;
}

/* Статус доступа */
.status-box {
  padding: 18px 25px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  margin: 25px auto 30px;
  max-width: 400px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.status-box.active {
  background: #e6ffed;
  color: #0a8800;
  box-shadow: 0 0 12px #64c864;
}

.status-box.inactive {
  background: #fff8e1;
  color: #c77d00;
  box-shadow: 0 0 12px #f0c046;
}

.payment-error {
  background: #ffe6e6 !important;
  color: #d32f2f !important;
  box-shadow: 0 0 12px #d32f2f;
}

/* Таблица истории оплат */
.lk-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
  font-size: 14px;
}

.lk-table th, .lk-table td {
  padding: 14px 10px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.lk-table th {
  background: #f5f7fa;
  color: #5d6d7e;
  font-weight: 600;
}

.lk-table tr:last-child td {
  border-bottom: none;
}

.paid {
  color: #28a745;
  font-weight: 700;
}

.pending {
  color: #fd7e14;
  font-weight: 700;
}

.failed {
  color: #dc3545;
  font-weight: 700;
}

.lk-table a {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
}

.lk-table a:hover {
  text-decoration: underline;
}

/* Форма оплаты */
.payment-form {
    width: 100%;
  margin-bottom: 40px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.payment-btn {
  background: #28a745;
  color: white;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  padding: 14px 28px;
  font-size: 16px;
  transition: background-color 0.3s ease;
  border: none;
  display: inline-block;
  max-width: 280px; /* Ограничиваем максимальную ширину */
  width: auto;      /* Кнопка не растягивается */
  min-width: 160px; /* Минимальная ширина для удобства */
  box-sizing: border-box;
 
 
}

.payment-btn:hover {
  background: #218838;
}

/* Адаптивность */
@media (max-width: 600px) {
  .lk-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .lk-user {
    font-size: 16px;
  }

  .lk-nav {
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .lk-nav a.btn,
  .lk-logout button {
    flex-grow: 1;
    margin: 0 5px;
    font-size: 13px;
    padding: 10px 8px;
  }

  .lk-table th, .lk-table td {
    font-size: 12px;
    padding: 10px 5px;
  }

  .info-text p {
    font-size: 16px;
    margin-bottom: 10px;
  }
}
