/* =====================================================================
   HID – giao dien mobile (xac thuc danh tinh Web10)
   - Toan trang BI KHOA truot ngang + doc (rubber-band)
   - Chi vung .screen duoc cuon doc ben trong
   - Anh trong /public giu nguyen ten, chi can thay file
   ===================================================================== */

:root {
  --maxw: 440px;
  --line: rgba(56, 189, 248, .40);
  --glow: rgba(56, 189, 248, .35);
  --cyan: #38bdf8;
  --purple: #9b5cf6;
  --pink: #ec4899;
  --green: #34d399;
  --gold: #f5c451;
  --txt: #eef3ff;
  --muted: #a3aed0;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  position: fixed;
  inset: 0;
  color: var(--txt);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  touch-action: none;
  background: #06060f url("public/bg-app.png") center top / cover no-repeat;
}

a { text-decoration: none; color: inherit; }
button { border: 0; font: inherit; color: inherit; cursor: pointer; background: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }

.app {
  position: relative;
  width: min(100vw, var(--maxw));
  height: 100%;
  margin: 0 auto;
}

.screen {
  position: relative;
  height: 100%;
  padding: 12px 14px calc(96px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.screen::-webkit-scrollbar { width: 0; height: 0; }

/* ======================= Header: banner full anh, avatar+ten+chuong de len tren ======================= */
.topbar { position: relative; }
.header-banner { width: 100%; height: auto; display: block; }

.hd-overlay-left {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  display: flex; align-items: center; gap: 8px;
}
.hd-avatar {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--cyan); box-shadow: 0 0 10px rgba(56,189,248,.55);
}
.profile-name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; max-width: 180px; }
.profile-name-row strong { font-size: 13px; font-weight: 800; text-shadow: 0 1px 4px rgba(0,0,0,.9); }
.verify-check { width: 14px; height: 14px; color: var(--cyan); }
.profile-id { font-size: 9px; color: var(--muted); width: 100%; margin-top: -2px; text-shadow: 0 1px 4px rgba(0,0,0,.9); }

.bell-btn {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  width: 32px; height: 32px; display: grid; place-items: center;
}
.bell-btn svg { width: 20px; height: 20px; color: #eef3ff; filter: drop-shadow(0 0 6px rgba(255,255,255,.5)); }
.bell-dot {
  position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; border-radius: 50%;
  background: #ef3b3b; box-shadow: 0 0 8px rgba(239,59,59,.8);
}

/* ===== The da xac thuc: 1 anh PNG banner duy nhat ===== */
.verify-banner { width: 100%; height: auto; margin-top: 14px; border-radius: 18px; }

/* ===== Luoi 9 icon: moi o la 1 anh PNG day du ===== */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.gtile { border-radius: 14px; overflow: hidden; }
.gtile img { width: 100%; height: auto; display: block; }

/* ===== Banner cong nghe: 1 anh PNG ===== */
.tech-banner { width: 100%; height: auto; margin-top: 16px; border-radius: 16px; }

/* ===== 4 the thong ke ===== */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.stat-tile {
  border: 1.5px solid var(--line); border-radius: 13px; padding: 10px 12px;
  background: rgba(10,10,26,.6); box-shadow: 0 0 8px var(--glow);
  display: grid; gap: 3px;
}
.stat-ic { width: 22px; height: 22px; color: var(--cyan); }
.stat-tlabel { font-size: 8px; font-weight: 700; color: var(--muted); letter-spacing: .3px; }
.stat-tile strong { font-size: 16px; font-weight: 900; }
.stat-sub { font-size: 9px; color: var(--muted); }
.stars { color: var(--gold); font-size: 13px; letter-spacing: 1px; }

/* ============== BOTTOM NAV (5 muc, nut giua to co chu) ============== */
.bottom-nav {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; justify-content: space-around; align-items: flex-end;
  background: linear-gradient(180deg, rgba(10,10,24,.92), rgba(4,4,10,.98));
  border-top: 1px solid #1c1c3a;
  padding: 8px 8px calc(12px + env(safe-area-inset-bottom));
  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: #7b84ab; font-size: 9px;
}
.nav-item svg { width: 21px; height: 21px; }
.nav-item.active { color: var(--cyan); }
.nav-item.active svg { filter: drop-shadow(0 0 6px rgba(56,189,248,.6)); }
.nav-item-badge { position: relative; display: inline-flex; }
.nav-item-badge i {
  position: absolute; top: -2px; right: -6px; width: 6px; height: 6px; border-radius: 50%;
  background: #ef3b3b; box-shadow: 0 0 6px rgba(239,59,59,.8);
}
.nav-center { position: relative; }
.nav-center-circle {
  width: 66px; height: 66px;
  margin-top: -30px;
  border-radius: 50%;
  background-image: url("public/nav-center-btn.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 0 18px rgba(56,189,248,.6);
}
