* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, sans-serif;
}

body {
  background: #eef1f7;
  display: flex;
  justify-content: center;
  padding: 24px;
}

/*chu*/
#greetingText {
  margin: 12px 8px 18px;

  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;

  letter-spacing: -0.8px;

  color: #17181c;

  font-family:
    Inter,
    SF Pro Display,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

@media (max-width: 480px) {
  #greetingText {
    font-size: 28px;
    margin: 10px 6px 16px;
  }
}

.app {
  width: 100%;
  max-width: 430px;

  background: #f4f5fb;

  padding: 0 16px 24px;

  border-radius: 34px;

  border: 1px solid #dfe3ec;

  box-shadow:
    0 18px 50px rgba(25, 30, 45, 0.1),
    0 4px 14px rgba(25, 30, 45, 0.06);

  overflow: hidden;

  min-height: 100vh;
}
/* Header */

.header {
  height: 76px;

  padding: 0 16px;

  gap: 14px;

  background: #fff;

  display: flex;
  align-items: center;

  margin-left: -16px;
  margin-right: -16px;

  border-bottom-left-radius: 26px;
  border-bottom-right-radius: 26px;

  box-shadow: 0 8px 22px rgba(20, 24, 40, 0.06);

  position: relative;
  z-index: 20;
}

/* Logo */

.logo {
  width: 42px;
  height: 42px;
}

.logo:hover {
  transform: scale(1.04);
}

/* Switch */

.switch {
  flex: 1;

  max-width: 260px;
  height: 48px;

  margin: 0 auto;

  background: linear-gradient(180deg, #f7f8fc 0%, #f2f4f8 100%);

  border-radius: 999px;

  display: flex;

  padding: 4px;

  border: 1px solid #eceef3;

  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.switch button {
  flex: 1;

  border: none;
  background: transparent;

  border-radius: 999px;

  font-size: 16px;
  font-weight: 500;

  color: #666;

  cursor: pointer;

  transition: all 0.25s ease;
}

.switch button:hover {
  color: #222;
}

.switch .active {
  background: #fff;

  color: #111;

  box-shadow:
    0 6px 16px rgba(25, 30, 45, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* Avatar */

.avatar {
  width: 48px;
  height: 48px;

  flex-shrink: 0;

  border-radius: 50%;

  background: #fff;

  border: 1px solid #e7e7e7;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 6px 16px rgba(18, 24, 40, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);

  transition: all 0.25s ease;
}

.avatar:hover {
  transform: translateY(-2px);

  box-shadow:
    0 12px 24px rgba(18, 24, 40, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.avatar svg {
  width: 26px;
  height: 26px;
}

h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 24px;
}

/* ===== Banner Slider ===== */

.banner-slider {
  width: 100%;
  height: 120px;
  overflow: hidden;
  position: relative;

  border-radius: 24px;

  background: #f8f7fc;

  border: 1px solid #eceaf3;

  box-shadow:
    0 2px 6px rgba(15, 23, 42, 0.04),
    0 10px 24px rgba(15, 23, 42, 0.08),
    0 20px 40px rgba(15, 23, 42, 0.05);

  margin: 14px 0 18px;
}

/* Hiệu ứng sáng nhẹ phía trên */

.banner-slider::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  height: 1px;

  background: rgba(255, 255, 255, 0.9);

  border-radius: 24px 24px 0 0;

  pointer-events: none;
}

.slides {
  display: flex;
  width: 100%;
  height: 100%;

  transition: transform 0.7s ease-in-out;

  will-change: transform;
}

.slide {
  flex: 0 0 100%;

  height: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 12px 16px;

  box-sizing: border-box;

  overflow: hidden;
}

.slide img {
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  display: block;

  user-select: none;
  pointer-events: none;
}

/* Hover chỉ hoạt động trên PC */

@media (hover: hover) {
  .banner-slider:hover {
    transform: translateY(-2px);

    box-shadow:
      0 4px 10px rgba(15, 23, 42, 0.05),
      0 16px 36px rgba(15, 23, 42, 0.1),
      0 28px 60px rgba(15, 23, 42, 0.08);

    transition: all 0.25s ease;
  }
}

/* ===== Mobile ===== */

@media (max-width: 768px) {
  .banner-slider {
    height: 112px;

    border-radius: 22px;

    margin: 12px 0 16px;

    box-shadow:
      0 2px 8px rgba(15, 23, 42, 0.05),
      0 10px 28px rgba(15, 23, 42, 0.08);
  }

  .slide {
    padding: 10px 14px;
  }
}

/* ===== Điện thoại nhỏ ===== */

@media (max-width: 480px) {
  .banner-slider {
    height: 105px;
    border-radius: 20px;
  }

  .slide {
    padding: 8px 12px;
  }
}

/* ===== Two Cards ===== */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.card {
  position: relative;
  height: 180px;
  overflow: hidden;

  border-radius: 22px;

  background: #fff;

  border: 1px solid rgba(0, 0, 0, 0.05);

  box-shadow:
    0 4px 10px rgba(15, 23, 42, 0.05),
    0 10px 24px rgba(15, 23, 42, 0.08);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* Hover chỉ trên PC */

@media (hover: hover) {
  .card:hover {
    transform: translateY(-3px);

    box-shadow:
      0 8px 20px rgba(15, 23, 42, 0.08),
      0 18px 40px rgba(15, 23, 42, 0.12);
  }
}

/* Ảnh */

.card-img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  display: block;

  z-index: 1;

  user-select: none;
  pointer-events: none;
}

/* Gradient nhẹ giúp chữ nổi hơn */

.card::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.06) 0%,
    rgba(0, 0, 0, 0) 35%,
    rgba(0, 0, 0, 0.12) 100%
  );

  z-index: 2;
}

/* Nội dung */

.card-content {
  position: absolute;

  top: 16px;
  left: 16px;
  right: 16px;

  z-index: 3;
}

.title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;

  color: #1b1b1f;
}

.subtitle {
  margin-top: 4px;

  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;

  color: #8a8f9b;
}

/* ===== Tablet ===== */

@media (max-width: 768px) {
  .grid {
    gap: 12px;
  }

  .card {
    height: 165px;
    border-radius: 20px;
  }

  .card-content {
    top: 14px;
    left: 14px;
    right: 14px;
  }

  .title {
    font-size: 18px;
  }

  .subtitle {
    font-size: 13px;
  }
}

/* ===== Mobile ===== */

@media (max-width: 480px) {
  .grid {
    gap: 10px;
  }

  .card {
    height: 150px;
    border-radius: 18px;
  }

  .card-content {
    top: 12px;
    left: 12px;
    right: 12px;
  }

  .title {
    font-size: 16px;
  }

  .subtitle {
    margin-top: 3px;
    font-size: 12px;
  }
}

/* =========================
   Mine Card
========================= */

.mine-card {
  position: relative;

  width: 100%;
  height: 170px;

  overflow: hidden;

  border-radius: 24px;

  background: #fff;

  margin-top: 18px;

  border: 1px solid #ececf3;

  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.05),
    0 12px 28px rgba(15, 23, 42, 0.08);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* Hover chỉ trên PC */

@media (hover: hover) {
  .mine-card:hover {
    transform: translateY(-3px);

    box-shadow:
      0 8px 18px rgba(15, 23, 42, 0.08),
      0 20px 42px rgba(15, 23, 42, 0.12);
  }
}

/* Viền sáng */

.mine-card::before {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: inherit;

  border: 1px solid rgba(255, 255, 255, 0.75);

  pointer-events: none;

  z-index: 3;
}

/* Background */

.mine-bg {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  display: block;

  z-index: 1;

  user-select: none;
  pointer-events: none;
}

/* Content */

.mine-content {
  position: absolute;

  left: 20px;
  top: 20px;

  z-index: 2;

  max-width: 55%;
}

.mine-content h2 {
  margin: 0;

  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;

  color: #16181d;

  letter-spacing: -0.2px;
}

/* =========================
   Button
========================= */

.mine-content button {
  position: relative;

  overflow: hidden;

  margin-top: 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 46px;

  padding: 0 22px;

  border: none;
  border-radius: 999px;

  cursor: pointer;

  font-size: 16px;
  font-weight: 700;

  color: #2b2200;

  background: linear-gradient(180deg, #ffe98d 0%, #ffd44b 45%, #efbe2d 100%);

  box-shadow:
    0 6px 16px rgba(245, 197, 43, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);

  transition: 0.25s;
}

/* Shine */

.mine-content button::before {
  content: "";

  position: absolute;

  top: 0;
  left: -70%;

  width: 40%;
  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.75),
    transparent
  );

  transform: skewX(-25deg);

  animation: shine 3s infinite;
}

.mine-content button:hover {
  transform: translateY(-2px);

  box-shadow:
    0 10px 22px rgba(245, 197, 43, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.mine-content button:active {
  transform: scale(0.98);
}

.mine-content button span {
  font-size: 17px;
  transition: 0.25s;
}

.mine-content button:hover span {
  transform: translateX(2px);
}

/* Shine */

@keyframes shine {
  0% {
    left: -70%;
  }

  35% {
    left: 140%;
  }

  100% {
    left: 140%;
  }
}

/* =========================
   Tablet
========================= */

@media (max-width: 768px) {
  .mine-card {
    height: 160px;
    border-radius: 22px;
  }

  .mine-content {
    left: 18px;
    top: 18px;
    max-width: 58%;
  }

  .mine-content h2 {
    font-size: 18px;
  }

  .mine-content button {
    min-height: 44px;
    padding: 0 20px;
    font-size: 15px;
  }
}

/* =========================
   Mobile
========================= */

@media (max-width: 480px) {
  .mine-card {
    height: 150px;
    border-radius: 20px;
  }

  .mine-content {
    left: 16px;
    top: 16px;
    max-width: 60%;
  }

  .mine-content h2 {
    font-size: 17px;
    line-height: 1.25;
  }

  .mine-content button {
    margin-top: 14px;
    min-height: 40px;
    padding: 0 18px;
    font-size: 14px;
  }

  .mine-content button span {
    font-size: 15px;
  }
}

/* =========================
   Verified Card
========================= */

.verified-card {
  position: relative;

  width: 100%;
  height: 170px;

  overflow: hidden;

  margin-top: 18px;

  border-radius: 24px;

  background: #fff;

  border: 1px solid #f2e2a4;

  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.05),
    0 12px 28px rgba(15, 23, 42, 0.08);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* Hover chỉ trên PC */

@media (hover: hover) {
  .verified-card:hover {
    transform: translateY(-3px);

    box-shadow:
      0 8px 18px rgba(15, 23, 42, 0.08),
      0 20px 42px rgba(15, 23, 42, 0.12);
  }
}

/* Viền sáng */

.verified-card::before {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: inherit;

  border: 1px solid rgba(255, 255, 255, 0.75);

  pointer-events: none;

  z-index: 3;
}

/* Background */

.verified-bg {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  display: block;

  z-index: 1;

  user-select: none;
  pointer-events: none;
}

/* Nội dung */

.verified-content {
  position: absolute;

  top: 20px;
  left: 20px;
  right: 20px;

  z-index: 2;

  max-width: 60%;
}

.verified-content h2 {
  margin: 0;

  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;

  color: #3a3a3a;

  letter-spacing: -0.2px;
}

/* =========================
   Tablet
========================= */

@media (max-width: 768px) {
  .verified-card {
    height: 160px;
    border-radius: 22px;
  }

  .verified-content {
    top: 18px;
    left: 18px;
    right: 18px;
    max-width: 62%;
  }

  .verified-content h2 {
    font-size: 20px;
  }
}

/* =========================
   Mobile
========================= */

@media (max-width: 480px) {
  .verified-card {
    height: 150px;
    border-radius: 20px;
    margin-top: 16px;
  }

  .verified-content {
    top: 16px;
    left: 16px;
    right: 16px;
    max-width: 65%;
  }

  .verified-content h2 {
    font-size: 18px;
    line-height: 1.25;
  }
}
/* ===============================
   Bottom Navigation
=============================== */

.bottom-nav {
  position: fixed;

  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));

  transform: translateX(-50%);

  width: min(360px, calc(100% - 24px));
  height: 68px;

  padding: 6px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.32);

  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);

  border: 1px solid rgba(255, 255, 255, 0.65);

  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);

  overflow: hidden;

  z-index: 9999;
}

/* Glass Highlight */

.bottom-nav::before {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: inherit;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.05)
  );

  pointer-events: none;
}

/* ===============================
   Button
=============================== */

.nav-item {
  position: relative;
  z-index: 2;

  width: 54px;
  height: 54px;

  display: flex;
  justify-content: center;
  align-items: center;

  border: none;
  outline: none;

  border-radius: 50%;

  cursor: pointer;
  padding: 0;

  background: linear-gradient(180deg, #f7f7f6 0%, #f3f3f2 100%);

  border: 1px solid rgba(255, 255, 255, 0.75);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 10px rgba(0, 0, 0, 0.05);

  transition: 0.25s;
}

/* Hover PC */

@media (hover: hover) {
  .nav-item:hover {
    transform: translateY(-2px);

    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 8px 18px rgba(0, 0, 0, 0.08);
  }
}

/* Active */

.nav-item.active {
  background: linear-gradient(180deg, #1b1d24 0%, #101218 100%);

  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.22);
}

/* Earth */

.nav-item.earth {
  background: linear-gradient(180deg, #f7f7f6 0%, #f3f3f2 100%);
}

/* ===============================
   ICON
=============================== */

.nav-item img {
  display: block;
  object-fit: contain;
  transition: 0.25s;
}

.nav-item.earth img {
  width: 28px;
  height: 28px;
}

.nav-item:nth-child(3) img,
.nav-item:nth-child(4) img {
  width: 22px;
  height: 22px;
}

.material-symbols-rounded {
  font-size: 24px;
  line-height: 1;
  color: #1b1b1f;

  transition: 0.25s;
  user-select: none;
}

.nav-item.active .material-symbols-rounded {
  color: #fff !important;

  font-variation-settings:
    "FILL" 1,
    "wght" 500,
    "GRAD" 0,
    "opsz" 24;
}

.nav-item:hover img,
.nav-item:hover .material-symbols-rounded {
  transform: scale(1.08);
}

.nav-item:active {
  transform: scale(0.96);
}

/* ===============================
   Tablet
=============================== */

@media (max-width: 768px) {
  .bottom-nav {
    height: 64px;
    width: calc(100% - 20px);
    bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .nav-item {
    width: 50px;
    height: 50px;
  }

  .nav-item.earth img {
    width: 26px;
    height: 26px;
  }

  .nav-item:nth-child(3) img,
  .nav-item:nth-child(4) img {
    width: 21px;
    height: 21px;
  }

  .material-symbols-rounded {
    font-size: 22px;
  }
}

/* ===============================
   Small Mobile
=============================== */

@media (max-width: 480px) {
  .bottom-nav {
    height: 60px;
    width: calc(100% - 16px);
    padding: 5px;
  }

  .nav-item {
    width: 46px;
    height: 46px;
  }

  .nav-item.earth img {
    width: 24px;
    height: 24px;
  }

  .nav-item:nth-child(3) img,
  .nav-item:nth-child(4) img {
    width: 20px;
    height: 20px;
  }

  .material-symbols-rounded {
    font-size: 20px;
  }
}
