/* ============ 24H PAWN - UI ============ */
:root {
  --bg: #0a0506;
  --bg-2: #150a0c;
  --card: #1a0c0f;
  --card-2: #20070a;
  --red: #ff2d3f;
  --red-soft: #ff5a4d;
  --red-deep: #c4121f;
  --border: #3a1418;
  --text: #ffffff;
  --muted: #b98a8f;
  --muted-2: #8a6065;
  --radius: 14px;

  /* Tỉ lệ ảnh banner chính theo ảnh bạn đăng: 753 x 474 ≈ 1.589 */
  --banner-ratio: 753 / 474;
  --max-w: 430px;
}

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

/* Khóa cuộn cả trang: chỉ .app được cuộn dọc bên trong, không trượt ngang */
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;            /* không cho kéo/bounce cả giao diện */
  overscroll-behavior: none;
  background: #000;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.app {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  overflow-y: auto;            /* nội dung cuộn trong khung app */
  overflow-x: hidden;          /* chặn trượt ngang */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(120% 60% at 80% 0%, rgba(255,45,63,.18), transparent 60%),
    radial-gradient(100% 50% at 0% 30%, rgba(255,45,63,.08), transparent 55%),
    var(--bg);
  position: relative;
  padding-bottom: 86px;
}

/* ===== HEADER ===== */
.app-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 14px;
}
.user-info { display: flex; align-items: center; gap: 10px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--red); }
.greet { display: flex; flex-direction: column; line-height: 1.25; }
.greet .hello { font-size: 12px; color: var(--muted); }
.greet .name { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.vip { font-style: normal; font-size: 10px; font-weight: 700; background: linear-gradient(135deg,var(--red),var(--red-deep));
  padding: 2px 6px; border-radius: 6px; }

.wallet {
  margin-left: auto;
  height: 42px;                         /* bằng chiều cao ô tròn */
  display: flex; align-items: center; gap: 6px;
  background: transparent;
  border: 1.5px solid var(--border);    /* viền mờ như các thành phần khác */
  border-radius: 12px; padding: 0 10px;
  transition: border-color .2s;
}
.wallet:hover { border-color: var(--red); }   /* hover mới ra đỏ */
.wallet-ic { width: 20px; height: 20px; }
.wallet-info { display: flex; flex-direction: column; line-height: 1.2; }
.wallet-label { font-size: 9px; color: var(--muted); }
.wallet-amount { font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.eye { font-style: normal; font-size: 10px; opacity: .8; }
.wallet-arrow { background: none; border: none; color: var(--text); font-size: 16px; cursor: pointer; padding: 0; }

.menu-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: transparent; border: 1.5px solid var(--border);
  color: #fff; font-size: 18px; cursor: pointer;
  transition: border-color .2s;
}
.menu-btn:hover { border-color: var(--red); }   /* hover mới ra đỏ */

/* ===== CONTENT ===== */
.content {
  width: 100%;
  padding: 0 14px;
  display: flex; flex-direction: column; gap: 18px;
}

/* ===== BANNER — hiển thị TOÀN BỘ ảnh, rộng cố định, cao tự theo tỉ lệ ảnh PNG ===== */
.banner {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
}
/* width:100% + height:auto => ảnh hiện đủ 100% theo đúng tỉ lệ gốc, không cắt */
.banner-img { display: block; width: 100%; height: auto; }

/* Nút CTA — 1 hàng, nhỏ gọn, nền trong suốt, viền đỏ, hover sáng lên */
.btn-cta {
  position: absolute;
  left: 50%; bottom: 0.8%;             /* sát mép dưới (10% khoảng cách cũ) */
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 5.5px;
  white-space: nowrap;                 /* luôn 1 hàng */
  background: transparent;             /* nền trong suốt */
  color: #fff;
  font-family: "Segoe UI", Roboto, system-ui, sans-serif;
  font-weight: 700; font-size: 9.6px; letter-spacing: 1px;
  text-transform: uppercase;
  border: 1.5px solid var(--red);      /* viền đỏ */
  border-radius: 18px;
  padding: 5.5px 13px; cursor: pointer;
  backdrop-filter: blur(2px);
  transition: background .25s, box-shadow .25s, color .2s, transform .15s;
}
.btn-cta .chevron {
  display: inline-grid; place-items: center;
  width: 13px; height: 13px; border-radius: 50%;
  border: 1px solid var(--red);
  font-size: 9px; transition: background .25s, color .2s;
}
.btn-cta:hover {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  box-shadow: 0 4px 18px rgba(255,45,63,.6);
  color: #fff;
}
.btn-cta:hover .chevron { background: rgba(255,255,255,.25); border-color: transparent; }
.btn-cta:active { transform: translateX(-50%) scale(.96); }

.btn-banner-next {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,.4); border: 1px solid var(--border);
  color: #fff; cursor: pointer;
}

.banner-web3 { margin-bottom: 6px; }

/* ===== BLOCK HEAD ===== */
.block { display: flex; flex-direction: column; gap: 12px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; }
.block-head h2 { font-size: 14px; font-weight: 700; letter-spacing: .5px; }
.see-all { font-size: 12px; color: var(--muted); text-decoration: none; }

/* chống tràn ngang: cho phép item của grid co lại nhỏ hơn nội dung */
.quick-actions > *, .categories > *, .two-cards > * { min-width: 0; }
.asset-value { overflow-wrap: anywhere; }

/* ===== QUICK ACTIONS ===== */
.quick-actions { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.qa-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: linear-gradient(160deg, var(--card), var(--card-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 6px; cursor: pointer; color: var(--text);
}
.qa-item img { width: 30px; height: 30px; }
.qa-item span { font-size: 12px; }
.qa-item:active { transform: scale(.96); }

/* ===== TWO CARDS (nền là ảnh PNG, thu nhỏ lại) ===== */
.two-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px; display: flex; flex-direction: column; gap: 5px;
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
/* nền của 2 phần này = 2 ảnh PNG (thay ảnh trong public/ để đổi) */
.asset-card  { background-image: url("../public/card-asset-bg.png"); }
.status-card { background-image: url("../public/card-status-bg.png"); }

.card-top { display: flex; align-items: center; gap: 5px; justify-content: space-between; }
.card-title { font-size: 10px; font-weight: 700; letter-spacing: .3px; }
.badge { font-style: normal; font-size: 8px; background: rgba(255,45,63,.2); color: var(--red-soft);
  border: 1px solid var(--border); border-radius: 10px; padding: 1px 5px; white-space: nowrap; }
.muted { font-size: 9px; color: var(--muted); }
.asset-value { font-size: 17px; font-weight: 800; color: var(--red-soft); }
.btn-outline {
  align-self: flex-start; margin-top: 3px;
  background: rgba(255,45,63,.08); border: 1px solid var(--border);
  color: #fff; font-size: 10px; border-radius: 8px; padding: 5px 10px; cursor: pointer;
}

.status-card .status-row { display: flex; justify-content: space-between; align-items: center; font-size: 10px; }
.status-card .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 4px; }
.status-active { font-style: normal; color: #36d57a; font-size: 9px; }
.status-list { list-style: none; display: flex; flex-direction: column; gap: 5px; margin-top: 2px; }
.status-list li { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); }
.status-list b { color: #fff; font-weight: 600; }

/* ===== CATEGORIES ===== */
.categories { display: grid; grid-template-columns: repeat(6,1fr); gap: 8px; }
.cat-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer; color: var(--text);
}
.cat-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--border);
}
.cat-item span { font-size: 10px; text-align: center; }
.cat-item:active { transform: scale(.95); }

.dots { display: flex; justify-content: center; gap: 6px; }
.dot-pg { width: 18px; height: 4px; border-radius: 4px; background: var(--border); }
.dot-pg.active { background: var(--red); }

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 100%; max-width: var(--max-w);
  display: flex; justify-content: space-around; align-items: flex-end;
  background: linear-gradient(180deg, rgba(20,8,10,.92), rgba(10,5,6,.98));
  border-top: 1px solid var(--border);
  padding: 8px 8px 12px;
  backdrop-filter: blur(8px);
}
.nav-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer;
  color: var(--muted-2); font-size: 11px;
}
.nav-item img { width: 22px; height: 22px; filter: grayscale(1) brightness(1.5) opacity(.6); }
.nav-item.active { color: var(--red); }
.nav-item.active img { filter: drop-shadow(0 0 6px rgba(255,45,63,.6)); }
.nav-center-circle img { filter: none !important; }
.nav-center { position: relative; }
/* Nút = 1 vòng tròn, nền là ảnh PNG */
.nav-center-circle {
  width: 60px; height: 60px;
  margin-top: -24px;
  border-radius: 50%;
  background-image: url("../public/nav-pawn-btn.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
