/* ============================================================
   MU LANDING — Landing page game server MU
   Theme: fantasy toi, vang hoang gia, do tham
   ============================================================ */
:root {
  --bg: #0a0612;
  --bg-2: #120a20;
  --panel: linear-gradient(180deg, #1d1332 0%, #130c22 100%);
  --panel-head: linear-gradient(180deg, #2a1c48 0%, #191029 100%);
  --gold: #e9c877;
  --gold-2: #c9973c;
  --gold-dark: #7a5a1c;
  --gold-border: #5c4718;
  --crimson: #cf2f3d;
  --text: #d9d0e4;
  --muted: #9d90b3;
  --link: #e9c877;
  --green-cta: linear-gradient(180deg, #7be36b 0%, #2fb54a 55%, #1f8f3b 100%);
  --gold-cta: linear-gradient(180deg, #ffe9a8 0%, #e9c877 45%, #b98a2e 100%);
  --danger: #e0525e;
  --ok: #4fd07a;
  --radius: 10px;
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Ccircle cx='30' cy='44' r='1' fill='white' opacity='.5'/%3E%3Ccircle cx='110' cy='20' r='.8' fill='white' opacity='.35'/%3E%3Ccircle cx='190' cy='70' r='1.2' fill='white' opacity='.4'/%3E%3Ccircle cx='70' cy='130' r='.7' fill='white' opacity='.3'/%3E%3Ccircle cx='150' cy='180' r='1' fill='white' opacity='.5'/%3E%3Ccircle cx='215' cy='150' r='.8' fill='white' opacity='.3'/%3E%3Ccircle cx='45' cy='210' r='1.1' fill='white' opacity='.45'/%3E%3Ccircle cx='120' cy='100' r='.6' fill='white' opacity='.3'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 900px 480px at 50% -140px, rgba(120, 60, 190, .28), transparent 65%),
    radial-gradient(ellipse 700px 420px at 108% 12%, rgba(160, 40, 60, .14), transparent 60%),
    radial-gradient(ellipse 700px 500px at -8% 30%, rgba(50, 90, 190, .12), transparent 60%),
    linear-gradient(180deg, #0d0718 0%, #0a0612 40%, #0c0714 100%);
  background-attachment: fixed;
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: #ffe4a0; }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ============ HEADER ============ */
.site-header {
  background: linear-gradient(180deg, rgba(28, 16, 48, .96), rgba(14, 8, 24, .96));
  border-bottom: 1px solid var(--gold-border);
  box-shadow: 0 2px 24px rgba(0, 0, 0, .55);
  position: relative;
}
.site-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-2) 30%, #ffedbb 50%, var(--gold-2) 70%, transparent);
  opacity: .8;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand .emblem { width: 58px; height: 58px; flex: 0 0 auto; filter: drop-shadow(0 0 10px rgba(233, 200, 119, .45)); }
.brand-name {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 900; letter-spacing: 3px; line-height: 1.1;
  background: linear-gradient(180deg, #ffe9ad 10%, #e9c877 45%, #a9762a 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 2px 12px rgba(233, 200, 119, .25);
  white-space: nowrap;
}
.brand-slogan {
  font-size: 11.5px; color: var(--muted); letter-spacing: 2.5px;
  text-transform: uppercase; margin-top: 2px;
}
.header-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* ============ NAV ============ */
.main-nav {
  background: linear-gradient(180deg, #241539 0%, #150c26 100%);
  border-top: 1px solid rgba(233, 200, 119, .25);
  border-bottom: 1px solid var(--gold-border);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
.nav-inner { display: flex; align-items: stretch; justify-content: center; flex-wrap: wrap; }
.nav-inner a {
  position: relative;
  padding: 12px 22px;
  color: #c9b9e2; font-weight: 700; font-size: 13.5px;
  letter-spacing: 1.5px; text-transform: uppercase;
  transition: color .15s, background .15s, text-shadow .15s;
}
.nav-inner a:not(:last-child)::before {
  content: ""; position: absolute; right: -2.5px; top: 50%;
  width: 5px; height: 5px; transform: translateY(-50%) rotate(45deg);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}
.nav-inner a:hover, .nav-inner a.active {
  color: #ffe4a0;
  background: linear-gradient(180deg, rgba(233, 200, 119, .12), transparent);
  text-shadow: 0 0 12px rgba(233, 200, 119, .6);
}
.nav-inner a.active { border-bottom: 2px solid var(--gold-2); }

/* ============ TICKER ============ */
.ticker-bar {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(90deg, rgba(46, 20, 34, .9), rgba(30, 14, 40, .9));
  border-bottom: 1px solid rgba(233, 200, 119, .2);
  padding: 8px 0;
  overflow: hidden;
}
.ticker-label {
  flex: 0 0 auto;
  background: linear-gradient(180deg, #cf2f3d, #8f1b28);
  color: #ffe4e4; font-weight: 800; font-size: 11.5px; letter-spacing: 1px;
  padding: 4px 12px; border-radius: 4px;
  border: 1px solid rgba(255, 180, 180, .4);
  text-transform: uppercase;
}
.ticker-viewport { flex: 1; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track {
  display: inline-block; white-space: nowrap;
  color: var(--gold); font-weight: 600; font-size: 13.5px; letter-spacing: .5px;
  animation: ticker 38s linear infinite;
  padding-left: 100%;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ============ LAYOUT ============ */
.layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0 40px;
}
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
}

/* ============ PANEL (khung hoang gia) ============ */
.panel {
  background: var(--panel);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .05), 0 10px 30px rgba(0, 0, 0, .4);
  position: relative;
  margin-bottom: 20px;
}
.panel::before, .panel::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border: 2px solid var(--gold-2); opacity: .85; z-index: 1;
}
.panel::before { top: -3px; left: -3px; border-right: none; border-bottom: none; border-radius: 6px 0 0 0; }
.panel::after { bottom: -3px; right: -3px; border-left: none; border-top: none; border-radius: 0 0 6px 0; }
.panel-head {
  background: var(--panel-head);
  border-bottom: 1px solid var(--gold-border);
  padding: 11px 16px;
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  position: relative;
}
.panel-title {
  font-weight: 800; font-size: 14.5px; letter-spacing: 1.2px; text-transform: uppercase;
  color: transparent;
  background: linear-gradient(180deg, #ffedbb, #e9c877 55%, #b98a2e);
  -webkit-background-clip: text; background-clip: text;
  display: flex; align-items: center; gap: 9px;
}
.panel-title .dot { width: 7px; height: 7px; transform: rotate(45deg); background: linear-gradient(135deg, var(--gold), var(--gold-dark)); box-shadow: 0 0 8px rgba(233, 200, 119, .8); }
.panel-body { padding: 16px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  background:
    radial-gradient(ellipse 620px 300px at 50% 115%, rgba(207, 47, 61, .30), transparent 65%),
    radial-gradient(ellipse 500px 260px at 50% -60px, rgba(255, 220, 150, .18), transparent 60%),
    linear-gradient(180deg, #241640 0%, #170e2c 55%, #0e0819 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 30px rgba(0, 0, 0, .45);
  text-align: center;
  padding: 44px 20px 34px;
}
.hero::before {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid rgba(233, 200, 119, .28);
  border-radius: calc(var(--radius) - 4px);
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
}
/* Hero co banner: anh phu toan khung, du lieu noi dung de chu de doc */
.hero.has-banner {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero.has-banner::before { opacity: 0; }
.hero-season {
  display: inline-block;
  font-size: 12px; font-weight: 800; letter-spacing: 4px; text-transform: uppercase;
  color: #ffd9d9;
  background: linear-gradient(180deg, rgba(207, 47, 61, .35), rgba(120, 20, 35, .35));
  border: 1px solid rgba(255, 140, 140, .45);
  padding: 5px 16px; border-radius: 999px;
  margin-bottom: 14px;
  text-shadow: 0 0 10px rgba(255, 120, 120, .6);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900; letter-spacing: 5px; line-height: 1.08;
  background: linear-gradient(180deg, #fff6d8 5%, #ffd977 40%, #e9a93c 70%, #96621c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 16px rgba(233, 180, 80, .35));
  margin-bottom: 8px;
}
.hero-sub { color: var(--muted); font-size: 14px; letter-spacing: 1px; margin-bottom: 18px; }
.hero-badges { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.badge {
  font-weight: 800; font-size: 12.5px; letter-spacing: 1px;
  padding: 6px 14px; border-radius: 6px;
  border: 1px solid rgba(233, 200, 119, .5);
  background: linear-gradient(180deg, rgba(46, 30, 12, .9), rgba(24, 15, 6, .9));
  color: var(--gold);
  text-shadow: 0 0 8px rgba(233, 200, 119, .4);
}
.badge b { color: #ffe4a0; }
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body);
  font-weight: 800; font-size: 13.5px; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 11px 26px; border-radius: 7px; cursor: pointer;
  border: 1px solid rgba(0, 0, 0, .5);
  transition: transform .12s, box-shadow .15s, filter .15s;
  color: #fff; text-decoration: none; user-select: none;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }
.btn-cta {
  background: var(--green-cta);
  border-color: rgba(60, 200, 90, .8);
  box-shadow: 0 0 0 1px rgba(126, 255, 150, .25) inset, 0 4px 16px rgba(47, 181, 74, .45);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.btn-gold {
  background: var(--gold-cta);
  color: #4a3208;
  border-color: rgba(160, 110, 30, .9);
  box-shadow: 0 0 0 1px rgba(255, 245, 210, .5) inset, 0 4px 16px rgba(201, 151, 60, .4);
}
.btn-danger {
  background: linear-gradient(180deg, #f06a75, #b12635);
  border-color: rgba(150, 30, 45, .9);
  box-shadow: 0 4px 14px rgba(178, 38, 53, .4);
}
.btn-dark {
  background: linear-gradient(180deg, #31214857, #1c1130);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  text-shadow: 0 0 8px rgba(233, 200, 119, .4);
}
.btn-sm { padding: 6px 13px; font-size: 12px; border-radius: 6px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ============ INFO STRIP ============ */
.info-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #20122e, #140b20);
  margin-bottom: 20px;
  overflow: hidden;
}
.info-item {
  flex: 1 1 150px; text-align: center; padding: 12px 8px;
  border-right: 1px solid rgba(233, 200, 119, .18);
}
.info-item:last-child { border-right: none; }
.info-item .k { font-size: 11px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }
.info-item .v {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800; margin-top: 2px;
  background: linear-gradient(180deg, #ffe9ad, #d8a94e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============ NEWS ============ */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab {
  padding: 6px 14px; font-size: 12.5px; font-weight: 700; letter-spacing: .5px;
  color: var(--muted); background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(233, 200, 119, .2); border-radius: 999px;
  cursor: pointer; transition: all .15s;
}
.tab:hover { color: var(--gold); border-color: var(--gold-2); }
.tab.active {
  color: #221503;
  background: linear-gradient(180deg, #ffe9a8, #d8a94e);
  border-color: #a9762a;
  box-shadow: 0 0 12px rgba(233, 200, 119, .35);
}
.news-list { display: flex; flex-direction: column; }
.news-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 10px;
  border-bottom: 1px dashed rgba(233, 200, 119, .16);
  border-radius: 6px;
  transition: background .15s;
}
.news-row:last-child { border-bottom: none; }
.news-row:hover { background: rgba(233, 200, 119, .06); }
.tag {
  flex: 0 0 auto;
  font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 4px; color: #fff;
}
.tag-0 { background: linear-gradient(180deg, #e04a58, #a11726); border: 1px solid #ff9aa4; }        /* Thong Bao */
.tag-1 { background: linear-gradient(180deg, #3f8fe0, #1c56a8); border: 1px solid #8ec4ff; }        /* Su Kien */
.tag-2 { background: linear-gradient(180deg, #e0933f, #a85c12); border: 1px solid #ffc98e; }        /* Huong Dan */
.tag-3 { background: linear-gradient(180deg, #9a55d8, #5f2696); border: 1px solid #d0a4ff; }        /* Tong Ket */
.news-title {
  flex: 1; min-width: 0;
  color: var(--text); font-weight: 600; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.news-row:hover .news-title { color: #ffe4a0; }
.news-meta { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); }
.news-views { display: inline-flex; align-items: center; gap: 5px; }
.news-views::before { content: "👁"; font-size: 12px; opacity: .8; }
.news-empty { text-align: center; color: var(--muted); padding: 30px 0; }

/* ============ SIDEBAR ============ */
.side-panel .panel-body { padding: 14px; }
.login-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; }
.login-alt { display: flex; align-items: center; gap: 10px; margin: 12px 0 10px; }
.login-alt::before, .login-alt::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(233, 200, 119, .4), transparent); }
.login-alt span { font-size: 11px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }

.userbox { text-align: center; }
.userbox .avatar {
  width: 64px; height: 64px; margin: 4px auto 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3a245c, #1e1233);
  border: 2px solid var(--gold-2);
  box-shadow: 0 0 18px rgba(233, 200, 119, .3);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 900; color: var(--gold);
  font-family: var(--font-display);
}
.userbox .uname { font-weight: 800; font-size: 16px; color: #ffe4a0; }
.userbox .uemail { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.user-stats { display: flex; gap: 8px; margin: 10px 0 14px; }
.user-stat {
  flex: 1; background: rgba(0, 0, 0, .3); border: 1px solid rgba(233, 200, 119, .2);
  border-radius: 8px; padding: 8px 6px;
}
.user-stat .k { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.user-stat .v { font-weight: 800; color: var(--gold); font-size: 15px; }

.side-btns { display: flex; flex-direction: column; gap: 9px; }

.server-rows { display: flex; flex-direction: column; gap: 8px; }
.server-row {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(233, 200, 119, .16);
  padding: 8px 12px; border-radius: 7px; font-size: 13px;
}
.server-row .k { color: var(--muted); display: flex; align-items: center; gap: 7px; }
.server-row .k::before { content: "◆"; color: var(--gold-2); font-size: 9px; }
.server-row .v { font-weight: 700; color: var(--gold); }

.rank-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

/* ============ RANKING TABLE ============ */
.rank-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rank-table th {
  text-align: left; padding: 8px 10px; font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--gold);
  background: rgba(233, 200, 119, .07);
  border-bottom: 1px solid var(--gold-border);
}
.rank-table td { padding: 8px 10px; border-bottom: 1px solid rgba(233, 200, 119, .1); }
.rank-table tr:last-child td { border-bottom: none; }
.rank-table tr:hover td { background: rgba(233, 200, 119, .05); }
.rank-pos {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 6px;
  font-weight: 800; font-size: 12.5px;
  background: rgba(255, 255, 255, .05); color: var(--muted);
  border: 1px solid rgba(255, 255, 255, .1);
}
.rank-pos.p1 { background: linear-gradient(180deg, #ffe9a8, #d8a94e); color: #4a3208; border-color: #ffe9a8; box-shadow: 0 0 10px rgba(233, 200, 119, .5); }
.rank-pos.p2 { background: linear-gradient(180deg, #e8e8f2, #9a9ab0); color: #333; border-color: #d8d8e4; }
.rank-pos.p3 { background: linear-gradient(180deg, #e0a06a, #a05f2c); color: #2e1503; border-color: #e0a06a; }
.class-chip {
  font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 4px;
  background: rgba(120, 90, 220, .2); border: 1px solid rgba(150, 120, 240, .45); color: #c5b0ff;
}

/* ============ FORMS ============ */
.auth-wrap { max-width: 460px; margin: 46px auto 60px; }
.field { margin-bottom: 15px; }
.field label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 6px;
}
.input, textarea.input, select.input {
  width: 100%;
  background: linear-gradient(180deg, #0d0817, #150d24);
  border: 1px solid #4a3a63;
  border-radius: 7px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 13px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(233, 200, 119, .14); }
.input::placeholder { color: #5e5175; }
textarea.input { resize: vertical; min-height: 90px; line-height: 1.55; }
.form-msg { font-size: 13px; margin-top: 12px; padding: 10px 12px; border-radius: 7px; display: none; }
.form-msg.error { display: block; background: rgba(180, 40, 55, .15); border: 1px solid rgba(224, 82, 94, .5); color: #ff9aa4; }
.form-msg.success { display: block; background: rgba(50, 160, 90, .13); border: 1px solid rgba(79, 208, 122, .5); color: #8fe6ac; }
.auth-foot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }

/* ============ NEWS DETAIL ============ */
.news-detail-head { border-bottom: 1px dashed rgba(233, 200, 119, .25); padding-bottom: 14px; margin-bottom: 18px; }
.news-detail-title { font-size: 22px; font-weight: 800; color: #ffe4a0; line-height: 1.35; margin: 8px 0 10px; }
.news-detail-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12.5px; color: var(--muted); }
.news-content { font-size: 14.5px; color: #cfc6dd; }
.news-content h3 {
  color: var(--gold); font-size: 16.5px; margin: 20px 0 8px;
  padding-left: 11px; border-left: 3px solid var(--gold-2);
}
.news-content p { margin: 9px 0; }
.news-content ul { margin: 9px 0 9px 20px; }
.news-content li { margin: 4px 0; }
.news-content li::marker { color: var(--gold-2); }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.back-link:hover { color: var(--gold); }

/* ============ DOWNLOAD PAGE ============ */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-card {
  text-align: center; padding: 28px 20px;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(233, 200, 119, .25);
  border-radius: 10px;
}
.dl-card .icon { font-size: 34px; margin-bottom: 10px; }
.dl-card h3 { color: var(--gold); font-size: 17px; margin-bottom: 6px; }
.dl-card p { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--gold-border);
  background: linear-gradient(180deg, rgba(18, 11, 30, .8), rgba(10, 6, 16, .95));
  padding: 26px 0 30px; text-align: center;
  margin-top: 10px;
}
.footer-note { font-size: 13px; color: var(--muted); }
.footer-brand {
  font-family: var(--font-display); font-weight: 800; letter-spacing: 2px;
  background: linear-gradient(180deg, #ffe9ad, #b98a2e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 16px; margin-bottom: 6px;
}
.footer-warn { font-size: 11.5px; color: #6f6288; margin-top: 10px; max-width: 720px; margin-left: auto; margin-right: auto; }

/* ============ CHAT WIDGET ============ */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(180deg, #43c768, #1f8f3b);
  border: 2px solid rgba(180, 255, 200, .5);
  box-shadow: 0 6px 22px rgba(47, 181, 74, .5);
  color: #fff; font-size: 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.chat-fab:hover { transform: scale(1.07); }
.chat-box {
  position: fixed; right: 22px; bottom: 92px; z-index: 90;
  width: 300px; display: none;
  background: var(--panel);
  border: 1px solid var(--gold-border); border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .6);
  overflow: hidden;
}
.chat-box.open { display: block; }
.chat-head {
  background: var(--panel-head); padding: 12px 14px;
  font-weight: 800; color: var(--gold); font-size: 13.5px; letter-spacing: .5px;
  border-bottom: 1px solid var(--gold-border);
}
.chat-body { padding: 14px; }
.chat-msg {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  padding: 10px 12px; border-radius: 9px; font-size: 13px; color: var(--text);
  margin-bottom: 12px;
}
.chat-links { display: flex; flex-direction: column; gap: 8px; }

/* ============ TOAST ============ */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  z-index: 200; opacity: 0; pointer-events: none;
  padding: 11px 20px; border-radius: 8px; font-weight: 700; font-size: 13.5px;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-ok { background: linear-gradient(180deg, #2f9e52, #1c6e37); color: #eaffe9; border: 1px solid #6fe096; box-shadow: 0 6px 20px rgba(47, 158, 82, .45); }
.toast-err { background: linear-gradient(180deg, #b12635, #7c1522); color: #ffe3e6; border: 1px solid #ff8f9c; box-shadow: 0 6px 20px rgba(178, 38, 53, .45); }

/* ============ MISC ============ */
.loading { text-align: center; color: var(--muted); padding: 40px 0; letter-spacing: 1px; }
.hidden { display: none !important; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
