/* MU Bất Tử - Giao diện giống 100% ảnh */
:root {
  --bg-dark: #0a0a0f;
  --bg-panel: rgba(8, 10, 18, 0.92);
  --bg-panel-2: rgba(12, 15, 26, 0.94);
  --red-main: #c41e3a;
  --red-dark: #8b1528;
  --red-glow: #e63950;
  --gold: #d4af37;
  --gold-light: #f0c84a;
  --orange: #e67e22;
  --text-white: #f0f0f0;
  --text-muted: #b0b0b0;
  --border-subtle: rgba(255,255,255,0.08);
  --font-main: 'Be Vietnam Pro', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
}
/* Ảnh nền: nội dung trượt, ảnh cố định, giữ tỷ lệ */
body.main-page-with-bg {
  background-attachment: fixed;
  background-size: auto;
  background-repeat: no-repeat;
  background-position: center top;
}

/* Nền với hình nhân vật (giả lập) */
.bg-layer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 35%;
  z-index: 0;
  pointer-events: none;
}
.left-bg {
  left: 0;
  background: radial-gradient(ellipse 80% 100% at 10% 50%, rgba(180, 50, 50, 0.15) 0%, transparent 60%),
              linear-gradient(135deg, rgba(20,20,35,0.95) 0%, transparent 50%);
}
.right-bg {
  right: 0;
  background: radial-gradient(ellipse 80% 100% at 90% 50%, rgba(100, 80, 120, 0.12) 0%, transparent 60%),
              linear-gradient(225deg, rgba(20,20,35,0.95) 0%, transparent 50%);
}

.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 1470px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 54px;
}

/* ========== HEADER ========== */
.header {
  display: grid;
  grid-template-columns: 320px 2fr 320px;
  align-items: center;
  padding: 12px 20px;
  gap: 20px;
}

.header-left .logo-small {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  justify-content: center;
  align-items: center;
}
.header-left:has(.header-logo-img) {
  justify-self: center;
}
.logo-mu {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
}
.logo-netviet {
  font-size: 0.75rem;
  color: var(--orange);
  letter-spacing: 0.05em;
}
.header-logo-link {
  display: inline-block;
  text-decoration: none;
}
.header-logo-img {
  display: block;
  height: 115px;
  width: auto;
  max-width: 310px;
  object-fit: contain;
}
.header-logo-center.header-logo-img,
.header-server-img {
  height: 210px;
  max-width: 550px;
}
.header-center .header-logo-link {
  display: flex;
  justify-content: center;
  width: 100%;
}
.header-center .logo-main {
  display: flex;
  justify-content: center;
  width: 100%;
}

.header-center {
  text-align: center;
}
.new-server {
  font-size: 0.9rem;
  color: var(--text-white);
  margin-bottom: 4px;
  letter-spacing: 0.1em;
}
.logo-main {
  display: inline-block;
}
.logo-glow {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.6),
               0 0 40px rgba(230, 126, 34, 0.3),
               0 2px 4px rgba(0,0,0,0.5);
  background: linear-gradient(180deg, #f0c84a 0%, #c41e3a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== MAIN - 3 CỘT ========== */
.main-content {
  display: grid;
  grid-template-columns: 320px 1fr 320px;
  gap: 16px;
  padding: 0 16px 20px;
  flex: 1;
}

/* ----- Cột trái: ảnh tải game nằm trên khung đen ----- */
.sidebar-left-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.install-cta-on-frame {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 0;
}
.install-cta-on-frame .install-cta-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.25);
}
.install-cta-on-frame .btn-install {
  border-radius: 6px 6px 0 0;
}
.sidebar-left {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-top: none;
  border-radius: 0 0 6px 6px;
  padding: 20px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
}

/* Khối chọn Season (cột trái) */
.season-selector-block {
  margin-bottom: 8px;
}

.season-selector-floating {
  position: fixed;
  left: 0;
  top: 45%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
}

.season-toggle {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: linear-gradient(180deg, #1976ff, #0052cc);
  color: #fff;
  padding: 10px 6px;
  border-radius: 0 6px 6px 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.season-selector-panel {
  background: rgba(12, 12, 16, 0.96);
  border-radius: 8px;
  padding: 10px 12px;
  margin-left: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  transform: translateX(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  min-width: 150px;
}

.season-selector-floating:hover .season-selector-panel {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.season-selector-title {
  font-size: 0.95rem;
  color: var(--text-white);
  margin: 0 0 8px 0;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.season-selector-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.season-selector-item {
  display: inline-block;
  padding: 5px 10px;
  background: rgba(255,255,255,0.08);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.season-selector-item:hover {
  background: rgba(255,255,255,0.14);
  color: var(--text-white);
  border-color: rgba(255,215,0,0.4);
}
.season-selector-item.active {
  background: rgba(255,215,0,0.2);
  color: var(--gold);
  border-color: var(--gold);
}

/* Popup chọn Season lần đầu */
.season-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
}
.season-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}
.season-picker-box {
  position: relative;
  z-index: 1;
  background: rgba(12,12,16,0.98);
  border-radius: 10px;
  padding: 24px 28px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 45px rgba(0,0,0,0.7);
  max-width: 960px;
  width: calc(100% - 40px);
}
.season-picker-title {
  font-size: 1.05rem;
  color: var(--text-white);
  margin: 0 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.season-picker-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 12px 0;
}
/* Khung co theo số season: ít season thì ô to hơn, nhiều thì tối đa 4/hàng rồi xuống dòng */
.season-picker-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.season-picker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: var(--text-white);
  cursor: pointer;
  text-align: center;
  min-width: 0;
}
/* Ảnh season to hơn, tỷ lệ 16:9 chuẩn 1920x1080 */
.season-picker-item-img {
  display: block;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
}
.season-picker-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Tên season nổi bật */
.season-picker-item-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-white);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.season-picker-item:hover .season-picker-item-name {
  color: var(--gold, #e8c547);
}
.season-picker-item:hover {
  background: rgba(255,215,0,0.16);
  border-color: rgba(255,215,0,0.7);
}
@media (max-width: 640px) {
  .season-picker-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 380px) {
  .season-picker-list {
    grid-template-columns: 1fr;
  }
}

/* Trang bảo trì – phong cách tối giản, tập trung nội dung */
.maintenance-body {
  margin: 0;
  min-height: 100vh;
  background: #05070c;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-white, #f5f6fa);
}
.maintenance-overlay {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.maintenance-card {
  background: #080b14;
  border-radius: 18px;
  padding: 28px 36px;
  max-width: 540px;
  width: 100%;
  border: 1px solid rgba(255, 197, 88, 0.8);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.9);
  text-align: center;
  position: relative;
}
.maintenance-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(to bottom, rgba(255, 213, 122, 0.12), transparent 55%),
    radial-gradient(circle at top center, rgba(255, 213, 122, 0.16), transparent 60%);
  pointer-events: none;
}
.maintenance-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 213, 122, 0.8);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffeaa7;
  margin-bottom: 10px;
  background: rgba(10, 13, 23, 0.95);
}
.maintenance-title {
  margin: 0 0 10px 0;
  font-size: 1.45rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffd54a;
}
.maintenance-text {
  margin: 0 0 22px 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted, #c1c6d0);
}
.maintenance-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: #ff9f1c;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
}
.maintenance-btn:hover {
  background: #ffb347;
}

/* Widget liên hệ góc phải */
.contact-widget-floating {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 6px;
  border-radius: 8px 0 0 8px;
  background: rgba(12,12,16,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  border-right: none;
  box-shadow: -2px 0 12px rgba(0,0,0,0.3);
}
.contact-widget-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  min-width: 44px;
}
.contact-widget-btn:hover {
  opacity: 0.95;
  transform: scale(1.02);
}
.contact-widget-fb {
  background: #1877f2;
}
.contact-widget-fb:hover {
  background: #166fe5;
}
.contact-widget-zalo {
  background: #0068ff;
}
.contact-widget-zalo:hover {
  background: #0052cc;
}

.install-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.install-cta-main {
  text-align: center;
}
.install-cta-image-link {
  display: block;
  line-height: 0;
}
.install-cta-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.25);
}
.btn-install {
  display: block;
  background: var(--red-main);
  color: #fff;
  text-align: center;
  padding: 14px 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1rem;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.4);
  transition: background 0.2s;
}
.btn-install:hover {
  background: var(--red-glow);
}
.install-sub {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.install-cta-sub-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.btn-install-sub {
  display: block;
  background: var(--red-dark, #8b1528);
  color: #fff;
  text-align: center;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s, color 0.2s;
}
.btn-install-sub:hover {
  background: rgba(196, 30, 58, 0.9);
  color: #fff;
}

.quick-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.btn-quick {
  background: var(--bg-panel-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  padding: 10px;
  text-align: center;
  text-decoration: none;
  font-size: 0.85rem;
  border-radius: 4px;
  transition: background 0.2s;
}
.btn-quick:hover {
  background: rgba(40, 50, 70, 0.9);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.input-field {
  background: rgba(50, 55, 70, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
}
.input-field::placeholder {
  color: var(--text-muted);
}
.btn-login {
  background: linear-gradient(180deg, var(--red-glow) 0%, var(--red-dark) 100%);
  color: #fff;
  border: none;
  padding: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-login:hover {
  opacity: 0.95;
}
.forgot-pwd {
  color: var(--text-white);
  font-size: 0.85rem;
  text-align: center;
  text-decoration: none;
}
.forgot-pwd:hover {
  text-decoration: underline;
}

/* ----- Sự kiện in-game (cột trái) ----- */
.game-events-block {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.game-events-title {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.game-events-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.game-event-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 10px;
display: flex;
  align-items: center;
  gap: 12px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.game-event-icon-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-event-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.game-event-icon-placeholder {
  width: 28px;
  height: 28px;
  color: var(--gold);
  opacity: 0.9;
}
.game-event-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.game-event-card.game-event-blink-red {
  animation: gameEventBlinkRed 1s ease-in-out infinite;
}
.game-event-card.game-event-blink-green {
  animation: gameEventBlinkGreen 1s ease-in-out infinite;
}
@keyframes gameEventBlinkRed {
  0%, 100% {
    border-color: var(--border-subtle);
    box-shadow: none;
    background-color: rgba(0, 0, 0, 0.25);
  }
  50% {
    border-color: var(--red-main);
    box-shadow: 0 0 12px rgba(196, 30, 58, 0.6);
    background-color: rgba(196, 30, 58, 0.18);
  }
}
@keyframes gameEventBlinkGreen {
  0%, 100% {
    border-color: var(--border-subtle);
    box-shadow: none;
    background-color: rgba(0, 0, 0, 0.25);
  }
  50% {
    border-color: #2ecc71;
    box-shadow: 0 0 12px rgba(46, 204, 113, 0.5);
    background-color: rgba(46, 204, 113, 0.16);
  }
}
.game-event-name {
  font-weight: 600;
  color: var(--text-white);
  font-size: 0.95rem;
}
.game-event-time {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 2px;
}
.game-event-card:hover .game-event-time,
.game-event-card:focus-within .game-event-time {
  display: flex;
}
.game-event-times-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.game-event-time-badge {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0, 0, 0, 0.4);
  font-size: 0.82rem;
  color: var(--gold);
}
.game-event-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.game-event-countdown {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-top: 3px;
}
.game-event-card.game-event-blink-red .game-event-countdown {
  color: var(--red-glow);
}
.game-event-card.game-event-blink-green .game-event-countdown {
  color: #2ecc71;
}

/* ----- Trang bài viết chi tiết: bố cục gọn, không có khung nền riêng ----- */
.post-detail-card {
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 8px;
}
.post-detail-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.post-detail-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 0 0 12px 0;
  line-height: 1.35;
  letter-spacing: 0.02em;
}
.post-detail-title .news-icon {
  color: var(--red-main);
  margin-right: 6px;
}
.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.post-meta-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(196, 30, 58, 0.25);
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(196, 30, 58, 0.4);
  transition: background 0.2s, border-color 0.2s;
}
.post-meta-badge:hover {
  background: rgba(196, 30, 58, 0.4);
  color: #fff;
  border-color: var(--red-main);
}
.post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.post-meta-item::before {
  content: "·";
  margin-right: 4px;
  color: var(--text-muted);
  opacity: 0.7;
}
.post-meta-row .post-meta-item:first-of-type::before,
.post-meta-row .post-meta-badge + .post-meta-item::before {
  display: none;
}
.post-excerpt-wrap {
  margin-bottom: 20px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  border-left: 3px solid var(--gold);
}
.post-excerpt-wrap .post-excerpt {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.post-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-white);
}
.post-body p {
  margin: 0 0 1em 0;
}
.post-body p:last-child {
  margin-bottom: 0;
}
.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 12px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Cẩm nang: nằm trên Sự kiện in game, menu gọn */
.handbook {
  margin-bottom: 12px;
}
.handbook-title {
  font-size: 1rem;
  color: var(--text-white);
  margin: 0 0 8px 0;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.handbook-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.handbook-list li {
  margin-bottom: 2px;
}
.handbook-list li:last-child {
  margin-bottom: 0;
}
.handbook-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  transition: color 0.2s;
  line-height: 1.3;
}
.handbook-list a::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.8;
}
.handbook-list a:hover {
  color: var(--gold);
}
.handbook-list a:hover::before {
  background: var(--gold);
}

/* ----- Cột giữa - Tin tức ----- */
.content-center {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 20px;
  overflow: hidden;
}

.banner-info {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.banner-date {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 6px;
}
.banner-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.news-title {
  font-size: 1.15rem;
  color: var(--red-main);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.news-icon {
  color: var(--red-main);
  font-size: 0.8rem;
}
.news-list {
  list-style: none;
}
.news-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.news-list a {
  color: var(--text-white);
  text-decoration: none;
  font-size: 0.9rem;
  flex: 1;
  min-width: 0;
}
.news-list a:hover {
  color: var(--gold);
}
.read-count {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.news-date {
  color: var(--text-muted);
  font-size: 0.8rem;
  flex-shrink: 0;
}
/* Icon tin mới (trong vòng 5 ngày) */
.news-new-icon {
  display: inline-block;
  width: 40px;
  height: 18px;
  margin-left: 6px;
  flex-shrink: 0;
  vertical-align: middle;
  background-image: url('../assets/icon-tin-moi.gif');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Khối thông tin sự kiện (cột phải) */
.events-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.events-block-sidebar {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.events-block-sidebar .events-title {
  font-size: 1rem;
  margin-bottom: 12px;
}
.events-title {
  font-size: 1.15rem;
  color: var(--red-main);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.events-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.events-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.events-item:last-child {
  border-bottom: none;
}
.events-name {
  display: block;
  font-size: 1rem;
  color: var(--text-white);
  margin-bottom: 4px;
}
.events-status {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
}
.events-status-open {
  background: rgba(0,180,0,0.25);
  color: #8f8;
}
.events-status-closed {
  background: rgba(255,255,255,0.1);
  color: var(--text-muted);
}
.events-dates {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.events-desc {
  margin: 8px 0 0 0;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* Thẻ sự kiện (card) - giao diện hiện đại */
.events-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.event-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  color: inherit;
  font-family: inherit;
}
.event-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}
.event-card:active {
  transform: translateY(0);
}
.event-card-icon-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-card-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.event-card-icon-placeholder {
  width: 32px;
  height: 32px;
  color: var(--gold);
  opacity: 0.9;
}
.event-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.event-card-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
}
.event-card-status {
  display: inline-block;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
  color: #fff;
  border: none;
  align-self: flex-start;
}

.event-card-status-upcoming {
  background: linear-gradient(135deg, #c9a227 0%, #b8860b 100%);
  color: #fff;
  box-shadow: 0 1px 4px rgba(184, 134, 11, 0.4);
}
.event-card-status-open {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  color: #fff;
  box-shadow: 0 1px 4px rgba(30, 126, 50, 0.4);
}
.event-card-status-closed {
  background: rgba(255,255,255,0.12);
  color: var(--text-muted);
}
.event-card-dates {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.event-card-time {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Modal sự kiện - giữa màn hình */
.event-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.event-modal.event-modal-open {
  opacity: 1;
  visibility: visible;
}
.event-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
}
.event-modal-box {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  padding: 24px;
}
.event-modal-time {
  margin-top: 4px;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.event-modal-body {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-light);
}
.event-modal-body p { margin: 0 0 8px 0; }
.event-modal-body ul, .event-modal-body ol { margin: 0 0 8px 0; padding-left: 1.25em; }
.event-modal-body br { display: block; content: ''; margin-top: 0.5em; }
.event-modal-rewards {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.event-rewards-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: var(--gold-light);
}
.event-rewards-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.event-reward-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 8px 10px;
  background: rgba(0,0,0,0.18);
}
.event-reward-img-wrap {
  flex-shrink: 0;
  margin: 0;
}
.event-reward-img {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  display: block;
  object-fit: cover;
}
.event-reward-content {
  display: flex;
  flex-direction: column;
}
.event-reward-rank {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold-light);
  margin-bottom: 2px;
}
.event-reward-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.event-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: var(--text-light);
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.event-modal-close:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.event-modal-image-wrap {
  width: 100%;
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0,0,0,0.2);
}
.event-modal-image {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  display: block;
}
.image-modal-box {
  max-width: 1080px;
}
.image-modal-img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}
.event-modal-title {
  margin: 0 0 12px 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
  padding-right: 40px;
}
.event-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.event-modal-status {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
  color: #fff;
}
.event-modal-status-upcoming {
  background: linear-gradient(135deg, #c9a227 0%, #b8860b 100%);
  color: #fff;
  box-shadow: 0 1px 4px rgba(184, 134, 11, 0.4);
}
.event-modal-status-open {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  color: #fff;
  box-shadow: 0 1px 4px rgba(30, 126, 50, 0.4);
}
.event-modal-status-closed {
  background: rgba(255,255,255,0.12);
  color: var(--text-muted);
}
.event-modal-dates {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Modal cẩm nang - khung giữa: tiêu đề + nội dung */
.event-modal-box-wide {
  max-width: 1080px;
}
.handbook-modal-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.handbook-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.35;
  padding-right: 40px;
}
.handbook-modal-content-wrap {
  margin-top: 0;
}
.handbook-modal-label {
  margin: 0 0 8px 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
}
.handbook-modal-body {
  line-height: 1.7;
  font-size: 0.98rem;
  color: var(--text-light);
}
.handbook-modal-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.handbook-modal-body p {
  margin: 0 0 0.75em 0;
}
.handbook-modal-body p:last-child {
  margin-bottom: 0;
}

/* ----- Cột phải - cùng nền như cột trái ----- */
.sidebar-right {
  position: relative;
  min-height: 500px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 20px;
}

.character-image {
  display: none;
}

/* Slider tin nổi bật (khung phải) */
.featured-slider-wrap {
  margin-bottom: 16px;
}
.featured-slider-heading {
  margin: 0 0 12px 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
  text-align: center;
  width: 100%;
  display: block;
}
.featured-slider-empty {
  padding: 20px 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  background: rgba(0,0,0,0.15);
  border-radius: 6px;
}
.featured-slider-empty p {
  margin: 0 0 8px 0;
}
.featured-slider-empty-hint {
  font-size: 0.8rem !important;
  opacity: 0.9;
}
.featured-slider {
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 6px;
}
.featured-slider-track {
  display: flex;
  transition: transform 0.4s ease;
}
.featured-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
}
.featured-slide a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.featured-slide-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  background: rgba(0,0,0,0.2);
}
.featured-slide-title {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-light);
}
.featured-slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.featured-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.featured-dot:hover,
.featured-dot.active {
  background: var(--red-main);
}

.support-popup {
  position: absolute;
  bottom: 24px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  max-width: 200px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 10px;
}
.popup-close {
  position: absolute;
  top: 4px;
  right: 6px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #666;
  cursor: pointer;
  line-height: 1;
}
.popup-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e0e0, #c0c0c0);
  flex-shrink: 0;
}
.support-popup p {
  margin: 0;
  flex: 1;
}

/* ========== FOOTER MENU (trượt theo - sticky, hiện đại) ========== */
.footer {
  background: linear-gradient(180deg, #a01830 0%, var(--red-main) 50%, #8b1528 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 4px 8px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 16px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.footer-inner::-webkit-scrollbar {
  height: 5px;
}
.footer-inner::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.35);
  border-radius: 3px;
}
.footer-inner::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.15);
}
.footer a {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.25s ease, color 0.2s ease, transform 0.2s ease;
  letter-spacing: 0.02em;
}
.footer a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  transform: translateY(-1px);
}
.footer a:active {
  transform: translateY(0);
}
.footer-home {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-home .icon-home {
  opacity: 0.95;
  font-size: 1.05rem;
}
.footer-admin {
  display: none;
}

/* Dòng legal cuối trang (18+ + thông tin NPH) */
.footer-legal {
  background: #1b1d24;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 20px 22px;
  font-size: 0.8rem;
  color: #bbb;
}
.footer-legal-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.footer-legal-badge {
  flex-shrink: 0;
}
.footer-legal-badge img {
  display: block;
  max-width: 150px;
  height: auto;
}
.footer-legal-text {
  line-height: 1.5;
}
.footer-legal-text a {
  color: #e0e0e0;
  text-decoration: none;
}
.footer-legal-text a:hover {
  text-decoration: underline;
}
.btn-download {
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.1) 100%) !important;
  padding: 9px 18px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
  letter-spacing: 0.04em !important;
  margin-left: 4px;
}
.btn-download:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.2) 100%) !important;
  border-color: rgba(255,255,255,0.5) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25) !important;
}

/* Modal tải game - giữa màn hình */
.download-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.download-modal.download-modal-open {
  opacity: 1;
  visibility: visible;
}
.download-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
}
.download-modal-box {
  position: relative;
  width: 100%;
  max-width: 620px;
  background: linear-gradient(180deg, #1a1a1e 0%, #121215 100%);
  border: 1px solid rgba(180, 30, 45, 0.4);
  border-top: 3px solid var(--red-main);
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  padding: 0 0 24px 0;
}
.download-modal-box-table .download-modal-heading {
  margin: 0;
  padding: 20px 44px 16px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  background: linear-gradient(90deg, rgba(180, 30, 45, 0.25) 0%, transparent 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px 10px 0 0;
}
.download-modal-box-table .download-modal-content {
  padding: 0 24px;
}
.download-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0,0,0,0.4);
  color: rgba(255,255,255,0.8);
  font-size: 1.25rem;
  line-height: 1;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.download-modal-close:hover {
  background: rgba(180, 30, 45, 0.5);
  color: #fff;
}
.download-modal-title {
  margin: 0 0 20px 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-white);
  text-align: center;
}
.download-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.download-modal-cta-image-link {
  display: block;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}
.download-modal-cta-image {
  width: 100%;
  height: auto;
  display: block;
  max-height: 200px;
  object-fit: contain;
}
.download-modal-cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--red-main) 0%, #c41e32 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 16px rgba(180,20,40,0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}
.download-modal-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(180,20,40,0.5);
}
.download-modal-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.download-modal-sub {
  padding: 10px 20px;
  background: rgba(255,255,255,0.08);
  color: var(--text-white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.2s, border-color 0.2s;
}
.download-modal-sub:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.25);
}

/* Modal tải game - bố cục hợp lý, theme server */
.download-modal-box-table .download-modal-content {
  gap: 0;
  align-items: stretch;
}
.download-modal-box-table .download-modal-heading {
  padding-right: 48px;
}
.download-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
  font-size: 0.9rem;
  border-radius: 6px;
  overflow: hidden;
}
.download-table thead th {
  background: #0d0d0f;
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  border: none;
  border-bottom: 2px solid rgba(180, 30, 45, 0.5);
}
.download-table thead th:nth-child(1) {
  text-align: left;
}
.download-table thead th:nth-child(2) {
  text-align: right;
  width: 100px;
  padding-left: 12px;
  white-space: nowrap;
}
.download-table thead th:nth-child(3) {
  text-align: center;
  width: 120px;
  padding-left: 12px;
  padding-right: 16px;
}
.download-table tbody td {
  padding: 12px 16px;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.95);
  font-size: 0.9rem;
  vertical-align: middle;
}
.download-table tbody td:nth-child(1) {
  text-align: left;
  word-break: break-word;
}
.download-table tbody td:nth-child(2) {
  text-align: right;
  width: 100px;
  padding-left: 12px;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}
.download-table tbody td:nth-child(3) {
  text-align: center;
  width: 120px;
  padding-left: 12px;
  padding-right: 16px;
}
.download-table tbody tr:last-child td { border-bottom: none; }
.download-row-primary {
  background: rgba(140, 45, 38, 0.45);
}
.download-row-primary td {
  border-bottom-color: rgba(255,255,255,0.06);
}
.download-row-backup {
  background: rgba(25, 35, 50, 0.5);
}
.download-row-backup td {
  border-bottom-color: rgba(255,255,255,0.04);
}
.download-btn-tai {
  display: inline-block;
  padding: 8px 18px;
  min-width: 90px;
  text-align: center;
  background: linear-gradient(180deg, #c9a227 0%, #a8860b 50%, #7a6510 100%);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid rgba(255,220,120,0.4);
  box-shadow: 0 2px 10px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: filter 0.15s, transform 0.15s, box-shadow 0.15s;
}
.download-btn-tai:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(200,160,20,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}
.download-section-title {
  margin: 24px 0 14px 0;
  padding-top: 4px;
  font-size: 1rem;
  font-weight: 700;
  color: #c9a227;
  letter-spacing: 0.04em;
  text-align: center;
  text-shadow: 0 0 20px rgba(201, 162, 39, 0.3);
}
.download-modal-empty {
  text-align: center;
  color: rgba(255,255,255,0.5);
  padding: 28px 20px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-sep {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
  border-radius: 1px;
}
.icon-home {
  font-size: 1.1rem;
  margin-right: 0;
  display: inline-block;
}

/* Responsive */
@media (max-width: 1024px) {
  .main-content {
    grid-template-columns: 260px 1fr 260px;
  }
}

@media (max-width: 900px) {
  .main-content {
    grid-template-columns: 1fr;
  }
  .sidebar-right {
    min-height: 280px;
  }
  .header {
    grid-template-columns: 1fr 1fr;
  }
  .header-right { display: none; }
}
.footer-legal-text {
  line-height: 1.5;
  white-space: pre-line;
}