.bonuses-page {
  --bonus-purple: #8d34ff;
  --bonus-green: #00971c;
}
.bonus-overview {
  display: grid;
  grid-template-columns: minmax(0, 2.12fr) minmax(290px, 1fr);
  gap: 16px;
}
.bonus-card {
  border: 1px solid #e6edf9;
  background: #ffffffbd;
  border-radius: 14px;
  min-width: 0;
}
.bonuses-page h2,
.bonus-admin h2 {
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.045em;
  margin: 0;
  font-weight: 700;
}
.bonus-balance {
  position: relative;
  min-height: 210px;
  border-radius: 14px;
  border: 1px solid #fff;
  background: linear-gradient(
    117deg,
    #11b3f6 0%,
    #268bff 24%,
    #926bff 52%,
    #ee88ec 76%,
    #fff26a 100%
  );
  color: #fff;
  padding: 31px 30px 25px;
}
.bonus-balance > p {
  font-size: 20px;
  line-height: 27px;
  margin: 0;
  letter-spacing: -0.035em;
}
.bonus-balance-value {
  display: flex;
  align-items: center;
  gap: 21px;
  min-height: 90px;
}
.bonus-balance-value strong {
  font-size: 76px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.bonus-balance-value img {
  width: 56px;
  height: 68px;
  object-fit: contain;
  flex: none;
}
.bonus-balance > p.bonus-exchange {
  font-size: 22px;
  line-height: 29px;
  letter-spacing: -0.035em;
}
.bonus-balance small {
  display: block;
  margin-top: 8px;
  line-height: 1.5;
  font-size: 14px;
}
.bonus-info {
  position: absolute;
  right: 22px;
  top: 20px;
  border: 0;
  border-radius: 50%;
  background: #ffffffa6;
  color: #9741ff;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  transition:
    background 0.2s,
    transform 0.2s;
}
.bonus-info:hover {
  background: #fff;
  transform: scale(1.06);
}
.bonus-info .si {
  width: 28px;
  height: 28px;
}
.bonus-learning {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  gap: 15px;
  margin-top: 16px;
}
.bonus-progress {
  padding: 15px 19px 19px;
  min-height: 128px;
}
.bonus-progress-values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 15px 0 12px;
  font-size: 23px;
  line-height: 27px;
  letter-spacing: -0.04em;
}
.bonus-progress-values > span {
  font-size: 21px;
  color: #7b77a7;
  font-weight: 600;
}
.bonus-progress .student-progress-track {
  height: 15px;
}
.bonus-progress small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin-top: 8px;
}
.bonus-rule {
  padding: 11px;
}
.bonus-rule > div {
  background: #fff6e9;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 14px;
  min-height: 104px;
}
.bonus-rule .si {
  width: 35px;
  height: 38px;
  flex: none;
  color: #ffac00;
}
.bonus-rule p {
  margin: 0;
  font-size: 15px;
  line-height: 23px;
  color: #6c709a;
  letter-spacing: -0.035em;
}
.bonus-statistics {
  padding: 17px 21px 20px;
}
.bonus-statistics > h2 {
  margin-bottom: 16px;
}
.bonus-stat {
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid #e4eaf7;
  background: #ffffff58;
  border-radius: 11px;
  padding: 12px 11px;
  min-height: 83px;
  margin-top: 10px;
}
.bonus-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  background: #e6f1ff;
  color: #0085ff;
  display: grid;
  place-items: center;
  flex: none;
}
.bonus-stat-icon .si {
  width: 32px;
  height: 32px;
}
.bonus-stat-icon.purple {
  background: #efe8ff;
  color: #8a32ff;
}
.bonus-stat-icon.green {
  background: #e2faef;
  color: #009c28;
}
.bonus-stat p {
  margin: 0 0 3px;
  color: #71759f;
  font-size: 15px;
  line-height: 19px;
  letter-spacing: -0.03em;
}
.bonus-stat strong {
  font-size: 27px;
  line-height: 30px;
  letter-spacing: -0.045em;
}
.bonus-history {
  margin-top: 17px;
  padding: 21px 21px 4px;
}
.bonus-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
}
.bonus-section-head > a {
  color: #0083ff;
  font-size: 15px;
  line-height: 22px;
  min-height: 32px;
  display: flex;
  align-items: center;
}
.bonus-section-head > a:hover {
  text-decoration: underline;
}
.bonus-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 22px;
  table-layout: fixed;
}
.bonus-table th {
  font-weight: 400;
  color: #767aa3;
  text-align: left;
  font-size: 15px;
  padding: 7px 10px 11px;
  border-bottom: 1px solid #e5edf8;
}
.bonus-table th:first-child {
  width: 54%;
}
.bonus-table th:nth-child(2) {
  width: 24%;
}
.bonus-table th:last-child {
  text-align: right;
}
.bonus-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e6edf8;
  height: 58px;
  overflow-wrap: anywhere;
}
.bonus-table tr:last-child td {
  border-bottom: 0;
}
.bonus-table time {
  color: #7175a1;
  white-space: nowrap;
}
.bonus-event {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 19px;
  font-size: 16px;
  line-height: 22px;
  width: 100%;
  color: var(--ink);
  min-height: 40px;
}
.bonus-event:hover {
  color: #0083ff;
}
.bonus-event-icon {
  width: 41px;
  height: 41px;
  flex: none;
  display: grid;
  place-items: center;
  background: #f0e7ff;
  border-radius: 13px;
  color: #8d34ff;
}
.bonus-event-icon .si {
  width: 24px;
  height: 24px;
}
.bonus-event-icon.debit {
  background: #e6f1ff;
  color: #0083ff;
}
.bonus-change {
  text-align: right;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.bonus-change.credit {
  color: #008d19;
}
.bonus-change.debit {
  color: #a75027;
}
.bonus-usage {
  margin-top: 17px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 144px;
  align-items: center;
  gap: 24px;
  min-height: 157px;
  padding: 20px 19px 20px 30px;
  background: linear-gradient(
    110deg,
    #e0e9ff,
    #e9ddfb 44%,
    #f9dff6 68%,
    #fff7d5
  );
  border-radius: 14px;
}
.bonus-usage-intro {
  display: flex;
  align-items: center;
  gap: 22px;
}
.bonus-crown {
  width: 82px;
  height: 82px;
  background: #ffffff9c;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: #ffae00;
  flex: none;
}
.bonus-crown .si {
  width: 41px;
  height: 41px;
}
.bonus-usage-intro p {
  color: #7076a2;
  font-size: 15px;
  line-height: 21px;
  margin: 5px 0 0;
  letter-spacing: -0.025em;
}
.bonus-usage-intro a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  margin-top: 8px;
  color: #166de3;
}
.bonus-usage-intro a .si {
  width: 17px;
  height: 17px;
}
.bonus-usage ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 35px;
  border-left: 1px solid #c7b9e6;
  display: grid;
  gap: 14px;
  color: #72759e;
  font-size: 14px;
  line-height: 19px;
  letter-spacing: -0.035em;
}
.bonus-usage li {
  display: flex;
  gap: 12px;
  align-items: center;
}
.bonus-usage li .si {
  width: 24px;
  height: 24px;
  flex: none;
  color: #438cff;
}
.bonus-gift {
  width: 140px;
  height: 140px;
  object-fit: contain;
  max-width: 100%;
  margin: -12px 0;
}
.bonus-context {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 12px;
  color: #72759e;
  font-size: 14px;
  flex-wrap: wrap;
}
.bonus-context a {
  color: #0083ff;
}
.bonus-course-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #72759e;
}
.bonus-course-label select {
  max-width: 440px;
}
.bonus-filters {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}
.bonus-filters label,
.bonus-admin label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #5a608b;
  font-size: 14px;
}
.bonus-filters input,
.bonus-filters select,
.bonus-course-label select,
.bonus-admin input,
.bonus-admin select,
.bonus-admin textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  min-height: 43px;
  background: #fff;
  color: var(--ink);
  border: 1px solid #dce6f8;
  border-radius: 8px;
  font: inherit;
}
.bonus-filters > a {
  align-self: center;
  color: #0083ff;
  font-size: 14px;
}
.bonus-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 8px;
  color: #767aa3;
  font-size: 14px;
}
.bonus-pagination > span {
  margin-right: auto;
}
.bonus-empty {
  text-align: center;
  padding: 35px 20px 40px;
  color: #777ca6;
}
.bonus-empty > .si {
  width: 40px;
  height: 40px;
  color: #a178eb;
}
.bonus-empty h3 {
  font-size: 19px;
  margin: 10px 0 8px;
  color: var(--ink);
}
.bonus-empty p {
  max-width: 550px;
  margin: 0 auto 14px;
  font-size: 15px;
  line-height: 1.6;
}
.bonus-empty a {
  color: #0083ff;
}
.bonus-dialog {
  border: 1px solid #dce6f8;
  border-radius: 20px;
  padding: 30px;
  max-width: min(570px, calc(100vw - 32px));
  color: var(--ink);
  box-shadow: 0 24px 100px #192c5140;
  animation: student-menu-in 0.2s ease-out;
}
.bonus-dialog::backdrop {
  background: #111a456e;
  backdrop-filter: blur(5px);
}
.bonus-dialog h2 {
  font-size: 24px;
  line-height: 1.25;
  margin: 4px 40px 20px 0;
  letter-spacing: -0.045em;
}
.bonus-dialog p,
.bonus-dialog li {
  color: #61698f;
  font-size: 15px;
  line-height: 1.7;
}
.bonus-dialog ul {
  padding-left: 20px;
}
.bonus-dialog li + li {
  margin-top: 10px;
}
.bonus-dialog-close {
  position: absolute;
  right: 12px;
  top: 12px;
}
.bonus-dialog dt {
  font-size: 13px;
  color: #777ca6;
  margin-top: 14px;
}
.bonus-dialog dd {
  margin: 4px 0;
  overflow-wrap: anywhere;
  font-size: 16px;
}
.bonus-dialog small,
.bonus-dialog p {
  overflow-wrap: anywhere;
}
.bonus-dialog .actions {
  flex-wrap: wrap;
}
.bonus-explanation {
  background: #f1f5ff;
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0;
}
.bonus-explanation h3 {
  font-size: 17px;
  margin: 0;
}
.bonus-explanation p {
  margin-bottom: 0;
}
.bonus-admin {
  display: grid;
  gap: 16px;
  max-width: 1000px;
}
.bonus-admin .bonus-card {
  padding: 22px;
}
.bonus-admin form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
.bonus-admin details {
  margin-top: 15px;
  border-top: 1px solid #e3eaf6;
  padding-top: 15px;
}
.bonus-admin summary {
  cursor: pointer;
  font-weight: 600;
  line-height: 1.5;
}
.bonus-admin [role="alert"] {
  color: #ad2454;
  background: #fff1f4;
  padding: 14px;
  border-radius: 8px;
}
.bonus-admin textarea {
  min-height: 80px;
}
.bonus-admin button {
  justify-self: start;
}
.bonuses-page .student-heading {
  margin-bottom: 18px;
}
.bonuses-page {
  animation: bonus-enter 0.35s ease-out;
}
@keyframes bonus-enter {
  from {
    opacity: 0.5;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1221px) {
  .student-main:has(.bonuses-page) {
    margin-left: 270px;
  }
  .student-main:has(.bonuses-page) .student-page {
    padding-left: 22px;
  }
  .student-sidebar:has(a[href="#/bonuses"][aria-current="page"]) {
    width: 270px;
  }
  .student-sidebar:has(a[href="#/bonuses"][aria-current="page"])
    .student-brand {
    margin-bottom: 24px;
  }
  .student-sidebar:has(a[href="#/bonuses"][aria-current="page"]) .student-nav {
    gap: 9px;
  }
  .student-sidebar:has(a[href="#/bonuses"][aria-current="page"])
    .student-nav
    a {
    min-height: 51px;
  }
}
@media (max-width: 1220px) {
  .bonus-overview {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
  .bonus-learning {
    grid-template-columns: 1fr;
  }
  .bonus-balance-value strong {
    font-size: 60px;
  }
  .bonus-usage {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 24px;
  }
  .bonus-gift {
    display: none;
  }
  .bonus-usage-intro {
    gap: 15px;
  }
  .bonus-crown {
    width: 60px;
    height: 64px;
  }
  .bonus-usage ul {
    padding-left: 22px;
  }
}
@media (max-width: 1000px) {
  .bonus-overview {
    grid-template-columns: 1fr;
  }
  .bonus-statistics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .bonus-statistics > h2 {
    grid-column: 1/-1;
    margin-bottom: 0;
  }
  .bonus-stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    min-width: 0;
  }
  .bonus-learning {
    grid-template-columns: 1fr 1fr;
  }
  .bonus-usage {
    grid-template-columns: 1fr;
    position: relative;
    padding-right: 140px;
  }
  .bonus-gift {
    display: block;
    position: absolute;
    right: 8px;
    bottom: 20px;
    width: 120px;
    height: 120px;
  }
  .bonus-usage ul {
    padding-left: 0;
    border: 0;
  }
  .bonus-filters {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .bonus-balance {
    padding: 27px 22px 24px;
    min-height: 200px;
  }
  .bonus-balance-value {
    gap: 12px;
  }
  .bonus-balance-value strong {
    font-size: 56px;
  }
  .bonus-balance > p.bonus-exchange {
    font-size: 18px;
    line-height: 25px;
    max-width: 260px;
  }
  .bonus-balance > p {
    font-size: 18px;
  }
  .bonus-info {
    right: 16px;
    top: 16px;
  }
  .bonus-learning {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
  }
  .bonus-progress {
    min-height: 128px;
    padding: 18px;
  }
  .bonus-rule > div {
    min-height: 90px;
  }
  .bonus-statistics {
    padding: 19px;
    grid-template-columns: 1fr;
  }
  .bonus-statistics > h2 {
    margin-bottom: 3px;
  }
  .bonus-stat {
    flex-direction: row;
    align-items: center;
    min-height: 83px;
    gap: 15px;
  }
  .bonus-stat p {
    font-size: 15px;
  }
  .bonus-history {
    padding: 20px 13px 12px;
  }
  .bonus-section-head {
    gap: 10px;
    margin-bottom: 12px;
  }
  .bonuses-page h2 {
    font-size: 20px;
  }
  .bonus-section-head > a {
    font-size: 14px;
  }
  .bonus-table {
    table-layout: auto;
  }
  .bonus-table th {
    padding: 8px 5px;
    font-size: 12px;
  }
  .bonus-table th:first-child {
    width: 55%;
  }
  .bonus-table th:nth-child(2) {
    width: 24%;
  }
  .bonus-table td {
    padding: 10px 5px;
    font-size: 12px;
  }
  .bonus-event {
    font-size: 13px;
    line-height: 18px;
    gap: 8px;
  }
  .bonus-event-icon {
    width: 30px;
    height: 32px;
    border-radius: 9px;
  }
  .bonus-event-icon .si {
    width: 20px;
    height: 20px;
  }
  .bonus-table .bonus-change {
    font-size: 14px;
  }
  .bonus-usage {
    padding: 23px 20px 130px;
    gap: 22px;
    min-height: 0;
  }
  .bonus-usage-intro {
    gap: 14px;
  }
  .bonus-usage-intro p {
    font-size: 14px;
  }
  .bonus-usage ul {
    gap: 12px;
    font-size: 14px;
  }
  .bonus-gift {
    height: 118px;
    width: 118px;
    bottom: 10px;
    right: 15px;
  }
  .bonus-filters {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .bonus-filters label:first-child {
    grid-column: 1/-1;
  }
  .bonus-filters label {
    font-size: 13px;
  }
  .bonus-filters input {
    padding: 10px 6px;
    font-size: 13px;
  }
  .bonus-filters label:nth-child(2) {
    grid-column: 1/-1;
  }
  .bonus-pagination {
    gap: 8px;
    flex-wrap: wrap;
  }
  .bonus-pagination .btn {
    padding: 10px;
    font-size: 14px;
  }
  .bonus-course-label {
    display: block;
  }
  .bonus-course-label select {
    margin-top: 7px;
    max-width: 100%;
  }
  .bonus-dialog {
    padding: 24px 21px;
  }
  .bonus-dialog h2 {
    font-size: 23px;
  }
  .bonus-admin .bonus-card {
    padding: 20px;
  }
  .bonus-context {
    align-items: flex-start;
    line-height: 1.5;
  }
  .bonus-dialog .btn {
    width: 100%;
    font-size: 14px;
  }
}
