/* ==================================================
    CSS Custom Properties (Design Tokens)
================================================== */
:root {
  /* Colors */
  --color-primary: #e0c170;
  --color-secondary: #ccc;
  --color-tertiary: #aaa;
  --color-white: #fff;
  --color-black: #000;
  --color-dark-gray: #111;
  --color-medium-gray: #333;
  --color-light-gray: #555;
  --color-error: #d9534f;
  --color-success: #5cb85c;
  --color-warning: #f0ad4e;
  --color-info: #5bc0de;
  
  /* Background Colors */
  --bg-primary: linear-gradient(295deg, rgba(56, 56, 56, 1) 0%, rgba(32, 32, 32, 1) 47%, rgba(31, 31, 31, 1) 50%, rgb(15, 15, 15) 100%);
  --bg-overlay: rgba(13, 13, 13, 0.7);
  --bg-card: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  --bg-hover: rgba(255, 255, 255, 0.05);
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  
  /* Typography */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-xxl: 1.5rem;
  --font-size-xxxl: 2rem;
  
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
  
  /* Borders */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
  --border-radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 4px 8px rgba(255, 255, 255, 0.2);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Z-Index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
}

/* ==================================================
    Accessibility Styles
================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  z-index: 10000;
}

/* ==================================================
    Base & Global Styles
================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
}

body,
html {
  height: 100%;
  width: 100%;
  background: var(--bg-primary);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: var(--color-primary);
  line-height: var(--line-height-relaxed);
  overflow-x: hidden;
}

body::-webkit-scrollbar {
  display: none;
}

/* Enable transitions after page load to prevent initial animation */
body:not(.transitions-enabled) .navbar,
body:not(.transitions-enabled) .logo,
body:not(.transitions-enabled) .chart-preview,
body:not(.transitions-enabled) .menu,
body:not(.transitions-enabled) .main,
body:not(.transitions-enabled) .content,
body:not(.transitions-enabled) .hamburger-btn {
  transition: none !important;
}

/* ==================================================
    Sub-Navbar Styles
================================================== */
.sub-navbar {
  display: flex;
  align-items: center;
  background-color: #111;
}

.sub-navbar .tradingview-widget-container {
  flex-grow: 1;
  margin: 0 1rem 0 0;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

.auth-buttons {
  display: flex;
  gap: 0.5rem;
}

.favorites-feed-hidden {
  display: none;
}

.warning-message {
  display: none;
  color: #d9534f;
  font-weight: 500;
  margin-top: 10px;
}

.payment-section-hidden {
  display: none;
}

/* ==================================================
    Typography Enhancements
================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  letter-spacing: 0.5px;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  text-shadow: 0 0 10px rgba(224, 193, 112, 0.5);
}

h2:after {
  content: "";
  position: absolute;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, #e0c170, transparent);
  bottom: -8px;
  left: 0;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(224, 193, 112, 0.7);
}

/* ==================================================
    Menu Collapse Transitions
================================================== */
.navbar,
.logo,
.chart-preview,
.menu,
.main,
.content,
.hamburger-btn {
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* ==================================================
    Navbar
================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 170px;
  background-color: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid #e0c170;
  display: flex;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(224, 193, 112, 0.2);
}

/* Logo */
.logo {
  width: 400px;
  height: 100%;
  border-right: 1px solid #e0c170;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(20, 20, 20, 0.8);
  position: relative;
  overflow: hidden;
  transform: translateX(0);
  flex-shrink: 0; /* Prevent logo from shrinking */
}

.logo:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(224, 193, 112, 0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse-glow 4s infinite alternate;
}

@keyframes pulse-glow {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.8;
  }
}

.logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(224, 193, 112, 0.5));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover img {
  transform: scale(1.03);
  filter: drop-shadow(0 0 20px rgba(224, 193, 112, 0.8));
}

/* Logo Collapsed */
.menu-collapsed .logo {
  transform: translateX(-100%);
}

/* Charts */
.chart-preview {
  flex: 1;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  height: 100%;
  min-height: 170px; /* Maintain consistent height across all breakpoints */
  position: relative;
  transition: margin-left 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  margin-left: 0;
}

/* Ensure TradingView widget maintains height */
#tradingview-widget-container {
  height: 100%;
  min-height: 170px;
}

#tradingview-widget-container iframe {
  height: 100%;
  min-height: 170px;
}

.chart-preview:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(13, 13, 13, 0.2), transparent 10%, transparent 90%, rgba(13, 13, 13, 0.2));
  pointer-events: none;
  z-index: 1;
}

/* When menu is collapsed, chart expands to the left */
.menu-collapsed .chart-preview {
  margin-left: -400px; /* This makes the chart expand to the left by the width of the logo */
}

#tradingview-widget-container {
  width: 100%;
  height: 100%;
  display: flex;
}

#tradingview-widget-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}


/* ==================================================
    Sub Navbar
================================================== */
.sub-navbar {
  position: fixed;
  top: 170px;
  left: 0;
  right: 0;
  height: 50px;
  background-color: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid #e0c170;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 999;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3), 0 0 30px rgba(224, 193, 112, 0.1);
}

/* Auth Buttons */
.auth-buttons {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  padding-right: 1rem;
}

.auth-buttons button {
  white-space: nowrap;
}

.auth-buttons button {
  padding: 0.5rem 1.2rem;
  background-color: rgba(13, 13, 13, 0.7);
  border: 2px solid rgba(224, 193, 112, 0.3);
  border-radius: 4px;
  color: #e0c170;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-shadow: 0 0 6px rgba(224, 193, 112, 0.4);
  box-shadow: 0 0 10px rgba(224, 193, 112, 0.1);
}

.auth-buttons button:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(224, 193, 112, 0.2), transparent);
  transition: left 0.5s ease;
}

.auth-buttons button:hover {
  background-color: rgba(224, 193, 112, 0.1);
  border-color: #e0c170;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(224, 193, 112, 0.3);
}

.auth-buttons button:hover:before {
  left: 100%;
}

.auth-buttons button:active {
  transform: translateY(0);
}

/* Welcome message */
.welcome-message {
  color: #e0c170;
  font-weight: 500;
  margin-right: auto;
  opacity: 0;
  animation: slideInLeft 0.3s forwards 0.3s;
  white-space: nowrap;
  padding: 0 1rem;
  text-shadow: 0 0 10px rgba(224, 193, 112, 0.5);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* Trial message specific styling */
.welcome-message.trial-message {
  color: #e0c170;
  display: inline-flex;
  align-items: center;
}

.welcome-message.trial-message::before {
  content: "⏱️";
  margin-right: 4px;
  font-size: 0.9rem;
}

/* Subscribe button */
.subscribe-button {
  background: linear-gradient(135deg, #bfa046, #a9842a, #ffc107, #a9842a);
  background-size: 300% 300%;
  color: #000;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  margin: 0.2rem 0.75rem 0.2rem 0.75rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(224, 193, 112, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  animation: shimmerBackground 3s infinite alternate, slideInRight 0.3s forwards;
  opacity: 0;
  white-space: nowrap;
}

.subscribe-button::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shinyEffect 3s infinite;
}

.subscribe-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(224, 193, 112, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.3);
  background-position: right bottom;
}

.subscribe-button:active {
  transform: translateY(0);
  box-shadow: 0 0 10px rgba(224, 193, 112, 0.3), inset 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Remove the sub-navbar adjustments that might be causing layout issues */
/* Keep only the animations */
@keyframes slideInLeft {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes shimmerBackground {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes shinyEffect {
  0% {
    left: -200%;
  }
  100% {
    left: 200%;
  }
}

/* Responsive adjustments - simplified to avoid layout issues */
@media (max-width: 768px) {
  /* Make navbar taller for chart preview */
  .navbar {
    height: 200px;
  }

  /* Sub-navbar adjustments */
  .sub-navbar {
    padding: 0 0.3rem;
    height: 55px;
    top: 200px;
  }

  .auth-buttons {
    padding-right: 0.3rem;
  }

  .auth-buttons button {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    min-width: auto;
  }

  .welcome-message {
    font-size: 0.8rem;
    padding: 0 0.3rem;
    display: none; /* Hide on very small screens */
  }

  .subscribe-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    margin: 0 0.3rem;
  }

  /* TradingView ticker tape */
  .tradingview-widget-container {
    margin: 0 0.3rem 0 0 !important;
  }

  /* Menu adjustments for new navbar height */
  .menu {
    top: 255px; /* 200 + 55 */
  }

  .main {
    top: 255px;
  }

  .hamburger-btn {
    top: 255px;
  }

  /* Tab adjustments - ultra compact */
  .tab {
    padding: 0.4rem 0.1rem;
    font-size: 0.75rem;
  }

  .tab.active {
    padding: 0.5rem 0.15rem;
    font-size: 0.85rem;
  }

  /* Range buttons - very narrow */
  .range-buttons {
    gap: 0.1rem;
    margin-top: 0.3rem;
  }

  .range-buttons button {
    font-size: 0.65rem;
    padding: 0.5rem 0.15rem;
    min-width: 28px;
    max-width: 35px;
    height: 2rem;
  }

  /* Content adjustments - ultra narrow */
  .tab-content {
    padding: 0.8rem 0.1rem;
    min-height: 300px;
  }

  .tabs-container {
    width: 99%;
    margin: 0 0.5%;
  }

  .content {
    padding: 0.3rem;
  }

  /* Mobile scroll state CSS classes to preserve transitions */
  .mobile-scroll-hidden .sub-navbar {
    top: 0px !important;
    transition: top 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .mobile-scroll-hidden .menu {
    top: 50px !important; /* Just below sub-navbar */
    transition: top 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .mobile-scroll-hidden .main {
    top: 50px !important; /* Just below sub-navbar */
    transition: top 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .mobile-scroll-hidden .hamburger-btn {
    transform: translateY(-200px) !important; /* Move up by navbar height only, stay relative to sub-navbar */
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  /* Override menu state when in scroll-hidden state */
  body.mobile-scroll-hidden:not(.menu-collapsed) .hamburger-btn {
    transform: translateY(-200px) translateX(0) !important;
  }

  /* Content slide up animation */
  .content-slide-up .sub-navbar {
    top: 0px !important;
  }

  .content-slide-up .menu {
    top: 50px !important;
  }

  .content-slide-up .main {
    top: 50px !important;
  }

  .content-slide-up .hamburger-btn {
    transform: translateY(-200px) !important;
  }

  body.content-slide-up:not(.menu-collapsed) .hamburger-btn {
    transform: translateY(-200px) translateX(0) !important;
  }
}



/* Signing Out Animation */
.signing-out {
  position: relative;
  overflow: hidden;
}

.signing-out:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(224, 193, 112, 0.3), transparent);
  animation: sweep 1s infinite;
}

/* User Profile Dropdown */
.user-profile-dropdown {
  position: relative;
  display: inline-block;
}

.user-icon-btn {
  padding: 0.5rem;
  background-color: rgba(13, 13, 13, 0.7);
  border: 2px solid rgba(224, 193, 112, 0.3);
  border-radius: 4px;
  color: #e0c170;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-shadow: 0 0 6px rgba(224, 193, 112, 0.4);
  box-shadow: 0 0 10px rgba(224, 193, 112, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-icon-btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(224, 193, 112, 0.2), transparent);
  transition: left 0.5s ease;
}

.user-icon-btn:hover {
  background-color: rgba(224, 193, 112, 0.1);
  border-color: #e0c170;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(224, 193, 112, 0.3);
}

.user-icon-btn:hover:before {
  left: 100%;
}

.user-icon-btn:active {
  transform: translateY(0);
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: rgba(13, 13, 13, 0.9);
  min-width: 120px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  border-radius: 4px;
  border: 1px solid rgba(224, 193, 112, 0.3);
  margin-top: 5px;
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}

.dropdown-menu button {
  width: 100%;
  text-align: left;
  padding: 10px 15px;
  background: none;
  border: none;
  color: #e0c170;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.dropdown-menu button:hover {
  background-color: rgba(224, 193, 112, 0.1);
}

.dropdown-menu.show {
  display: block;
}

/* ==================================================
    Hamburger Button
================================================== */
.hamburger-btn {
  background: rgba(13, 13, 13, 0.8);
  color: #e0c170;
  border: 2px solid #e0c170;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 1.3rem;
  cursor: pointer;
  margin: 1rem 0 1rem 1rem;
  height: fit-content;
  position: fixed;
  left: 400px;
  top: 220px;
  z-index: 1000;
  box-shadow: 0 0 15px rgba(224, 193, 112, 0.3);
  transition: left 0.6s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease, color 0.3s ease, transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hamburger-btn:hover {
  background-color: rgba(224, 193, 112, 0.1);
  color: #fff;
  box-shadow: 0 0 20px rgba(224, 193, 112, 0.5);
  transform: translateY(-2px);
}

.hamburger-btn:active {
  transform: scale(0.95);
}

.menu-collapsed .hamburger-btn {
  left: 0;
}

/* ==================================================
    Side Menu
================================================== */
.menu {
  width: 400px;
  background-color: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(15px);
  border-right: 1px solid #e0c170;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  top: 220px;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3), 0 0 30px rgba(224, 193, 112, 0.1);
  transform: translateX(0);
}

.menu-collapsed .menu {
  transform: translateX(-100%);
}

.menu::-webkit-scrollbar {
  width: 6px;
}

.menu::-webkit-scrollbar-track {
  background: rgba(13, 13, 13, 0.5);
  border-radius: 10px;
}

.menu::-webkit-scrollbar-thumb {
  background-color: #e0c170;
  border-radius: 10px;
  border: 2px solid rgba(13, 13, 13, 0.5);
}

.menu::-webkit-scrollbar-thumb:hover {
  background-color: #f0d180;
}

/* Menu Title */
.menu-tabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  width: 100%;
  position: relative;
}

.menu-tabs:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224, 193, 112, 0.5), transparent);
  box-shadow: 0 0 10px rgba(224, 193, 112, 0.3);
}

.tab-title {
  flex: 1;
  text-align: center;
  font-size: rem;
  padding: 0.7rem 0.5rem;
  cursor: pointer;
  color: #aaa;
  opacity: 0.6;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
}

.tab-title:hover {
  color: #e0c170;
  opacity: 0.8;
}

.tab-title.active {
  font-size: 1.4rem;
  font-weight: bold;
  color: #e0c170;
  opacity: 1;
  text-shadow: 0 0 10px rgba(224, 193, 112, 0.5);
}

.tab-title.active:after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 25%;
  width: 50%;
  height: 3px;
  background: #e0c170;
  border-radius: 2px;
  box-shadow: 0 0 15px rgba(224, 193, 112, 0.7);
}

/* Search Bar */
.search-bar {
  padding: 1rem 0 0 0;
  width: 100%;
  max-width: 300px;
  margin-bottom: 1.8rem;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 0.4rem 1rem 0.4rem 0.8rem;
  background-color: rgba(13, 13, 13, 0.7);
  border: 1px solid rgba(224, 193, 112, 0.3);
  border-radius: 8px;
  color: #e0c170;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  box-shadow: 0 0 10px rgba(224, 193, 112, 0.1);
}

.search-bar:before {
  position: absolute;
  left: 0.8rem;
  top: 2rem;
  font-size: 0.9rem;
  opacity: 0.7;
  pointer-events: none;
}

.search-bar input:focus {
  outline: none;
  border-color: #e0c170;
  box-shadow: 0 0 15px rgba(224, 193, 112, 0.3);
  background-color: rgba(13, 13, 13, 0.9);
}

.search-bar input::placeholder {
  color: rgba(224, 193, 112, 0.6);
}

/* Menu Buttons */
.menu-buttons {
  width: 100%;
}

.menu-item {
  border: 1px solid rgba(224, 193, 112, 0.2);
  border-radius: 8px;
  margin-bottom: 0.8rem;
  padding: 1.25rem 1rem;
  text-align: left;
  width: 100%;
  transition: all 0.3s ease;
  background-color: rgba(12, 12, 12, 0.7);
  position: relative;
  overflow: hidden;
  transform-origin: left center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.menu-item:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: rgba(224, 193, 112, 0.5);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
  box-shadow: 0 0 10px rgba(224, 193, 112, 0.5);
}

.menu-item:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(224, 193, 112, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.menu-item-content {
  position: relative;
  height: 100%;
}

.menu-item-left {
  padding-right: 3.5rem; /* Space only for sentiment icons */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.menu-item-fixed-right {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  padding: 0 0.3rem;
  width: 2.5rem;
}

.menu-item h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  overflow: hidden;
  white-space: nowrap;
}

.company-name-text {
  overflow: hidden;
  flex-shrink: 1;
  min-width: 0;
}

.stock-name {
  font-size: 0.9rem;
  color: #ccc;
  white-space: nowrap;
  font-weight: 500;
  flex-shrink: 0; /* Don't shrink the stock symbol */
}

.menu-item p {
  color: #ccc;
  font-size: 0.9rem;
  margin: 0;
  padding-left: 0.5rem;
  border-left: 2px solid rgba(224, 193, 112, 0.3);
}

.menu-item:hover {
  background-color: rgba(25, 25, 25, 0.9);
  border-color: rgba(224, 193, 112, 0.5);
  transform: translateY(-2px) translateX(3px); 
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(224, 193, 112, 0.2);
  cursor: pointer;
}


.menu-item:hover:before {
  transform: scaleY(1);
}

.menu-item:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.menu-item.active {
  background-color: rgba(13, 13, 13, 0.9);
  border-color: #e0c170;
  box-shadow: 0 0 20px rgba(224, 193, 112, 0.3);
}

.menu-item.active:before {
  transform: scaleY(1);
  background-color: #e0c170;
  box-shadow: 0 0 15px rgba(224, 193, 112, 0.7);
}

/* Sentiment Icons Container */
.sentiment-icons {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  gap: 0.25rem;
}

.sentiment-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  font-size: 0.6rem;
  border: 2px solid;
  transition: all 0.3s ease;
}

/* Green: Positive Sentiment */
.sentiment-icon.green {
  color: #4caf50;
  background-color: rgba(76, 175, 80, 0.15);
  border-color: rgba(76, 175, 80, 0.5);
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

/* Red: Negative Sentiment */
.sentiment-icon.red {
  color: #f44336;
  background-color: rgba(244, 67, 54, 0.15);
  border-color: rgba(244, 67, 54, 0.5);
  box-shadow: 0 0 5px rgba(244, 67, 54, 0.3);
}

/* Yellow: Neutral Sentiment */
.sentiment-icon.yellow {
  color: #fbc02d;
  background-color: rgba(251, 192, 45, 0.15);
  border-color: rgba(251, 192, 45, 0.5);
  box-shadow: 0 0 5px rgba(251, 192, 45, 0.3);
}

/* Specific icons styling */
.sentiment-icon.news i {
  font-size: 0.55rem;
}

.sentiment-icon.technical i {
  font-size: 0.55rem;
}

.sentiment-icon.insiders i {
  font-size: 0.55rem;
}

/* Hover effects */
.sentiment-icon:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}


/* Favorite Stars */
.favorite-star {
  cursor: pointer;
  font-size: 1.2rem;
  color: #ccc;
  margin-right: 0.5rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.favorite-star.favorited {
  color: gold;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.favorite-star:hover {
  transform: scale(1.2);
}

/* ==================================================
    Layout Containers
================================================== */
.main {
  top: 220px;
  display: flex;
  position: relative;
  overflow-x: hidden;
  margin-left: 400px;
}

.menu-collapsed .main {
  margin-left: 0;
}

.main::-webkit-scrollbar {
  display: none;
}

/* ==================================================
    Content Area
================================================== */
.content {
  flex: 1;
  background-color: transparent;
  padding: 2rem;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content::before {
  content: "";
}

/* ==================================================
    Tabs Section
================================================== */
.tabs-container {
  border-radius: 12px;
  width: 75%;
  max-width: 1000px;
  margin: 0 auto;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(224, 193, 112, 0.2);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background-color: rgba(15, 15, 15, 0.4);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(224, 193, 112, 0.2);
  position: relative;
}

.tabs-container:before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(224, 193, 112, 0.03) 0%, transparent 60%);
  pointer-events: none;
  animation: rotate-glow 15s linear infinite;
}

@keyframes rotate-glow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.tabs-container:hover {
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(224, 193, 112, 0.3);
  transform: translateY(-3px);
}

.tabs {
  display: flex;
  width: 100%;
  gap: 0.25rem;
  /* background-color: rgba(18, 18, 18, 0.8); */
  position: relative;
  z-index: 1;
}

.tab {
  flex: 0.8;
  padding: 0.8rem 0.6rem;
  text-align: center;
  background-color: rgba(21, 21, 21, 0.9);
  color: #ccc;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  font-weight: 500;
  letter-spacing: 0.5px;
  font-size: 1.1rem;
}

.tab:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #e0c170, transparent);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  box-shadow: 0 0 10px rgba(224, 193, 112, 0.5);
}

.tab:hover {
  background-color: rgba(13, 13, 13, 0.7);
  color: #e0c170;
}

.tab.active {
  flex: 1.4;
  padding: 1rem 1rem;
  background-color: rgba(39, 39, 30, 0.6);
  color: #fff;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(224, 193, 112, 0.5);
  font-size: 1.4rem;
}

.tab.active:before {
  transform: translateY(0);
}

.tab-viewport {
  overflow: hidden;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}


.tab-content {
  display: none;
  width: 100%;
  min-height: 400px;
  padding: 2.5rem;
  box-sizing: border-box;
  border-radius: 0 0 12px 12px;
  background-color: rgba(39, 39, 30, 0.6);
  box-shadow: inset 0 8px 12px rgba(0, 0, 0, 0.1);
  text-align: left;
  overflow-y: auto;
  position: relative;
}

.tab-content.active {
  display: block;
}

/* Fade out transition */
.tab-content.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Golden sheen transition */
.tab-content.golden-reveal {
  position: relative;
  overflow: hidden;
}

.tab-content.golden-reveal::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(224, 193, 112, 0.2) 30%,
    rgba(224, 193, 112, 0.4) 50%,
    rgba(224, 193, 112, 0.2) 70%,
    transparent 100%
  );
  z-index: 10;
  animation: golden-sweep 1s ease-out forwards;
  pointer-events: none;
}

@keyframes golden-sweep {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}






/* ================================================================
   🔹 DYNAMIC CONTENT STYLING 🔹
================================================================ */

/* Content Header */
.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(224, 193, 112, 0.2);
}

/* Mobile: Stack content header vertically */
@media (max-width: 768px) {
  .content-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Viewed content icons - make invisible but preserve space */
.sentiment-icon.viewed {
  opacity: 0;
  pointer-events: none;
}

.content-header h2 {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 0 20px rgba(224, 193, 112, 0.4);
  letter-spacing: 0.5px;
}

.report-period {
  background: linear-gradient(135deg, rgba(224, 193, 112, 0.15), rgba(224, 193, 112, 0.05));
  color: #e0c170;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(224, 193, 112, 0.3);
  backdrop-filter: blur(10px);
}

/* Content Body */
.content-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Section Styling */
.summary-section,
.highlights-section,
.indicators-section,
.outlook-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(224, 193, 112, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.summary-section:hover,
.highlights-section:hover,
.indicators-section:hover,
.outlook-section:hover {
  border-color: rgba(224, 193, 112, 0.2);
  box-shadow: 0 8px 32px rgba(224, 193, 112, 0.1);
  transform: translateY(-2px);
}

/* Section Headers */
.summary-section h3,
.highlights-section h3,
.indicators-section h3,
.outlook-section h3 {
  color: #e0c170;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(224, 193, 112, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Text Content */
.summary-section p,
.outlook-section p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin: 0;
  font-size: 1rem;
}

/* Lists */
.highlights-list,
.indicators-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.highlights-list li,
.indicators-list li {
  background: linear-gradient(135deg, rgba(13, 13, 13, 0.6), rgba(13, 13, 13, 0.4));
  border: 1px solid rgba(224, 193, 112, 0.15);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.highlights-list li::before {
  content: "▶";
  color: #e0c170;
  margin-right: 0.75rem;
  font-size: 0.8rem;
}

.indicators-list li::before {
  content: "◆";
  color: #e0c170;
  margin-right: 0.75rem;
  font-size: 0.8rem;
}

.highlights-list li:hover,
.indicators-list li:hover {
  border-color: rgba(224, 193, 112, 0.3);
  box-shadow: 0 4px 20px rgba(224, 193, 112, 0.1);
  transform: translateX(8px);
}

.highlights-list li strong,
.indicators-list li strong {
  color: #fff;
  font-weight: 600;
}

/* Report Meta */
.report-meta {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(224, 193, 112, 0.1);
  margin-top: 1rem;
}

.report-meta small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

/* No Data State */
.no-data,
.error-state {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(224, 193, 112, 0.05), rgba(224, 193, 112, 0.02));
  border: 2px dashed rgba(224, 193, 112, 0.2);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.no-data h3,
.error-state h3 {
  color: #e0c170;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.suggestion {
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  margin-top: 0.5rem;
}

/* Legacy fallback styles */
.tab-content h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #fff;
  text-shadow: 0 0 15px rgba(224, 193, 112, 0.5);
}

.tab-content p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.tab-content ul {
  list-style-type: none;
}

.tab-content ul li {
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
  background-color: rgba(13, 13, 13, 0.7);
  border-radius: 6px;
  border-left: 3px solid #e0c170;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2), 0 0 5px rgba(224, 193, 112, 0.1);
}

.tab-content ul li:hover {
  background-color: rgba(13, 13, 13, 0.9);
  transform: translateX(5px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3), 0 0 10px rgba(224, 193, 112, 0.2);
  border-left: 3px solid #f0d180;
}

/* Enhance scrollbar for tab content */
.tab-content::-webkit-scrollbar {
  width: 6px;
}

.tab-content::-webkit-scrollbar-track {
  background: rgba(13, 13, 13, 0.5);
  border-radius: 10px;
}

.tab-content::-webkit-scrollbar-thumb {
  background-color: #e0c170;
  border-radius: 10px;
  border: 2px solid rgba(13, 13, 13, 0.5);
}

/* Range Buttons */
.range-buttons {
  margin-top: 0.8rem;
  display: none;
  justify-content: center;
  gap: clamp(0.5rem, 1.5vw, 1.2rem);
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

.tab.active .range-buttons {
  display: flex;
}

.range-buttons button {
  flex: 1 1 0;
  max-width: 120px;
  min-width: 60px;
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  background-color: rgba(13, 13, 13, 0.8);
  color: #ddd;
  border: 1px solid rgba(224, 193, 112, 0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  box-shadow: 0 0 10px rgba(224, 193, 112, 0.1);
  text-align: center;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.range-buttons button:hover {
  background-color: rgba(13, 13, 13, 0.6);
  color: white;
  border-color: #e0c170;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(224, 193, 112, 0.3);
  text-shadow: 0 0 5px rgba(224, 193, 112, 0.5);
}

.range-buttons button:active {
  transform: translateY(0);
}

.range-buttons button.active {
  background: linear-gradient(135deg, #e0c170, #c7a75a);
  color: #0a0a14;
  border-color: #e0c170;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(224, 193, 112, 0.4);
  text-shadow: none;
}

.range-buttons button.active:hover {
  background: linear-gradient(135deg, #f0d180, #d7b76a);
  color: #0a0a14;
  transform: translateY(-2px);
}

/* Content Layout Improvements */
.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(224, 193, 112, 0.2);
}

.content-header h2 {
  color: #e0c170;
  margin: 0;
}

.report-period {
  background: rgba(224, 193, 112, 0.1);
  color: #e0c170;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(224, 193, 112, 0.3);
}

.content-body {
  padding: 0 0.5rem;
}

.summary-section,
.highlights-section,
.indicators-section,
.outlook-section {
  margin-bottom: 1.5rem;
}

.summary-section h3,
.highlights-section h3,
.indicators-section h3,
.outlook-section h3 {
  color: #e0c170;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.highlights-list,
.indicators-list {
  list-style: none;
  padding: 0;
}

.highlights-list li,
.indicators-list li {
  background: rgba(224, 193, 112, 0.05);
  margin-bottom: 0.8rem;
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid rgba(224, 193, 112, 0.3);
}

.indicators-list li {
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.report-meta {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(224, 193, 112, 0.1);
  text-align: center;
}

.report-meta small {
  color: #aaa;
  font-size: 0.85rem;
}

.no-data,
.error-state {
  text-align: center;
  padding: 2rem;
  color: #ccc;
}

.suggestion,
.error-detail {
  color: #888;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}



/* ==================================================
    Subscription Popup
================================================== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.popup-overlay:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.popup-overlay.hidden {
  display: none;
}

/* Popup Container */
.popup-container {
  background: linear-gradient(145deg, rgba(13, 13, 13, 0.9), rgba(20, 20, 35, 0.9));
  color: #f4f4f4;
  border-radius: 1.5rem;
  max-width: 520px;
  width: 95%;
  max-height: 85vh;
  text-align: center;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(224, 193, 112, 0.3);
  position: relative;
  border: 1px solid rgba(224, 193, 112, 0.3);
  transform: translateY(20px);
  opacity: 0;
  animation: popupAppear 0.5s forwards 0.1s;
  box-sizing: border-box;
  overflow: hidden;
}

/* Popup Content Wrapper */
.popup-content {
  height: 100%;
  max-height: calc(85vh - 2px);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Custom Scrollbar Styling */
.popup-content::-webkit-scrollbar {
  width: 8px;
}

.popup-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #e0c170, #c7a75a);
  border-radius: 10px;
  border: 2px solid rgba(13, 13, 13, 0.9);
}

.popup-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f0d180, #d7b76a);
}

/* Firefox scrollbar styling */
.popup-content {
  scrollbar-width: thin;
  scrollbar-color: #e0c170 rgba(0, 0, 0, 0.3);
}

/* Section Styling */
.section {
  padding: 2rem;
  box-sizing: border-box;
  width: 100%;
}

.marketing-section {
  min-height: calc(85vh - 4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 3rem;
}

.payment-section {
  text-align: left;
  min-height: auto;
  padding-bottom: 2rem;
}

.popup-container:before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(224, 193, 112, 0.05) 0%, transparent 60%);
  pointer-events: none;
  animation: rotate-glow 15s linear infinite;
}

@keyframes popupAppear {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-icon {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 1.8rem;
  color: #aaa;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 1000;
}

.close-icon:hover {
  color: #fff;
  background-color: rgba(224, 193, 112, 0.1);
  text-shadow: 0 0 10px rgba(224, 193, 112, 0.5);
}

#subscription-popup img {
  width: 120px;
  margin: 0 auto 2rem auto;
  display: block;
  filter: drop-shadow(0 0 15px rgba(224, 193, 112, 0.5));
  animation: pulse 3s infinite;
  position: relative;
  z-index: 1;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(224, 193, 112, 0.3));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(224, 193, 112, 0.7));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(224, 193, 112, 0.3));
  }
}

.popup-container h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: #e0c170;
  text-shadow: 0 0 15px rgba(224, 193, 112, 0.5);
  position: relative;
  z-index: 1;
}

.popup-container p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: #ddd;
  position: relative;
  z-index: 1;
}

.popup-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 1rem 0;
  text-align: left;
  position: relative;
  z-index: 1;
}

.benefit-compact {
  padding: 0.75rem;
  background: rgba(224, 193, 112, 0.05);
  border-radius: 8px;
  border-left: 3px solid #e0c170;
}

.benefit-compact strong {
  display: block;
  color: #e0c170;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.benefit-compact span {
  color: #ccc;
  font-size: 0.8rem;
  line-height: 1.4;
}

.popup-pricing {
  margin: 1rem 0;
  padding: 0.8rem;
  background: rgba(224, 193, 112, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(224, 193, 112, 0.3);
  position: relative;
  z-index: 1;
}

.launch-offer {
  font-size: 1rem;
  font-weight: bold;
  color: #e0c170;
  margin-bottom: 0.3rem;
}

.pricing-tier {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.3rem;
}

.pricing-guarantee {
  font-size: 0.85rem;
  color: #ccc;
}

/* Section Navigation */
.section-nav {
  text-align: left;
  margin-bottom: 1rem;
}

.back-to-marketing {
  background: transparent;
  border: 1px solid rgba(224, 193, 112, 0.3);
  color: #e0c170;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.back-to-marketing:hover {
  background: rgba(224, 193, 112, 0.1);
  border-color: #e0c170;
}

/* Form Styling */
.popup-form {
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 2.5rem;
  border: none;
}

.form-group h3 {
  color: #e0c170;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  text-align: center;
}

.form-subtitle {
  font-size: 0.85rem;
  color: #ccc;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Input Group Styling for Popup */
.popup-form .input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.popup-form .input-group label {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #a99a6d;
  pointer-events: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  background: transparent;
}

.popup-form .input-group input {
  width: 100%;
  padding: 1rem 15px;
  border: 1px solid rgba(199, 174, 106, 0.3);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #e3d6b4;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.popup-form .input-group input:focus {
  outline: none;
  border-color: #c7ae6a;
  box-shadow: 0 0 0 2px rgba(199, 174, 106, 0.2);
}

.popup-form .input-group input:focus ~ label,
.popup-form .input-group input:not(:placeholder-shown) ~ label {
  top: 0;
  left: 10px;
  font-size: 0.75rem;
  padding: 0 5px;
  background-color: rgba(13, 13, 13, 0.9);
}

/* Stripe Elements for Popup */
.popup-stripe-elements .input-group label {
  top: 0;
  left: 10px;
  font-size: 0.75rem;
  padding: 0 5px;
  background-color: rgba(13, 13, 13, 0.9);
  transform: translateY(-50%);
}

#popup-card-number-element,
#popup-card-expiry-element,
#popup-card-cvc-element {
  padding: 1.5rem 1rem;
  border: 1px solid rgba(199, 174, 106, 0.3);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.7);
  transition: border-color 0.3s ease;
  min-height: 40px;
  cursor: text;
}

#popup-card-number-element:focus-within,
#popup-card-expiry-element:focus-within,
#popup-card-cvc-element:focus-within {
  border-color: #c7ae6a;
  box-shadow: 0 0 0 2px rgba(199, 174, 106, 0.2);
}

.payment-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.payment-row .input-group.half-width {
  flex: 1;
}

/* Password toggle */
.password-group {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #a99a6d;
  cursor: pointer;
  z-index: 10;
}

/* Error message */
.error-message {
  color: #df1b41;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.error-message.visible {
  opacity: 1;
}

/* Mobile responsive adjustments */
@media (max-width: 600px) {
  .popup-benefits-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .section {
    padding: 1.5rem 1rem;
  }
  
  .marketing-section {
    padding-top: 2.5rem;
  }
  
  .popup-container h2 {
    font-size: 1.8rem;
  }
  
  .popup-container p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .popup-form {
    max-width: 100%;
  }
}

.popup-actions {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-top: 0.8rem;
  margin-bottom: 0;
}

.popup-subscribe-button {
  padding: 1rem 2.5rem;
  font-size: 1.25rem;
  font-weight: bold;
  background: linear-gradient(135deg, #e0c170, #c7a75a);
  color: #0a0a14;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(224, 193, 112, 0.4);
  position: relative;
  overflow: hidden;
}

.popup-subscribe-button:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.7s ease;
}

.popup-subscribe-button:hover {
  background: linear-gradient(135deg, #f0d180, #d7b76a);
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(224, 193, 112, 0.6);
}

.popup-subscribe-button:hover:before {
  left: 100%;
}

.popup-subscribe-button:active {
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(224, 193, 112, 0.4);
}

@keyframes sweep {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* ==================================================
    Animations & Effects
================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.menu-item {
  animation: fadeIn 0.5s forwards;
}

.tab-content h2 {
  animation: slideInLeft 0.5s forwards;
}

.tab-content p,
.tab-content ul {
  animation: fadeIn 0.7s forwards;
}

/* Glow Effects */
@keyframes glow {
  0% {
    box-shadow: 0 0 10px rgba(224, 193, 112, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(224, 193, 112, 0.6);
  }
  100% {
    box-shadow: 0 0 10px rgba(224, 193, 112, 0.3);
  }
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(224, 193, 112, 0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Content Transition */
.content-transition {
  animation: contentShift 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes contentShift {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-100px);
  }
  100% {
    transform: translateX(-200px);
  }
}

/* Futuristic Scanner Effect */
.scanner-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(224, 193, 112, 0) 0%,
    rgba(224, 193, 112, 0.1) 50%,
    rgba(224, 193, 112, 0) 100%
  );
  animation: scanner 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scanner {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

/* Add scanner effect to active elements */
.menu-item.active:after,
.tab.active:after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(224, 193, 112, 0) 0%,
    rgba(224, 193, 112, 0.1) 50%,
    rgba(224, 193, 112, 0) 100%
  );
  animation: scanner 3s ease-in-out infinite;
  pointer-events: none;
}


/* ==================================================
    Responsive Design - Better Text Size & Button Spacing
================================================== */

/* Default - moderately narrow container with better text sizing */
.tabs-container {
  width: 70%;
  max-width: 900px;
}

.tab {
  padding: 0.6rem 0.4rem; /* Increased padding */
  font-size: 0.95rem; /* Increased from 0.8rem */
}

.tab.active {
  padding: 0.8rem 0.5rem; /* Increased padding */
  font-size: 1.1rem; /* Increased from 0.9rem */
}

/* Range buttons - better spacing and sizing */
.range-buttons {
  gap: 0.4rem; /* Much better spacing */
  margin-top: 0.8rem;
}

.range-buttons button {
  font-size: 0.9rem; /* Increased font size */
  padding: 0.5rem 0.8rem; /* Much better padding */
  min-width: 50px; /* Increased minimum width */
}

/* Tab content - better text sizing */
.tab-content {
  padding: 2rem; /* Increased padding */
  font-size: 1rem; /* Base font size for content */
}

.tab-content h2 {
  font-size: 1.8rem;
}

.tab-content p {
  font-size: 1rem;
  line-height: 1.6;
}

.tab-content ul li {
  font-size: 0.95rem;
  padding: 1rem;
}

/* Default overlay position */
body:not(.menu-collapsed)::after {
  content: "";
  position: fixed;
  top: 220px; /* Default: navbar (170px) + sub-navbar (50px) */
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  animation: fadeIn 0.3s forwards;
  pointer-events: none;
}

body:not(.menu-collapsed)::after
 {
        display: none !important;
    }

@media (max-width: 1200px) {

  body:not(.menu-collapsed)::after
 {
        display: none !important;
    }
  .tabs-container {
    width: 75%;
    max-width: 800px;
  }
  
  .tab {
    font-size: 0.9rem;
  }
  
  .tab.active {
    font-size: 1.05rem;
  }
  
  .range-buttons button {
    font-size: 0.85rem;
    padding: 0.45rem 0.7rem;
  }
}

@media (max-width: 992px) {

  body:not(.menu-collapsed)::after {
    display: none !important;
  }

  .logo {
    width: 300px;
  }

  .menu {
    width: 300px;
    --menu-width: 300px;
  }

  .main {
    margin-left: 300px;
  }

  .hamburger-btn {
    left: 300px;
  }

  .menu-collapsed .chart-preview {
    margin-left: -300px;
  }

  .tabs-container {
    width: 80%;
    max-width: 700px;
  }
  
  .tab {
    font-size: 0.85rem;
  }
  
  .tab.active {
    font-size: 1rem;
  }
  
  .range-buttons button {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }
  
  .tab-content {
    padding: 1.8rem;
  }
}

/* Maintain proper navbar height in mid-range screens */
@media (max-width: 768px) and (min-width: 577px) {
  .navbar {
    height: 170px; /* Keep original height for better visibility */
  }

  .sub-navbar {
    top: 170px;
  }

  .menu {
    top: 220px; /* 170 + 50 for sub-navbar */
  }
}

@media (max-width: 576px) {
  .navbar {
    height: 120px;
  }

  .logo {
    width: 90%;
  }

  .sub-navbar {
    top: 120px;
  }

  .menu {
    width: 90%; 
    top: 170px;
    z-index: 1001; 
  }

  .menu-collapsed .menu {
    transform: translateX(-100%);
  }

  /* Stack tabs vertically on mobile */
  .tabs {
    flex-direction: column;
    gap: 0.5rem;
  }

  .tab {
    flex: none;
    width: 100%;
    border-radius: 8px;
  }

  .tab.active {
    flex: none;
    width: 100%;
  }

  /* Adjust tab content for vertical layout */
  .tab-viewport {
    overflow: visible !important;
    height: auto !important;
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    width: 100% !important;
  }


  .tab-content {
    display: none !important;
    flex: none !important;
    width: 100% !important;
    margin-top: 0 !important;
    position: relative !important;
    min-height: 400px;
    padding: 2rem;
    background-color: rgba(39, 39, 30, 0.6);
    border-radius: 0 0 12px 12px;
    color: #ddd;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .tab-content.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    box-shadow: 
      inset 0 8px 12px rgba(0, 0, 0, 0.1),
      0 0 15px rgba(224, 193, 112, 0.1),
      0 0 30px rgba(224, 193, 112, 0.05) !important;
  }

  .tab-content.fade-out {
    opacity: 0 !important;
    transform: translateY(-8px) !important;
  }

  .tab-content.revealing {
    position: relative !important;
    overflow: hidden !important;
  }

  .tab-content.revealing::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(224, 193, 112, 0.2) 25%,
      rgba(224, 193, 112, 0.6) 50%,
      rgba(224, 193, 112, 0.2) 75%,
      transparent 100%
    ) !important;
    z-index: 10 !important;
    animation: golden-sweep 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    pointer-events: none !important;
  }

  body:not(.menu-collapsed) .menu {
    transform: translateX(0);
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
  }

  body:not(.menu-collapsed)::after {
    top: 170px; /* navbar (120px) + sub-navbar (50px) */
  }

  .main {
    margin-left: 0 !important;
    top: 170px;
  }

  .hamburger-btn {
    top: 170px;
    z-index: 1002;
  }

  body:not(.menu-collapsed) .hamburger-btn {
    left: 90% !important;
    transform: translateX(0);
  }

  body:not(.menu-collapsed)::after {
    content: "";
    position: fixed;
    top: 170px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s forwards;
    pointer-events: none;
  }

  .menu-collapsed .chart-preview {
    margin-left: -90% !important;
  }

  .tabs-container {
    width: 95%;
    max-width: 600px;
  }

  .tab {
    padding: 0.5rem 0.2rem; /* Better padding */
    font-size: 0.8rem; /* Increased from 0.75rem */
  }

  .tab.active {
    padding: 0.6rem 0.3rem; /* Better padding */
    font-size: 0.95rem; /* Increased from 0.85rem */
  }

  .range-buttons {
    gap: 0.3rem; /* Better spacing */
  }

  .range-buttons button {
    font-size: 0.75rem; /* Increased */
    padding: 0.4rem 0.5rem; /* Much better padding */
    min-width: 40px;
    max-width: none; /* Remove restrictive max-width */
  }

  .tab-content {
    padding: 1.5rem; /* Better padding */
    font-size: 0.9rem;
  }

  .tab-content h2 {
    font-size: 1.5rem;
  }

  .tab-content p {
    font-size: 0.9rem;
  }

  .welcome-message {
    font-size: 0.85rem;
    padding: 0 0.5rem;
  }

  .subscribe-button {
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
    height: 1.5rem;
  }
}

@media (max-width: 576px) {
  .navbar {
    height: 200px;
  }

  .logo {
    width: 80%;
  }

  .sub-navbar {
    top: 200px;
    height: 55px;
    padding: 0 0.2rem;
  }

  .auth-buttons {
    padding-right: 0.2rem;
  }

  .auth-buttons button {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    min-width: auto;
  }

  .welcome-message {
    font-size: 0.75rem;
    padding: 0 0.2rem;
    display: none;
  }

  .subscribe-button {
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
    margin: 0 0.2rem;
  }

  .tradingview-widget-container {
    margin: 0 0.2rem 0 0 !important;
  }

  .menu {
    width: 80%;
    top: 255px;
  }

  .main {
    top: 255px;
  }

  .hamburger-btn {
    top: 255px;
    font-size: 1rem;
    padding: 0.3rem 0.5rem;
  }

  body:not(.menu-collapsed) .hamburger-btn {
    left: 88% !important;
    transform: translateX(-100%);
  }

  body:not(.menu-collapsed)::after {
    top: 255px; /* navbar (200px) + sub-navbar (55px) */
  }

  .menu-collapsed .chart-preview {
    margin-left: -80% !important;
  }

  .tabs-container {
    width: 85%;
    max-width: 400px;
    margin: 0 auto;
  }

  .tab {
    padding: 0.4rem 0.15rem; /* Better padding */
    font-size: 0.75rem; /* Increased from 0.65rem */
    min-width: 25px; /* Slightly larger */
  }

  .tab.active {
    padding: 0.5rem 0.2rem; /* Better padding */
    font-size: 0.85rem; /* Increased from 0.7rem */
  }

  .range-buttons {
    gap: 0.2rem; /* Much better than 0.02rem */
    margin-top: 0.3rem;
  }

  .range-buttons button {
    font-size: 0.7rem; /* Increased from 0.6rem */
    padding: 0.5rem 0.3rem; /* Much better than 0.05rem */
    min-width: 35px; /* Increased from 22px */
    max-width: 50px; /* Increased from 28px */
    height: 2rem; /* Slightly shorter */
  }

  .tab-content {
    padding: 1.2rem 0.8rem; /* Much better than 0.05rem */
    min-height: 250px;
    font-size: 0.85rem;
  }

  .tab-content h2 {
    font-size: 1.3rem;
  }

  .tab-content p {
    font-size: 0.85rem;
  }

  .tab-content ul li {
    font-size: 0.8rem;
    padding: 0.8rem;
  }

  .content {
    padding: 0.5rem; /* Better than 0.2rem */
  }

  .popup-box {
    padding: 2rem 1rem;
  }

  .popup-box h2 {
    font-size: 1.6rem;
  }

  .popup-box p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .popup-subscribe-button {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
  }
}

/* Extra small screens - better sizing */
@media (max-width: 400px) {
  .tabs-container {
    width: 85%;
    max-width: 300px;
  }

  .tab {
    padding: 0.3rem 0.1rem; /* Better than 0.02rem */
    font-size: 0.7rem; /* Increased from 0.6rem */
    min-width: 22px;
  }

  .tab.active {
    padding: 0.4rem 0.15rem; /* Better than 0.05rem */
    font-size: 0.8rem; /* Increased from 0.65rem */
  }

  .range-buttons {
    gap: 0.15rem; /* Better spacing */
  }

  .range-buttons button {
    font-size: 0.65rem;
    padding: 0.4rem 0.2rem;
    min-width: 30px;
    max-width: 45px;
  }

  .tab-content {
    padding: 1rem 0.6rem; /* Much better padding */
    font-size: 0.8rem;
  }

  .tab-content h2 {
    font-size: 1.2rem;
  }

  .tab-content p {
    font-size: 0.8rem;
  }

  body:not(.menu-collapsed)::after {
    top: 255px; /* Same as 576px breakpoint */
  }
}

/* ==================================================
    Menu Text Wrapping Prevention & Better Responsive Sizing
================================================== */

/* Prevent text wrapping in menu items */
.menu-item .company-name-text {
  white-space: nowrap;
  overflow: hidden;
  /* No text-overflow: ellipsis for clean cutoff */
}

.menu-item .stock-name,
.menu-item p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Prevent text wrapping in tab titles */
.tab-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ensure menu items use full width */
.menu-item {
  width: 100%;
  box-sizing: border-box;
}



/* Less aggressive sizing - keep text readable */
@media (max-width: 1200px) {
  .menu-item {
    padding: 1.2rem 1rem;
  }
  
  .menu-item h4 {
    font-size: 1.05rem;
  }
  
  .menu-item .stock-name {
    font-size: 0.85rem;
  }
  
  .menu-item p {
    font-size: 0.85rem;
  }
  
  .tab-title {
    font-size: 1.1rem;
    padding: 0.65rem 0.4rem;
  }
  
  .tab-title.active {
    font-size: 1.3rem;
  }
}

@media (max-width: 992px) {
  .menu-item {
    padding: 1.1rem 0.9rem;
  }
  
  .menu-item h4 {
    font-size: 1rem;
  }
  
  .menu-item .stock-name {
    font-size: 0.8rem;
  }
  
  .menu-item p {
    font-size: 0.8rem;
  }
  
  .tab-title {
    font-size: 1rem;
    padding: 0.6rem 0.4rem;
  }
  
  .tab-title.active {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .menu-item {
    padding: 1rem 0.8rem;
    margin-bottom: 0.7rem;
  }
  
  .menu-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
  }
  
  .menu-item .stock-name {
    font-size: 0.8rem;
  }
  
  .menu-item p {
    font-size: 0.8rem;
    padding-left: 0.4rem;
  }
  
  .tab-title {
    font-size: 0.95rem;
    padding: 0.55rem 0.3rem;
  }
  
  .tab-title.active {
    font-size: 1.15rem;
  }
  
  /* Search bar adjustments */
  .search-bar input {
    padding: 0.35rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* Only get more compact on smaller mobile screens */
@media (max-width: 576px) {
  .menu-item {
    padding: 0.9rem 0.7rem;
    margin-bottom: 0.6rem;
  }
  
  .menu-item h4 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }
  
  .menu-item .stock-name {
    font-size: 0.75rem;
  }
  
  .menu-item p {
    font-size: 0.75rem;
    padding-left: 0.3rem;
  }
  
  .tab-title {
    font-size: 0.85rem;
    padding: 0.5rem 0.25rem;
  }
  
  .tab-title.active {
    font-size: 1.05rem;
  }
  
  .search-bar input {
    padding: 0.3rem 0.7rem;
    font-size: 0.85rem;
  }
  
  /* Keep sentiment icons readable */
  .sentiment-icon {
    width: 1.2rem;
    height: 1.2rem;
    font-size: 0.6rem;
  }
  
  .sentiment-icons {
    gap: 0.2rem;
  }
  
  .sentiment-icon {
    width: 1rem;
    height: 1rem;
    font-size: 0.5rem;
  }
  
  .sentiment-icon.news i,
  .sentiment-icon.technical i,
  .sentiment-icon.insiders i {
    font-size: 0.45rem;
  }
  
  .menu-item-left {
    padding-right: 2.8rem;
  }
  
  .menu-item-fixed-right {
    width: 2.3rem;
  }
  
  .favorite-star {
    font-size: 1.1rem;
    margin-right: 0.4rem;
  }
}

/* Only on very small screens make it more compact */
@media (max-width: 400px) {
  .menu-item {
    padding: 0.8rem 0.6rem;
  }
  
  .menu-item h4 {
    font-size: 0.85rem;
  }
  
  .menu-item .stock-name {
    font-size: 0.7rem;
  }
  
  .menu-item p {
    font-size: 0.7rem;
  }
  
  .tab-title {
    font-size: 0.8rem;
    padding: 0.4rem 0.2rem;
  }
  
  .tab-title.active {
    font-size: 1rem;
  }
  
  .search-bar input {
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
  }
}

/* Better space utilization - make menu items expand to fill width */
.menu-buttons {
  width: 100%;
  padding: 0;
}

/* Ensure the stock name doesn't get too squished */
.stock-name {
  flex-shrink: 0;
  min-width: fit-content;
}

/* Sentiment icons should not shrink */
.sentiment-icons {
  flex-shrink: 0;
}

/* Make sure search bar uses full width */
.search-bar {
  width: 100%;
  max-width: none;
}

.search-bar input {
  width: 100%;
  box-sizing: border-box;
}

/* Adjust menu tabs to use full width better */
.menu-tabs {
  width: 100%;
  gap: 0.5rem;
}

.tab-title {
  flex: 1;
  min-width: 0;
}