/*C:\Users\seevd\Documents\CIM\CIM_Website\src\app\static\css\index.css*/

* {
  box-sizing: border-box;
}

body {
  background: #ffffff;
  font-family: Inter, "Inter Placeholder", sans-serif;
  margin: 0;
  padding: 0;
  color: #000000;
  line-height: 1.6;
  min-height: 100vh;
}

.homepage-container {
  width: 100%;
  min-height: 100vh;
  background: #ffffff;
}

/* Navigation */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: rgba(0, 0, 0, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
}

/* Center nav-menu absolutely in the nav bar */
.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Ensure .logo and .auth-buttons stay at the edges */
.logo {
  z-index: 2;
}
.auth-buttons {
  display: flex;
  gap: 15px;
  z-index: 2;
}

/* When auth-buttons are missing, nav-menu remains centered */
.top-nav:not(:has(.auth-buttons)) .nav-menu {
  left: 50%;
  transform: translateX(-50%);
}

/* Responsive: stack nav-menu below logo on mobile */


/* Additional breakpoint for medium mobile screens */
@media (max-width: 750px) and (min-width: 600px) {
  .top-nav {
    padding: 12px 15px;
    gap: 6px;
  }
  .nav-menu {
    gap: 15px;
  }
  .nav-link {
    font-size: 0.9rem;
    padding: 8px 0;
  }
  .auth-buttons .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    min-width: 100px;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .top-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 6px;
    gap: 10px;
    position: fixed;
    width: 100vw;
    left: 0;
    right: 0;
    min-width: 0;
    z-index: 1000;
  }
  .logo {
    display: flex;
    order: 1; /* Ensure logo is first */
    justify-content: center;
    width: 100%;
  }
  .nav-menu {
    display: flex !important; /* The !important overrides our previous fix */
    flex-direction: row;
    justify-content: center;
    gap: 25px; 
    order: 2 !important;
    width: 100%;

    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 0 auto !important;
  }
  .nav-link {
    font-size: 1rem;
    padding: 5px 0;
    width: auto;

  }
  .auth-buttons {
    /*display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    width: 100%;
    order: 3;
    gap: 6px;*/
    display: none;
  }
  .auth-buttons .btn {
    width: 100%;
    max-width: 220px;
    font-size: 0.95rem;
    padding: 10px 0;
  }
  .hero-section {
    padding-top: 130px;
  }
}

/* Logo Styles */
.logo h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #000000;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Auth Buttons */
.auth-buttons {
  display: flex;
  gap: 15px;
}

/* Buttons */
.btn {
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  font-size: 1rem;
  line-height: 1.4;
  min-width: 120px;
}

.btn-login {
  color: #000000;
  border: 2px solid #000000;
  background: transparent;
  padding: 10px 20px;
  font-size: 0.95rem;
}

.btn-login:hover {
  background: #000000;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-signup {
  background: #000000;
  color: #ffffff;
  border: 2px solid #000000;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
}

.btn-signup:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.btn-primary {
  background: #000000;
  color: #ffffff;
  padding: 15px 30px;
  font-size: 1.1rem;
  border: 2px solid #000000;
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  background: #ffffff;
  color: #000000;
}

.btn-secondary {
  color: #000000;
  border: 2px solid #000000;
  background: transparent;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 500;
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 50px 20px;
}

.hero-content h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: #000000;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Responsive font size for hero-title */
@media (max-width: 900px) {
  .hero-content h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 750px) {
  .hero-content h2 {
    font-size: 2.15rem;
  }
}

@media (max-width: 600px) {
  .hero-content h2 {
    font-size: 1.8rem;
  }
}
@media (max-width: 500px) {
  .hero-content h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 400px) {
  .hero-content h2 {
    font-size: 1.17rem;
  }
}

@media (max-width: 300px) {
  .hero-content h2 {
    font-size: 1.1rem;
  }
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: #333333;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.hero-actions .btn {
  min-width: 160px;
}

.hero-subtitle {
  display: block;
  text-align: center;
  margin: 0 auto 40px auto;
  max-width: 600px;
  font-size: 1.3rem;
  color: #333333;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(.2,.8,.4,1);
}

.hero-subtitle.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Features Section - Enhanced White & Black */
.features-section {
  padding: 80px 50px;
  background: #ffffff;
}

.features-section h3 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #000000;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(0, 0, 0, 0.05);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.3);
}

.feature-card h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #000000;
}

.feature-card p {
  color: #333333;
  line-height: 1.6;
}

/* Footer Styles - Enhanced White & Black */
.main-footer {
  background: #ffffff;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #000000, transparent);
  opacity: 0.6;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 30px 50px;
  position: relative;
  z-index: 1;
  background: #ffffff;
}

.footer-section {
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.3s; }
.footer-section:nth-child(3) { animation-delay: 0.5s; }

.footer-section h3,
.footer-section h4 {
  margin: 0 0 25px 0;
  color: #000000;
  position: relative;
}

.footer-brand {
  padding-right: 20px;
}

.footer-brand h3 {
  font-size: 2.2rem;
  color: #000000;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.footer-brand p {
  color: #333333;
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
  font-weight: 400;
  opacity: 0.9;
}

.footer-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #000000;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: #000000;
  border-radius: 1px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 12px;
  transform: translateX(0);
  transition: transform 0.3s ease;
}

.footer-section ul li:hover {
  transform: translateX(5px);
}

.footer-section ul li a {
  color: #333333;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 400;
  position: relative;
  display: inline-block;
  padding: 5px 0;
}

.footer-section ul li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -5px;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
  transition: width 0.4s ease;
  border-radius: 3px;
}

.footer-section ul li a:hover {
  color: #000000;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.footer-section ul li a:hover::before {
  width: calc(100% + 10px);
}

.footer-bottom {
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 30px 0;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
}

.footer-bottom p {
  margin: 0;
  color: #555555;
  font-size: 0.9rem;
  font-weight: 400;
}

.footer-badges {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-badges span {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  cursor: default;
  background: rgba(0, 0, 0, 0.1);
  color: #000000;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.footer-badges span:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.2);
}

.footer-disclaimer {
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 25px 0;
  position: relative;
}

.footer-disclaimer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.4), transparent);
}

.footer-disclaimer p {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  font-size: 0.88rem;
  color: #333333;
  line-height: 1.7;
  text-align: center;
  font-weight: 400;
}

.footer-disclaimer strong {
  color: #000000;
  font-weight: 600;
}

/* Enhanced Navigation */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
}

.top-nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 10px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #000000;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #000000;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hero Enhancements */
.hero-section {
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero-text-animation {
  margin-bottom: 40px;
}

.typewriter {
  overflow: hidden;
  border-right: 3px solid #000000;
  white-space: nowrap;
  animation: typing 3s steps(30, end), blink-caret 0.75s step-end infinite 3s, hide-caret 0s linear 6s forwards;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: #000000; }
}

@keyframes hide-caret {
  to { border-color: transparent; }
}

/* Ticker Tape - Enhanced White & Black */
.ticker-section {
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  padding: 15px 0;
  overflow: hidden;
}

.ticker-container {
  width: 100%;
  overflow: hidden;
}

.ticker-content {
  display: flex;
  animation: ticker 60s linear infinite;
  gap: 100px;
  white-space: nowrap;
}

.ticker-item {
  color: #000000;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.price {
  margin-left: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.price.up {
  color: #000000;
}

.price.down {
  color: #333333;
}

.change-percent {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
}

/* Make ticker animation longer for more content */
@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Section Containers */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h3 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #000000;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.section-subtitle {
  font-size: 1.2rem;
  color: #333333;
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-features {
  margin-top: 30px;
}

.feature-point {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  color: #000000;
}

.feature-point i {
  color: #000000;
  font-size: 1.2rem;
}

.chart-container {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 15px;
  padding: 30px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Interactive Cards */
.interactive-card {
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.interactive-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
  transition: left 0.5s ease;
}

.interactive-card:hover::before {
  left: 100%;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: #000000;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #ffffff;
  font-size: 1.5rem;
}

.feature-stats {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.feature-stats span {
  background: rgba(0, 0, 0, 0.1);
  color: #000000;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

/* CTA Section - Enhanced Clean Design */
.cta-section {
  background: #ffffff;
  padding: 100px 40px;
  text-align: center;
  margin: 80px auto;
  max-width: 1000px;
  position: relative;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h3 {
  color: #000000;
  font-size: 3.2rem;
  font-weight: 300;
  margin-bottom: 30px;
  letter-spacing: -1px;
  line-height: 1.2;
}

.cta-content p {
  color: #333333;
  font-size: 1.4rem;
  margin-bottom: 50px;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  opacity: 0.9;
}

.cta-actions {
  display: flex;
  gap: 0;
  justify-content: center;
  margin: 0;
  flex-wrap: wrap;
}

.btn-large {
  padding: 20px 50px;
  font-size: 1.2rem;
  font-weight: 600;
  min-width: 250px;
  border-radius: 50px;
  background: #000000;
  color: #ffffff;
  border: 2px solid #000000;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.btn-large::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.btn-large:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: #000000;
}

.btn-large:hover::before {
  left: 100%;
}

.btn-large:active {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #000000;
  border: none;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Screen reader only content */
.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;
}

/* Enhanced animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Registration Overlay - White & Black Theme */
.registration-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.registration-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.overlay-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ==== REGISTRATION OVERLAY: stack + scroll fix (place at END of CSS) ==== */
@media (max-width: 900px), (max-height: 650px) {
  .registration-overlay { display: flex; overflow: hidden; }

  .registration-container {
    display: flex !important;
    flex-direction: column !important;    /* stack top-to-bottom */
    height: 100dvh !important;            /* full viewport height */
    max-height: 100dvh !important;
    overflow-y: auto !important;          /* scroll inside popup */
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 12px 0;
  }

  .registration-side {
    flex: 0 0 auto !important;            /* stop the 50/50 split */
    width: 100% !important;
    padding: 24px 16px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.12) !important;
  }
  .registration-side:last-child { border-bottom: 0 !important; }

  /* Make the slide-in transforms not interfere on stacked layout */
  .registration-overlay.active .creator-side,
  .registration-overlay.active .investor-side {
    transform: none !important;
    opacity: 1 !important;
  }



  /* Order:
     - Prelaunch: Creator on top, Investor below
     - Normal:    Investor on top, Creator below
  */
  .registration-container.prelaunch .creator-side { order: 1 !important; }
  .registration-container.prelaunch .investor-side { order: 2 !important; }
  .registration-container.normal   .investor-side { order: 1 !important; }
  .registration-container.normal   .creator-side  { order: 2 !important; }

  /* Optional: tighten big elements so text doesn’t overflow on tiny screens */
  .registration-icon { width: 56px; height: 56px; font-size: 1.5rem; }
  .registration-content h2 { font-size: 1.6rem; }
  .registration-content p  { font-size: 1rem; }
  .features-list li        { font-size: 0.95rem; }
}






.registration-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.registration-overlay.active .registration-container {
  transform: translateX(0);
}

.registration-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.creator-side {
  background: #ffffff;
  border-right: 1px solid rgba(0, 0, 0, 0.2);
  transform: translateX(-50px);
  opacity: 0;
  transition: all 0.8s ease 0.3s;
}

.investor-side {
  background: #ffffff;
  transform: translateX(50px);
  opacity: 0;
  transition: all 0.8s ease 0.5s;
}

.registration-overlay.active .creator-side,
.registration-overlay.active .investor-side {
  transform: translateX(0);
  opacity: 1;
}

.registration-content {
  max-width: 500px;
  text-align: center;
  color: #000000;
  z-index: 10;
  position: relative;
}

.registration-icon {
  width: 80px;
  height: 80px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 2rem;
  color: #000000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.registration-side:hover .registration-icon {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 0, 0, 0.5);
}

.registration-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #000000;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.registration-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #333333;
  line-height: 1.6;
  opacity: 0.9;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  text-align: left;
}

.features-list li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #333333;
  opacity: 0.9;
}

.features-list i {
  margin-right: 15px;
  width: 20px;
  color: #000000;
  font-size: 1rem;
}

.btn-creator,
.btn-investor {
  background: transparent;
  color: #000000;
  border: 2px solid #000000;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  text-decoration: none;
}

.btn-creator:hover,
.btn-investor:hover {
  background: #000000;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}



/* Creator Ticker Item - Enhanced Horizontal Layout */
.creator-ticker-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.creator-ticker-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Left Side - Mini Chart */
.chart-container {
  flex-shrink: 0;
  width: 80px;
  height: 50px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sparkline-chart {
  width: 75px;
  height: 45px;
}

/* Middle Section - Data */
.ticker-item-middle {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.performance-badge {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid;
  color: #dc3545;
}

.performance-badge.positive {
  color: #198754;
  border-color: rgba(25, 135, 84, 0.3);
  background: rgba(25, 135, 84, 0.1);
}

.performance-badge.negative {
  color: #dc3545;
  border-color: rgba(220, 53, 69, 0.3);
  background: rgba(220, 53, 69, 0.1);
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.metric-row {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.75rem;
  color: #666666;
  font-weight: 500;
}

.metric-value {
  font-size: 0.9rem;
  color: #000000;
  font-weight: 600;
}

/* Right Side - Profile and Creator Info */
.ticker-item-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.profile-container {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background: #f8f9fa;
  border: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.creator-info {
  text-align: center;
}

.creator-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #000000;
}

.creator-info span {
  font-size: 0.8rem;
  color: #666666;
  font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .creator-ticker-item {
    gap: 12px;
    padding: 12px 16px;
  }

  .chart-container {
    width: 60px;
    height: 40px;
  }

  .sparkline-chart {
    width: 55px;
    height: 35px;
  }

  .profile-container {
    width: 40px;
    height: 40px;
  }

  .creator-info h4 {
    font-size: 0.8rem;
  }

  .creator-info span {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .creator-ticker-item {
    gap: 8px;
    padding: 10px 12px;
  }

  .chart-container {
    width: 50px;
    height: 35px;
  }

  .sparkline-chart {
    width: 45px;
    height: 30px;
  }

  .profile-container {
    width: 35px;
    height: 35px;
  }

  .creator-info h4 {
    font-size: 0.75rem;
  }

  .creator-info span {
    font-size: 0.65rem;
  }
}

/* ---------- Scroll-reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: all .8s cubic-bezier(.2,.8,.4,1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ---------- Section styling ---------- */
.about-section, .timeline-section, .stats-section, .cta-section {
  padding: 90px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.about-section h3,
.timeline-section h3,
.stats-section h3,
.cta-section h3 { font-size: 2.4rem; margin-bottom: 25px; }

.timeline { list-style: none; padding: 0; position: relative; }
.timeline::before { 
  content: ""; 
  position: absolute; 
  left: 14px; 
  top: 0; 
  bottom: 0;
  width: 4px; 
  background: rgba(255, 255, 255, 0.3); 
  border-radius: 2px; 
}

.timeline li { 
  margin: 25px 0 25px 45px; 
  position: relative; 
}

.tl-dot { 
  position: absolute; 
  left: -45px; 
  top: 5px;
  width: 18px; 
  height: 18px; 
  border-radius: 50%; 
  background: #ffffff; 
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2); 
}

.stats-section { 
  display: flex; 
  gap: 40px; 
  justify-content: center; 
  flex-wrap: wrap;
  background: #000000;
  padding: 60px 20px;
  border-radius: 15px;
  margin: 40px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, transform 0.2s;
  min-width: 0;
  flex: 1 1 0;
}

.stat-item:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  transform: translateY(-2px) scale(1.03);
  border-color: #000;
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: #000;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s;
}

.stat-item:hover .stat-icon {
  background: #222;
}

.stat-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: #000;
  line-height: 1.1;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  word-break: break-word;
}

.stat-label {
  font-size: 0.98rem;
  color: #666;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 0;
  word-break: break-word;
}

/* Responsive stat-item */
@media (max-width: 1024px) {
  .stat-item {
    padding: 14px 12px;
    border-radius: 10px;
  }
  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .stat-number {
    font-size: 1.1rem;
  }
  .stat-label {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .stat-item {
    padding: 10px 8px;
    border-radius: 8px;
  }
  .stat-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  .stat-number {
    font-size: 1rem;
  }
  .stat-label {
    font-size: 0.85rem;
  }
}

/* Stats section with profile image */
.stat-item-with-profile {
  padding: 14px 16px !important;
}

.stat-profile-container {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  flex-shrink: 0;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.stat-item:hover .stat-profile-container {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.stat-profile-image:hover {
  transform: scale(1.1);
}

/* Responsive adjustments for stat profile */
@media (max-width: 1024px) {
  .stat-profile-container {
    width: 40px;
    height: 40px;
    border-width: 2px;
  }
}

@media (max-width: 768px) {
  .stat-profile-container {
    width: 32px;
    height: 32px;
    border-width: 2px;
  }
  
  .stat-item-with-profile {
    padding: 8px 6px !important;
  }
}

/* Preview Card Layout */
.preview-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  padding: 48px 48px 40px 48px; /* increased padding */
  max-width: 900px;             /* wider card */
  margin: 0 auto 60px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Top profile row */
.preview-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 18px; /* keep your existing spacing */
}

.preview-card-profile {
  display: flex;
  align-items: center;
  gap: 18px;
}

.preview-card-profile-img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  background: #f8f9fa;
}

.preview-card-profile-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.preview-card-creator-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  color: #222;
}

.preview-card-channel-name {
  font-size: 1rem;
  color: #666;
  margin-top: 2px;
}

/* Large chart section */
.preview-card-chart-large {
  width: 100%;
  margin-bottom: 22px;
}

.preview-card-chart-large .chart-title {
  font-size: 1.08rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-card-chart-large .chart-wrapper {
  width: 100%;
  min-height: 180px;
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Three small charts row */
.preview-card-charts-row {
  width: 100%;
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-bottom: 22px;
}

.chart-section-small {
  flex: 1 1 0;
  background: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.chart-section-small .chart-title {
  font-size: 0.98rem;
  font-weight: 500;
  color: #444;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chart-section-small .chart-wrapper {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Stats row below charts */
.preview-card-stats-row {
  width: 100%;
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 10px;
}

.preview-card-stats-row .stat-item {
  flex: 1 1 0;
  min-width: 0;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .preview-card {
    max-width: 98vw;
    padding: 32px 8px 24px 8px;
  }
}

@media (max-width: 900px) {
  .preview-card {
    padding: 24px 8px 18px 8px;
    max-width: 98vw;
  }
  .preview-card-charts-row,
  .preview-card-stats-row {
    gap: 10px;
  }

    .features-grid {
    /* fixed track width + centered grid */
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    justify-content: center;   /* centers the whole grid */
    justify-items: center;     /* centers each item within its track */
    gap: 16px;                 /* consistent spacing */
  }

  .feature-card {
    max-width: 320px;          /* matches track width */
    width: 100%;
    margin: 0;                 /* let the grid gaps control spacing */
  }
}

@media (max-width: 600px) {
  .preview-card {
    padding: 10px 2vw 10px 2vw;
    border-radius: 10px;
  }
  .preview-card-header {
    margin-bottom: 10px;
  }
  .preview-card-profile-img {
    width: 38px;
    height: 38px;
  }
  .preview-card-creator-name {
    font-size: 1.05rem;
  }
  .preview-card-channel-name {
    font-size: 0.85rem;
  }
  .preview-card-chart-large .chart-wrapper {
    min-height: 110px;
    padding: 4px 0;
  }
  .preview-card-charts-row {
    flex-direction: column;
    gap: 8px;
  }
  .chart-section-small {
    min-width: 0;
    padding: 6px 2px;
  }
  .preview-card-stats-row {
    flex-direction: column;
    gap: 8px;
  }
}

/* FAQ Section - Accordion Style */
.faq-section {
  padding: 80px 50px;
  background: #ffffff;
}

.faq-section h3 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #000000;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}

.faq-question:hover {
  background: rgba(0, 0, 0, 0.05);
}

.faq-question h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #000000;
  flex-grow: 1;
  padding-right: 20px;
  line-height: 1.4;
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000000;
  transition: all 0.3s ease;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: #000000;
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: rgba(0, 0, 0, 0.02);
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
  padding: 0 25px 25px 25px;
}

.faq-answer p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
  padding-top: 15px;
}

/* FAQ Responsive Design */
@media (max-width: 768px) {
  .faq-section {
    padding: 60px 20px;
  }
  
  .faq-question {
    padding: 15px 20px;
  }
  
  .faq-question h4 {
    font-size: 1.1rem;
    padding-right: 15px;
  }
  
  .faq-icon {
    width: 25px;
    height: 25px;
    font-size: 1.2rem;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
  }
  
  .faq-answer p {
    font-size: 0.95rem;
    padding-top: 10px;
  }
}

/* Vision Section - Clean Minimalist Design */
.vision-section {
  padding: 120px 20px;
  background: #ffffff;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.vision-container {
  max-width: 900px;
  margin: 0 auto;
}

.vision-section h2 {
  font-size: 4rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 60px;
  letter-spacing: -1px;
  text-shadow: none;
}

.vision-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.vision-paragraph {
  font-size: 24px;
  line-height: 1.8;
  color: rgb(140, 140, 140);
  font-weight: 400;
  font-family: Inter, "Inter Placeholder", sans-serif;
  text-align: justify;
  max-width: 100%;
  margin: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.vision-paragraph:first-child {
  margin-bottom: 20px;
}

.vision-paragraph:last-child {
  margin-top: 20px;
}

.vision-section.active .vision-paragraph:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.vision-section.active .vision-paragraph:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

/* Responsive Vision Design */
@media (max-width: 768px) {
  .vision-section {
    padding: 80px 30px;
  }
  
  .vision-section h2 {
    font-size: 2.8rem;
    margin-bottom: 50px;
    letter-spacing: -1px;
  }
  
  .vision-paragraph {
    font-size: 1.2rem;
    line-height: 1.7;
  }
  
  .vision-content {
    gap: 35px;
  }
}

@media (max-width: 480px) {
  .vision-section {
    padding: 60px 20px;
  }
  
  .vision-section h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
  }
  
  .vision-paragraph {
    font-size: 1.1rem;
    line-height: 1.6;
  }
  
  .vision-content {
    gap: 30px;
  }
}

/* Sparkline Chart Container Fixes */
.sparkline-chart-parent {
  position: relative !important;
  max-height: 60px !important;
  min-height: 50px !important;
  height: 50px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.sparkline-chart {
  max-width: 100% !important;
  max-height: 50px !important;
  width: 145px !important;
  height: 50px !important;
  display: block !important;
}

/* Featured Creators Ticker Section Improvements */
.featured-creators-ticker-section {
  padding: 40px 20px;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.featured-creators-ticker-container {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.featured-creators-ticker-content {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 10px 0;
  scroll-behavior: smooth;
}

.creator-ticker-item {
  flex: 0 0 auto;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  padding: 16px;
  min-width: 320px;
  max-width: 380px;
  height: 120px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
}

.creator-ticker-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.2);
}

/* Profile Picture - Top Right */
.profile-container {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}

.profile-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 0, 0, 0.1);
  background: #f8f9fa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Performance Badge - Top Left */
.performance-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  z-index: 10;
  border: 1px solid;
}

.performance-badge.positive {
  color: #198754;
  border-color: rgba(25, 135, 84, 0.3);
  background: rgba(25, 135, 84, 0.1);
}

.performance-badge.negative {
  color: #dc3545;
  border-color: rgba(220, 53, 69, 0.3);
  background: rgba(220, 53, 69, 0.1);
}

/* Metrics Grid - Compact Layout */
.metrics-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
}

.metric-row-main {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 6px;
  margin-top: 4px;
}

.metric-label {
  font-size: 0.75rem;
  color: #666666;
  font-weight: 500;
}

.metric-value {
  font-size: 0.9rem;
  color: #000000;
  font-weight: 600;
}

/* Creator Info - Bottom */
.creator-info {
  text-align: center;
  margin-top: auto;
}

.creator-info h4 {
  margin: 0 0 2px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #000000;
  line-height: 1.2;
}

.creator-info span {
  font-size: 0.8rem;
  color: #666666;
  font-weight: 500;
}

/* Remove old metric styles that conflict */
.metrics-container {
  display: none; /* Hide old layout */
}

.performance-value {
  display: none; /* Hide old performance display */
}

/* Sparkline Chart Constraints */
.sparkline-chart {
  max-width: 100% !important;
  max-height: 50px !important;
  width: 145px !important;
  height: 50px !important;
}

.sparkline-chart-parent {
  position: relative !important;
  max-height: 60px !important;
  min-height: 50px !important;
  height: 50px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Improved Ticker Card Styles */
.improved-ticker-card {
  display: flex;
  align-items: center;
  background: #f7f7f7;
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  min-width: 420px;
  max-width: 520px;
  height: 160px;
  padding: 0 32px;
  margin: 0 0 0 0;
  position: relative;
  border: none;
  gap: 0;
}

.ticker-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 120px;
  margin-right: 24px;
  height: 100%;
  position: relative;
}

.improved-chart-container {
  background: #fff;
  border-radius: 24px;
  box-shadow: none;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  padding: 0;
}

.sparkline-chart {
  width: 110px !important;
  height: 110px !important;
  max-width: 110px !important;
  max-height: 110px !important;
  background: transparent;
  margin: 0 auto;
  display: block;
  box-shadow: none;
  border-radius: 16px;
}

/* Vertically center profile image and info */
.vertical-center-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  height: 100%;
  margin-left: 24px;
}

.improved-profile-container {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  background: #fff;
  margin-bottom: 6px;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.improved-profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.improved-creator-info {
  text-align: center;
  margin-top: 0;
}

.improved-creator-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #333;
  margin: 0;
  line-height: 1.1;
}

.improved-creator-info span {
  font-size: 0.8rem;
  color: #888;
  font-weight: 600;
  letter-spacing: 1px;
  margin-top: 2px;
  display: block;
}

/* Make metrics text smaller and red */
.small-red .metric-label,
.small-red .metric-value {
  font-size: 0.95rem !important;
  color: #000 !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px;
}

/* Responsive adjustments for improved ticker card */
@media (max-width: 900px) {
  .improved-ticker-card {
    min-width: 320px;
    max-width: 98vw;
    height: 120px;
    padding: 0 8px;
  }
  .ticker-left, .vertical-center-profile {
    min-width: 70px;
    margin-right: 8px;
    margin-left: 8px;
  }
  .improved-chart-container {
    width: 50px;
    height: 50px;
  }
  .sparkline-chart {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
  }
  .performance-value-big {
    font-size: 1.3rem;
    margin-top: -4px;
  }
  .improved-profile-container {
    width: 40px;
    height: 40px;
  }
  .improved-creator-info h4 {
    font-size: 0.85rem;
  }
  .improved-creator-info span {
    font-size: 0.7rem;
  }
}

@media (max-width: 600px) {
  .improved-ticker-card {
    flex-direction: column;
    align-items: stretch;
    min-width: 220px;
    max-width: 98vw;
    height: auto;
    padding: 16px 8px;
    gap: 0;
  }
  .ticker-left, .ticker-right {
    min-width: 0;
    margin: 0 auto 8px auto;
    align-items: center;
    justify-content: center;
  }
  .ticker-center {
    padding: 0;
    min-width: 0;
  }
  .improved-chart-container {
    width: 50px;
    height: 50px;
  }
  .sparkline-chart {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
  }
  .performance-value-big {
    font-size: 1.3rem;
    margin-top: -4px;
  }
  .metric-label, .metric-value {
    font-size: 0.85rem;
  }
  .improved-profile-container {
    width: 40px;
    height: 40px;
  }
  .improved-creator-info h4 {
    font-size: 0.85rem;
  }
  .improved-creator-info span {
    font-size: 0.7rem;
  }
}

.left-align.metric-row {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
}

.metric-label {
  font-size: 0.95rem !important;
  color: #000 !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px;
  text-align: left !important;
  min-width: 80px;
}

.metric-value {
  font-size: 0.95rem !important;
  color: #000 !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px;
  text-align: left !important;
}

.metric-unit {
  font-size: 0.95rem !important;
  color: #888 !important;
  font-weight: 500 !important;
  margin-left: 4px;
  text-align: left !important;
}



/* --- FINAL ULTRA-HARDENED FIX --- */
.overlay-close {
  /* Switched to absolute positioning */
  position: absolute !important; 
  top: 24px !important;
  right: 24px !important;
  z-index: 100 !important; /* Ensures it's on top */

  /* These properties remain the same to define the circle */
  inline-size: 48px !important;
  block-size: 48px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1 !important;

  /* Centering the 'X' icon inside */
  display: inline-grid !important;
  place-items: center !important;
}

.overlay-close::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.5);
  pointer-events: none;
}

.overlay-close i,
.overlay-close svg {
  display: block;
  font-size: 1.1rem;
  line-height: 1;
  color: #000000 !important; 
  }
@media (max-width: 380px) {
  .overlay-close,
  .overlay-close::before {
    inline-size: 40px !important;
    block-size: 40px !important;
    flex: 0 0 40px !important;
  }
}


.preview-price-ticker {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Price large, green, bold */
.preview-price-ticker .price-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #198754; /* green */
  line-height: 1.2;
}

/* Percentage smaller, black, normal weight */
.preview-price-ticker .price-change {
  font-size: 0.85rem;
  font-weight: 400;
  color: #111;
  margin-top: 2px;
}
