/* ============================================================================
   SALTROVE · BOUNTY BOARD v2 — "BẢNG TRUY NÃ" hải tặc
   Giấy da thật + gỗ tàu + đồng thau + sáp đỏ.
   Kỹ thuật: mọi huy hiệu tròn dùng aspect-ratio:1 + flex:none (không kéo dài),
   thẻ cùng chiều cao (grid stretch + body flex:1), không xoay/tilt 3D.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800;900&family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Pirata+One&display=swap');

.qb-wrap, .qb-wrap *, .qb-wrap *::before, .qb-wrap *::after{ box-sizing:border-box; }

.qb-wrap{
  --pr-ink:#2a1708;
  --pr-ink-2:#5b3a1b;
  --pr-gold:#d9a441;
  --pr-gold-lt:#f7e3ac;
  --pr-red:#8e1b10;
  --pr-green:#2f6b3f;
  --pr-paper:#f4e3bd;
  --pr-font:"Be Vietnam Pro",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --pr-display:"Playfair Display",Georgia,"Times New Roman",serif;
  --pr-pirate:"Pirata One",var(--pr-display);

  position:relative;
  padding:30px 26px 54px;
  border-radius:16px;
  font-family:var(--pr-font);
  color:var(--pr-paper);
  background-color:#1b0f07;
  background-image:
    radial-gradient(120% 80% at 50% -18%, rgba(255,190,110,.20), transparent 62%),
    radial-gradient(90% 70% at 50% 120%, rgba(0,0,0,.72), transparent 62%),
    linear-gradient(180deg, rgba(18,10,5,.86), rgba(24,13,6,.90)),
    url("saltrove/img/wood.jpg");
  background-size:auto,auto,auto,cover;
  background-position:center;
  box-shadow:
    inset 0 0 0 2px rgba(0,0,0,.75),
    inset 0 0 0 4px rgba(160,110,50,.55),
    inset 0 0 0 6px rgba(0,0,0,.45),
    inset 0 0 120px rgba(0,0,0,.75),
    0 30px 70px -34px rgba(0,0,0,.9);
  overflow:hidden;
  isolation:isolate;
}
.qb-wrap::before{
  content:""; position:absolute; inset:13px; z-index:0; pointer-events:none;
  border-radius:9px;
  border:2px dashed rgba(198,164,104,.40);
  box-shadow:0 0 0 1px rgba(0,0,0,.35);
}
.qb-wrap::after{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image:radial-gradient(rgba(0,0,0,.30) 1px, transparent 1px);
  background-size:4px 4px; opacity:.35; mix-blend-mode:multiply;
}
.qb-wrap > .container-fluid{ position:relative; z-index:1; max-width:1320px; }
.qb-wrap a{ text-decoration:none; }

/* ============================ 1. CẢNH BÁO PC ============================ */
.qb-wrap .qb-pcw{
  background:linear-gradient(180deg,#f6e7c4,#e6cd9f);
  border:2px solid #7a4a1e; border-left:7px solid var(--pr-red);
  border-radius:6px; color:#5a3a12;
  font-size:13.5px; font-weight:600; padding:13px 18px;
  box-shadow:inset 0 0 26px rgba(120,70,20,.22), 0 10px 20px -14px #000;
}
.qb-wrap .qb-pcw i{ color:var(--pr-red); }

/* ============================ 2. TIÊU ĐỀ TRANG ========================== */
.qb-wrap .qb-head-top{
  position:relative;
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:22px; flex-wrap:wrap;
  padding:0 0 20px; margin:0 0 24px;
  border-bottom:1px solid rgba(198,164,104,.32);
}
.qb-wrap .qb-head-top::after{
  content:""; position:absolute; left:0; bottom:-1px;
  width:140px; height:3px; border-radius:99px;
  background:linear-gradient(90deg,var(--pr-gold),rgba(217,164,65,0));
  box-shadow:0 0 14px rgba(217,164,65,.65);
}
.qb-wrap .qb-crumb{
  display:flex; align-items:center; gap:8px;
  font-size:11.5px; font-weight:700; letter-spacing:.6px;
  text-transform:uppercase; color:#b8975f; margin-bottom:12px;
}
.qb-wrap .qb-crumb a{ color:#b8975f; }
.qb-wrap .qb-crumb a:hover{ color:var(--pr-gold-lt); }
.qb-wrap .qb-crumb i{ font-size:9px; opacity:.55; }
.qb-wrap .qb-head-top h1{
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  margin:0 0 10px;
  font-family:var(--pr-display);
  font-size:33px; line-height:1.18; font-weight:900; letter-spacing:.4px;
  color:var(--pr-gold-lt);
  text-shadow:0 2px 0 #4a2a0c, 0 0 30px rgba(217,164,65,.30);
}
.qb-wrap .qb-head-top h1 b{
  font-family:var(--pr-font);
  font-size:12.5px; font-weight:800; letter-spacing:2.4px;
  color:#d8c39a; text-shadow:none;
  padding:5px 11px; border-radius:4px;
  border:1px solid rgba(198,164,104,.45);
  background:rgba(0,0,0,.28);
}
.qb-wrap .qb-skull{
  display:grid; place-items:center;
  width:44px; height:44px; aspect-ratio:1/1; flex:none;
  border-radius:50%; font-size:20px; color:#2a1708;
  background:radial-gradient(circle at 34% 28%, #fbeec4, #d9a441 58%, #8a5a14);
  border:2px solid #6b4210;
  box-shadow:inset 0 1px 3px rgba(255,255,255,.65), 0 6px 14px -6px rgba(0,0,0,.8);
}
.qb-wrap .qb-head-top .lead{ margin:0; max-width:700px; font-size:13.5px; line-height:1.7; color:#c9b083; }
.qb-wrap .qb-head-actions{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.qb-wrap .qb-hbtn{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 16px; border-radius:6px;
  font-size:12.5px; font-weight:800; letter-spacing:.4px; color:#f0dcae;
  background:linear-gradient(180deg,#4a2c14,#2a1709);
  border:2px solid #7d5322;
  box-shadow:inset 0 1px 0 rgba(255,220,160,.20), 0 6px 14px -8px #000;
  transition:transform .16s ease, border-color .16s ease, color .16s ease, background .16s ease;
}
.qb-wrap .qb-hbtn i{ font-size:12px; color:var(--pr-gold); }
.qb-wrap .qb-hbtn:hover{ transform:translateY(-2px); border-color:var(--pr-gold); color:#fff6dd; background:linear-gradient(180deg,#5c3718,#3a2110); }
.qb-wrap .qb-hbtn.primary{
  color:#241405;
  background:linear-gradient(180deg,#f0cf86,#c99a3f 52%,#a9741f);
  border-color:#f7e3ac;
  box-shadow:inset 0 1px 0 rgba(255,250,220,.7), 0 8px 18px -9px #000;
}
.qb-wrap .qb-hbtn.primary i{ color:#3a2208; }
.qb-wrap .qb-hbtn.primary:hover{ filter:brightness(1.06); color:#1c0f03; }

/* ================================ 3. HERO =============================== */
.qb-wrap .qb-hero{
  position:relative; margin:0 0 22px; border-radius:8px;
  background-color:#efdcb4;
  background-image:
    linear-gradient(180deg, rgba(255,250,235,.28), rgba(120,70,20,.16)),
    url("saltrove/img/parchment.jpg");
  background-size:auto, cover; background-position:center;
  border:2px solid #7a4a1e;
  box-shadow:
    inset 0 0 0 5px rgba(246,232,200,.55),
    inset 0 0 0 6px rgba(150,100,40,.55),
    inset 0 0 70px rgba(110,60,15,.30),
    0 22px 40px -22px rgba(0,0,0,.9);
  overflow:hidden;
}
.qb-wrap .qb-hero::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(58% 46% at 0% 0%, rgba(78,40,10,.34), transparent 62%),
    radial-gradient(52% 44% at 100% 0%, rgba(78,40,10,.28), transparent 64%),
    radial-gradient(58% 50% at 0% 100%, rgba(70,35,8,.30), transparent 62%),
    radial-gradient(58% 50% at 100% 100%, rgba(70,35,8,.32), transparent 64%);
  mix-blend-mode:multiply;
}
.qb-wrap .qb-hero-in{
  position:relative; z-index:2;
  display:flex; align-items:center; justify-content:space-between;
  gap:26px; flex-wrap:wrap; padding:28px 30px;
}
.qb-wrap .qb-tag{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 12px; border-radius:4px;
  font-size:10px; font-weight:800; letter-spacing:2px; text-transform:uppercase;
  color:#ffe9c9;
  background:linear-gradient(180deg,#a8281a,#7c150c);
  border:1px solid #5c0f08;
  box-shadow:inset 0 1px 0 rgba(255,200,160,.35), 0 4px 10px -6px #000;
}
.qb-wrap .qb-tag .dot{
  width:7px; height:7px; aspect-ratio:1/1; border-radius:50%; flex:none;
  background:#ffd77a; box-shadow:0 0 8px #ffd77a;
  animation:pr-blink 1.6s ease-in-out infinite;
}
.qb-wrap .qb-hero h1,
.qb-wrap .qb-hero-title{
  margin:14px 0 10px;
  font-family:var(--pr-display); font-size:26px; line-height:1.34; font-weight:900;
  color:#2a1708; text-shadow:0 1px 0 rgba(255,248,225,.6);
}
.qb-wrap .qb-hero h1 b,
.qb-wrap .qb-hero-title b{ color:var(--pr-red); }
.qb-wrap .qb-hero p{ margin:0; max-width:620px; font-size:13.5px; line-height:1.72; color:#5b3a1b; font-weight:500; }
.qb-wrap .qb-hud{
  display:flex; align-items:center; gap:14px; flex:none;
  padding:16px 20px; border-radius:8px;
  background:linear-gradient(180deg,#4a2c14,#241307);
  border:2px solid #8a5a24;
  box-shadow:inset 0 1px 0 rgba(255,220,160,.18), inset 0 0 26px rgba(0,0,0,.6), 0 12px 24px -14px #000;
}
.qb-wrap .qb-hud .coin{
  display:grid; place-items:center;
  width:48px; height:48px; aspect-ratio:1/1; flex:none;
  border-radius:50%; font-size:19px; color:#4a2a08;
  background:radial-gradient(circle at 34% 28%, #fbeec4, #d9a441 56%, #8a5a14);
  border:2px solid #6b4210;
  box-shadow:inset 0 1px 3px rgba(255,255,255,.6), 0 6px 14px -6px #000;
}
.qb-wrap .qb-hud .lbl{ font-size:10px; font-weight:800; letter-spacing:2px; text-transform:uppercase; color:#c9ad7c; }
.qb-wrap .qb-hud .val{
  display:flex; align-items:baseline; gap:6px; margin-top:3px;
  font-family:var(--pr-display); font-size:27px; font-weight:900;
  color:var(--pr-gold-lt); text-shadow:0 2px 0 #3a1f0a;
}
.qb-wrap .qb-hud .val small{ font-family:var(--pr-font); font-size:12px; font-weight:700; color:#b99a63; }

/* ============================== 4. THỐNG KÊ ============================= */
.qb-wrap .qb-log{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; margin:0 0 22px; }
.qb-wrap .qb-lc{
  position:relative; overflow:hidden; padding:18px 18px 17px 22px; border-radius:8px;
  background:linear-gradient(160deg,#3d2412,#221208 78%);
  border:2px solid #6b4522;
  box-shadow:inset 0 1px 0 rgba(255,220,160,.14), inset 0 0 34px rgba(0,0,0,.55), 0 14px 26px -16px #000;
  transition:transform .18s ease, border-color .18s ease;
}
.qb-wrap .qb-lc::before{
  content:""; position:absolute; left:0; top:0; bottom:0; width:4px;
  background:linear-gradient(180deg,var(--pr-gold),#8a5a14);
  box-shadow:0 0 12px rgba(217,164,65,.5);
}
.qb-wrap .qb-lc.feat::before{ background:linear-gradient(180deg,#f7e3ac,#c99a3f); }
.qb-wrap .qb-lc.g::before{ background:linear-gradient(180deg,#a8dfb2,#2f6b3f); }
.qb-wrap .qb-lc.e::before{ background:linear-gradient(180deg,#a8cbe0,#2f5a7a); }
.qb-wrap .qb-lc:hover{ transform:translateY(-3px); border-color:#a9743a; }
.qb-wrap .qb-lc .cap{ font-size:10px; font-weight:800; letter-spacing:2px; text-transform:uppercase; color:#b8975f; margin-bottom:10px; }
.qb-wrap .qb-lc .big{
  font-family:var(--pr-display); font-size:22px; font-weight:900; line-height:1.3;
  color:var(--pr-gold-lt); text-shadow:0 2px 0 #3a1f0a;
}
.qb-wrap .qb-lc .sub{ margin-top:6px; font-size:12.5px; line-height:1.6; color:#c2a878; }
.qb-wrap .qb-lc .chips{ display:flex; gap:7px; flex-wrap:wrap; margin-top:12px; }
.qb-wrap .qb-lc .chip{
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 10px; border-radius:4px;
  font-size:11px; font-weight:700; color:#d8c39a;
  background:rgba(0,0,0,.30); border:1px solid #6b4522;
}
.qb-wrap .qb-lc .chip b{ color:var(--pr-gold); font-size:12px; }

/* =============================== 5. TOOLBAR ============================= */
.qb-wrap .qb-bar{
  position:sticky; top:calc(var(--te-topbar-h, 64px) + 10px); z-index:60;
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  margin:0 0 20px; padding:13px 16px; border-radius:8px;
  background:linear-gradient(180deg,#3d2412,#221208);
  border:2px solid #6b4522;
  box-shadow:inset 0 1px 0 rgba(255,220,160,.14), 0 14px 28px -18px #000;
}
.qb-wrap .qb-bar .ttl{ display:flex; align-items:center; gap:13px; min-width:0; }
.qb-wrap .qb-bar .ttl .seal{
  display:grid; place-items:center;
  width:46px; height:46px; aspect-ratio:1/1; flex:none;
  border-radius:50%; font-size:17px; color:#2a1708;
  background:radial-gradient(circle at 34% 28%, #fbeec4, #d9a441 56%, #8a5a14);
  border:2px solid #6b4210;
  box-shadow:inset 0 1px 3px rgba(255,255,255,.6), 0 6px 14px -7px #000;
}
.qb-wrap .qb-bar .ttl h2{
  display:flex; align-items:center; gap:9px; flex-wrap:wrap;
  margin:0 0 3px; font-family:var(--pr-display); font-size:17px; font-weight:900;
  color:var(--pr-gold-lt);
}
.qb-wrap .qb-bar .ttl span{ display:block; font-size:12px; color:#b8975f; }
.qb-wrap .qb-bar .ttl .cnt{
  display:inline-flex; align-items:center; gap:5px;
  padding:3px 9px; border-radius:4px;
  font-family:var(--pr-font); font-size:11px; font-weight:800; color:var(--pr-gold);
  background:rgba(0,0,0,.32); border:1px solid #6b4522;
}
.qb-wrap .qb-tools{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.qb-wrap .qb-search{ position:relative; display:flex; align-items:center; flex:1 1 180px; max-width:250px; }
.qb-wrap .qb-search i{ position:absolute; left:12px; font-size:12px; color:#6b4522; pointer-events:none; }
.qb-wrap .qb-search input{
  width:100%; padding:9px 14px 9px 33px; border-radius:6px;
  font-family:var(--pr-font); font-size:13px; font-weight:600; color:#2a1708;
  background:linear-gradient(180deg,#f8ecd0,#eddcb8);
  border:2px solid #6b4522;
  transition:border-color .16s ease, box-shadow .16s ease;
}
.qb-wrap .qb-search input::placeholder{ color:#8a6438; font-weight:500; }
.qb-wrap .qb-search input:focus{ outline:none; border-color:var(--pr-gold); box-shadow:0 0 0 3px rgba(217,164,65,.26); }
.qb-wrap .qb-sort{ display:flex; gap:2px; padding:3px; border-radius:6px; background:rgba(0,0,0,.32); border:1px solid #6b4522; }
.qb-wrap .qb-sort a{
  display:inline-flex; align-items:center; gap:6px;
  padding:7px 12px; border-radius:4px;
  font-size:11.5px; font-weight:800; letter-spacing:.2px; color:#cbb083;
  transition:background .16s ease, color .16s ease;
}
.qb-wrap .qb-sort a i{ font-size:10.5px; opacity:.8; }
.qb-wrap .qb-sort a:hover{ background:rgba(217,164,65,.14); color:var(--pr-gold-lt); }
.qb-wrap .qb-sort a.on{ color:#241405; background:linear-gradient(180deg,#f0cf86,#c99a3f); box-shadow:inset 0 1px 0 rgba(255,250,220,.6); }

/* ================================ 6. TABS =============================== */
.qb-wrap .qb-tabs{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:0 0 22px; }
.qb-wrap .qb-tab{
  display:flex; align-items:center; gap:12px;
  width:100%; padding:13px 15px; text-align:left; cursor:pointer; border-radius:8px;
  font-family:var(--pr-font);
  background:linear-gradient(180deg,#3d2412,#221208);
  border:2px solid #6b4522;
  box-shadow:inset 0 1px 0 rgba(255,220,160,.12), 0 10px 20px -14px #000;
  transition:transform .16s ease, border-color .16s ease, background .16s ease;
}
.qb-wrap .qb-tab:hover{ transform:translateY(-2px); border-color:#a9743a; }
.qb-wrap .qb-tab .ti{
  display:grid; place-items:center;
  width:40px; height:40px; aspect-ratio:1/1; flex:none;
  border-radius:50%; font-size:15px; color:var(--pr-gold);
  background:rgba(0,0,0,.34); border:1px solid #6b4522;
}
.qb-wrap .qb-tab .tx{ display:flex; flex-direction:column; min-width:0; flex:1; }
.qb-wrap .qb-tab .tx b{ font-size:13.5px; font-weight:800; color:#f0dcae; line-height:1.3; }
.qb-wrap .qb-tab .tx small{ margin-top:2px; font-size:11.5px; color:#b8975f; }
.qb-wrap .qb-tab .cnt{
  display:grid; place-items:center;
  min-width:28px; height:26px; padding:0 8px; flex:none; border-radius:4px;
  font-size:11.5px; font-weight:900; color:var(--pr-gold);
  background:rgba(0,0,0,.34); border:1px solid #6b4522;
}
.qb-wrap .qb-tab.on{
  background:linear-gradient(180deg,#f0cf86,#c99a3f 55%,#a9741f);
  border-color:#f7e3ac;
  box-shadow:inset 0 1px 0 rgba(255,250,220,.7), 0 12px 24px -12px #000;
}
.qb-wrap .qb-tab.on .ti{ background:rgba(36,20,5,.16); border-color:rgba(36,20,5,.32); color:#241405; }
.qb-wrap .qb-tab.on .tx b{ color:#241405; }
.qb-wrap .qb-tab.on .tx small{ color:#4a2a08; }
.qb-wrap .qb-tab.on .cnt{ background:rgba(36,20,5,.16); border-color:rgba(36,20,5,.28); color:#241405; }
.qb-wrap .qb-pane{ display:none; }
.qb-wrap .qb-pane.on{ display:block; animation:pr-fade .3s ease; }
.qb-wrap .qb-pane-hint{
  display:flex; align-items:center; gap:10px;
  margin:0 0 18px; padding:11px 15px; border-radius:6px;
  font-size:12.5px; font-weight:600; color:#5b3a1b;
  background:linear-gradient(180deg,#f6e7c4,#e6cd9f);
  border:1px dashed #7a4a1e;
  box-shadow:inset 0 0 20px rgba(120,70,20,.18);
}
.qb-wrap .qb-pane-hint i{ color:var(--pr-red); }

/* ============================ 7. LƯỚI + EMPTY =========================== */
.qb-wrap .qb-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:20px; margin:0 0 24px; align-items:stretch; }
.qb-wrap .qb-empty{
  grid-column:1/-1; padding:56px 24px; text-align:center; border-radius:8px;
  background:linear-gradient(180deg,#f6e7c4,#e6cd9f);
  border:2px dashed #7a4a1e;
  box-shadow:inset 0 0 34px rgba(120,70,20,.18);
}
.qb-wrap .qb-empty i{ display:block; margin-bottom:14px; font-size:32px; color:var(--pr-red); opacity:.65; }
.qb-wrap .qb-empty h4{ margin:0 0 9px; font-family:var(--pr-display); font-size:18px; font-weight:900; color:#2a1708; }
.qb-wrap .qb-empty p{ margin:0; font-size:13px; line-height:1.7; color:#5b3a1b; }

/* ============================== 8. THẺ QUEST ============================ */
.qb-wrap .qb-card{
  --mx:50%; --my:0%;
  position:relative; display:flex; flex-direction:column;
  height:100%; min-width:0;
  padding:20px 18px 16px; border-radius:7px;
  color:var(--pr-ink);
  background-color:#efdcb4;
  background-image:
    linear-gradient(180deg, rgba(255,251,238,.30), rgba(120,70,20,.14)),
    url("saltrove/img/parchment.jpg");
  background-size:auto, cover; background-position:center;
  border:2px solid #7a4a1e;
  box-shadow:
    inset 0 0 0 4px rgba(246,232,200,.5),
    inset 0 0 0 5px rgba(150,100,40,.5),
    inset 0 0 40px rgba(110,60,15,.26),
    0 16px 28px -16px rgba(0,0,0,.85);
  overflow:hidden;
  transition:box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.qb-wrap .qb-card::before{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(46% 34% at 0% 0%, rgba(72,36,8,.40), transparent 60%),
    radial-gradient(42% 32% at 100% 0%, rgba(72,36,8,.34), transparent 62%),
    radial-gradient(48% 38% at 0% 100%, rgba(62,30,6,.36), transparent 60%),
    radial-gradient(48% 38% at 100% 100%, rgba(62,30,6,.38), transparent 62%);
  mix-blend-mode:multiply;
}
.qb-wrap .qb-card::after{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:radial-gradient(300px circle at var(--mx) var(--my), rgba(255,214,140,.20), transparent 62%);
  opacity:0; transition:opacity .25s ease;
}
.qb-wrap .qb-card:hover{
  border-color:#a9743a; transform:translateY(-4px);
  box-shadow:
    inset 0 0 0 4px rgba(246,232,200,.5),
    inset 0 0 0 5px rgba(150,100,40,.55),
    inset 0 0 40px rgba(110,60,15,.22),
    0 26px 44px -18px rgba(0,0,0,.9);
}
.qb-wrap .qb-card:hover::after{ opacity:1; }
.qb-wrap .qb-card > *{ position:relative; z-index:2; }
.qb-wrap .qb-nail{
  position:absolute; top:7px; left:50%; transform:translateX(-50%);
  width:14px; height:14px; aspect-ratio:1/1; border-radius:50%;
  z-index:6; pointer-events:none;
  background:radial-gradient(circle at 34% 28%, #f8ecc8, #b8822a 58%, #5a3a12);
  box-shadow:0 2px 3px rgba(0,0,0,.55), inset 0 1px 1px rgba(255,255,255,.75);
}
.qb-wrap .qb-wanted{
  position:absolute; left:50%; top:44%; transform:translate(-50%,-50%);
  z-index:1; pointer-events:none; white-space:nowrap;
  font-family:var(--pr-pirate); font-size:76px; line-height:1;
  letter-spacing:5px; color:rgba(120,62,20,.10);
  text-shadow:0 1px 0 rgba(255,248,225,.22);
}
.qb-wrap .qb-stamp{
  position:absolute; top:12px; right:11px; z-index:5;
  padding:4px 8px; border-radius:3px;
  font-family:var(--pr-display); font-size:9.5px; font-weight:800;
  letter-spacing:1.8px; text-transform:uppercase;
  color:var(--pr-red); background:rgba(255,248,230,.14);
  border:2px solid var(--pr-red); transform:rotate(-11deg); opacity:.88;
}
.qb-wrap .qb-stamp.hot{ color:#a8281a; border-color:#a8281a; }
.qb-wrap .qb-stamp.new{ color:var(--pr-green); border-color:var(--pr-green); }
.qb-wrap .qb-stamp.done,
.qb-wrap .qb-stamp.over{ color:#6b5a44; border-color:#6b5a44; }
.qb-wrap .qb-head{ display:flex; align-items:flex-start; gap:12px; margin-bottom:14px; padding-right:62px; }
.qb-wrap .qb-head .mic,
.qb-wrap .qb-head .mic.h2,
.qb-wrap .qb-head .mic.h3,
.qb-wrap .qb-head .mic.h4,
.qb-wrap .qb-head .mic.h5,
.qb-wrap .qb-head .mic.h6,
.qb-wrap .qb-head .mic.h7{
  display:grid; place-items:center;
  width:46px; height:46px; aspect-ratio:1/1; flex:0 0 46px;
  border-radius:50%; font-size:17px; line-height:1; color:#3a2208;
  background:radial-gradient(circle at 34% 28%, #fbeec4, #d9a441 56%, #8a5a14);
  border:2px solid #6b4210;
  box-shadow:inset 0 1px 3px rgba(255,255,255,.6), 0 6px 12px -7px rgba(0,0,0,.7);
}
.qb-wrap .qb-head .prov{
  display:inline-flex; align-items:center; gap:6px; margin-bottom:5px;
  font-size:9px; font-weight:800; letter-spacing:1.8px; text-transform:uppercase; color:#8a5a2a;
}
.qb-wrap .qb-head .prov i{ font-size:9px; color:var(--pr-red); }
.qb-wrap .qb-head h3.ttl{
  margin:0; font-family:var(--pr-display); font-size:16px; font-weight:800;
  line-height:1.45; color:#2a1708;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.qb-wrap .qb-reward{
  position:relative; display:flex; align-items:center; gap:12px;
  padding:12px 14px; margin-bottom:13px; border-radius:5px;
  background:linear-gradient(180deg, rgba(255,250,232,.55), rgba(196,152,90,.30));
  border:2px dashed #8a5a24;
  box-shadow:inset 0 0 20px rgba(110,60,15,.20);
}
.qb-wrap .qb-reward .ck{ display:none; }
.qb-wrap .qb-reward .dci{
  display:grid; place-items:center;
  width:40px; height:40px; aspect-ratio:1/1; flex:none;
  border-radius:50%; font-size:16px; color:#3a2208;
  background:radial-gradient(circle at 34% 28%, #fbeec4, #d9a441 56%, #8a5a14);
  border:2px solid #6b4210;
  box-shadow:inset 0 1px 3px rgba(255,255,255,.6), 0 5px 11px -6px rgba(0,0,0,.7);
}
.qb-wrap .qb-reward .rl{ font-size:9.5px; font-weight:800; letter-spacing:1.6px; text-transform:uppercase; color:#7a4a1e; }
.qb-wrap .qb-reward .rv{
  display:flex; align-items:baseline; gap:5px; margin-top:2px;
  font-family:var(--pr-display); font-size:22px; font-weight:900;
  color:#7c150c; text-shadow:0 1px 0 rgba(255,248,225,.55);
}
.qb-wrap .qb-reward .rv small{ font-family:var(--pr-font); font-size:11px; font-weight:700; color:#7a4a1e; }
.qb-wrap .qb-reward .owner-task-bonus{
  display:inline-flex; align-items:center; gap:5px;
  margin-top:5px; font-size:10.5px; font-weight:800; color:#8a5a14;
}
.qb-wrap .qb-meta{
  display:grid; grid-template-columns:1fr 1fr; gap:0;
  margin-bottom:13px; border:1px dashed rgba(122,74,30,.55);
  border-radius:5px; overflow:hidden;
}
.qb-wrap .qb-row{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:9px 11px; font-size:11px;
  border-top:1px dashed rgba(122,74,30,.35);
}
.qb-wrap .qb-row:first-child,
.qb-wrap .qb-row:nth-child(2){ border-top:none; }
.qb-wrap .qb-row .k{ display:inline-flex; align-items:center; gap:6px; min-width:0; color:#7a5a34; font-weight:600; }
.qb-wrap .qb-row .k i{ width:12px; flex:none; text-align:center; font-size:10px; color:#a9743a; }
.qb-wrap .qb-row .k span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.qb-wrap .qb-row .v{ flex:none; font-weight:800; color:#2a1708; white-space:nowrap; }
.qb-wrap .qb-row .v.gr{ color:#8a7458; }
.qb-wrap .qb-row .v.yl{ color:#8a5a14; }
.qb-wrap .qb-row .v.gn{ color:var(--pr-green); }
.qb-wrap .qb-exp{ margin-bottom:14px; }
.qb-wrap .qb-exp .pt{
  display:flex; align-items:center; justify-content:space-between; margin-bottom:6px;
  font-size:9.5px; font-weight:800; letter-spacing:1.5px; text-transform:uppercase; color:#7a5a34;
}
.qb-wrap .qb-exp .pt b{ font-size:11px; color:#2a1708; }
.qb-wrap .qb-track{ display:flex; gap:4px; }
.qb-wrap .qb-track .seg{
  flex:1; height:7px; border-radius:2px;
  background:rgba(122,74,30,.20);
  box-shadow:inset 0 1px 2px rgba(60,30,6,.35);
  transition:background .2s ease;
}
.qb-wrap .qb-track .seg.on{ background:linear-gradient(90deg,#a9741f,#f0cf86); box-shadow:0 0 8px rgba(217,164,65,.55); }
.qb-wrap .qb-track .seg.on.w{ background:linear-gradient(90deg,#8a5a14,#d9a441); }
.qb-wrap .qb-track .seg.on.l{ background:rgba(122,74,30,.20); box-shadow:none; }
.qb-wrap .qb-foot{ margin-top:auto; }
.qb-wrap .qb-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  width:100%; padding:12px; border:none; border-radius:6px; cursor:pointer;
  font-family:var(--pr-display); font-size:12.5px; font-weight:900;
  letter-spacing:1.8px; text-transform:uppercase; color:#ffe9c9;
  background:radial-gradient(circle at 34% 22%, #c0392b, #8e1b10 62%, #6b100a);
  border:2px solid #5c0f08;
  box-shadow:inset 0 1px 0 rgba(255,200,160,.35), 0 4px 0 #4a0c06, 0 12px 20px -10px rgba(0,0,0,.85);
  text-shadow:0 1px 1px rgba(0,0,0,.45);
  transition:transform .14s ease, filter .14s ease, box-shadow .14s ease;
}
.qb-wrap .qb-btn i{ font-size:11.5px; }
.qb-wrap .qb-btn:hover{
  filter:brightness(1.09); transform:translateY(-2px);
  box-shadow:inset 0 1px 0 rgba(255,200,160,.4), 0 6px 0 #4a0c06, 0 16px 24px -10px rgba(0,0,0,.9);
}
.qb-wrap .qb-btn:active{ transform:translateY(2px); box-shadow:inset 0 1px 0 rgba(255,200,160,.3), 0 1px 0 #4a0c06; }
.qb-wrap .qb-btn.btn-do-task i{ animation:pr-bolt 1.8s ease-in-out infinite; }
.qb-wrap .qb-btn.login{ color:#ffe9c9; }
.qb-wrap .qb-btn.dis{
  color:#3f3527; cursor:not-allowed; text-shadow:none;
  background:linear-gradient(180deg,#c2b191,#94805f);
  border:2px solid #6b5a44;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25);
}
.qb-wrap .qb-btn.dis:hover,
.qb-wrap .qb-btn.dis:active{ filter:none; transform:none; box-shadow:inset 0 1px 0 rgba(255,255,255,.25); }
.qb-wrap .qb-card--pubcrypto .qb-pub-ribbon{
  position:absolute; top:0; left:0; z-index:4;
  display:inline-flex; align-items:center; gap:5px;
  padding:5px 11px; border-radius:0 0 6px 0;
  font-size:9px; font-weight:800; letter-spacing:1.6px; color:#ffe9c9;
  background:linear-gradient(180deg,#a8281a,#7c150c);
  border:1px solid #5c0f08;
  box-shadow:inset 0 1px 0 rgba(255,200,160,.3);
}
.qb-wrap .qb-card--pubcrypto .qb-pub-hot{
  position:absolute; top:50px; right:11px; z-index:4;
  padding:3px 7px; border-radius:3px;
  font-size:8.5px; font-weight:800; letter-spacing:1px; color:#241405;
  background:linear-gradient(180deg,#f0cf86,#c99a3f);
  border:1px solid #f7e3ac;
}
.qb-wrap .qb-card--pubcrypto .qb-head{ padding-top:20px; }

/* ============================= 9. BITCOTASKS ============================ */
.qb-wrap .qb-btc-hero{
  display:flex; align-items:center; justify-content:space-between;
  gap:22px; flex-wrap:wrap; margin-bottom:18px; padding:24px 26px; border-radius:8px;
  color:#241405;
  background:
    radial-gradient(120% 100% at 18% 0%, rgba(255,246,214,.45), transparent 58%),
    linear-gradient(120deg,#8a5a14,#b9822a 48%,#d9a441);
  border:2px solid #f7e3ac;
  box-shadow:inset 0 1px 0 rgba(255,250,220,.6), 0 18px 32px -18px #000;
}
.qb-wrap .qb-btc-hero h2{ margin:0 0 7px; font-family:var(--pr-display); font-size:20px; font-weight:900; color:#241405; }
.qb-wrap .qb-btc-hero p{ margin:0; max-width:620px; font-size:13px; line-height:1.65; color:#3a2208; }
.qb-wrap .qb-btc-hero .tag{
  display:inline-flex; align-items:center; gap:6px;
  margin-bottom:10px; padding:4px 10px; border-radius:4px;
  font-size:10px; font-weight:900; letter-spacing:1.4px;
  background:rgba(36,20,5,.20); border:1px solid rgba(36,20,5,.32);
}
.qb-wrap .qb-btc-hero .r{ display:flex; gap:10px; flex-wrap:wrap; }
.qb-wrap .qb-btc-hero .st{
  min-width:96px; padding:10px 14px; border-radius:6px; text-align:center;
  background:rgba(36,20,5,.14); border:1px solid rgba(36,20,5,.28);
}
.qb-wrap .qb-btc-hero .st span{ display:block; font-size:10px; font-weight:800; letter-spacing:.8px; text-transform:uppercase; opacity:.9; }
.qb-wrap .qb-btc-hero .st b{ display:block; margin-top:3px; font-size:16px; font-weight:900; white-space:nowrap; }
.qb-wrap .qb-btc-warn{
  display:flex; align-items:flex-start; gap:12px;
  padding:16px 18px; border-radius:6px;
  font-size:13px; line-height:1.65; color:#5a3a12;
  background:linear-gradient(180deg,#f6e7c4,#e6cd9f);
  border:2px solid #7a4a1e;
}
.qb-wrap .qb-btc-warn i{ margin-top:2px; font-size:18px; color:var(--pr-red); }
.qb-wrap .qb-btc-login{
  padding:34px 22px; text-align:center; border-radius:8px;
  background:linear-gradient(180deg,#f6e7c4,#e6cd9f);
  border:2px solid #7a4a1e;
  box-shadow:inset 0 0 34px rgba(120,70,20,.18);
}
.qb-wrap .qb-btc-login i{ display:block; margin-bottom:10px; font-size:32px; color:#8a5a14; }
.qb-wrap .qb-btc-login h3{ margin:0 0 7px; font-family:var(--pr-display); font-size:17px; font-weight:900; color:#2a1708; }
.qb-wrap .qb-btc-login p{ margin:0 0 16px; font-size:13px; color:#5b3a1b; }
.qb-wrap .qb-btc-btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:11px 20px; border-radius:5px;
  font-size:13px; font-weight:900; letter-spacing:1px; color:#ffe9c9;
  background:radial-gradient(circle at 34% 22%, #c0392b, #8e1b10 62%, #6b100a);
  border:2px solid #5c0f08;
  box-shadow:inset 0 1px 0 rgba(255,200,160,.35), 0 4px 0 #4a0c06;
}
.qb-wrap .qb-btc-btn:hover{ color:#fff; transform:translateY(-1px); }
.qb-wrap .qb-btc-types{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.qb-wrap .qb-btc-type{
  display:inline-flex; align-items:center; gap:7px;
  padding:9px 14px; border-radius:5px; cursor:pointer;
  font-size:12.5px; font-weight:800; line-height:1; color:#e8d3a6;
  background:linear-gradient(180deg,#3d2412,#221208);
  border:2px solid #6b4522;
  transition:all .16s ease;
}
.qb-wrap .qb-btc-type i{ font-size:12px; color:var(--pr-gold); }
.qb-wrap .qb-btc-type .n{
  display:grid; place-items:center; min-width:20px; height:18px; padding:0 6px;
  border-radius:3px; font-size:10px; font-weight:900;
  background:rgba(0,0,0,.34); color:#d8c39a;
}
.qb-wrap .qb-btc-type:hover{ border-color:#a9743a; background:#4a2c14; }
.qb-wrap .qb-btc-type.on{ color:#241405; background:linear-gradient(180deg,#f0cf86,#c99a3f); border-color:#f7e3ac; }
.qb-wrap .qb-btc-type.on i{ color:#241405; }
.qb-wrap .qb-btc-type.on .n{ background:rgba(36,20,5,.16); color:#241405; }
.qb-wrap .qb-btc-toolbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; flex-wrap:wrap; margin-bottom:12px;
  font-size:12px; font-weight:600; color:#b8975f;
}
.qb-wrap .qb-btc-toolbar .lnk{
  display:inline-flex; align-items:center; gap:6px;
  padding:7px 12px; border-radius:4px;
  font-size:11.5px; font-weight:800; color:var(--pr-gold);
  background:rgba(0,0,0,.32); border:1px solid #6b4522;
}
.qb-wrap .qb-btc-toolbar .lnk:hover{ border-color:var(--pr-gold); color:var(--pr-gold-lt); }
.qb-wrap .qb-btc-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:14px; }
.qb-wrap .qb-btc-item{
  display:flex; flex-direction:column; gap:10px;
  padding:14px; border-radius:6px;
  background:linear-gradient(180deg,#f6e7c4,#e6cd9f);
  border:2px solid #7a4a1e;
  box-shadow:inset 0 0 24px rgba(120,70,20,.18), 0 12px 22px -14px #000;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.qb-wrap .qb-btc-item:hover{ transform:translateY(-3px); border-color:#a9743a; box-shadow:inset 0 0 24px rgba(120,70,20,.14), 0 20px 32px -16px #000; }
.qb-wrap .qb-btc-item.is-done{ opacity:.62; }
.qb-wrap .qb-btc-item.is-wait{ opacity:.84; }
.qb-wrap .qb-btc-item .top{ display:flex; gap:11px; align-items:flex-start; }
.qb-wrap .qb-btc-item .ic{
  display:grid; place-items:center;
  width:46px; height:46px; aspect-ratio:1/1; flex:none;
  border-radius:50%; overflow:hidden; font-size:17px; color:#8a5a14;
  background:rgba(122,74,30,.14); border:1px solid rgba(122,74,30,.38);
}
.qb-wrap .qb-btc-item .ic img{ width:100%; height:100%; object-fit:cover; display:block; }
.qb-wrap .qb-btc-item .tt{ min-width:0; flex:1; }
.qb-wrap .qb-btc-item h4{
  margin:0 0 4px; font-family:var(--pr-display); font-size:14px; font-weight:900;
  line-height:1.35; color:#2a1708;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.qb-wrap .qb-btc-item .ds{
  font-size:11.5px; line-height:1.5; color:#6b4a28;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.qb-wrap .qb-btc-item .meta{ display:flex; flex-wrap:wrap; gap:5px; }
.qb-wrap .qb-btc-item .chip{
  padding:3px 8px; border-radius:3px; white-space:nowrap;
  font-size:10px; font-weight:800; color:#5a3a1c;
  background:rgba(122,74,30,.12); border:1px solid rgba(122,74,30,.30);
}
.qb-wrap .qb-btc-item .chip.hot{ color:#8e1b10; background:rgba(168,40,26,.14); border-color:rgba(142,27,16,.35); }
.qb-wrap .qb-btc-item .chip.ok{ color:var(--pr-green); background:rgba(47,107,63,.14); border-color:rgba(47,107,63,.35); }
.qb-wrap .qb-btc-item .chip.warn{ color:#8e1b10; background:rgba(168,40,26,.12); border-color:rgba(142,27,16,.30); }
.qb-wrap .qb-btc-item .foot{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; padding-top:4px; }
.qb-wrap .qb-btc-item .rw{ font-family:var(--pr-display); font-size:15px; font-weight:900; line-height:1.2; color:#7c150c; white-space:nowrap; }
.qb-wrap .qb-btc-item .rw small{ display:block; margin-top:2px; font-family:var(--pr-font); font-size:9.5px; font-weight:700; color:#8a6438; letter-spacing:.3px; }
.qb-wrap .qb-btc-item .go{
  display:inline-flex; align-items:center; gap:6px;
  padding:9px 15px; border-radius:4px; white-space:nowrap;
  font-size:12px; font-weight:900; color:#ffe9c9;
  background:radial-gradient(circle at 34% 22%, #c0392b, #8e1b10 62%, #6b100a);
  border:2px solid #5c0f08;
  box-shadow:inset 0 1px 0 rgba(255,200,160,.35), 0 3px 0 #4a0c06;
}
.qb-wrap .qb-btc-item .go:hover{ color:#fff; filter:brightness(1.08); }
.qb-wrap .qb-btc-item .go.dis{
  color:#3f3527; pointer-events:none;
  background:linear-gradient(180deg,#c2b191,#94805f);
  border-color:#6b5a44; box-shadow:none;
}
.qb-wrap .qb-btc-skel{
  display:flex; flex-direction:column; gap:10px; min-height:170px; padding:14px;
  border-radius:6px; background:linear-gradient(180deg,#f6e7c4,#e6cd9f);
  border:2px solid #7a4a1e;
}
.qb-wrap .qb-btc-skel span{
  display:block; border-radius:5px;
  background:linear-gradient(90deg, rgba(122,74,30,.14) 25%, rgba(122,74,30,.26) 37%, rgba(122,74,30,.14) 63%);
  background-size:400% 100%; animation:pr-shim 1.3s ease infinite;
}
.qb-wrap .qb-btc-skel span.a{ width:46px; height:46px; border-radius:50%; }
.qb-wrap .qb-btc-skel span.b{ width:78%; height:13px; }
.qb-wrap .qb-btc-skel span.c{ width:100%; height:10px; }
.qb-wrap .qb-btc-skel span.d{ width:55%; height:10px; }
.qb-wrap .qb-btc-skel span.e{ width:100%; height:32px; margin-top:auto; }
.qb-wrap .qb-btc-state{
  grid-column:1/-1; padding:44px 22px; text-align:center; border-radius:8px;
  background:linear-gradient(180deg,#f6e7c4,#e6cd9f);
  border:2px dashed #7a4a1e; color:#5b3a1b;
}
.qb-wrap .qb-btc-state i{ display:block; margin-bottom:10px; font-size:30px; color:#a9743a; }
.qb-wrap .qb-btc-state b{ display:block; margin-bottom:5px; font-family:var(--pr-display); font-size:15px; font-weight:900; color:#2a1708; }
.qb-wrap .qb-btc-state p{ margin:0; font-size:12.5px; line-height:1.6; }

/* ============================ 10. NÚT DƯỚI ============================= */
.qb-wrap .qb-bottom{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
.qb-wrap .qb-bact{
  display:inline-flex; align-items:center; gap:9px;
  padding:11px 18px; border-radius:6px;
  font-size:12px; font-weight:800; letter-spacing:.4px; color:#e8d3a6;
  background:linear-gradient(180deg,#3d2412,#221208);
  border:2px solid #6b4522;
  box-shadow:inset 0 1px 0 rgba(255,220,160,.12), 0 10px 20px -14px #000;
  transition:transform .16s ease, border-color .16s ease;
}
.qb-wrap .qb-bact i{ font-size:12px; color:var(--pr-gold); }
.qb-wrap .qb-bact.info,
.qb-wrap .qb-bact.warn{ color:#e8d3a6; }
.qb-wrap .qb-bact:hover{ transform:translateY(-2px); border-color:#a9743a; color:#fff6dd; }

/* ============================== 11. ANIMATION =========================== */
@keyframes pr-blink{ 50%{ opacity:.35 } }
@keyframes pr-fade{ from{ opacity:0; transform:translateY(6px) } to{ opacity:1; transform:none } }
@keyframes pr-bolt{ 50%{ transform:translateY(-1px) scale(1.08) } }
@keyframes pr-shim{ 0%{ background-position:100% 50% } 100%{ background-position:0 50% } }

/* ============================== 12. RESPONSIVE ========================== */
@media(max-width:900px){
  .qb-wrap{ padding:22px 16px 44px; border-radius:12px; }
  .qb-wrap .qb-head-top h1{ font-size:26px; }
  .qb-wrap .qb-hero-title{ font-size:22px; }
  .qb-wrap .qb-hero-in{ padding:22px 20px; }
  .qb-wrap .qb-tabs{ grid-template-columns:1fr; }
  .qb-wrap .qb-bar{ position:static; flex-direction:column; align-items:stretch; }
  .qb-wrap .qb-tools{ width:100%; }
  .qb-wrap .qb-search{ max-width:none; flex:1 1 100%; }
  .qb-wrap .qb-sort{ width:100%; }
  .qb-wrap .qb-sort a{ flex:1; justify-content:center; }
}
@media(max-width:560px){
  .qb-wrap{ padding:18px 12px 36px; }
  .qb-wrap .qb-head-top h1{ font-size:21px; gap:9px; }
  .qb-wrap .qb-skull{ width:34px; height:34px; font-size:15px; }
  .qb-wrap .qb-head-top h1 b{ font-size:10px; letter-spacing:1.4px; padding:4px 8px; }
  .qb-wrap .qb-hero-title{ font-size:18px; }
  .qb-wrap .qb-hud{ width:100%; justify-content:center; }
  .qb-wrap .qb-grid{ grid-template-columns:1fr; gap:16px; }
  .qb-wrap .qb-meta{ grid-template-columns:1fr; }
  .qb-wrap .qb-row:nth-child(2){ border-top:1px dashed rgba(122,74,30,.35); }
  .qb-wrap .qb-wanted{ font-size:58px; }
  .qb-wrap .qb-sort a span{ display:none; }
  .qb-wrap .qb-bact{ width:100%; justify-content:center; }
}
@media(prefers-reduced-motion:reduce){
  .qb-wrap, .qb-wrap *{ animation:none !important; transition:none !important; }
}
