.news-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 20px 90px;
}

/* TOP */

.news-top {
  margin-bottom: 30px;
}

.news-top-head {
  margin-bottom: 22px;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 207, 51, 0.1);
  border: 1px solid rgba(255, 207, 51, 0.22);
  color: #ffd54a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.news-top-head h1 {
  margin: 16px 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.02;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.news-top-head p {
  margin: 0;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 500;
  color: #9eabd8;
}

/* FILTERS */

.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(10, 16, 40, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 12px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.filter-chip {
  appearance: none;
  border: none;
  outline: none;
  padding: 12px 18px;
  border-radius: 14px;
  cursor: pointer;
  background: transparent;
  color: #c9d3fb;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.filter-chip.active {
  background: linear-gradient(180deg, #ffd85b 0%, #ffbe2e 100%);
  color: #141414;
  box-shadow:
    0 8px 18px rgba(255, 190, 46, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* NEWS LIST */

.news-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.news-card {
  position: relative;
  overflow: hidden;
  padding: 26px 26px 22px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(34, 44, 98, 0.95) 0%, rgba(20, 27, 68, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.news-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 207, 51, 0.08), transparent 28%);
  pointer-events: none;
}

.news-card.featured {
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 207, 51, 0.14), transparent 26%),
    linear-gradient(135deg, rgba(31, 70, 216, 0.98) 0%, rgba(19, 29, 84, 0.98) 48%, rgba(14, 20, 56, 1) 100%);
  border: 1px solid rgba(255, 207, 51, 0.18);
  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 207, 51, 0.04) inset;
}

.news-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

/* TAGS */

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.news-tag.update {
  background: rgba(255, 209, 74, 0.12);
  color: #ffd54a;
  border-color: rgba(255, 209, 74, 0.2);
}

.news-tag.event {
  background: rgba(66, 209, 255, 0.12);
  color: #5fdcff;
  border-color: rgba(66, 209, 255, 0.2);
}

.news-tag.balance {
  background: rgba(255, 107, 107, 0.12);
  color: #ff8a8a;
  border-color: rgba(255, 107, 107, 0.2);
}

.news-tag.new {
  background: rgba(118, 233, 128, 0.12);
  color: #8df59a;
  border-color: rgba(118, 233, 128, 0.2);
}

/* DATE */

.news-date {
  flex-shrink: 0;
  min-width: 148px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 20px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.news-date span:first-child {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fa1da;
}

.news-date span:last-child {
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

/* TEXT */

.news-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  max-width: 900px;
  font-size: 28px;
  line-height: 1.18;
  font-weight: 950;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.news-card p {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  max-width: 850px;
  font-size: 16px;
  line-height: 1.72;
  font-weight: 500;
  color: rgba(226, 232, 255, 0.78);
}

/* META */

.news-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.news-section-label {
  margin-right: auto;
  color: rgba(190, 202, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.news-views {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.085);
  color: rgba(225, 232, 255, 0.9);
  font-size: 13px;
  font-weight: 900;
}

.news-views svg {
  width: 21px;
  height: 21px;
  fill: rgba(175, 190, 255, 0.95);
}

.news-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 13px;
  background: rgba(120, 140, 255, 0.12);
  border: 1px solid rgba(130, 150, 255, 0.22);
  color: #cdd6ff;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  transition: 0.18s ease;
}

.news-link:hover {
  background: rgba(120, 140, 255, 0.22);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ADMIN BUTTONS */

.news-add-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(130, 150, 255, 0.25);
  background: linear-gradient(135deg, rgba(70, 95, 255, 0.35), rgba(70, 95, 255, 0.18));
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow:
    0 12px 28px rgba(70, 95, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.news-add-btn:hover {
  background: linear-gradient(135deg, rgba(90, 115, 255, 0.55), rgba(70, 95, 255, 0.3));
  border-color: rgba(160, 175, 255, 0.55);
  transform: translateY(-2px);
  box-shadow:
    0 18px 36px rgba(70, 95, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.news-add-btn:active {
  transform: scale(0.95);
}

.news-admin-btn {
  width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 13px;
  border: 1px solid rgba(130, 150, 255, 0.22);
  background: rgba(120, 140, 255, 0.12);
  color: #cdd6ff;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.18s ease;
}

.news-admin-btn svg {
  width: 17px;
  height: 17px;
  fill: rgba(235, 240, 255, 0.75);
}

.news-admin-btn:hover {
  background: rgba(120, 140, 255, 0.22);
  color: #ffffff;
  transform: translateY(-1px);
}

.news-admin-btn:hover svg {
  fill: #ffffff;
}

.news-admin-btn.danger {
  background: rgba(255, 70, 90, 0.09);
  border-color: rgba(255, 90, 110, 0.2);
}

.news-admin-btn.danger svg {
  fill: rgba(255, 145, 155, 0.92);
}

.news-admin-btn.danger:hover {
  background: rgba(255, 70, 90, 0.19);
}

/* SINGLE NEWS PAGE */

.news-article-page {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
  padding: 42px 0 100px;
}

.news-article-card {
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 85% 8%, rgba(255, 207, 51, 0.12), transparent 30%),
    radial-gradient(circle at 10% 20%, rgba(66, 209, 255, 0.10), transparent 28%),
    linear-gradient(180deg, rgba(25, 35, 92, 0.98), rgba(11, 16, 45, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.085);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
}

.news-article-hero {
  padding: 46px 48px 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 216, 79, 0.16), transparent 24%),
    linear-gradient(135deg, rgba(31, 70, 216, 0.74), rgba(18, 25, 72, 0.26));
}

.news-article-hero h1 {
  margin: 24px 0 16px;
  max-width: 900px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.055em;
  color: #ffffff;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}

.news-article-lead {
  max-width: 820px;
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
  font-weight: 650;
  color: #c7d0f3;
}

.news-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.news-article-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #aeb9e8;
  font-size: 13px;
  font-weight: 850;
}

/* ARTICLE LAYOUT */

.news-article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  padding: 38px 42px 42px;
}

.news-article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 110px;
  height: fit-content;
}

.article-info-card {
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022));
  border: 1px solid rgba(255, 255, 255, 0.085);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.article-info-card span {
  display: block;
  margin-bottom: 8px;
  color: #8fa1da;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-info-card strong {
  display: block;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 900;
}

.news-article-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.news-article-body {
  padding: 0;
  color: rgba(245, 248, 255, 0.94);
  font-size: 18px;
  line-height: 1.95;
  font-weight: 500;
  white-space: pre-line;
}

.news-article-note {
  padding: 18px 20px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 95% 10%, rgba(255, 207, 51, 0.10), transparent 35%),
    rgba(255, 207, 51, 0.055);
  border: 1px solid rgba(255, 207, 51, 0.17);
  color: #dfe6ff;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 650;
}

.news-article-note strong {
  color: #ffd54a;
}

.news-article-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
  padding: 0;
}

.news-article-bottom .news-link {
  width: fit-content;
}

/* MODAL */

.news-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background:
    radial-gradient(circle at top, rgba(70, 95, 255, 0.18), transparent 35%),
    rgba(3, 7, 20, 0.82);
  backdrop-filter: blur(14px);
}

.news-modal.active {
  display: flex;
}

.news-modal-box {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    #0b1226;
  border: 1px solid rgba(145, 165, 255, 0.2);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.news-modal-box h2 {
  margin: 0;
  padding: 28px 72px 22px 28px;
  color: #ffffff;
  font-size: 27px;
  font-weight: 950;
  letter-spacing: -0.04em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.news-modal-close {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.065);
  color: rgba(255, 255, 255, 0.9);
  font-size: 24px;
  cursor: pointer;
}

.news-create-form {
  display: grid;
  gap: 18px;
  padding: 24px 28px 28px;
}

.news-create-form .form-group {
  display: grid;
  gap: 9px;
}

.news-create-form label {
  color: rgba(235, 240, 255, 0.9);
  font-size: 13px;
  font-weight: 900;
}

.news-create-form input,
.news-create-form textarea,
.news-create-form select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(145, 165, 255, 0.16);
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
  padding: 14px 15px;
  outline: none;
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 600;
  resize: vertical;
}

.news-create-form textarea {
  min-height: 120px;
}

#newsFullText {
  min-height: 180px;
  line-height: 1.7;
}

.news-create-form select option {
  color: #111827;
  background: #ffffff;
}

.news-create-form input:focus,
.news-create-form textarea:focus,
.news-create-form select:focus {
  border-color: rgba(115, 135, 255, 0.72);
  background: rgba(255, 255, 255, 0.085);
  box-shadow: 0 0 0 4px rgba(80, 105, 255, 0.16);
}

.news-submit-btn {
  min-height: 50px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #3346ff, #5267ff);
  color: #ffffff;
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 950;
  cursor: pointer;
  transition: 0.18s ease;
  box-shadow:
    0 16px 36px rgba(51, 70, 255, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.news-submit-btn:hover {
  background: linear-gradient(135deg, #2939df, #465cff);
  transform: translateY(-1px);
}

/* MOBILE */

@media (max-width: 980px) {

  .news-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-date {
    align-items: flex-start;
  }

  .news-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-section-label {
    margin-right: 0;
  }

  .news-article-layout {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .news-article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .news-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .news-modal-box {
    border-radius: 24px 24px 0 0;
  }

  .news-meta {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .news-section-label {
    width: 100%;
  }

  .news-views,
  .news-link {
    flex: 1 1 auto;
  }

  .news-article-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .news-page {
    padding: 22px 14px 74px;
  }

  .news-top-head h1 {
    font-size: 30px;
  }

  .news-top-head p {
    font-size: 14px;
  }

  .news-filters {
    padding: 8px;
    border-radius: 16px;
  }

  .filter-chip {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .news-card {
    padding: 18px;
    border-radius: 20px;
  }

  .news-card h2 {
    font-size: 23px;
  }

  .news-card p {
    font-size: 14px;
  }

  .news-date {
    min-width: 100%;
  }

  .news-article-page {
    width: min(100% - 20px, 1120px);
    padding: 24px 0 90px;
  }

  .news-article-card {
    border-radius: 24px;
  }

  .news-article-hero {
    padding: 26px 20px;
  }

  .news-article-hero h1 {
    font-size: 32px;
  }

  .news-article-lead {
    font-size: 15px;
  }

  .news-article-layout {
    padding: 22px 20px 28px;
  }

  .news-article-body {
    font-size: 16px;
    line-height: 1.8;
  }
}