/* Ultra-Modern Fintech Dark Theme matching reference UI */
:root {
  --primary-accent: #ccff00;
  --primary-accent-glow: rgba(204, 255, 0, 0.25);
  --bg-dark: #0a0e0c;
  --bg-card: #141c17;
  --bg-card-hover: #1b2620;
  --bg-card-inner: #0f1512;
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-glow: rgba(204, 255, 0, 0.3);
  --text-main: #ffffff;
  --text-muted: #8b9a91;
  --text-dim: #5c6b62;
  --color-green: #2ecc71;
  --color-red: #ff5252;
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body.fintech-body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 20% 15%, rgba(204, 255, 0, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(204, 255, 0, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #233129;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-accent);
}

/* App Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar for desktop */
.app-sidebar {
  width: 260px;
  background: #0e1410;
  border-right: 1px solid var(--card-border);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  padding-left: 8px;
  text-decoration: none;
  color: #fff;
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-accent);
  box-shadow: 0 0 12px var(--primary-accent);
}

.brand-title {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.sidebar-link i {
  font-size: 1.15rem;
  width: 22px;
  text-align: center;
}

.sidebar-link:hover, .sidebar-link.active {
  background: rgba(204, 255, 0, 0.1);
  color: var(--primary-accent);
}

.sidebar-link.active i {
  color: var(--primary-accent);
}

.sidebar-user {
  margin-top: auto;
  padding: 14px;
  background: var(--bg-card);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--card-border);
}

.user-avatar-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2b3d33, #151e18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary-accent);
  border: 2px solid var(--primary-accent);
}

/* Main Content Area */
.app-main {
  flex: 1;
  padding: 24px 32px 80px 32px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Top Navigation Bar on Mobile */
.mobile-top-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
}

/* Dual-Screen Showcase Container */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
  align-items: start;
}

/* Mobile Screen Mockup Wrapper */
.screen-card {
  background: #0f1512;
  border: 1px solid var(--card-border);
  border-radius: 36px;
  padding: 24px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(204, 255, 0, 0.03);
  position: relative;
  overflow: hidden;
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}

/* Top Phone Bar (time, wifi, battery) */
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
  padding: 0 4px;
}

/* Screen Header */
.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.profile-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #1b2620;
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.greeting-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.user-display-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}

.header-icons {
  display: flex;
  gap: 10px;
}

.icon-btn-round {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #18221c;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.icon-btn-round:hover {
  background: #223028;
  color: var(--primary-accent);
}

/* Balance Box */
.balance-section {
  margin-bottom: 24px;
}

.balance-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.balance-title {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.eye-toggle-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
}

.eye-toggle-btn:hover {
  color: #fff;
}

.main-balance-amount {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 6px;
  color: #ffffff;
}

.balance-growth-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-accent);
}

/* 4 Action Buttons */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.action-circle-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1b2620;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fff;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.action-item:hover .action-circle-btn {
  background: var(--primary-accent);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--primary-accent-glow);
}

.action-item-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #d2ded7;
}

/* Section Header */
.section-title-sm {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

/* Top Growing Horizontal Carousel */
.growing-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.growing-card {
  background: #141c17;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.growing-card:hover {
  background: #1b2620;
  border-color: rgba(204, 255, 0, 0.2);
}

.growing-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.coin-icon-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.coin-icon-sol { background: #8e44ad; }
.coin-icon-ada { background: #0033ad; }
.coin-icon-eth { background: #627eea; }
.coin-icon-btc { background: #f7931a; }
.coin-icon-qnt { background: #d32f2f; }
.coin-icon-dot { background: #e6007a; }

.growing-card-names {
  line-height: 1.1;
  overflow: hidden;
}

.coin-full-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coin-sym-name {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.growing-price-amt {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.growing-change-tag {
  font-size: 0.75rem;
  font-weight: 700;
}

.val-green { color: var(--primary-accent); }
.val-red { color: var(--color-red); }

/* Top Movers Section */
.top-movers-section {
  margin-bottom: 20px;
}

.movers-tabs-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.movers-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.movers-tab-btn.active, .movers-tab-btn:hover {
  background: #1e2a22;
  color: #fff;
}

.movers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mover-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #141c17;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mover-row-item:hover {
  background: #1b2620;
  border-color: rgba(204, 255, 0, 0.25);
  transform: translateX(3px);
}

.mover-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mover-coin-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.mover-coin-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.mover-right {
  text-align: right;
}

.mover-price {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.mover-percent {
  font-size: 0.76rem;
  font-weight: 700;
}

/* Bottom App Navigation Bar */
.bottom-app-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #141c17;
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 8px 12px;
  margin-top: 20px;
}

.nav-pill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 18px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-pill-item i {
  font-size: 1.15rem;
}

.nav-pill-item.active, .nav-pill-item:hover {
  background: #1e2b23;
  color: var(--primary-accent);
}

.nav-pill-item.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary-accent);
}

/* ================= SCREEN 2: ASSET DETAILS & CHART ================= */
.screen2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.screen2-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.timeframe-pills-row {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 20px;
  background: #121915;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 4px;
}

.timeframe-pill {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.timeframe-pill.active, .timeframe-pill:hover {
  background: #1d2720;
  color: #fff;
}

.asset-price-box {
  margin-bottom: 16px;
}

.asset-big-quote {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #ffffff;
  margin-bottom: 4px;
}

.asset-change-quote {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-accent);
}

/* Glowing Neon Chart Box */
.chart-container-box {
  position: relative;
  width: 100%;
  height: 200px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, rgba(204, 255, 0, 0.05) 0%, transparent 80%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-grid-line {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-dasharray: 4 4;
}

.chart-data-line {
  fill: none;
  stroke: var(--primary-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(204, 255, 0, 0.7));
}

.chart-fill-area {
  fill: url(#chartGradient);
  opacity: 0.35;
}

.chart-axis-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  padding: 0 4px;
}

/* Risk Score & AI Suggestion Card */
.analytics-card-box {
  background: #141c17;
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 16px 18px;
  margin-bottom: 24px;
}

.analytics-header-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.analytics-col-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.analytics-col-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.ai-suggestion-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-accent);
}

.analytics-progress-bar-wrap {
  width: 100%;
  height: 14px;
  background: #1e2821;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  margin-bottom: 8px;
}

.analytics-progress-fill {
  height: 100%;
  width: 64%;
  background: var(--primary-accent);
  border-radius: 20px;
  box-shadow: 0 0 10px var(--primary-accent-glow);
}

.progress-labels-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* Buy & Sell Bottom Buttons */
.screen2-action-btns-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.btn-pill-buy {
  background: var(--primary-accent);
  color: #000;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 20px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px var(--primary-accent-glow);
  text-decoration: none;
  text-align: center;
  display: block;
}

.btn-pill-buy:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-pill-sell {
  background: #f04e38;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 20px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(240, 78, 56, 0.35);
  text-decoration: none;
  text-align: center;
  display: block;
}

.btn-pill-sell:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .app-sidebar {
    display: none;
  }
  .app-main {
    padding: 16px 12px 90px 12px;
  }
  .mobile-top-bar {
    display: flex;
  }
  .screens-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   Interactive Notification Hover Popover & Dropdown
   ======================================================== */
.notification-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.notification-bell-btn {
  position: relative;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notification-bell-btn:hover {
  border-color: var(--primary-accent);
  color: var(--primary-accent);
  box-shadow: 0 0 12px var(--primary-accent-glow);
}

.notif-badge-pill {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff5252;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  border-radius: 10px;
  padding: 1px 5px;
  min-width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(255, 82, 82, 0.4);
  line-height: 1;
}

.notif-pulse-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  background: var(--primary-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-accent);
  animation: notifPulse 2s infinite;
}

@keyframes notifPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(204, 255, 0, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 7px rgba(204, 255, 0, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(204, 255, 0, 0); }
}

/* Hover Menu Container */
.notification-hover-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: -6px;
  width: 360px;
  max-width: calc(100vw - 28px);
  background: #141c17;
  border: 1px solid rgba(204, 255, 0, 0.25);
  border-radius: 20px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(204, 255, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Invisible bridge so mouse hover doesn't break when moving cursor */
.notification-hover-menu::after {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  width: 100%;
  height: 14px;
}

/* Arrow pointer */
.notification-hover-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 18px;
  width: 12px;
  height: 12px;
  background: #141c17;
  border-top: 1px solid rgba(204, 255, 0, 0.25);
  border-left: 1px solid rgba(204, 255, 0, 0.25);
  transform: rotate(45deg);
  z-index: 1;
}

/* Show on Hover or when active-menu class is toggled */
.notification-dropdown-wrapper:hover .notification-hover-menu,
.notification-dropdown-wrapper:focus-within .notification-hover-menu,
.notification-dropdown-wrapper.active-menu .notification-hover-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.notif-menu-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
}

.notif-menu-header h5 {
  font-weight: 800;
  font-size: 0.92rem;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-mark-read-link {
  font-size: 0.75rem;
  color: var(--primary-accent);
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.2s;
}

.notif-mark-read-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.notif-menu-body {
  max-height: 320px;
  overflow-y: auto;
}

.notif-menu-item {
  display: flex;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: inherit;
  transition: background 0.18s ease;
  position: relative;
  align-items: flex-start;
}

.notif-menu-item:hover {
  background: rgba(204, 255, 0, 0.07);
}

.notif-menu-item.unread {
  background: rgba(204, 255, 0, 0.025);
}

.notif-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.notif-item-content {
  flex: 1;
  min-width: 0;
}

.notif-item-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-item-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.notif-item-time {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.notif-unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-accent);
  box-shadow: 0 0 6px var(--primary-accent);
  flex-shrink: 0;
  margin-top: 6px;
}

.notif-menu-footer {
  padding: 12px 18px;
  text-align: center;
  border-top: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.02);
}

.notif-view-all-btn {
  text-decoration: none;
  color: var(--primary-accent);
  font-weight: 800;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease;
}

.notif-view-all-btn:hover {
  transform: translateX(3px);
  color: #fff;
}

