/* ==========================================
   TAILWIND COMPATIBILITY
   ========================================== */

* {
    box-sizing: border-box;

}
/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Logo container */
.logo-container-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-container-header img {
    object-fit: contain;
    display: block;
}

/* ==========================================
   QUICK ACTIONS & DASHBOARD
   ========================================== */

.quick-actions-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.quick-action-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.dark .quick-action-card {
    background: #2d3748;
}

.quick-action-card:hover {
    transform: translateY(-8px);
    border-color: #667eea;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
}

.quick-action-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: transform 0.3s ease;
}

.quick-action-card:hover .quick-action-icon {
    transform: scale(1.1) rotate(-5deg);
}

.quick-action-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.quick-action-content {
    flex: 1;
    z-index: 1;
}

.quick-action-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.dark .quick-action-title {
    color: #e2e8f0;
}

.quick-action-description {
    font-size: 1rem;
    color: #718096;
}

.dark .quick-action-description {
    color: #a0aec0;
}

/* Market Cap Cards - Hero Section */
.hero-market-cap {
    position: relative;
    padding: 3rem 1rem;
}

.market-cap-card {
    transition: all 0.3s ease;
}

.market-cap-card:hover {
    transform: translateY(-8px);
}

/* Dashboard Section */
.dashboard-section {
    margin: 3rem 0;
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS
   ========================================== */

@media (max-width: 768px) {
    .quick-actions-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .quick-action-card {
        padding: 1.5rem;
    }
    
    .quick-action-icon {
        width: 56px;
        height: 56px;
        min-width: 56px;
    }
    
    .quick-action-title {
        font-size: 1.25rem;
    }
    
    .quick-action-description {
        font-size: 0.875rem;
    }
}

/* BullQuotient - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

/* Utility Classes */
.gradient-text {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.bg-pattern {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.hidden { 
    display: none; 
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes scaleIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.animate-scaleIn { animation: scaleIn 0.5s cubic-bezier(0.4,0,0.2,1) forwards; }
.animate-fadeIn { animation: fadeIn 0.7s ease forwards; }
.animate-fadeInUp { animation: fadeInUp 0.7s cubic-bezier(0.4,0,0.2,1) forwards; }
.animate-slideUp { animation: slideUp 0.5s ease-out; }
.animate-slideIn { animation: slideIn 0.6s ease-out forwards; opacity: 0; transform: translateY(30px); }

/* =================================== */
/* NEW LANDING PAGE STYLES            */
/* =================================== */

.new-landing-page {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #212529;
    background: #fff;
}

/* =================================== */
/* MODERN HERO SECTION WITH BLUR      */
/* =================================== */

.modern-hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 7rem 2rem 4rem 2rem;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px);
    transform: scale(1.05);
}

.hero-bg-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    text-align: center;
    color: white;
}

.hero-main-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-main-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.75rem);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-mobile-signin {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

/* =================================== */
/* MODERN FEATURE SECTIONS WITH BLUR  */
/* =================================== */

.modern-feature-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4rem 2rem;
    margin: 0;
}

.feature-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.feature-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
    transform: scale(1.05);
}

.feature-bg-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

.feature-content-wrapper {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    text-align: center;
    color: white;
}

.feature-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.4);
}

.feature-description {
    font-size: clamp(1rem, 2vw, 1.375rem);
    line-height: 1.7;
    margin-bottom: 2rem;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
}

.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.highlight-item {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modern-hero-section,
    .modern-feature-section {
      
        min-height: 120vh;   /* 👈 key change */
    height: auto;
        
    }

    .hero-main-title {
        font-size: 2.25rem;
    }

    .hero-main-subtitle {
        font-size: 1rem;
    }

    .feature-title {
        font-size: 1.875rem;
    }

    .feature-description {
        font-size: 0.9375rem;
    }

    .highlight-item {
        font-size: 0.875rem;
        padding: 0.625rem 1.25rem;
    }
}

/* Sticky Header */
.new-landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e9ecef;
    z-index: 5000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.new-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.new-logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.new-logo {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.new-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.new-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.new-signin-container {
    display: flex;
    align-items: center;
}

/* Hero Section */
.new-hero-section {
    padding: 7rem 0 4rem 0;
    background: linear-gradient(135deg, #f8fafe 0%, #f0f7ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.new-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.new-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.new-hero-text {
    animation-delay: 0.2s;
}

.new-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #212529, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.new-hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
    animation-delay: 0.4s;
}

.new-hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation-delay: 0.6s;
}

.new-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.new-feature-icon {
    font-size: 1.5rem;
}

.new-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.new-hero-logo {
    width: 400px;
    height: 400px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: none;
    border: none;
}

.new-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: none;
    border: none;
}

/* Feature Sections */
.new-feature-section {
    padding: 6rem 0;
    background: #fff;
}

.new-feature-section:nth-child(even) {
    background: #f8f9fa;
}

.new-feature-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.new-feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.new-feature-reverse .new-feature-content {
    grid-template-columns: 1fr 1fr;
}

.new-feature-reverse .new-feature-image {
    order: 1;
}

.new-feature-reverse .new-feature-text {
    order: 2;
}

.new-feature-text {
    padding: 2rem 0;
}

.new-feature-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.new-feature-description {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.new-feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.new-highlight-item {
    font-size: 1rem;
    color: #4CAF50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.new-feature-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.new-feature-visual {
    width: 400px;
    height: 400px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: none;
    border: none;
    transform: none;
    transition: transform 0.3s ease;
}

.new-feature-visual:hover {
    transform: scale(1.05);
}

.new-feature-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: none;
    border: none;
}

/* =================================== */
/* ORIGINAL STYLES (For other pages)  */
/* =================================== */

body:not(.new-landing-page) .main-container {
    min-height: 100vh;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

/* Floating icons */
.floating-icons {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    opacity: 0.2;
}

.floating-icon.icon-1 {
    top: 5rem;
    left: 2.5rem;
    width: 2rem;
    height: 2rem;
    color: #3B82F6;
    animation: float 6s ease-in-out infinite;
}

.floating-icon.icon-2 {
    top: 10rem;
    right: 5rem;
    width: 1.5rem;
    height: 1.5rem;
    color: #8B5CF6;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
    animation-delay: 2s;
}

.floating-icon.icon-3 {
    bottom: 8rem;
    left: 5rem;
    width: 2.5rem;
    height: 2.5rem;
    color: #3B82F6;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
    animation-delay: 4s;
}

.floating-icon.icon-4 {
    bottom: 5rem;
    right: 2.5rem;
    width: 1.75rem;
    height: 1.75rem;
    color: #8B5CF6;
    opacity: 0.25;
    animation: float 6s ease-in-out infinite;
    animation-delay: 1s;
}

/* Content wrapper */
.content-wrapper {
    width: 100%;
    max-width: 112rem;
    margin: 0 auto;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .grid-container {
        grid-template-columns: 1fr 1fr;
        gap: 0rem;
    }
}

.left-section {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0rem;
}

@media (min-width: 1024px) {
    .left-section {
        display: flex;
    }
}

.logo-container {
    position: relative;
}

.company-logo {
    width: 12rem;
    height: 10rem;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 10;
}

.logo-glow {
    position: absolute;
    inset: -1rem;
    background: linear-gradient(to right, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 1.5rem;
    filter: blur(1rem);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.welcome-text {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1F2937;
}

.brand-title {
    font-size: 3rem;
    font-weight: 900;
}

.brand-subtitle {
    font-size: 1.25rem;
    color: #6B7280;
    max-width: 24rem;
    font-weight: 500;
}

body:not(.new-landing-page) .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1rem;
    border-radius: 0.75rem;
}

.feature-icon-wrapper {
    width: 3rem;
    height: 3rem;
    background: #DBEAFE;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
}

.feature-icon-wrapper.purple {
    background: #EDE9FE;
}

.feature-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #2563EB;
}

.feature-icon.purple {
    color: #7C3AED;
}

.feature-text {
    font-size: 0.875rem;
    color: #6B7280;
    font-weight: 500;
}

.right-section {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.login-wrapper {
    width: 150%;
    max-width: 30rem;
}

.login-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    min-height: 550px;
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-title {
    font-size: 3rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
}

.login-content {
    padding: 1.5rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.login-description {
    color: #6B7280;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-align: center;
}

.google-signin-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    margin-top: 4rem;
}

.google-button-container {
    background: white;
    border-radius: 1.75rem;
    padding: 0.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
}

.google-button-container:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.login-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E5E7EB;
}

.terms-text {
    font-size: 0.75rem;
    color: #9CA3AF;
    text-align: center;
    font-weight: 500;
}

/* SVG Icons */
.icon-trending-up,
.icon-bar-chart,
.icon-dollar-sign,
.icon-activity {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Responsive Display Classes */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
    align-items: center;
}

@media screen and (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
}

@media screen and (max-width: 768px) {
    .mobile-only.feature-item {
        display: block !important;
    }
    
    body:not(.new-landing-page) .features-grid .mobile-only {
        display: block !important;
    }
}

.mobile-branding-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

/* Logo styling fixes */
img[src*="logo1.png"],
img[src*="logo2.png"] {
    background: transparent !important;
    mix-blend-mode: multiply;
    border-radius: 8px;
    background-image: none !important;
    background-color: transparent !important;
}

.dark img[src*="logo1.png"],
.dark img[src*="logo2.png"] {
    mix-blend-mode: screen;
    filter: brightness(1.2) contrast(1.1);
}

/* Explore More Button */
#explore-more-btn {
    transition: all 0.3s ease;
}

#explore-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

#btn-arrow {
    transition: transform 0.3s ease;
}

/* =================================== */
/* PAGE-SPECIFIC STYLES               */
/* =================================== */

.admin-page,
.sector-page,
.dashboard-page,
.stock-page,
.hitstocks-page {
    font-family: 'Inter', sans-serif !important;
    line-height: 1.6;
}

/* Ensure all non-landing pages work properly */
.admin-page .animate-slideIn,
.sector-page .animate-slideIn,
.dashboard-page .animate-slideIn,
.stock-page .animate-slideIn,
.hitstocks-page .animate-slideIn {
    animation: slideIn 0.5s ease-out;
    opacity: 1 !important;
}

.admin-page .card-hover,
.sector-page .card-hover,
.dashboard-page .card-hover,
.stock-page .card-hover,
.hitstocks-page .card-hover {
    transition: all 0.3s ease;
    opacity: 1 !important;
}

.admin-page .card-hover:hover,
.sector-page .card-hover:hover,
.dashboard-page .card-hover:hover,
.stock-page .card-hover:hover,
.hitstocks-page .card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Force visibility for all content on non-landing pages */
.admin-page main,
.admin-page .grid,
.admin-page .bg-white,
.admin-page .dark\:bg-gray-900,
.sector-page main,
.sector-page .grid,
.sector-page .bg-white,
.sector-page .dark\:bg-gray-900,
.dashboard-page main,
.dashboard-page .grid,
.dashboard-page .bg-white,
.dashboard-page .dark\:bg-gray-900,
.stock-page main,
.stock-page .grid,
.stock-page .bg-white,
.stock-page .dark\:bg-gray-900,
.hitstocks-page main,
.hitstocks-page .grid,
.hitstocks-page .bg-white,
.hitstocks-page .dark\:bg-gray-900 {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure Tailwind classes work on all pages */
body:not(.new-landing-page) {
    font-family: 'Inter', sans-serif !important;
}

/* Fix Tailwind gradient backgrounds for all pages */
body:not(.new-landing-page).bg-gradient-to-br {
    background: linear-gradient(to bottom right, var(--tw-gradient-stops)) !important;
}

body:not(.new-landing-page).from-gray-50 {
    --tw-gradient-from: #f9fafb !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(249, 250, 251, 0)) !important;
}

body:not(.new-landing-page).to-blue-50 {
    --tw-gradient-to: #eff6ff !important;
}

body:not(.new-landing-page).dark\:from-gray-900:is(.dark *) {
    --tw-gradient-from: #111827 !important;
}

body:not(.new-landing-page).dark\:to-gray-800:is(.dark *) {
    --tw-gradient-to: #1f2937 !important;
}

/* Footer logo - clean and plain display */
footer img[src*="logo1.png"],
footer img[src*="logo2.png"],
footer img[alt*="BullQuotient Logo"] {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    opacity: 1 !important;
    width: 48px !important;
    height: 48px !important;
    object-fit: contain !important;
}

.dark footer img[src*="logo2.png"],
.dark footer img[alt*="BullQuotient Logo"] {
    background: transparent !important;
    border: none !important;
    filter: none !important;
}

/* =================================== */
/* LANDING PAGE FOOTER                */
/* =================================== */

.landing-footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0;
    margin-top: 0rem;
}

.landing-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.landing-footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.landing-footer-brand {
    max-width: 350px;
}

.landing-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.landing-footer-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.landing-footer-logo h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.landing-footer-description {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.landing-footer-copyright {
    color: #6b7280;
    font-size: 0.85rem;
}

.landing-footer-links h4,
.landing-footer-contact h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.landing-footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.landing-footer-links ul li {
    margin-bottom: 0.75rem;
}

.landing-footer-links ul li a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.landing-footer-links ul li a:hover {
    color: white;
}

.landing-contact-info {
    margin-bottom: 1.5rem;
}

.landing-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

.landing-contact-item svg {
    color: #60a5fa;
    flex-shrink: 0;
}

.landing-social-links {
    display: flex;
    gap: 0.75rem;
}

.landing-social-links a {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.landing-social-links a:hover {
    transform: scale(1.1);
}

.landing-social-facebook {
    background: #1877f2;
}

.landing-social-instagram {
    background: #e4405f;
}

.landing-social-linkedin {
    background: #0a66c2;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .landing-footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .landing-footer-brand {
        max-width: none;
    }
    
    .landing-footer-logo {
        justify-content: center;
    }
    
    .landing-social-links {
        justify-content: center;
    }
}
/* =================================== */
/* FOOTER LOGO - CONSISTENT STYLING   */
/* =================================== */

/* Footer logo container - white rounded background */
.footer-logo-container {
    width: 48px !important;
    height: 48px !important;
    background: white !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
}

/* Footer logo image - perfect fit inside container */
.footer-logo-image {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    object-fit: contain !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 4px !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    opacity: 1 !important;
    display: block !important;
}

/* Dark mode adjustments for footer logo */
.dark .footer-logo-container {
    background: #1f2937 !important;
    border: 1px solid #374151 !important;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.05) !important;
}

/* Override ALL possible conflicting selectors */
footer img[src*="logo2.png"],
footer img[alt*="BullQuotient Logo"],
footer .footer-logo-image,
footer .footer-logo-container img,
footer .footer-logo-container .footer-logo-image {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    object-fit: contain !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 4px !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    opacity: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

/* Container overrides */
footer .footer-logo-container,
footer div.footer-logo-container {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    background: white !important;
    border-radius: 8px !important;
    padding: 6px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Mobile responsive - maintain same size */
@media screen and (max-width: 768px) {
    .footer-logo-container,
    footer .footer-logo-container {
        width: 48px !important;
        height: 48px !important;
        background: white !important;
        border-radius: 8px !important;
        padding: 6px !important;
    }
    
    .footer-logo-image,
    footer .footer-logo-image,
    footer img[src*="logo2.png"],
    footer img[alt*="BullQuotient Logo"] {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
    }
    
    .dark .footer-logo-container,
    .dark footer .footer-logo-container {
        background: #1f2937 !important;
        border: 1px solid #374151 !important;
    }
}

/* Override any Tailwind or other framework classes */
footer .w-12,
footer .h-12,
footer .w-16,
footer .h-16 {
    width: 36px !important;
    height: 36px !important;
}

/* Ensure the flex container works properly */
footer .flex.items-center.justify-center.space-x-3 {
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
}

/* Force specific sizing for the exact image path */
footer img[src="assets/logo2.png"] {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    object-fit: contain !important;
}
/* Hero Market Cap Section */
.hero-market-cap {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.05) 0%, 
        rgba(147, 51, 234, 0.05) 50%, 
        rgba(236, 72, 153, 0.05) 100%);
    position: relative;
}

.dark .hero-market-cap {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(147, 51, 234, 0.1) 50%, 
        rgba(236, 72, 153, 0.1) 100%);
}

/* Enhanced Hero Title */
.hero-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.dark .hero-title {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

/* Gradient Animation */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-gradient {
    background-size: 200% auto;
    animation: gradient 3s ease infinite;
}

/* Hero Market Cap Section - Compact */
.hero-market-cap {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.05) 0%, 
        rgba(147, 51, 234, 0.05) 50%, 
        rgba(236, 72, 153, 0.05) 100%);
    position: relative;
}

.dark .hero-market-cap {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(147, 51, 234, 0.1) 50%, 
        rgba(236, 72, 153, 0.1) 100%);
}

/* Enhanced Hero Title */
.hero-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.dark .hero-title {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

/* Gradient Animation */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-gradient {
    background-size: 200% auto;
    animation: gradient 3s ease infinite;
}

/* Hero Subtitle Enhancement */
.hero-subtitle {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

/* Market Cap Cards Enhanced */
.market-cap-card {
    backdrop-filter: blur(10px);
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.9), 
        rgba(249, 250, 251, 0.9));
}

.dark .market-cap-card {
    background: linear-gradient(145deg, 
        rgba(30, 41, 59, 0.9), 
        rgba(15, 23, 42, 0.9));
}

.market-cap-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Smooth Scroll for Sectors */
.sectors-section {
    scroll-margin-top: 2rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-market-cap {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.875rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .market-cap-card {
        padding: 1.5rem;
    }
}

/* Tablet Optimization */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-market-cap {
        padding: 2.5rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}
/* ==================== BETA BANNER ==================== */
.beta-banner {
    animation: slideDown 0.5s ease-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.dark .beta-banner {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Beta banner hover effect on link */
.beta-banner a {
    position: relative;
}

.beta-banner a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(to right, #3b82f6, #9333ea);
    transition: width 0.3s ease;
}

.beta-banner a:hover::after {
    width: 100%;
}

/* Ensure banner is full width */
.beta-banner > div {
    width: 100%;
}
/* ==================== SECTOR DETAIL LIST VIEW ==================== */

/* Layout */
.sector-detail-layout {
    display: flex;
    gap: 2rem;
    position: relative;
}

.companies-list-container {
    flex: 1;
    min-width: 0;
}

/* Letter Groups */
.letter-group {
    margin-bottom: 2rem;
    scroll-margin-top: 100px;
    transition: all 0.3s ease;
}

.letter-group.highlight {
    transform: scale(1.02);
}

.letter-header {
    padding: 0.75rem 1rem;
    background: linear-gradient(to right, #eff6ff, #f9fafb);
    border-left: 4px solid #3b82f6;
    border-radius: 0.5rem 0 0 0.5rem;
    margin-bottom: 0.75rem;
}

.dark .letter-header {
    background: linear-gradient(to right, #1e3a8a, #1f2937);
    border-left-color: #60a5fa;
}

/* Company List */
.companies-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.company-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    group: true;
}

.dark .company-list-item {
    background: #1f2937;
    border-color: #374151;
}

.company-list-item:hover {
    transform: translateX(8px);
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.dark .company-list-item:hover {
    border-color: #60a5fa;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.company-info {
    flex: 1;
    min-width: 0;
}

.company-name-symbol {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.company-name {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.dark .company-name {
    color: #f9fafb;
}

.company-symbol {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
}

.dark .company-symbol {
    color: #9ca3af;
    background: #374151;
}

.company-action {
    flex-shrink: 0;
}
/* Horizontal Alphabet Navigation */
.alphabet-nav-horizontal {
    background: white;
    border-radius: 0;
    padding: 1rem 0;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 80px; /* Sticks below header when scrolling */
    z-index: 30;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
    margin-bottom: 2rem;
}

.dark .alphabet-nav-horizontal {
    background: rgba(17, 24, 39, 0.98);
    border-bottom: 1px solid #374151;
}

.alphabet-letters-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.alphabet-letter-h {
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #d1d5db; /* Gray for disabled */
    background: transparent;
    border: none;
    padding: 0.25rem;
    cursor: default;
    transition: all 0.2s ease;
}

.dark .alphabet-letter-h {
    background: transparent;
    color: #4b5563;
}

.alphabet-letter-h:hover:not(.disabled) {
    background: transparent;
    color: #2563eb; /* Darker blue on hover */
    transform: scale(1.1);
}

.alphabet-letter-h.active {
    color: #3b82f6; /* Blue for clickable */
    cursor: pointer;
    background: transparent;
    border: none;
}

.dark .alphabet-letter-h.active {
    color: #60a5fa;
}

.alphabet-letter-h.disabled {
    color: #d1d5db; /* Light gray for disabled */
    background: transparent;
    cursor: not-allowed;
    opacity: 0.5;
}

.dark .alphabet-letter-h.disabled {
    color: #4b5563;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .alphabet-nav-horizontal {
        padding: 0.75rem 0;
        top: 70px;
    }
    
    .alphabet-letters-horizontal {
        gap: 0.75rem;
    }
    
    .alphabet-letter-h {
        font-size: 0.875rem;
    }
}

/* Main content layout */
.sector-detail-layout {
    position: relative;
    display: block;
}

.companies-list-container {
    margin-right: 0;
}


/* ==================== BREADCRUMB NAVIGATION ==================== */
.breadcrumb-container {
    margin-bottom: 1.5rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 0;
}

.breadcrumb-item {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6366f1;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.dark .breadcrumb-item {
    color: #818cf8;
}

.breadcrumb-item:hover {
    color: #4f46e5;
    background: #eef2ff;
}

.dark .breadcrumb-item:hover {
    color: #a5b4fc;
    background: #312e81;
}

.breadcrumb-item.current {
    color: #1f2937;
    font-weight: 600;
    cursor: default;
}

.dark .breadcrumb-item.current {
    color: #f9fafb;
}

.breadcrumb-separator {
    width: 1rem;
    height: 1rem;
    color: #9ca3af;
    flex-shrink: 0;
}

.dark .breadcrumb-separator {
    color: #6b7280;
}

 .stock-card {
      background: linear-gradient(145deg, #ffffff, #f8fafc);
      border-radius: 1.5rem;
      padding: 2rem;
      text-align: center;
      box-shadow: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.03);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      border: 1px solid rgba(226, 232, 240, 0.8);
      position: relative;
      overflow: hidden;
    }
    
    .stock-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    
    .stock-card:hover {
      transform: translateY(-8px) scale(1.02);
      box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.08);
    }
    
    .stock-card:hover::before {
      opacity: 1;
    }
    
    .dark .stock-card {
      background: linear-gradient(145deg, #1e293b, #0f172a);
      border: 1px solid #334155;
      color: #fff;
      box-shadow: 0 10px 25px rgba(0,0,0,0.3), 0 4px 10px rgba(0,0,0,0.2);
    }
    
    .price-card {
      background: linear-gradient(145deg, #ffffff, #f8fafc);
      border: 1px solid rgba(226, 232, 240, 0.8);
      color: #1f2937;
      width: 250px !important;
  min-width: 250px !important;
  max-width: 250px !important;
  height: 160px !important;
    }
    .price-card .text-2xl {
  
  line-height: 1.2 !important;
  white-space: normal !important; /* Allow text wrapping */
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important; /* Allow up to 3 lines */
  -webkit-box-orient: vertical !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  word-break: break-word !important;
  hyphens: auto !important;
}
.price-card .price-icon.sector + .text-sm + .text-2xl {
  font-weight: 600 !important;
  -webkit-line-clamp: 5 !important;
  height: auto !important;
  min-height: 2em !important;
  white-space: normal !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  word-break: break-word !important;
  /* Font size will be set dynamically by JavaScript */
}
    .dark .price-card {
      background: linear-gradient(145deg, #1e293b, #0f172a);
      border: 1px solid #334155;
      color: #f9fafb;
      width: 250px !important;
  min-width: 250px !important;
  max-width: 250px !important;
  height: 160px !important;
    }
    
    .price-range-bar {
      width: 100%;
      height: 8px;
      background: linear-gradient(90deg, #e5e7eb 0%, #9ca3af 50%, #e5e7eb 100%);
      border-radius: 4px;
      position: relative;
      margin: 1rem 0;
    }
    
    .price-indicator {
      position: absolute;
      top: -2px;
      width: 12px;
      height: 12px;
      background: #3b82f6;
      border-radius: 50%;
      border: 2px solid white;
      box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    
    .metric-badge {
      display: inline-block;
      padding: 0.25rem 0.75rem;
      background: #f3f4f6;
      border-radius: 1rem;
      font-size: 0.75rem;
      font-weight: 500;
      margin-top: 0.5rem;
    }
    
    .dark .metric-badge {
      background: #374151;
    }
    
    .metric-icon {
      width: 2.5rem;
      height: 2.5rem;
      margin: 0 auto 1rem;
      padding: 0.5rem;
      border-radius: 0.75rem;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .price-icon {
      width: 3rem;
      height: 3rem;
      margin: 0 auto 1rem;
      padding: 0.75rem;
      border-radius: 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
    }
    
    .price-icon.current {
      background: linear-gradient(135deg, #3b82f6, #1d4ed8);
      color: white;
    }
    
    .price-icon.high {
      background: linear-gradient(135deg, #10b981, #059669);
      color: white;
    }
    
    .price-icon.low {
      background: linear-gradient(135deg, #ef4444, #dc2626);
      color: white;
    }
     .price-icon.sector {
      background: linear-gradient(135deg, #B8860B, #FFFFE0);
      color: white;
    }
    .positive-metric { color: #10b981; }
    .negative-metric { color: #ef4444; }
    .neutral-metric { color: #6b7280; }
    
    .section-header {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      font-weight: 700;
      font-size: 1.875rem;
      margin-bottom: 2rem;
      text-align: center;
      position: relative;
    }
    
    .section-header::after {
      content: '';
      position: absolute;
      bottom: -0.5rem;
      left: 50%;
      transform: translateX(-50%);
      width: 4rem;
      height: 0.25rem;
      background: linear-gradient(90deg, #3b82f6, #8b5cf6);
      border-radius: 0.125rem;
    }
    
     
    
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    @keyframes slideUp {
      from { opacity: 0; transform: translateY(30px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    .animate-fadeIn { animation: fadeIn 0.6s ease-out; }
    .animate-slideUp { animation: slideUp 0.5s ease-out; }
    
    /* Responsive grid improvements */
    .fundamentals-grid {
      display: grid;
      gap: 1.5rem;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    @media (min-width: 640px) {
      .fundamentals-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      }
    }
    
    @media (min-width: 768px) {
      .fundamentals-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      }
    }
    
    @media (min-width: 1024px) {
      .fundamentals-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      }
    }
    
    @media (min-width: 1280px) {
      .fundamentals-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      }
    }
    
    @media (min-width: 1536px) {
      .fundamentals-grid {
        grid-template-columns: repeat(6, 1fr);
      }
    }
/* ==================== FUNDAMENTALS INFO BUTTON ==================== */
.fundamentals-info-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.fundamentals-info-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.fundamentals-info-btn svg {
    flex-shrink: 0;
}

/* ==================== FUNDAMENTALS MODAL (Reusing footer.html styles) ==================== */
.fundamentals-guide {
    padding: 0.5rem 0;
}

.guide-section {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.dark .guide-section {
    border-bottom-color: #374151;
}

.guide-section:last-of-type {
    border-bottom: none;
}

.guide-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.dark .guide-heading {
    color: #f9fafb;
}

.guide-section p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.dark .guide-section p {
    color: #d1d5db;
}

.guide-section ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0.75rem;
}

.guide-section li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: #6b7280;
}

.dark .guide-section li {
    color: #9ca3af;
}

.guide-section li::before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: #3b82f6;
    font-weight: bold;
}

.guide-section li strong {
    color: #1f2937;
    font-weight: 600;
}

.dark .guide-section li strong {
    color: #f3f4f6;
}

.guide-disclaimer {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 1.25rem;
    border-radius: 0.75rem;
    margin-top: 2rem;
    border-left: 4px solid #f59e0b;
}

.dark .guide-disclaimer {
    background: linear-gradient(135deg, #78350f, #92400e);
    border-left-color: #fbbf24;
}

.guide-disclaimer p {
    margin: 0;
    color: #92400e !important;
    font-size: 0.875rem;
    line-height: 1.6;
}

.dark .guide-disclaimer p {
    color: #fde68a !important;
}
/* ==================== MODAL OVERLAY (From footer.html) ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    max-width: 48rem;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease-out;
}

.dark .modal-content {
    background: #1f2937;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.dark .modal-header {
    border-bottom-color: #374151;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.dark .modal-title {
    color: #f9fafb;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    font-size: 1.5rem;
    line-height: 1;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.dark .modal-close {
    color: #9ca3af;
}

.dark .modal-close:hover {
    background: #374151;
    color: #f9fafb;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Scrollbar styling for modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

.dark .modal-body::-webkit-scrollbar-track {
    background: #374151;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

.dark .modal-body::-webkit-scrollbar-thumb {
    background: #6b7280;
}

.dark .modal-body::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
/* dark mode */
.dark #privacyPolicyModal, .dark #aboutUsModal, .dark #termsOfUseModal {
    color: #d1d5db; /* Tailwind gray-300 */
}

.dark #privacyPolicyModal h1,
.dark #privacyPolicyModal h2,
.dark #privacyPolicyModal h3,
.dark #privacyPolicyModal h4,
.dark #aboutUsModal h1,
.dark #aboutUsModal h2,
.dark #aboutUsModal h3,
.dark #aboutUsModal h4,
.dark #termsOfUseModal h1,
.dark #termsOfUseModal h2,
.dark #termsOfUseModal h3,
.dark #termsOfUseModal h4 {
    color: #f3f4f6; /* Tailwind gray-100 */
}
.dark #privacyPolicyModal strong, .dark #aboutUsModal strong, .dark #termsOfUseModal strong {
    color: #f3f4f6; /* Tailwind gray-100 */
}

.dark #privacyPolicyModal > div, .dark #aboutUsModal > div, .dark #termsOfUseModal > div {
    background-color: #111827 !important; /* Tailwind gray-900 */
}

.modal-close-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    border-radius: 9999px;
}

/* ==================== COLOR INDICATORS ==================== */
.text-green {
    color: #10b981;
    font-weight: 700;
}

.text-red {
    color: #ef4444;
    font-weight: 700;
}


.dark .text-green {
    color: #34d399;
}

.dark .text-red {
    color: #f87171;
}

/* ==================== ERROR MODAL STYLES ==================== */
.error-content {
    padding: 0.5rem 0;
}

.beta-help-box {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 2px solid #3b82f6;
    border-radius: 1rem;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.dark .beta-help-box {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    border-color: #60a5fa;
}

.btn-report-issue {
    flex: 1;
    min-width: 160px;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-report-issue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-go-back {
    flex: 1;
    min-width: 160px;
    padding: 0.75rem 1.5rem;
    background: #f3f4f6;
    color: #1f2937;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark .btn-go-back {
    background: #374151;
    color: #f9fafb;
    border-color: #4b5563;
}

.btn-go-back:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.dark .btn-go-back:hover {
    background: #4b5563;
}
/* Thank You Message Animation */
.thank-you-message {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dark .thank-you-message div {
    background: linear-gradient(135deg, #064e3b, #065f46) !important;
    border-color: #10b981 !important;
}

.dark .thank-you-message p {
    color: #d1fae5 !important;
}
/* ==================== MAIN SECTOR PAGE STYLES (ISOLATED) ==================== */

/* Sector page container - does NOT affect header/footer */
.sectors-main-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 0;
    margin: 0;
    padding-top: 2rem; /* Space for fixed header */
    padding-bottom: 2rem; /* Space for footer */
}

.dark .sectors-main-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* Hero Section */
.sectors-hero {
    padding: 2rem 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    margin: 0 0 2rem 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.dark .sectors-hero {
    background: rgba(26, 26, 46, 0.6);
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.sectors-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.sectors-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 1rem 0;
    padding: 0;
    animation: fadeInUp 0.6s ease-out;
}

.sectors-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #4a5568;
    margin: 0 0 2.5rem 0;
    padding: 0;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.dark .sectors-subtitle {
    color: #a0aec0;
}

/* Search Bar */
.sectors-search-container {
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
    position: relative;
}

.sectors-search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.sectors-search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: #667eea;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 2;
}

.sectors-search-input {
    width: 100%;
    padding: 1.25rem 4rem 1.25rem 4rem;
    font-size: 1.1rem;
    border: 3px solid transparent;
    border-radius: 50px;
    background: white;
    color: #2d3748;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.dark .sectors-search-input {
    background: #2d3748;
    color: #e2e8f0;
}

.sectors-search-input:focus {
    border-color: #667eea;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3), 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.sectors-clear-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.sectors-clear-btn:hover {
    background: #dc2626;
    transform: translateY(-50%) scale(1.1);
}

.sectors-clear-btn svg {
    width: 18px;
    height: 18px;
}

/* Content Section */
.sectors-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0rem;
}

.sectors-stats {
    margin-bottom: 2rem;
    text-align: center;
}

.sectors-count {
    font-size: 1.125rem;
    font-weight: 600;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
}

/* Sectors Grid */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.sector-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    animation: fadeInUp 0.5s ease-out backwards;
    border: 2px solid transparent;
    position: relative;
}

.dark .sector-card {
    background: #2d3748;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.sector-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.dark .sector-card:hover {
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.sector-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.sector-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.sector-card:hover .sector-icon {
    transform: scale(1.1) rotate(5deg);
}

.sector-icon svg {
    width: 32px;
    height: 32px;
    color: white;
    stroke-width: 2;
}

.sector-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
    padding: 0;
    transition: all 0.3s ease;
}

.dark .sector-name {
    color: #e2e8f0;
}

.sector-card:hover .sector-name {
    color: #667eea;
}

.sector-arrow {
    width: 24px;
    height: 24px;
    color: #cbd5e0;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.sector-card:hover .sector-arrow {
    color: #667eea;
    transform: translateX(5px);
}

/* Skeleton loader for just the value - CENTERED */
.skeleton-value-loader {
    width: 70%;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e0e0e0 25%, #d0d0d0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    margin: 0 auto;
}

.dark .skeleton-value-loader {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%;
}

/* Mobile optimization */
@media (max-width: 640px) {
    .skeleton-value-loader {
        width: 80%; /* Slightly wider on mobile for better visibility */
        height: 28px; /* Slightly shorter for compact mobile view */
    }
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}




/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    animation: fadeIn 0.5s ease-out;
}

.no-results-icon {
    width: 80px;
    height: 80px;
    color: #cbd5e0;
    margin: 0 auto 1.5rem;
    display: block;
}

.no-results-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #4a5568;
    margin: 0 0 0.5rem 0;
    padding: 0;
}

.dark .no-results-title {
    color: #a0aec0;
}

.no-results-text {
    font-size: 1.125rem;
    color: #718096;
    margin: 0;
    padding: 0;
}

.dark .no-results-text {
    color: #718096;
}

/* ==================== DASHBOARD QUICK ACTIONS ==================== */

#quickActions {
    padding: 2rem 0;
    margin: 2rem 0;
}

.quick-actions-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.quick-action-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.dark .quick-action-card {
    background: #2d3748;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.quick-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.quick-action-card:hover::before {
    opacity: 1;
}

.quick-action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.dark .quick-action-card:hover {
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.quick-action-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.quick-action-card:hover .quick-action-icon {
    transform: scale(1.1) rotate(-5deg);
}

.quick-action-icon svg {
    width: 32px;
    height: 32px;
    color: white;
    stroke-width: 2;
}

.quick-action-content {
    flex: 1;
    z-index: 1;
}

.quick-action-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
    padding: 0;
    transition: all 0.3s ease;
}

.dark .quick-action-title {
    color: #e2e8f0;
}

.quick-action-card:hover .quick-action-title {
    color: #667eea;
}

.quick-action-description {
    font-size: 1rem;
    color: #718096;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.dark .quick-action-description {
    color: #a0aec0;
}

.quick-action-arrow {
    width: 32px;
    height: 32px;
    color: #cbd5e0;
    transition: all 0.3s ease;
    z-index: 1;
    flex-shrink: 0;
}

.quick-action-card:hover .quick-action-arrow {
    color: #667eea;
    transform: translateX(8px);
}

/* ==================== ANIMATIONS ==================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Stock Search Clear Button (in header) */
.stock-clear-btn {
    position: absolute;
    right: 100px; /* For desktop - leaves room for search button */
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.stock-clear-btn:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.stock-clear-btn svg {
    width: 16px;
    height: 16px;
}

/* Mobile adjustments for stock search clear */
@media (max-width: 640px) {
    .stock-clear-btn {
        right: 50px; /* Adjust for mobile search button */
        width: 24px;
        height: 24px;
    }
    
    .stock-clear-btn svg {
        width: 14px;
        height: 14px;
    }
}
/* Financial Charts Section */
.financial-charts-section {
    padding: 2rem 0;
}

.view-toggle-btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.view-toggle-btn:hover {
    color: #374151;
    background: #f3f4f6;
}

.view-toggle-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dark .view-toggle-btn:hover {
    color: #f9fafb;
    background: #374151;
}

.chart-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chart-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.chart-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
}

@media (max-width: 768px) {
    .chart-wrapper {
        height: 250px;
    }
    
    .view-toggle-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8125rem;
    }
}
/* Shareholding Section - Split Layout */
.shareholding-section {
    padding: 2rem 0;
}

#shareholding-container {
    width: 100%;
}

#shareholding-container .chart-card {
    width: 100%;
}

@media (max-width: 768px) {
    #shareholding-container .flex {
        flex-direction: column;
    }
    
    #shareholding-container .w-full.md\:w-1\/2 {
        width: 100% !important;
    }
}
/* =================================== */
/* ✅ PERFECT MODAL FIX - COPY PASTE THIS */
/* =================================== */

/* Base modal styles - FIXED display logic */
#aboutUsModal,
#privacyPolicyModal,
#termsOfUseModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 99999 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(8px) !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    visibility: hidden !important;  /* ✅ Use visibility instead of display */
    opacity: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ✅ SHOW modals - highest specificity */
#aboutUsModal:not(.hidden),
#privacyPolicyModal:not(.hidden),
#termsOfUseModal:not(.hidden) {
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
}

/* ✅ HIDE modals - ONLY when .hidden class */
#aboutUsModal.hidden,
#privacyPolicyModal.hidden,
#termsOfUseModal.hidden {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Modal content - consistent across all */
#aboutUsModal > div,
#privacyPolicyModal > div,
#termsOfUseModal > div {
    position: relative !important;
    max-width: 90vw !important;
    max-width: 80rem !important;
    max-height: 90vh !important;
    width: 100% !important;
    margin: auto !important;
    overflow-y: auto !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3) !important;
    background: #ffffff !important;  /* Force light for consistency */
}

/* Landing page specific overrides */
body.new-landing-page #aboutUsModal > div {
    max-width: 95vw !important;
    background: #ffffff !important;
}

/* Sticky close button ONLY for About Us */
#closeAboutUs {
    position: sticky !important;
    top: 1rem !important;
    margin-left: auto;
    margin-right: 1.5rem;
}

/* Absolute for small modals */
#closePrivacyPolicy,
#closeTermsOfUse {
    position: sticky;
    top: 1rem !important;
}

/* Shared styles */
#closeAboutUs,
#closePrivacyPolicy,
#closeTermsOfUse {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dark #closeAboutUs,
.dark #closePrivacyPolicy,
.dark #closeTermsOfUse {
    background: rgba(17, 24, 39, 0.9);
}



/* Prevent body scroll */
body:has(#aboutUsModal:not(.hidden)),
body:has(#privacyPolicyModal:not(.hidden)),
body:has(#termsOfUseModal:not(.hidden)) {
    overflow: hidden !important;
}

/* Landing page text overrides - force light theme */
body.new-landing-page #aboutUsModal *,
body.new-landing-page #privacyPolicyModal *,
body.new-landing-page #termsOfUseModal * {
    color: #111827 !important;
    background-color: #ffffff !important;
}

body.new-landing-page #aboutUsModal .text-gray-900,
body.new-landing-page #privacyPolicyModal .text-gray-900,
body.new-landing-page #termsOfUseModal .text-gray-900 {
    color: #111827 !important;
}

/* Remove ALL dark mode overrides */
body.new-landing-page #aboutUsModal [class*="dark:"],
body.new-landing-page #privacyPolicyModal [class*="dark:"],
body.new-landing-page #termsOfUseModal [class*="dark:"] {
    background-color: #ffffff !important;
    color: #111827 !important;
    border-color: #e5e7eb !important;
}

/* Sticky close button for modals */
#aboutUsModal button[id^="close"],
#privacyPolicyModal button[id^="close"],
#termsOfUseModal button[id^="close"] {
  position: sticky !important;
  top: 1rem !important;
  z-index: 10 !important;
}
/* ✅ Fix Market Overview skeleton on mobile */
.value-wrapper {
    min-height: 1.25rem;
    display: flex;
    align-items: center;
}

.value-wrapper .skeleton-value-loader {
    width: 100%;
    height: 1rem;
    border-radius: 6px;
}
