  :root{
    --gold:#D9B25C;
    --ivory:#F3EBD7;
    --ivory-dim:#CFC6B2;
    --muted:#A99F8A;
    --silver:#DCE0E6;
    --up:#6FCF97;
    --down:#EB6A5B;
  }
  html,body{margin:0;padding:0;width:100%;height:100%;overflow:hidden;background:#000;cursor:none}
  body{font-family:'Be Vietnam Pro','Segoe UI','SamsungOne',Roboto,Arial,sans-serif;-webkit-font-smoothing:antialiased}
  .num{font-family:'Barlow Condensed','Arial Narrow','Roboto Condensed',sans-serif;line-height:1;font-variant-numeric:tabular-nums}

  /* Khung thiết kế 1920×1080, tự co giãn vừa màn hình */
  #stage{position:absolute;left:50%;top:50%;width:1920px;height:1080px;margin:-540px 0 0 -960px;
    -webkit-transform-origin:50% 50%;transform-origin:50% 50%;overflow:hidden;color:var(--ivory);
    display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;
    background:linear-gradient(rgba(9,7,3,.55),rgba(9,7,3,.55)),#090703 url("img/bg.jpg") center center / cover no-repeat}

  /* ===== Đầu trang ===== */
  .head{height:140px;-webkit-flex-shrink:0;flex-shrink:0;box-sizing:border-box;padding:0 64px;display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:space-between;justify-content:space-between}
  .brand,.head-right,.when{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center}
  .brand img{height:112px;width:auto;display:block}
  .vrule{width:1px;background:rgba(217,178,92,.45);-webkit-flex-shrink:0;flex-shrink:0}
  .brand .vrule{height:72px;margin:0 28px}
  .brand h1{margin:0;font-size:46px;font-weight:700;line-height:1.1;letter-spacing:-.5px}
  .world{text-align:right}
  .world .lbl{font-size:20px;color:var(--muted)}
  .world .val{margin-top:4px;font-size:56px;font-weight:600;color:var(--ivory-dim);display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:flex-end;justify-content:flex-end}
  .world .val .arw{margin-right:10px}
  .world .unit{margin-top:4px;font-size:18px;color:var(--muted)}
  .head-right .vrule{height:84px;margin:0 36px}
  .when{-webkit-align-items:baseline;align-items:baseline}
  .when .d{text-align:right}
  #date{font-size:26px;font-weight:500}
  #updated{margin-top:4px;font-size:20px;color:var(--muted)}
  #updated.warn{color:#F8B26A}
  #time{margin-left:28px;font-size:92px;font-weight:600}

  /* ===== Bảng ===== */
  .main{-webkit-flex:1;flex:1;min-height:0;box-sizing:border-box;padding:8px 64px 28px;border-top:2px solid var(--gold);
    display:-ms-grid;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);grid-column-gap:80px;column-gap:80px}
  .sec{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;min-height:0;min-width:0}
  .grid3{display:grid;-webkit-align-items:center;align-items:center}
  .gold .grid3{grid-template-columns:minmax(0,1fr) 250px 250px;grid-column-gap:44px;column-gap:44px}
  .silver .grid3{grid-template-columns:minmax(0,1fr) 180px 180px;grid-column-gap:36px;column-gap:36px}
  .shead{height:122px;-webkit-flex-shrink:0;flex-shrink:0;box-sizing:border-box;padding-bottom:14px;-webkit-align-items:end;align-items:end}
  .gold .shead{border-bottom:1px solid rgba(217,178,92,.55)}
  .silver .shead{border-bottom:1px solid rgba(220,224,230,.55)}
  .shead h2{margin:0;font-size:64px;font-weight:700;line-height:1}
  .gold .shead h2{color:var(--gold)}
  .silver .shead h2{color:var(--silver)}
  .shead .unit{display:block;margin-top:6px;font-size:22px;color:var(--muted);white-space:nowrap}
  .shead .col{text-align:right;font-size:24px;color:var(--muted)}

  .rows{-webkit-flex:1;flex:1;display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;min-height:0}
  .row{-webkit-flex:1;flex:1;min-height:0}
  .gold .row{border-bottom:1px solid rgba(217,178,92,.25)}
  .silver .row{border-bottom:1px solid rgba(220,224,230,.22)}
  .row:last-child{border-bottom:0}
  /* Mọi dòng và đường kẻ cùng một độ rộng, để nền dòng nổi bật khớp với đường kẻ */
  .shead,.row{padding-left:20px;padding-right:20px;margin-left:-20px;margin-right:-20px}
  .row.hl{background:rgba(217,178,92,.14)}
  .pname{font-weight:600;line-height:1.2}
  .gold .pname{font-size:34px}
  .silver .pname{font-size:30px}
  .row.hl .pname{font-weight:700}
  .gold .row.hl .pname{font-size:36px}
  .silver .row.hl .pname{font-size:32px}
  .psub{margin-top:2px;font-size:21px;color:var(--muted)}
  .row.hl .psub{color:var(--gold)}

  .price{display:grid;-webkit-align-items:center;align-items:center;text-align:right}
  .gold .price{grid-template-columns:20px minmax(0,1fr);grid-column-gap:12px;column-gap:12px;font-size:80px}
  .silver .price{grid-template-columns:18px minmax(0,1fr);grid-column-gap:10px;column-gap:10px;font-size:68px}
  .price.buy{font-weight:600}
  .price.sell{font-weight:700}
  .gold .price.sell{color:var(--gold)}
  .silver .price.sell{color:var(--silver)}
  .arw{display:block}

  /* ===== Chân trang ===== */
  .foot{height:248px;-webkit-flex-shrink:0;flex-shrink:0;box-sizing:border-box;padding:24px 64px;border-top:1px solid rgba(217,178,92,.55);background:rgba(9,7,3,.6);display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center}
  .foot .qr{width:196px;height:196px;-webkit-flex-shrink:0;flex-shrink:0;display:block;background:#fff;border-radius:6px;margin-right:36px}
  .foot .app{max-width:680px}
  .app-title{font-size:36px;font-weight:700;line-height:1.2}
  .app-title span{color:var(--gold)}
  .app-text{margin-top:10px;font-size:24px;color:var(--ivory-dim);line-height:1.45}
  .foot .spacer{-webkit-flex:1;flex:1}
  .hotline{text-align:right}
  .hotline .lbl{font-size:22px;color:var(--muted)}
  .hotline .val{font-size:80px;font-weight:700;color:var(--gold)}
  .hotline .note{margin-top:12px;font-size:20px;color:var(--muted)}

  /* Ô giá vừa đổi */
  .flash{-webkit-animation:flash 1.6s ease-out;animation:flash 1.6s ease-out}
  @-webkit-keyframes flash{0%{background:rgba(217,178,92,.35)}100%{background:transparent}}
  @keyframes flash{0%{background:rgba(217,178,92,.35)}100%{background:transparent}}
  @media (prefers-reduced-motion: reduce){.flash{-webkit-animation:none;animation:none}}
