/* ===== Общие стили ===== */
body {
  font-family: 'Montserrat', sans-serif;
  background: #f0f2f8;
  margin: 0;
  padding: 0;
  color: #2d2d2d;
}

/* Контейнер страницы */
.page_wrapper {
  max-width: 920px;
  margin: 30px auto;
  padding: 20px;
}

/* Логотип */
.logo {
  height: 55px;
  margin-bottom: 25px;
}

/* ===== Кнопки ===== */
.primary_button {
  background: linear-gradient(135deg, #6a5acd, #8a7ff5);
  box-shadow: 0 6px 18px rgba(90, 70, 200, 0.3);
  color: #fff;
  padding: 14px 32px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: 0.25s;
  text-decoration: none;
  display: inline-block;
}

.primary_button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(90, 70, 200, 0.4);
}

/* ===== Алерты ===== */
.alert {
  padding: 18px;
  border-radius: 14px;
  font-size: 16px;
  margin-bottom: 18px;
}

.alert-success {
  background: #e8f8ee;
  color: #1e7b42;
}

.alert-danger {
  background: #fde5e5;
  color: #c93333;
}

.alert-warning {
  background: #fff7d9;
  color: #8a6d13;
}

/* ===== Блоки / карточки ===== */
.card_block {
  background: #ffffff;
  border-radius: 22px;
  padding: 10px 28px;
  margin-bottom: 30px;
  box-shadow: 0 8px 25px rgba(50, 50, 93, 0.08);
  transition: 0.3s;
}

.card_block:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(50, 50, 93, 0.12);
}

/* ===== Профиль ===== */
.sidebar_profile {
  display: flex;
  align-items: center;
  padding-bottom: 25px;
  border-bottom: 1px solid #e2e4ee;
  margin-bottom: 30px;
}

.sidebar_ava {
  width: 60px;
  height: 60px;
  background: linear-gradient(145deg, #6a5acd, #8676ff);
  border-radius: 16px;
  color: white;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(110, 90, 230, 0.35);
}

.meta_sidebar {
  margin-left: 18px;
  font-size: 17px;
}

.user_balance {
  color: #6a5acd;
  font-weight: 700;
  font-size: 15px;
}

/* ===== Карточка матрицы ===== */
.matrix_item {
  padding: 20px;
  background: #f7f8ff;
  border-left: 5px solid #6a5acd;
  border-radius: 14px;
  margin-bottom: 20px;
}

.matrix_title {
  font-weight: 700;
  font-size: 19px;
}

.matrix_price {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 500;
  color: #444;
}
