/* BYLD Wealth — Shared Components
   Phone frame, dark screen, status bar, bottom nav, scroll area, glass cards, CTA.
   ================================================================== */

/* ============================== PHONE FRAME ============================== */
body {
  margin: 0;
  padding: 0;
  background: #0A0A0A;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

.phone-frame {
  width: 390px;
  height: 844px;
  border-radius: 44px;
  border: 3px solid #374151;
  overflow: hidden;
  position: relative;
  background: #0A0A0A;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}

.phone-content {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.phone-label {
  text-align: center;
  margin-top: 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-500);
  letter-spacing: 0.03em;
}

/* ============================== DARK SCREEN ============================== */
.dark-screen {
  background: var(--black);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* Noise texture overlay */
.dark-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Standalone noise overlay class */
.noise-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 2;
}

/* ============================== STATUS BAR ============================== */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 4px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}
.status-bar .right,
.status-bar .sr,
.status-bar .icons {
  display: flex;
  gap: 6px;
  align-items: center;
}
.status-bar .time { opacity: 0.7; }
.status-bar .icons { opacity: 0.5; }
.status-bar .icons span { font-size: 11px; }

/* ============================== BOTTOM NAV ============================== */
.bottom-nav {
  height: 68px;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-shrink: 0;
  padding: 0 8px;
  position: relative;
  z-index: 5;
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--gray-500);
  cursor: pointer;
  padding: 4px 12px;
  position: relative;
  font-weight: 500;
}

.nav-tab.active {
  color: var(--gold);
  font-weight: 600;
}

.nav-tab.active::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 0 0 2px 2px;
}

.nav-tab .nav-icon,
.nav-tab .ni {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================== SCROLL AREA ============================== */
.scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px;
  position: relative;
  z-index: 3;
}
.scroll-area::-webkit-scrollbar { width: 0; }

/* ============================== GLASS CARD ============================== */
.glass-card {
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

/* ============================== GOLD CTA BUTTON ============================== */
.btn-gold-cta {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--gold-gradient);
  color: var(--black);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--gold-glow);
}
.btn-gold-cta::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* ============================== SEMANTIC COLORS ============================== */
.positive { color: #4ADE80; }
.negative { color: #F87171; }

/* ============================== CHAT SCREEN ============================== */
.chat-screen {
  background: var(--black);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* ============================== CHAT HEADER ============================== */
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.chat-header .back-arrow {
  color: var(--gold);
  font-size: 18px;
  opacity: 0.8;
}

/* ============================== FOOTER DISCLAIMER ============================== */
.footer-disc {
  text-align: center;
  padding: 8px 20px 6px;
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}

/* ============================== NOTIFICATION DOT ============================== */
.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  border: 1.5px solid var(--black);
  animation: notifPulse 2s ease-in-out infinite;
}

/* ============================== BYLD LOGO ============================== */
.byld-logo {
  display: grid;
  grid-template-columns: repeat(2, var(--logo-size, 8px));
  grid-template-rows: repeat(3, var(--logo-size, 8px));
  gap: 2px;
}
.byld-logo .dot {
  width: var(--logo-size, 8px);
  height: var(--logo-size, 8px);
  border-radius: 50%;
  background: var(--white);
}
.byld-logo .dot.empty { background: transparent; }
.byld-logo .dot.gold { background: var(--gold); }
.byld-logo--md { --logo-size: 14px; gap: 3px; }
.byld-logo--lg { --logo-size: 30px; gap: 6px; }

/* ============================== BYLD LOCKUP ============================== */
.byld-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}
.byld-lockup .byld-logo { /* existing dot grid */ }
.byld-lockup .byld-wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
}
.byld-lockup .byld-wordmark-primary {
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.byld-lockup .byld-wordmark-secondary {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ============================== BYLD LETTERMARK ============================== */
/* Stylized "B" with leaf/growth flourish — uses inline SVG */
.byld-lettermark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  --lettermark-body: var(--gray-700, #374151);
}
.byld-lettermark svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Sizes */
.byld-lettermark-sm { width: 24px; height: 24px; }
.byld-lettermark-md { width: 48px; height: 48px; }
.byld-lettermark-lg { width: 96px; height: 96px; }

/* Light body for dark backgrounds */
.byld-lettermark-light { --lettermark-body: var(--white, #FFFFFF); }

/* Tier variants — body color changes, leaf stays accent */
.byld-lettermark-edge    { --lettermark-body: var(--brand-edge, #5D4749); }
.byld-lettermark-core    { --lettermark-body: var(--brand-core, #034F93); }
.byld-lettermark-legacy  { --lettermark-body: var(--brand-legacy, #550372); }
.byld-lettermark-markets { --lettermark-body: var(--brand-markets, #566B30); }
