/* ===== MuMoiRa.ID.VN — Centered Glass + Gold Theme ===== */
:root{
  --primary-color:#0b0e14;
  --secondary-color:rgba(20,22,30,.72);
  --card-bg:rgba(26,28,38,.68);
  --accent-color:#ffd651;
  --accent-hover:#fff;
  --text-color:#f5f7fa;
  --text-secondary:#c6c9d3;
  --border-color:rgba(255,214,81,.18);
  --vip-gold:linear-gradient(90deg,#ffe27a,#ffd651,#ffc82c);
}

*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}
body{
  font-family: ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text-color);
  line-height:1.65;
  background:
    radial-gradient(55rem 35rem at 15% 0%, #10131a 0%, #0b0e14 60%),
    radial-gradient(55rem 35rem at 85% 100%, #0f1220 0%, #0b0e14 60%),
    #0b0e14;
}

/* Container */
.container{
  width:100%;
  max-width:1100px;
  margin:0 auto;
  padding:0 18px;
}

/* ================= Header ================= */
header{
  position:sticky; top:0; z-index:100;
  backdrop-filter:saturate(130%) blur(10px);
  background:linear-gradient(180deg,rgba(18,20,28,.85),rgba(18,20,28,.65));
  border-bottom:1px solid var(--border-color);
}
.header-container{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:42px;
  padding:10px 0;
}
.logo img{height:40px; display:block; margin:0 auto;}
.nav-menu{display:flex; list-style:none; gap:22px}
.nav-menu a{
  font-weight:700; letter-spacing:.4px; text-transform:uppercase; font-size:13.5px;
  color:var(--accent-color); position:relative; padding:8px 2px;
}
.nav-menu a:after{
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px;
  background:linear-gradient(90deg,transparent, var(--accent-color), transparent);
  transform:scaleX(0); transform-origin:center; transition:transform .25s ease;
}
.nav-menu a:hover{color:var(--accent-hover)}
.nav-menu a:hover:after{transform:scaleX(1)}

/* ================= Layout ================= */
.main-content{
  display:flex;
  justify-content:center;
  gap:20px;
  max-width:1400px;
  margin:26px auto;
  align-items:start;
}
.sidebar{
  background:var(--secondary-color);
  border:1px solid var(--border-color);
  border-radius:14px;
  padding:16px;
  width:220px;
  flex-shrink:0;
  box-shadow:0 10px 30px rgba(0,0,0,.28);
}
.content-area{
  flex:1;
  min-width:700px;
}
.sidebar h3{
  font-size:16px; font-weight:800; letter-spacing:.3px;
  border-bottom:2px solid var(--accent-color);
  padding-bottom:10px; margin-bottom:14px;
}

/* ================= Banners ================= */
.banner{
  width:100%; margin-bottom:16px; border-radius:12px; overflow:hidden;
  border:1px solid rgba(255,255,255,.06);
  box-shadow:0 12px 40px rgba(0,0,0,.35);
}
.banner img,.banner video{width:100%; display:block; border-radius:12px}
.banner-middle{margin-bottom:24px}
.banner-hero img,.banner-hero video{aspect-ratio:16/5;max-height:340px;object-fit:cover;border-radius:14px}
.banner-wide img,.banner-wide video{aspect-ratio:16/6;max-height:260px;object-fit:cover;border-radius:12px}
.banner-tall img,.banner-tall video{aspect-ratio:9/16;object-fit:cover;border-radius:12px}

/* ================= Post List ================= */
.post-list{
  background:var(--card-bg);
  border:1px solid var(--border-color);
  border-radius:16px;
  padding:16px 16px 6px;
  box-shadow:0 18px 50px rgba(0,0,0,.35);
}
.post-list > h3{font-size:18px; margin:0 0 10px 2px}

.post{
  display:flex; gap:14px;
  border-bottom:1px dashed rgba(255,255,255,.06);
  padding:14px 2px;
  transition:transform .18s ease, background .18s ease, box-shadow .18s ease;
  border-radius:12px;
}
.post:hover{
  transform:translateY(-1px);
  background:rgba(255,214,81,.05);
  box-shadow:0 8px 24px rgba(255,214,81,.08) inset;
}
.post:last-child{border-bottom:none}
.post-image{width:125px; height:72px; border-radius:10px; overflow:hidden; flex-shrink:0; border:1px solid rgba(255,255,255,.07)}
.post-image img{width:100%; height:100%; object-fit:cover}
.post-content{min-width:0}
.post-title{font-size:16px; font-weight:800; margin-bottom:6px}
.post-title a{color:#ff9900}
.post-title a:hover{color:var(--accent-color)}
.post-meta{font-size:12px; color:var(--text-secondary); margin-bottom:6px}
.post-description{font-size:14px; color:var(--text-secondary)}

/* ================= VIP Gold ================= */
.vip-gold{
  background:var(--vip-gold);
  color:#231a00;
  font-weight:900; font-size:11.5px;
  padding:3px 10px; border-radius:999px; display:inline-block; margin-right:8px;
  box-shadow:0 4px 18px rgba(255,200,44,.35);
  border:1px solid rgba(255,200,44,.7);
}
.post.vip-gold-post{
  background:linear-gradient(180deg,rgba(255,213,81,.08),rgba(255,213,81,.03));
  border:1px solid rgba(255,213,81,.35);
  border-radius:14px; padding:14px; margin-bottom:12px;
}

/* ================= Status Badges ================= */
.game-status{
  display:inline-block; padding:4px 8px; border-radius:6px;
  font-size:11px; font-weight:900; margin-right:6px; letter-spacing:.3px;
}
.game-status.alpha-test{background:#ff4747; color:#fff}
.game-status.open-beta{background:#007bff; color:#fff}
.game-status.open-beta.today{background:#ff0000; color:#fff}
.game-status.closed{background:#555; color:#fff}

/* ================= Highlight Today ================= */
.today-label{
  background:red; color:white; font-weight:bold;
  padding:2px 6px; border-radius:4px; margin-right:5px;
}
.highlight-today{
  border-left:4px solid red;
  background:#222;
}
.today-highlight{color:#ff3333;font-weight:bold}

/* ================= Upload file đẹp ================= */
.custom-file-upload{display:flex;align-items:center;gap:12px}
.custom-file-upload input[type="file"]{display:none}
.custom-file-upload label{
  background:var(--accent-color); color:var(--primary-color);
  padding:8px 14px; border-radius:8px; font-weight:bold; cursor:pointer;
  transition:background .3s;
}
.custom-file-upload label:hover{background:var(--accent-hover)}
.custom-file-upload #file-name{font-size:14px;color:var(--text-secondary)}

/* ================= Pricing ================= */
.pricing-table{
  margin-top:20px; padding:16px; border-radius:12px;
  background:var(--secondary-color); border:1px solid var(--border-color);
}
.pricing-table h3{margin-bottom:10px;color:var(--accent-color)}
.pricing-table ul{list-style:none;padding:0}
.pricing-table li{
  padding:6px 0; border-bottom:1px dashed var(--border-color); font-size:14px;
}
.pricing-table li:last-child{border-bottom:none}

/* ================= Footer ================= */
footer{
  margin-top:36px; padding:28px 0;
  background:linear-gradient(180deg,rgba(18,20,28,.65),rgba(18,20,28,.9));
  border-top:1px solid var(--border-color);
}
.footer-content{display:grid; grid-template-columns:1fr 1fr 1fr; gap:26px}
.footer-column{
  background:rgba(26,28,38,.55);
  border:1px solid var(--border-color);
  border-radius:14px; padding:16px;
}
.footer-column h3{border-bottom:2px solid var(--accent-color);padding-bottom:10px;margin-bottom:12px;font-size:16px}
.footer-links{list-style:none}
.footer-links li{margin-bottom:8px}
.copyright{
  text-align:center; padding-top:18px; margin-top:22px;
  color:var(--text-secondary); font-size:13px;
  border-top:1px solid rgba(255,255,255,.06);
}

/* ================= Admin & Payment ================= */
.admin-panel{background:var(--card-bg); border:1px solid var(--border-color); border-radius:16px; padding:22px}
.admin-header{display:flex; justify-content:space-between; align-items:center; margin-bottom:22px}
.admin-title{font-size:22px; font-weight:900; border-bottom:2px solid var(--accent-color); padding-bottom:8px}
.admin-content{background:rgba(18,20,28,.55); border-radius:12px; padding:18px; border:1px solid rgba(255,255,255,.06)}
.admin-form{margin-bottom:22px}
.form-group{margin-bottom:16px}
.form-group label{display:block; margin-bottom:8px; font-weight:800}
.form-control{
  width:100%; padding:10px 12px; border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(16,18,26,.85); color:var(--text-color);
}
.form-control:focus{outline:none; border-color:var(--accent-color)}
.btn{display:inline-block; padding:10px 16px; border-radius:12px; font-weight:900; cursor:pointer; border:none}
.btn-primary{background:var(--accent-color); color:#1a1000}
.btn-primary:hover{background:var(--accent-hover)}
.btn-edit{background:#3498db; color:#fff}
.btn-delete{background:#e74c3c; color:#fff}
.action-buttons{display:flex; gap:10px}
.admin-table{width:100%; border-collapse:collapse}
.admin-table th,.admin-table td{padding:12px 14px; text-align:left; border-bottom:1px dashed rgba(255,255,255,.08)}
.admin-table th{background:rgba(18,20,28,.55); font-weight:900}

.payment-section{background:var(--card-bg); border:1px solid var(--border-color); border-radius:16px; padding:22px; margin-bottom:26px}
.payment-section h2{border-bottom:2px solid var(--accent-color); padding-bottom:12px; margin-bottom:16px}
.payment-options{display:flex; flex-wrap:wrap; gap:18px; margin-bottom:18px}
.payment-option{flex:1; min-width:240px; background:rgba(255,214,81,.08); border:1px solid rgba(255,214,81,.35); border-radius:14px; padding:14px}
.payment-option h3{margin-bottom:8px; color:var(--accent-color)}
.vietqr-container{text-align:center; margin-top:14px}
.vietqr-image{max-width:220px; margin:0 auto}

/* ================= Responsive ================= */
@media (max-width:1100px){
  .main-content{flex-direction:column;max-width:760px;gap:16px}
  .sidebar{order:2;width:100%}
  .content-area{order:1;min-width:0}
  .header-container{gap:24px}
  .footer-content{grid-template-columns:1fr;gap:16px}
}
@media (max-width:640px){
  .post{flex-direction:column;gap:10px}
  .post-image{width:100%;height:160px}
  .nav-menu{flex-wrap:wrap;justify-content:center}
  .download-button{width:100%;text-align:center}
}

/* ================= Post Detail & Extra Blocks ================= */
.post-detail-content p {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,214,81,0.25);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  line-height: 1.7;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.post-detail-content p:hover { background: rgba(255,214,81,0.08); border-color: var(--accent-color);}
.post-detail-content { margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.content-block {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.65;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
  transition: background .2s;
}
.content-block:hover { background: rgba(255,214,81,.06); }
.post-detail {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 28px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

/* Action Buttons */
.action-buttons-row { display: flex; gap: 16px; margin-top: 12px; }
.download-button, .social-button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 10px; font-weight: bold;
  text-decoration: none; color: #fff;
  transition: transform .2s, box-shadow .2s;
}
.download-button {
  background: linear-gradient(90deg, #ffb347, #ffcc33); color: #231a00;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}
.download-button:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255, 193, 7, 0.55); }
.social-button.facebook {
  background: #1877f2; color: #fff; box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}
.social-button.facebook:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(24, 119, 242, 0.55); }

/* Post Meta */
.post-meta b { font-weight: 700; color: #ffd651; font-size: 15px;}
.post-meta span { font-size: 15px; font-weight: 600; margin-right: 10px;}
.today-highlight { color: #ff3333; font-weight: bold; font-size: 15px;}
.post-meta-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.info-block {
  flex: 1 1 calc(50% - 8px);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
}
.highlight-date { color: #ff4444; font-weight: bold; }
.vip-banner img {
  width: 249px; height: 39px; object-fit: cover; border-radius: 6px;
  border: 0px solid rgba(255,255,255,0.2);
  position: relative; left: 10px; top: -85px;
}
.vietqr-box {
  text-align: center; margin: 20px auto; padding: 15px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Popup */
.popup-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7); display: flex; justify-content: center; align-items: center;
  z-index: 9999;
}
.popup-box {
  background: #1e1e1e; border: 2px solid #ffcc00; border-radius: 10px;
  padding: 25px 20px; width: 380px; text-align: center; color: #fff;
  box-shadow: 0 0 20px rgba(255,204,0,0.5); animation: popupFade .3s ease;
}
.popup-box h3 { margin-top: 0; margin-bottom: 15px; font-size: 20px; color: #ffcc00; }
.popup-box p { font-size: 15px; margin-bottom: 15px; line-height: 1.5; }
.btn-pay {
  display: inline-block; margin-top: 5px; padding: 10px 20px;
  background: #ffcc00; color: #000; font-weight: bold; border-radius: 6px; text-decoration: none;
}
.btn-pay:hover { background: #ffaa00; }
.btn-close {
  display: inline-block; margin-top: 12px; padding: 8px 14px;
  background: #444; color: #fff; border: none; border-radius: 6px; cursor: pointer;
}
.btn-close:hover { background: #666; }
@keyframes popupFade { from {transform: scale(0.8); opacity: 0;} to {transform: scale(1); opacity: 1;} }
.invoice-info { margin: 15px 0; }
.info-box {
  background: #1e1e1e; border: 1px solid #444; border-radius: 6px;
  padding: 8px 12px; margin-bottom: 8px; color: #fff;
}

/* Price Table */
.pricing-table {
  margin-top: 20px; padding: 20px; background: #1e1e1e;
  border: 2px solid #ffcc00; border-radius: 10px; color: #fff;
}
.pricing-table h3 { color: #ffcc00; margin-bottom: 15px; text-align: center; }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table th, .price-table td {
  padding: 10px; border: 1px solid rgba(255,255,255,0.2); text-align: left;
}
.price-table th { background: #333; color: #ffcc00; text-align: center; }
.price-table tr:nth-child(even) { background: rgba(255,255,255,0.05); }
.price-table td:last-child { font-weight: bold; color: #00ffcc; text-align: right; }

/* Title + Meta chỉnh hàng */
.post .post-title, .post .post-header-line {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.post .post-title a, .post-header-line .post-title-text {
  flex: 1 1 auto; min-width: 0; display: block; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; line-height: 1.2;
}
.post .post-title .today-label, .post-header-line .vip-icon { flex: 0 0 auto; }
.post-title a { font-size: 16px; font-weight: 700; color: #ff9900; text-decoration: none;}
.post-title a:hover { color: var(--accent-color); }
.post-header-line .post-title-text { font-size: 18px; font-weight: 700; color: #ffd651;}
.post-header-line .post-title-text:hover { color: #ff8c2b; }
.post-meta-grid { display:flex; flex-wrap:wrap; gap:8px; margin-top:0;}
.post-meta-grid .info-block { order:2;}
.post-meta-grid .info-block.time-block { order:-1;}
.post{display:flex;flex-wrap:wrap}
.post>.post-header-line, .post>.post-title{
  display:block;width:100%;flex:0 0 100%!important;order:0;margin-bottom:8px
}
.post>.post-meta-grid{display:flex;flex-wrap:wrap;gap:8px;width:100%;flex:0 0 100%!important;order:1;clear:both}
.vip-gold-post .post-title-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.vip-gold-post .post-title-text::before, .vip-gold-post .post-title-text::after{
  content:""; display:inline-block; width:18px;height:18px; margin:0 6px;
  background:url('/assets/vip-icon.png') center/contain no-repeat; vertical-align:-3px;
}

/* Pagination */
.pagination{display:flex;justify-content:center;gap:8px;margin:16px 0}
.pagination a,.pagination span{
  padding:8px 12px;border:1px solid rgba(255,255,255,.15);
  border-radius:6px;background:rgba(255,255,255,.05);color:#fff;text-decoration:none
}
.pagination .active{background:#ffd651;color:#000;font-weight:700;border-color:transparent}
.pagination .disabled{opacity:.5;pointer-events:none}
/* ================= Mobile Extra Responsive ================= */
@media (max-width:480px){
  body{font-size:15px; line-height:1.6;}

  /* Header */
  .header-container{flex-direction:column; gap:12px; padding:8px 0;}
  .logo img{height:32px;}
  .nav-menu{flex-direction:column; gap:10px; align-items:center;}
  .nav-menu a{font-size:14px; padding:6px 0;}

  /* Layout */
  .main-content{flex-direction:column; gap:14px; margin:14px auto;}
  .sidebar{width:100%; padding:12px; border-radius:10px;}
  .content-area{min-width:0; width:100%;}

  /* Banner */
  .banner img,.banner video{border-radius:10px; max-height:220px; object-fit:cover;}
  .banner-hero img,.banner-hero video{max-height:200px;}
  .banner-wide img,.banner-wide video{max-height:180px;}

  /* Post */
  .post{flex-direction:column; gap:8px; padding:10px;}
  .post-image{width:100%; height:180px;}
  .post-title a,.post-header-line .post-title-text{font-size:15px;}
  .post-meta{font-size:13px;}
  .info-block{flex:1 1 100%; font-size:13.5px;}

  /* Buttons */
  .download-button, .social-button{
    width:100%; text-align:center; padding:10px; font-size:15px;
  }

  /* Footer */
  .footer-content{grid-template-columns:1fr; gap:12px;}
  .footer-column{padding:12px;}
  .footer-column h3{font-size:15px;}
}
