* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --gold: #d4af37;
  --gold-light: #f5d97a;
  --gold-dark: #a8841f;
  --bg: #0a0a0a;
  --card: #14110a;
  --card-2: #1c1810;
  --border: #3a2f15;
  --text: #f5e9c8;
  --muted: #b8a577;
}
body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #1a1a1a;
  color: var(--text);
  display: flex;
  justify-content: center;
  min-height: 100vh;
}
.phone {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, #0a0805 0%, #14100a 100%);
  min-height: 100vh;
  position: relative;
  padding-bottom: 90px;
  border-left: 1px solid #222;
  border-right: 1px solid #222;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  padding: 14px 14px 10px;
  gap: 10px;
}
.logo-wrap {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a2008 0%, #0a0805 100%);
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.logo { width: 90%; height: 90%; object-fit: cover; border-radius: 50%; }
.hello { flex: 1; text-align: center; }
.hello-text { font-size: 12px; color: var(--muted); }
.user-name {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  display: flex; justify-content: center; align-items: center; gap: 5px;
}
.verified { color: var(--gold); font-size: 13px; }
.member-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--gold-light);
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 2px 10px;
}
.member-badge i { color: var(--gold); margin-left: 3px; font-size: 9px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.bell-wrap { position: relative; color: var(--gold); font-size: 18px; }
.bell-dot {
  position: absolute; top: -5px; right: -7px;
  background: #e63946; color: #fff; font-size: 9px;
  border-radius: 50%; width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.scan-icon { color: var(--gold); font-size: 18px; }
.avatar-wrap {
  position: relative; width: 38px; height: 38px;
  border-radius: 50%; border: 2px solid var(--gold);
  overflow: hidden;
}
.avatar { width: 100%; height: 100%; object-fit: cover; }
.online-dot {
  position: absolute; bottom: 0; right: 0;
  width: 9px; height: 9px; background: #2ecc71;
  border-radius: 50%; border: 2px solid var(--card);
}

/* Card base */
.card {
  margin: 10px 12px;
  background: linear-gradient(145deg, #15110a 0%, #0d0a05 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
}

/* Banner */
.banner {
  margin: 8px 12px 0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  background: #0a0805;
  /* Aspect ratio 1813 x 868 ≈ 2.09:1 */
  aspect-ratio: 1813 / 868;
}
.banner-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 1;
}
.banner-overlay {
  position: relative; padding: 10px 12px;
  display: flex; align-items: flex-start;
  justify-content: space-between;
  height: 100%;
  background: linear-gradient(90deg, rgba(5,3,2,0.75) 0%, rgba(5,3,2,0.4) 40%, transparent 70%);
}
.banner-left {
  display: flex; flex-direction: column;
  justify-content: flex-start;
  flex: 1;
  min-width: 0;
}
.banner-title {
  font-size: 13px; color: var(--gold-light);
  font-weight: 800; line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0,0,0,.8);
}
.banner-sub {
  font-size: 9px; color: var(--text);
  margin-top: 4px; letter-spacing: 0.3px;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.banner-features {
  display: flex; gap: 5px; margin-top: 6px;
}
.bf { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bf-ic {
  width: 25px; height: 25px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 9px;
  background: rgba(0,0,0,0.5);
}
.bf span { font-size: 7px; text-align: center; color: var(--text); line-height: 1.2; }
.banner-right {
  display: flex; align-items: flex-end;
  flex-shrink: 0;
  align-self: flex-end;
  padding-bottom: 2px;
}
.explore-btn {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #1a1408; border: none;
  padding: 7px 14px; border-radius: 20px;
  font-weight: 700; font-size: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  cursor: pointer; box-shadow: 0 3px 10px rgba(212,175,55,.4);
  white-space: nowrap;
}

/* Quick actions */
.quick-actions {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 4px; padding: 14px 8px;
}
.qa-item { display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.qa-ic {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 17px;
  background: radial-gradient(circle, #1a1408, #0a0805);
  margin-bottom: 5px;
}
.qa-name { font-size: 10px; color: var(--gold-light); font-weight: 600; }
.qa-sub { font-size: 9px; color: var(--muted); margin-top: 1px; }

/* Account overview */
.ao-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.ao-title { font-size: 12px; font-weight: 700; color: var(--gold-light); letter-spacing: 0.5px; }
.ao-header i { color: var(--muted); font-size: 13px; }
.ao-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ao-box {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 8px;
  background: rgba(212,175,55,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.ao-ic {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #1a1408; display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.ao-info { flex: 1; min-width: 0; }
.ao-label { font-size: 9px; color: var(--muted); }
.ao-value { font-size: 14px; font-weight: 800; color: var(--gold-light); margin: 2px 0; }
.ao-extra { font-size: 9px; color: var(--text); }
.ao-extra .fa-star { color: var(--gold); }
.ao-up { color: #2ecc71; font-size: 9px; font-weight: 700; }

/* Wallet actions */
.wallet-actions {
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 12px 4px;
}
.wa-item { display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.wa-ic { color: var(--gold); font-size: 22px; margin-bottom: 5px; }
.wa-item span { font-size: 10px; color: var(--text); }

/* Section head */
.section-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.section-title { font-size: 12px; font-weight: 700; color: var(--gold-light); letter-spacing: 0.5px; }
.see-all { font-size: 10px; color: var(--gold); cursor: pointer; }

/* Ecosystem */
.eco-list {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.eco-item {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 6px 5px;
}
.eco-item::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.1) 100%);
  border-radius: 10px;
}
.eco-name {
  position: relative; z-index: 1;
  font-size: 10px; font-weight: 700;
  color: var(--gold-light);
  line-height: 1.2;
}
.eco-desc {
  position: relative; z-index: 1;
  font-size: 7px; color: var(--muted);
  line-height: 1.3; margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* News grid */
.news-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin: 10px 12px;
}
.news-card { margin: 0; padding: 12px; }
.news-item {
  display: flex; gap: 8px; margin-bottom: 10px;
  align-items: flex-start;
}
.news-item:last-child { margin-bottom: 0; }
.thumb {
  position: relative; width: 50px; height: 50px;
  border-radius: 8px; overflow: hidden; flex-shrink: 0;
  background: #0a0805;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb i {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold); font-size: 18px;
  text-shadow: 0 1px 3px rgba(0,0,0,.7);
}
.news-text { font-size: 10px; color: var(--text); line-height: 1.35; flex: 1; }
.news-date { color: var(--muted); font-size: 9px; margin-top: 3px; }

/* Bottom nav */
.bottom-spacer { height: 30px; }
.bottom-nav {
  position: fixed; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 420px;
  background: linear-gradient(180deg, #0d0a05 0%, #050302 100%);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-around; align-items: center;
  padding: 8px 0 12px;
  z-index: 10;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 3px; cursor: pointer;
  color: var(--muted); position: relative;
}
.nav-item i { font-size: 18px; }
.nav-item span { font-size: 10px; }
.nav-item.active { color: var(--gold); }
.nav-dot {
  position: absolute; top: -2px; right: 22px;
  width: 7px; height: 7px; background: #e63946;
  border-radius: 50%;
}
.nav-center {
  flex: 0 0 auto; margin-top: -28px; position: relative;
}
.h-logo-container {
  width: 58px; height: 58px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.h-letter {
  font-family: 'Georgia', serif;
  font-size: 22px; font-weight: bold;
  background: linear-gradient(135deg, #ffd700, #ffaa00, #ffd700, #fff2a0);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: h-shimmer 3s ease infinite;
  z-index: 10;
  user-select: none;
  filter: drop-shadow(0 0 6px rgba(255,215,0,0.4));
  transition: filter 0.3s;
}
.h-logo-container:hover .h-letter {
  filter: drop-shadow(0 0 14px rgba(255,215,0,0.9));
}
@keyframes h-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.h-ring {
  position: absolute; top: 50%; left: 50%;
  border-radius: 50%;
  border: 2px solid transparent;
  transform: translate(-50%, -50%);
  transition: box-shadow 0.3s;
}
.h-ring-1 {
  width: 42px; height: 42px;
  border-top-color: #ffd700; border-right-color: #ffd700;
  animation: h-spin1 3s linear infinite;
  box-shadow: 0 0 8px rgba(255,215,0,0.3), inset 0 0 8px rgba(255,215,0,0.1);
}
.h-ring-2 {
  width: 52px; height: 52px;
  border-bottom-color: #ffaa00; border-left-color: #ffaa00;
  animation: h-spin2 4s linear infinite;
  box-shadow: 0 0 10px rgba(255,170,0,0.2);
}
.h-ring-3 {
  width: 58px; height: 58px;
  border-top-color: #fff2a0;
  animation: h-spin3 2.5s linear infinite;
  box-shadow: 0 0 6px rgba(255,242,160,0.2);
}
.h-logo-container:hover .h-ring-1 { animation-duration: 0.5s; box-shadow: 0 0 14px rgba(255,215,0,0.6), inset 0 0 12px rgba(255,215,0,0.2); }
.h-logo-container:hover .h-ring-2 { animation-duration: 0.7s; box-shadow: 0 0 16px rgba(255,170,0,0.5); }
.h-logo-container:hover .h-ring-3 { animation-duration: 0.4s; box-shadow: 0 0 12px rgba(255,242,160,0.5); }
@keyframes h-spin1 { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes h-spin2 { to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes h-spin3 { to { transform: translate(-50%, -50%) rotate(360deg); } }
