/* ===== PATCH: LOGO as real image from admin (via --logo-url) ===== */
.logo{
  width:38px; height:38px; border-radius:14px;
  background-image: var(--logo-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 35px rgba(0,0,0,.22);
  overflow:hidden;
  position:relative;
}
.logo:after{
  /* giữ hiệu ứng shine nhẹ nhưng không che logo */
  content:"";
  position:absolute; inset:-30%;
  background: conic-gradient(from 180deg, rgba(255,255,255,0), rgba(255,255,255,.18), rgba(255,255,255,0));
  animation: shine 3.8s linear infinite;
  mix-blend-mode: overlay;
  pointer-events:none;
}

/* ===== PATCH: SAO KE layout - gọn, responsive ===== */
.txHeader{
  display:grid;
  grid-template-columns: 1fr auto;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}
@media (max-width: 720px){
  .txHeader{ grid-template-columns: 1fr; }
  .txHeader > div:last-child{ justify-content:flex-start; }
}

/* input date + buttons nhìn đồng đều hơn */
.txHeader .input{
  min-width: 160px;
  height: 40px;
  padding: 10px 12px;
  border-radius: 999px;
}
@media (max-width: 720px){
  .txHeader .input{ min-width: 0; width: 100%; }
  .txHeader > div:last-child{ width:100%; display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
  /* 2 nút nằm full-row nếu muốn */
  .txHeader > div:last-child button{ width:100%; }
}

/* ===== PATCH: LIST HEIGHT - không còn cảm giác "3 giao dịch" ===== */
/* Sao kê (ALL) */
#txList.txList{
  max-height: min(62vh, 560px);
}
/* Khoản chi (OUT) */
#outList.txList{
  max-height: min(70vh, 640px);
}

/* item đọc dễ hơn trên mobile */
@media (max-width: 640px){
  .txItem{ padding: 12px; }
  .txTitle{ font-size: 15px; }
  .amt{ font-size: 17px; }
}

    :root{
      --bg0:#120024; --bg1:#1c0036;
      --p:#ff4fd8; --p2:#ff85f0;
      --v:#8a5cff; --v2:#b47dff;
      --t:#fff; --muted:rgba(255,255,255,.74);
      --glass:rgba(255,255,255,.10); --stroke:rgba(255,255,255,.18);
      --shadow: 0 20px 60px rgba(0,0,0,.40);
      --radius: 22px; --radius2: 28px;
      --max: 1120px;
      --safeTop: env(safe-area-inset-top, 0px);
      --safeBottom: env(safe-area-inset-bottom, 0px);
    }
    *{box-sizing:border-box}
    html,body{height:100%}
    body{
      margin:0;
      font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
      color:var(--t);
      background:
        radial-gradient(1100px 700px at 18% 12%, rgba(255,79,216,.35), transparent 55%),
        radial-gradient(900px 600px at 84% 24%, rgba(138,92,255,.35), transparent 60%),
        radial-gradient(900px 700px at 50% 85%, rgba(255,133,240,.22), transparent 60%),
        linear-gradient(180deg, var(--bg0), var(--bg1));
      overflow-x:hidden;
    }
    a{color:inherit}

    /* Sparkle background (subtle) */
    .sparkles{
      position: fixed; inset:0; pointer-events:none; z-index:0;
      background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.18) 0 1px, transparent 2px),
        radial-gradient(circle at 70% 20%, rgba(255,255,255,.14) 0 1px, transparent 2px),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,.12) 0 1px, transparent 2px);
      background-size: 240px 240px, 280px 280px, 320px 320px;
      opacity:.35;
      animation: sparkleDrift 9s ease-in-out infinite;
    }
    @keyframes sparkleDrift{ 0%,100%{transform:translate(0,0)} 50%{transform:translate(-12px,10px)} }

    /* Grain */
    .grain{
      pointer-events:none;
      position:fixed; inset:-40%;
      background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="320" height="320"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="3" stitchTiles="stitch"/></filter><rect width="320" height="320" filter="url(%23n)" opacity="0.35"/></svg>');
      mix-blend-mode: overlay;
      opacity:.18;
      animation: grainMove 7s steps(10) infinite;
      z-index:0;
    }
    @keyframes grainMove{ 0%{transform:translate(0,0)} 25%{transform:translate(-2%,2%)} 50%{transform:translate(-4%,-1%)} 75%{transform:translate(2%,-3%)} 100%{transform:translate(0,0)} }

    /* Blobs */
    .blob{ position:fixed; width:520px; height:520px; border-radius:50%; filter: blur(42px); opacity:.18; pointer-events:none; z-index:0;}
    .blob.b1{ left:-180px; top:-220px; background: radial-gradient(circle at 30% 30%, var(--p2), transparent 60%); animation: drift1 16s ease-in-out infinite; }
    .blob.b2{ right:-220px; top:40px; background: radial-gradient(circle at 30% 30%, var(--v2), transparent 60%); animation: drift2 18s ease-in-out infinite; }
    .blob.b3{ left:18%; bottom:-280px; background: radial-gradient(circle at 30% 30%, var(--p), transparent 60%); animation: drift3 20s ease-in-out infinite; }
    @keyframes drift1{ 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(60px,40px) scale(1.05)} }
    @keyframes drift2{ 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-50px,30px) scale(1.06)} }
    @keyframes drift3{ 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(40px,-50px) scale(1.08)} }

    header{
      position:sticky; top:0; z-index:50;
      backdrop-filter: blur(10px);
      background: linear-gradient(180deg, rgba(18,0,36,.78), rgba(18,0,36,.20));
      border-bottom: 1px solid rgba(255,255,255,.10);
    }
    .nav{
      max-width:var(--max); margin:0 auto; padding:12px 18px;
      display:flex; align-items:center; justify-content:space-between; gap:12px;
    }
    .brand{ display:flex; align-items:center; gap:10px; font-weight:900; letter-spacing:.2px;}
    .logo{
      width:38px; height:38px; border-radius:14px;
      background: radial-gradient(circle at 30% 30%, var(--p2), var(--v));
      box-shadow: 0 12px 35px rgba(255,79,216,.20);
      position:relative; overflow:hidden;
    }
    .logo:after{
      content:"";
      position:absolute; inset:-30%;
      background: conic-gradient(from 180deg, rgba(255,255,255,.0), rgba(255,255,255,.35), rgba(255,255,255,.0));
      animation: shine 3.4s linear infinite;
    }
    @keyframes shine{ to{transform:rotate(360deg)} }

    .navlinks{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end;}
    .navlinks a{
      text-decoration:none; padding:9px 12px; border-radius:999px;
      border:1px solid transparent; color: rgba(255,255,255,.82);
      font-weight:850; font-size:14px;
      transition: background .16s ease, transform .16s ease, border-color .16s ease;
    }
    .navlinks a:hover{ border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); transform: translateY(-1px); }

    .pill{
      display:inline-flex; align-items:center; gap:8px;
      padding:8px 12px; border-radius:999px;
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.14);
      color: var(--muted);
      font-size:14px;
      user-select:none;
    }
    .kbd{
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      font-size: 12px;
      padding: 3px 8px;
      border-radius: 10px;
      background: rgba(0,0,0,.22);
      border: 1px solid rgba(255,255,255,.14);
      display:inline-block;
    }

    .wrap{max-width:var(--max); margin:0 auto; padding:22px 18px 86px; position:relative; z-index:1;}

    .card{
      background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
      border: 1px solid rgba(255,255,255,.16);
      border-radius: var(--radius2);
      box-shadow: var(--shadow);
      overflow:hidden;
      position:relative;
      transform: translateZ(0);
    }
    .card:hover{ border-color: rgba(255,255,255,.20); }
    .card .in{padding:22px;}

    h1{
      font-size: clamp(34px, 4vw, 56px);
      line-height: 1.02;
      margin: 0 0 10px;
      letter-spacing: -.6px;
    }
    .gradient{
      background: linear-gradient(90deg, var(--p2), var(--v2), var(--p));
      -webkit-background-clip: text;
      background-clip:text;
      color: transparent;
    }
    .lead{
      font-size: 16px;
      line-height: 1.55;
      color: rgba(255,255,255,.82);
      margin: 0 0 16px;
    }

    .gridTop{display:grid; grid-template-columns: 1.2fr .8fr; gap:16px; align-items:stretch;}
    @media (max-width: 980px){ .gridTop{grid-template-columns:1fr;} .navlinks{display:none;} }

    /* CTA button attention */
    .ctaBig{
      appearance:none; border:0; cursor:pointer;
      width:100%;
      border-radius: 999px;
      padding: 14px 16px;
      font-weight: 950;
      letter-spacing:.2px;
      display:flex; align-items:center; justify-content:center; gap:10px;
      color:#fff;
      background: linear-gradient(90deg, var(--p), var(--v));
      box-shadow: 0 20px 55px rgba(255,79,216,.22);
      position:relative;
      overflow:hidden;
      transform: translateZ(0);
      animation: bob 1.65s ease-in-out infinite;
    }
    .ctaBig:before{
      content:"";
      position:absolute; inset:-40%;
      background: conic-gradient(from 180deg, rgba(255,255,255,0), rgba(255,255,255,.35), rgba(255,255,255,0));
      animation: shine 2.6s linear infinite;
      opacity:.55;
    }
    .ctaBig:after{
      content:"";
      position:absolute; inset:0;
      background: radial-gradient(800px 180px at 50% -20%, rgba(255,255,255,.22), transparent 60%);
      opacity:.7;
    }
    .ctaBig span{position:relative; z-index:1;}
    .ctaBig .ping{
      width:10px; height:10px; border-radius:50%;
      background: rgba(255,255,255,.95);
      box-shadow: 0 0 0 8px rgba(255,255,255,.12);
      animation: pulse 1.7s ease-in-out infinite;
      position:relative; z-index:1;
    }
    .ctaBig:hover{ filter: brightness(1.06) saturate(1.08); transform: translateY(-1px); }
    .ctaBig:active{ transform: translateY(1px) scale(.99); }
    @keyframes bob{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(-3px)} }
    @keyframes pulse{ 0%,100%{transform:scale(1); opacity:1} 50%{transform:scale(1.22); opacity:.78} }

    .btnRow{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px;}
    .btn{
      appearance:none; border:0; cursor:pointer;
      border-radius: 999px;
      padding: 11px 14px;
      font-weight: 900;
      display:inline-flex; align-items:center; gap:10px;
      text-decoration:none;
      justify-content:center;
      transition: transform .16s ease, background .16s ease, border-color .16s ease, filter .16s ease;
    }
    .btn.ghost{
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,255,255,.18);
      color: rgba(255,255,255,.92);
    }
    .btn.ghost:hover{ background: rgba(255,255,255,.09); transform: translateY(-1px); }
    .btn.ghost:active{ transform: translateY(1px) scale(.99); }

    .sectionTitle{
      display:flex; align-items:flex-end; justify-content:space-between; gap:12px;
      margin: 6px 0 12px;
    }
    .sectionTitle h2{margin:0; font-size:22px; letter-spacing:-.2px;}
    .sectionTitle p{margin:0; color: rgba(255,255,255,.70); font-size:14px;}
    .hr{height:1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); margin: 14px 0;}
    .muted{color: rgba(255,255,255,.72);}
    .miniLine{font-size:13px; color: rgba(255,255,255,.72);}

    /* Stats card */
    .statsGrid{
      display:grid;
      grid-template-columns: 1.05fr .95fr;
      gap:14px;
      align-items:center;
    }
    @media (max-width: 720px){ .statsGrid{grid-template-columns:1fr;} }

    .bigNumber{
      font-size: clamp(34px, 3.2vw, 54px);
      font-weight: 980;
      letter-spacing: .2px;
      margin: 6px 0 6px;
      background: linear-gradient(90deg, var(--p2), var(--v2));
      -webkit-background-clip: text; background-clip:text; color: transparent;
      filter: drop-shadow(0 10px 18px rgba(255,79,216,.18));
    }

    .statBox{
      background: rgba(0,0,0,.14);
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 18px;
      padding: 12px;
      display:grid;
      gap:10px;
    }
    .statRow{display:flex; align-items:center; justify-content:space-between; gap:10px;}
    .statRow b{font-weight:950;}
    .statRow .money{font-weight:950;}

    .progressWrap{
      margin-top:10px;
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 999px;
      overflow:hidden;
      height: 16px;
      position:relative;
    }
    .progressBar{
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, rgba(255,79,216,.95), rgba(138,92,255,.95));
      border-radius: 999px;
      transition: width .35s ease;
      position:relative;
      overflow:hidden;
    }
    .progressBar:after{
      content:"";
      position:absolute; inset:-40% -20%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
      transform: skewX(-14deg);
      animation: shimmer 2.6s ease-in-out infinite;
      opacity:.65;
    }
    @keyframes shimmer{ 0%{transform:translateX(-40%) skewX(-14deg)} 100%{transform:translateX(120%) skewX(-14deg)} }

    /* “Dùng tiền vào đâu” */
    .useBox{
      background: rgba(0,0,0,.12);
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 20px;
      padding: 14px;
    }
    .useList{display:grid; gap:10px; margin-top:10px;}
    .useItem{
      display:flex; gap:12px; align-items:flex-start;
      padding: 10px 10px;
      border-radius: 16px;
      background: rgba(255,255,255,.05);
      border: 1px solid rgba(255,255,255,.10);
      transition: transform .16s ease, border-color .16s ease, background .16s ease;
    }
    .useItem:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.06); }
    .tick{
      width:22px;height:22px;border-radius:8px;
      display:flex;align-items:center;justify-content:center;
      background: rgba(0,0,0,.22);
      border: 1px solid rgba(255,255,255,.14);
      font-weight:950;
    }
    .pct{ min-width: 54px; font-weight:950; color: rgba(255,255,255,.92); }
    .desc{ color: rgba(255,255,255,.78); line-height:1.45; font-size:14px; }

    /* Heart note */
    .heartBox{
      background: rgba(0,0,0,.12);
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 20px;
      padding: 16px;
      position:relative;
      overflow:hidden;
    }
    .heartBox:before{
      content:"";
      position:absolute; inset:-30%;
      background: radial-gradient(circle at 20% 30%, rgba(255,133,240,.22), transparent 55%),
                  radial-gradient(circle at 80% 10%, rgba(180,125,255,.20), transparent 55%);
      filter: blur(2px);
      opacity:.9;
    }
    .heartBox .content{position:relative; z-index:1; color: rgba(255,255,255,.86); line-height:1.65;}
    .quote{
      margin:0;
      padding: 12px 12px;
      border-radius: 16px;
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,255,255,.12);
      color: rgba(255,255,255,.86);
    }

    /* Sao kê list (scroll box) */
    .txHeader{display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:10px;}
    .txMeta{color: rgba(255,255,255,.72); font-size:13px;}
    .txList{
      display:grid;
      gap:10px;
      max-height: 348px; /* khoảng 3 item */
      overflow:auto;
      padding-right: 6px;
      scroll-behavior:smooth;
      overscroll-behavior: contain;
    }
    .txList::-webkit-scrollbar{ width: 10px; }
    .txList::-webkit-scrollbar-thumb{
      background: rgba(255,255,255,.14);
      border: 2px solid rgba(0,0,0,.18);
      border-radius: 999px;
    }
    .txItem{
      background: rgba(0,0,0,.16);
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 18px;
      padding: 12px 12px;
      display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
      transition: transform .14s ease, border-color .14s ease, background .14s ease;
    }
    .txItem:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.18); background: rgba(0,0,0,.18); }
    .txLeft{min-width:0;}
    .txTitle{font-weight:950; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
    .txSub{margin-top:4px; color: rgba(255,255,255,.72); font-size:13px; line-height:1.35;}
    .txRight{text-align:right;}
    .amt{
      font-weight:950;
      background: linear-gradient(90deg, var(--p2), var(--v2));
      -webkit-background-clip: text; background-clip:text; color: transparent;
      font-size:16px;
    }
    .badge{
      display:inline-flex; align-items:center; gap:6px;
      padding:6px 10px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,.14);
      background: rgba(255,255,255,.06);
      color: rgba(255,255,255,.86);
      font-weight:900;
      font-size:12px;
      margin-top:6px;
      margin-right:6px;
    }

    /* Toast popup */
    .toasts{
      position: fixed;
      right: 14px;
      bottom: calc(14px + var(--safeBottom));
      z-index: 9998;
      display:grid;
      gap:10px;
      width: min(360px, calc(100vw - 28px));
      pointer-events:none;
    }
    .toast{
      pointer-events:none;
      background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.08));
      border: 1px solid rgba(255,255,255,.18);
      border-radius: 18px;
      box-shadow: 0 20px 55px rgba(0,0,0,.35);
      padding: 12px 12px;
      overflow:hidden;
      position:relative;
      animation: toastIn .22s ease-out;
      backdrop-filter: blur(10px);
    }
    @keyframes toastIn{ from{transform:translateY(8px); opacity:0} to{transform:translateY(0); opacity:1} }
    .toast .bar{
      position:absolute; left:0; bottom:0; height:3px; width:100%;
      background: linear-gradient(90deg, var(--p), var(--v));
      opacity:.9;
      transform-origin:left;
      animation: toastBar 5.2s linear forwards;
    }
    @keyframes toastBar{ from{transform:scaleX(1)} to{transform:scaleX(0)} }
    .toast .title{font-weight:950;}
    .toast .sub{margin-top:4px; color: rgba(255,255,255,.78); font-size:13px; line-height:1.35;}
    .spark{
      display:inline-block;
      width:10px;height:10px;border-radius:50%;
      background: rgba(255,255,255,.9);
      box-shadow: 0 0 0 6px rgba(255,255,255,.10);
      margin-right:8px;
      animation: pulse 1.7s ease-in-out infinite;
      vertical-align:-1px;
    }

    /* Confetti */
    canvas#confetti{ position:fixed; inset:0; pointer-events:none; z-index:9999; }

    /* Modal (mobile first: bottom sheet, full height) */
    .modalBackdrop{
      position:fixed; inset:0;
      background: rgba(0,0,0,.55);
      z-index: 9000;
      display:none;
      justify-content:center;
      align-items:flex-end;
      padding: 0;
    }
    .modalBackdrop.open{display:flex;}
    .modal{
      width: min(900px, 100%);
      border-radius: 22px 22px 0 0;
      background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.08));
      border: 1px solid rgba(255,255,255,.18);
      box-shadow: 0 30px 80px rgba(0,0,0,.50);
      overflow:hidden;
      backdrop-filter: blur(12px);
      transform: translateY(18px);
      animation: modalIn .18s ease-out forwards;
      max-height: calc(100dvh - var(--safeTop));
      display:flex;
      flex-direction:column;
    }
    @keyframes modalIn{ to{transform: translateY(0);} }
    .modalHeader{
      padding: 12px 14px;
      display:flex; align-items:center; justify-content:space-between; gap:10px;
      border-bottom: 1px solid rgba(255,255,255,.12);
      position:sticky; top:0; z-index:2;
      background: linear-gradient(180deg, rgba(18,0,36,.22), rgba(18,0,36,.06));
      backdrop-filter: blur(10px);
    }
    .modalHeader b{font-weight:950;}
    .xbtn{
      border:0; cursor:pointer;
      border-radius: 999px;
      padding: 10px 14px;
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.14);
      color: #fff;
      font-weight: 950;
      min-width: 92px;
    }
    .modalBody{
      padding: 14px 14px calc(14px + var(--safeBottom));
      overflow:auto;
      -webkit-overflow-scrolling: touch;
    }

    .field{display:grid; gap:6px; margin-bottom:12px;}
    .label{font-size:13px; color: rgba(255,255,255,.72); font-weight:900;}
    .input, .select{
      width:100%;
      padding: 12px 12px;
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,.18);
      background: rgba(0,0,0,.22);
      color: rgba(255,255,255,.92);
      font-weight:900;
      outline:none;
    }

    /* Modal layout: desktop 2 columns, mobile 1 column */
    .modalGrid{display:grid; grid-template-columns: 1fr; gap:12px; align-items:start;}
    @media (min-width: 900px){
      .modalBackdrop{ padding: 18px; align-items:center; }
      .modal{ border-radius: 26px; max-height: min(92vh, 860px); width: min(860px, 100%); }
      .modalGrid{ grid-template-columns: 1.05fr .95fr; }
    }

    .tierWrap{display:flex; gap:10px; flex-wrap:wrap;}
    .chip{
      display:inline-flex; align-items:center; gap:8px;
      padding:10px 10px;
      border-radius: 14px;
      background: rgba(0,0,0,.16);
      border: 1px solid rgba(255,255,255,.14);
      color: rgba(255,255,255,.90);
      font-weight:950;
      font-size:13px;
      cursor:pointer;
      user-select:none;
      transition: transform .12s ease, background .12s ease, border-color .12s ease;
    }
    .chip:hover{background: rgba(0,0,0,.20)}
    .chip:active{transform: translateY(1px) scale(.99)}
    .chip.active{
      border-color: rgba(255,133,240,.60);
      box-shadow: 0 0 0 5px rgba(255,133,240,.12);
    }

    .qrBox{
      width:100%;
      aspect-ratio: 1/1;
      border-radius: 20px;
      background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,.20), transparent 60%),
        linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
      border: 1px solid rgba(255,255,255,.18);
      display:flex; align-items:center; justify-content:center;
      overflow:hidden;
      position:relative;
    }
    .qrBox:after{
      content:"";
      position:absolute; inset:-50% -30%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
      transform: skewX(-12deg);
      animation: shimmer 3.2s ease-in-out infinite;
      opacity:.5;
      pointer-events:none;
    }
    .qrBox img{width:100%; height:100%; object-fit:cover; display:block; position:relative; z-index:1;}

    .copyRow{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px;}
    .copyBtn{
      border:0; cursor:pointer;
      border-radius: 999px;
      padding: 10px 14px;
      font-weight: 950;
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.18);
      color: #fff;
      transition: transform .14s ease, background .14s ease;
    }
    .copyBtn:hover{ background: rgba(255,255,255,.10); transform: translateY(-1px); }
    .copyBtn:active{ transform: translateY(1px) scale(.99); }

    .memo{
      margin-top:10px;
      padding: 10px 12px;
      border-radius: 16px;
      background: rgba(0,0,0,.20);
      border: 1px solid rgba(255,255,255,.14);
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      font-size: 12px;
      color: rgba(255,255,255,.92);
      word-break: break-word;
    }

    /* Floating CTA near bottom (optional) */
    .floatCta{
      position: fixed;
      left: 14px;
      right: 14px;
      bottom: calc(14px + var(--safeBottom));
      z-index: 1200;
      display:none;
    }
    .floatCta .ctaBig{ padding: 13px 16px; }
    @media (max-width: 720px){
      .floatCta{display:block;}
      .wrap{padding-bottom: 140px;}
    }

    footer{margin-top:18px; padding:16px 0 30px; color: rgba(255,255,255,.68); font-size:13px;}
    footer .fgrid{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;}
    .disclaimer{
      margin-top: 12px;
      padding: 10px 12px;
      border-radius: 16px;
      background: rgba(0,0,0,.18);
      border: 1px solid rgba(255,255,255,.12);
      color: rgba(255,255,255,.72);
      line-height:1.5;
      font-size:12.5px;
    }

    @media (max-width: 640px){
      .wrap{padding:18px 14px 140px;}
      .card .in{padding:18px;}
      .txItem{flex-direction:column; align-items:flex-start;}
      .txRight{text-align:left;}
      .pill{display:none;}
    }
    @media (prefers-reduced-motion: reduce){
      .sparkles,.grain,.logo:after,.blob,.toast .bar,.ctaBig,.progressBar:after,.qrBox:after{animation:none !important}
      .card:hover,.btn:hover,.useItem:hover,.txItem:hover{transform:none !important}
    }
    /* Comments */
.cmtGrid{display:grid; gap:10px;}
.cmtList{display:grid; gap:10px; max-height:360px; overflow:auto; padding-right:6px; overscroll-behavior:contain;}
.cmtList::-webkit-scrollbar{width:10px}
.cmtList::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border:2px solid rgba(0,0,0,.18);border-radius:999px}
.cmtItem{background:rgba(0,0,0,.16);border:1px solid rgba(255,255,255,.14);border-radius:18px;padding:12px}
.cmtTop{display:flex;align-items:center;justify-content:space-between;gap:10px}
.cmtName{font-weight:950;display:flex;align-items:center;gap:10px}
.cmtAvatar{width:34px;height:34px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14)}
.cmtTime{font-size:12px;color:rgba(255,255,255,.65)}
.cmtBody{margin-top:8px;color:rgba(255,255,255,.86);line-height:1.5;white-space:pre-wrap;word-break:break-word}
.cmtForm textarea{min-height:90px;resize:vertical}
.cmtIdentity{display:flex;gap:10px;flex-wrap:wrap;align-items:center;color:rgba(255,255,255,.75);font-size:13px}

