/* Base & Reset */

:root {
    --card-bg: rgba(13, 23, 48, 0.65);
    --card-bg-solid: #0d1730;
    --bg-main: #060d1f;
    --border-color: rgba(26, 41, 81, 0.7);
    --text-color: #f0f4fc;
    --accent-blue: #2962FF;
    --accent-blue-gradient: linear-gradient(135deg, hsl(224, 100%, 57%), hsl(263, 90%, 50%));
    
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 16px 48px 0 rgba(41, 98, 255, 0.22);
    --glass-blur: blur(12px) saturate(180%);
    --border-glow: 1px solid rgba(255, 255, 255, 0.07);
    --border-glow-hover: 1px solid rgba(41, 98, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #060d1f;
    color: #f0f4fc;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, hsla(242, 85%, 15%, 0.4) 0px, transparent 50%),
        radial-gradient(at 90% 10%, hsla(224, 90%, 12%, 0.3) 0px, transparent 50%);
    background-attachment: fixed;
}

/* Animations */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Header */
.app-header {
    background-color: #0d1730;
    border-bottom: 1px solid #1a2951;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo h1 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #f0f4fc;
    letter-spacing: -0.03em;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    color: #f0f4fc;
    background-color: #1a2951;
}

.main-nav a.active {
    color: #f0f4fc;
    background-color: rgba(41, 98, 255, 0.15);
    border: 1px solid rgba(41, 98, 255, 0.3);
}

.time-display {
    font-size: 0.85rem;
    color: #a0aec0;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    font-variant-numeric: tabular-nums;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid #1a2951;
    color: #f0f4fc;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.mobile-menu-btn:hover {
    background: #0a1226;
}

/* Ticker Tape */
.ticker-tape {
    background-color: #f0f4fc;
    color: #0d1730;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    font-variant-numeric: tabular-nums;
}

.ticker-content {
    white-space: nowrap;
    animation: ticker 240s linear infinite;
    display: inline-block;
    padding-left: 100%;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    margin-right: 40px;
}

.ticker-item a {
    color: #0d1730;
    text-decoration: none;
    transition: color 0.2s;
}

.ticker-item a:hover {
    color: #60a5fa;
}

.ticker-source {
    color: #64748b;
    font-size: 0.75rem;
    margin-left: 8px;
    text-transform: uppercase;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Layout */
.news-container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 24px;
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.mt-40 {
    margin-top: 40px;
}

/* Section Headers (Moneycontrol Style) */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a2951;
    position: relative;
}

.section-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #f0f4fc;
    letter-spacing: 0.02em;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px; /* aligned perfectly to overlap section-header border-bottom */
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #1b5cb7; /* Royal blue brand accent */
}

/* Clickable Headers (Moneycontrol Style) */
.section-header.clickable-header {
    cursor: pointer;
    transition: opacity 0.2s, border-bottom-color 0.2s;
}

.section-header.clickable-header:hover {
    opacity: 0.8;
}

.section-header.clickable-header:hover h2 {
    color: #1b5cb7;
}

.section-header.clickable-header:hover h2::after {
    background: var(--accent-blue-gradient);
    width: 90px;
    transition: width 0.2s ease;
}


.source-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.source-badge.et { background-color: #fef2f2; color: #dc2626; border: 1px solid #fee2e2; }
.source-badge.mint { background-color: #f0fdf4; color: #16a34a; border: 1px solid #dcfce7; }
.source-badge.mc { background-color: #eff6ff; color: #1b5cb7; border: 1px solid #dbeafe; }
.source-badge.bs { background-color: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.source-badge.fe { background-color: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }
.source-badge.hbl { background-color: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.source-badge.nse { background-color: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.source-badge.bse { background-color: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.source-badge.amfi { background-color: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }


/* Moneycontrol Style Article Cards (Dense, Row-based) */
.article-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: row-reverse; /* Thumbnail on the right */
    gap: 20px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    border: var(--border-glow);
    padding: 20px 24px;
    margin: 0;
}

.article-card:hover {
    transform: translateY(-4px) scale(1.005);
    box-shadow: var(--card-shadow-hover);
    border: var(--border-glow-hover);
}

.article-img-wrapper {
    position: relative;
    width: 135px;
    height: 90px;
    padding-top: 0;
    background-color: #0a1226;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.article-card:hover .article-img {
    transform: none;
    opacity: 0.9;
}

.article-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-date {
    font-size: 0.75rem;
    color: #a0aec0;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.article-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 8px;
    color: #f0f4fc;
    font-family: 'Inter', sans-serif;
}

.article-card:hover .article-title {
    color: #1b5cb7;
    text-decoration: underline;
}

.article-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.45;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hero Grid (Economic Times featured + lists) */
.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px; /* 24px row gap, 32px column gap */
}

/* Lead featured story is larger */
.hero-grid .article-card:first-child {
    grid-column: 1 / -1;
    flex-direction: column; /* top image, bottom text */
    padding-bottom: 24px;
    gap: 16px;
}

.hero-grid .article-card:first-child .article-img-wrapper {
    width: 100%;
    height: 380px;
    border-radius: 8px;
}

.hero-grid .article-card:first-child .article-content {
    width: 100%;
}

.hero-grid .article-card:first-child .article-title {
    font-size: 1.6rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #f0f4fc;
}

.hero-grid .article-card:first-child .article-desc {
    font-size: 0.95rem;
    -webkit-line-clamp: 3;
    color: #cbd5e1;
}

@media (max-width: 768px) {
    .hero-grid .article-card:first-child .article-img-wrapper {
        height: 220px;
    }
    .article-card {
        gap: 12px;
        padding: 16px;
    }
    .article-img-wrapper {
        width: 100px;
        height: 70px;
    }
}

/* Article List (LiveMint columns) */
.article-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px; /* 24px row gap, 32px column gap */
}

@media (max-width: 640px) {
    .hero-grid, .article-list {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Section (Moneycontrol Compact Sidebar Widget) */
.sidebar-section {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: 12px;
    padding: 20px;
    border: var(--border-glow);
    box-shadow: var(--card-shadow);
    margin-bottom: 24px;
    overflow: hidden;
}

.compact-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #0a1226;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.compact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.compact-item:hover .compact-title {
    color: #1b5cb7;
    text-decoration: underline;
}

.compact-img {
    width: 64px;
    height: 64px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #0a1226;
}

.compact-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.compact-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #f0f4fc;
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.compact-content span {
    font-size: 0.72rem;
    color: #a0aec0;
}

/* Promo Box (Moneycontrol advertisement / tools card) */
.promo-box {
    margin-top: 24px;
    background: linear-gradient(135deg, #1b5cb7, #2962ff);
    border-radius: 8px;
    padding: 24px;
    color: #f0f4fc;
    text-align: center;
    box-shadow: 0 4px 12px rgba(27, 92, 183, 0.15);
}

.promo-box h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.promo-box p {
    font-size: 0.88rem;
    opacity: 0.9;
    margin-bottom: 16px;
    line-height: 1.4;
}

.btn-primary {
    display: inline-block;
    background-color: #0d1730;
    color: #1b5cb7;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.88rem;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-primary:hover {
    background-color: #0a1226;
    transform: translateY(-1px);
}

.btn-primary:hover {
    background-color: #0a1226;
    transform: translateY(-2px);
}

/* Loading Skeletons */
.loading-skeleton {
    background: #1a2951;
    border-radius: 12px;
    height: 300px;
    animation: pulse 1.5s infinite;
}

.compact-list .loading-skeleton {
    height: 100px;
    margin-bottom: 16px;
    background: transparent;
    border: none;
    display: flex;
    gap: 16px;
}

.compact-list .loading-skeleton::before {
    content: '';
    width: 80px;
    height: 80px;
    background: #1a2951;
    border-radius: 8px;
    animation: pulse 1.5s infinite;
}

.compact-list .loading-skeleton::after {
    content: '';
    flex-grow: 1;
    height: 40px;
    background: #1a2951;
    border-radius: 4px;
    margin-top: 10px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

footer {
    text-align: center;
    padding: 40px 20px;
    color: #a0aec0;
    font-size: 0.85rem;
    border-top: 1px solid #1a2951;
    margin-top: 60px;
    background-color: #0d1730;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,18,38,0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #0d1730;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 12px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.4);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #0a1226;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: background 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: #1a2951;
    color: #f0f4fc;
}

.modal-body {
    padding: 0;
}

#modal-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    background: #1a2951;
}

.modal-content-inner {
    padding: 30px 40px;
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #a0aec0;
}

#modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #f0f4fc;
    line-height: 1.3;
    margin-bottom: 24px;
}

#modal-text {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.8;
}

@media (max-width: 768px) {
    #modal-img { height: 250px; }
    .modal-content-inner { padding: 20px; }
    #modal-title { font-size: 1.8rem; }
}


/* Custom Market Action Widget */
.custom-market-widget {
    padding: 15px 20px 20px;
}
.market-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.market-tab {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.market-tab.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: #2962ff;
    color: #2962ff;
}
.market-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.market-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.market-symbol {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}
.market-price-box {
    text-align: right;
}
.market-price {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
}
.market-change {
    font-size: 12px;
    font-weight: 600;
}
.market-change.positive {
    color: #16a34a; /* Green */
}
.market-change.negative {
    color: #dc2626; /* Red */
}



/* Market Expand Button Styles */
.market-expand-container {
    padding-top: 15px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 5px;
}

.market-expand-btn {
    background: transparent;
    border: none;
    color: #2962ff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    transition: all 0.2s ease;
}

.market-expand-btn:hover {
    opacity: 0.8;
    transform: translateY(2px);
}

.market-expand-btn span {
    font-size: 10px;
}



/* Market Indices Overview Styles */
.indices-row {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.indices-row:last-child {
    border-bottom: none;
}

.indices-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 6px;
}

.indices-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.indices-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-variant-numeric: tabular-nums;
}

.indices-change-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.indices-pts {
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    font-variant-numeric: tabular-nums;
}

.indices-pts.positive {
    color: #16a34a;
}

.indices-pts.negative {
    color: #dc2626;
}

.indices-pct {
    font-size: 12px;
    font-weight: 700;
    min-width: 60px;
    text-align: center;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-variant-numeric: tabular-nums;
}

.indices-pct.positive {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}

.indices-pct.negative {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}



/* Responsive Market Analysis Grids */
@media (max-width: 1200px) {
    .analysis-grid {
        grid-template-columns: 1fr !important;
    }
    #symbol-overview-container { height: 350px !important; }
    #technical-analysis-container { height: 350px !important; }
    #mini-chart-container { height: 300px !important; }
    #financials-container { height: 300px !important; }
    #profile-container { height: 300px !important; }
}

.analysis-grid > div {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.analysis-grid > div:hover {
    transform: translateY(-5px);
}

/* Responsive News Page */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .sidebar-column {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .promo-box {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    .main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #0d1730;
        padding: 16px;
        border-bottom: 1px solid #1a2951;
        box-shadow: 0 4px 12px rgba(0,0,0,0.4);
        z-index: 99;
        display: none;
        flex-direction: column;
        gap: 0;
    }
    .main-nav.active {
        display: flex;
    }
    .main-nav a {
        padding: 12px 16px;
        border-radius: 8px;
        transition: background-color 0.2s;
    }
    .main-nav a:hover {
        background-color: #0a1226;
    }
    .main-nav a.active::after {
        display: none;
    }
    .main-nav a.active {
        background-color: #eff6ff;
    }
    .app-header {
        height: 60px;
    }
    .header-container {
        padding: 0 16px;
    }
    .logo h1 {
        font-size: 1.2rem;
    }
    .time-display {
        font-size: 0.8rem;
    }
    .news-container {
        margin: 20px auto;
        padding: 0 16px;
    }
    .sidebar-column {
        grid-template-columns: 1fr;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-grid .article-card:first-child {
        flex-direction: column;
    }
    .hero-grid .article-card:first-child .article-img-wrapper,
    .hero-grid .article-card:first-child .article-content {
        width: 100%;
    }
    .hero-grid .article-card:first-child .article-img-wrapper {
        padding-top: 56.25%;
        min-height: auto;
    }
    .hero-grid .article-card:first-child .article-title {
        font-size: 1.5rem;
    }
    .article-list {
        grid-template-columns: 1fr;
    }
    .section-header h2 {
        font-size: 1.5rem;
    }
    .section-header[style] {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .section-header[style] .search-bar {
        width: 100%;
    }
    .section-header[style] .search-bar input {
        width: 100% !important;
    }
    #modal-img { height: 250px; }
    .modal-content-inner { padding: 20px; }
    #modal-title { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .app-header {
        height: auto;
        padding: 12px 0;
    }
    .header-container {
        flex-wrap: wrap;
        gap: 10px;
        padding: 0 12px;
    }
    .logo {
        width: 100%;
        justify-content: center;
    }
    .time-display {
        width: 100%;
        text-align: center;
        font-size: 0.75rem;
    }
    .main-nav {
        top: auto;
        position: relative;
    }
    .news-container {
        margin: 16px auto;
        padding: 0 12px;
    }
    .section-header h2 {
        font-size: 1.3rem;
    }
    .article-card {
        padding: 12px 16px;
    }
    .article-content {
        padding: 0;
    }
    .article-title {
        font-size: 1rem;
    }
    .article-desc {
        font-size: 0.85rem;
    }
    .compact-img {
        width: 70px;
        height: 70px;
    }
    .promo-box {
        padding: 24px 16px;
    }
    .promo-box h3 {
        font-size: 1.2rem;
    }
    footer {
        padding: 30px 12px;
        margin-top: 40px;
    }
}

/* --- Markets at a Glance Strip --- */
.markets-glance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.glance-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--border-glow);
    border-radius: 10px;
    padding: 14px 18px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Moneycontrol border-top highlight */
.glance-card.positive {
    border-top: 3px solid #16a34a;
}

.glance-card.negative {
    border-top: 3px solid #dc2626;
}

.glance-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--card-shadow-hover);
    border: var(--border-glow-hover);
    background-color: rgba(20, 34, 71, 0.8);
}

.glance-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.glance-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #f0f4fc;
}

.glance-exch {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.glance-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #f0f4fc;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
    font-family: 'Inter', sans-serif;
    font-variant-numeric: tabular-nums;
}

.glance-change-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    font-variant-numeric: tabular-nums;
}

.glance-change-val.positive,
.glance-change-pct.positive {
    color: #16a34a;
}

.glance-change-val.negative,
.glance-change-pct.negative {
    color: #dc2626;
}

/* --- Interactive Sidebar Links --- */
.indices-row {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 4px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.indices-row:hover {
    background-color: rgba(41, 98, 255, 0.05);
    transform: translateX(4px);
}

.indices-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.market-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 4px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.market-row:hover {
    background-color: rgba(41, 98, 255, 0.05);
    transform: translateX(4px);
}

.market-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .markets-glance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .markets-glance-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Moneycontrol-Style Market Columns Grid --- */
.market-widgets-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.market-column-widget {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--border-glow);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.widget-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Moneycontrol High-Density Tables --- */
.market-data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.market-data-table th {
    text-align: left;
    font-size: 0.72rem;
    color: #a0aec0;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 10px 8px;
    border-bottom: 2px solid #1a2951;
}

.market-data-table td {
    padding: 10px 8px;
    font-size: 0.85rem;
    border-bottom: 1px solid #0a1226;
    vertical-align: middle;
    font-family: 'Inter', sans-serif;
    font-variant-numeric: tabular-nums;
}

.market-data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Make table rows clickable and style them */
.market-row-link-tr {
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.market-row-link-tr:hover {
    background-color: rgba(41, 98, 255, 0.04);
}

.market-row-link-tr td {
    color: #f0f4fc;
    transition: color 0.2s ease;
}

.market-row-link-tr:hover td {
    color: #1b5cb7;
}

/* Positive/Negative styling inside tables */
.market-val-pos {
    color: #16a34a;
    font-weight: 600;
}

.market-val-neg {
    color: #dc2626;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .market-widgets-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Professional Site Footer styling */
.site-footer {
    background-color: #080f25;
    border-top: 1px solid #1a2951;
    padding: 60px 40px 30px;
    margin-top: 80px;
    color: #a0aec0;
}
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
}
.footer-brand h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.4rem;
}
.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links-group h4 {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-links-group a {
    color: #8a93a6;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.15s ease;
}
.footer-links-group a:hover {
    color: #2962ff;
}
.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid #142142;
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .site-footer {
        padding: 40px 20px 20px;
    }
}

/* Beautiful Stock Candle Loader & Retry Countdown */
.candle-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    gap: 12px;
    color: #a0aec0;
    font-size: 0.85rem;
    text-align: center;
    grid-column: 1 / -1;
}

.candle-track {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 30px;
}

.candle {
    position: relative;
    width: 6px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.candle .wick {
    position: absolute;
    width: 1px;
    height: 100%;
    background-color: #475569;
}

.candle .body {
    position: absolute;
    width: 6px;
    height: 12px;
    border-radius: 1px;
    animation: candle-pulse 1.2s ease-in-out infinite;
}

.candle.bullish .body {
    background-color: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.candle.bearish .body {
    background-color: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

.candle:nth-child(1) .body {
    animation-delay: 0s;
}
.candle:nth-child(2) .body {
    animation-delay: 0.3s;
}
.candle:nth-child(3) .body {
    animation-delay: 0.6s;
}

@keyframes candle-pulse {
    0%, 100% {
        height: 8px;
        transform: translateY(0);
    }
    50% {
        height: 18px;
        transform: translateY(-3px);
    }
}

.loader-text {
    font-weight: 600;
    color: #f0f4fc;
}

.retry-countdown {
    font-size: 0.75rem;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    font-weight: 500;
}

/* Animated Sun/Moon Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
    width: 38px;
    height: 38px;
    margin-right: 12px;
}
.theme-toggle-btn:hover {
    background-color: var(--hover-bg);
    color: var(--text-primary);
}
.theme-toggle-btn svg {
    position: absolute;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}
/* When in dark mode (moon mode) */
body:not(.light-theme) .theme-toggle-btn .sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}
body:not(.light-theme) .theme-toggle-btn .moon-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}
/* When in light mode (sun mode) */
body.light-theme .theme-toggle-btn .sun-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}
body.light-theme .theme-toggle-btn .moon-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

@media (max-width: 768px) {
    .theme-toggle-btn {
        margin-right: 8px;
    }
}

/* --- Light Theme Overrides for News Page --- */
body.light-theme {
    background-color: #f1f5f9;
    color: #0f172a;
    
    --card-bg: #ffffff;
    --bg-main: #f1f5f9;
    --border-color: #cbd5e1;
    --text-color: #0f172a;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --hover-bg: #f8fafc;
}

body.light-theme .app-header {
    background-color: #ffffff;
    border-bottom: 1px solid #cbd5e1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

body.light-theme .logo h1 {
    color: #0f172a;
}

body.light-theme .main-nav a {
    color: #475569;
}
body.light-theme .main-nav a:hover {
    color: #0f172a;
    background-color: #f1f5f9;
}
body.light-theme .main-nav a.active {
    color: #2563eb;
    background-color: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
}

body.light-theme .time-display {
    color: #475569;
}

body.light-theme .mobile-menu-btn {
    border-color: #cbd5e1;
    color: #0f172a;
}
body.light-theme .mobile-menu-btn:hover {
    background: #f1f5f9;
}

body.light-theme .section-header {
    border-bottom-color: #cbd5e1;
}
body.light-theme .section-header h2 {
    color: #0f172a;
}

body.light-theme .article-card {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    color: #0f172a;
}
body.light-theme .article-card:hover {
    border-color: #2563eb;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background: #f8fafc;
}

body.light-theme .article-title {
    color: #0f172a;
}
body.light-theme .article-card:hover .article-title {
    color: #2563eb;
}
body.light-theme .article-desc {
    color: #475569;
}

body.light-theme .hero-grid .article-card:first-child .article-title {
    color: #0f172a;
}
body.light-theme .hero-grid .article-card:first-child .article-desc {
    color: #475569;
}

body.light-theme .sidebar-section {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

body.light-theme .compact-item {
    border-bottom-color: #f1f5f9;
}
body.light-theme .compact-title {
    color: #0f172a;
}
body.light-theme .compact-content span {
    color: #64748b;
}
body.light-theme .compact-img,
body.light-theme .article-img-wrapper {
    background-color: #f1f5f9;
}

body.light-theme .market-data-table th {
    background-color: #f8fafc;
    color: #475569;
    border-bottom: 2px solid #cbd5e1;
}
body.light-theme .market-data-table td {
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
}
body.light-theme .market-data-table tr:hover td {
    background-color: #f8fafc;
}

body.light-theme .candle-loader .loader-text {
    color: #0f172a;
}

/* Light Theme Glance Card, Widgets, and Tables Overrides */

body.light-theme .glance-card {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    color: #0f172a !important;
}

body.light-theme .glance-card:hover {
    background-color: #f8fafc !important;
    border-color: #2563eb !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .glance-name {
    color: #0f172a !important;
}

body.light-theme .glance-exch {
    color: #64748b !important;
}

body.light-theme .glance-price {
    color: #0f172a !important;
}

/* Market Column Widgets (Commodities, Currencies, Bonds, Top Companies) */
body.light-theme .market-column-widget {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
}

body.light-theme .market-column-widget .section-header {
    border-bottom-color: #cbd5e1 !important;
}

/* High-Density Market Data Tables */
body.light-theme .market-data-table th {
    background-color: #f8fafc !important;
    color: #475569 !important;
    border-bottom: 2px solid #cbd5e1 !important;
}

body.light-theme .market-data-table td {
    color: #0f172a !important;
    border-bottom-color: #e2e8f0 !important;
}

body.light-theme .market-row-link-tr td {
    color: #0f172a !important;
}

body.light-theme .market-row-link-tr:hover {
    background-color: #f1f5f9 !important;
}

body.light-theme .market-row-link-tr:hover td {
    color: #2563eb !important;
}

body.light-theme .market-data-table td strong {
    color: #0f172a !important;
}

body.light-theme .market-data-table td small {
    color: #64748b !important;
}

body.light-theme .market-data-table th {
    border-bottom-color: #cbd5e1 !important;
}

/* Top Companies in India Table Overrides */
body.light-theme #companies-table thead tr {
    background: #f8fafc !important;
    border-bottom: 2px solid #cbd5e1 !important;
}

body.light-theme #companies-table thead th {
    color: #475569 !important;
}

/* Loading Skeletons in Light Mode */
body.light-theme .loading-skeleton {
    background: #e2e8f0 !important;
}

body.light-theme .compact-list .loading-skeleton::before {
    background: #e2e8f0 !important;
}

body.light-theme .compact-list .loading-skeleton::after {
    background: #e2e8f0 !important;
}


/* --- Premium Landing Page Elements --- */

/* Hero Section */
.hero-section {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    animation: slideUpFade 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.03em;
}

.hero-title span {
    background: var(--accent-blue-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #a0aec0;
    line-height: 1.6;
    max-width: 580px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.hero-cta {
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-gradient {
    background: var(--accent-blue-gradient);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(41, 98, 255, 0.3);
}

.btn-primary-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(41, 98, 255, 0.45);
}

.btn-secondary-outline {
    border: 1px solid var(--border-color);
    background: rgba(13, 23, 48, 0.3);
    color: #f0f4fc;
    backdrop-filter: var(--glass-blur);
}

.btn-secondary-outline:hover {
    background: rgba(26, 41, 81, 0.6);
    border-color: rgba(41, 98, 255, 0.5);
    transform: translateY(-3px);
}

/* Hero Live Preview Glass Card */
.hero-preview-container {
    perspective: 1000px;
}

.preview-glass-card {
    background: rgba(13, 23, 48, 0.5);
    backdrop-filter: var(--glass-blur);
    border: var(--border-glow);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: all 0.5s ease;
}

.preview-glass-card:hover {
    transform: rotateY(0deg) rotateX(0deg) translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.preview-header {
    background: rgba(10, 18, 38, 0.6);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: var(--border-glow);
}

.preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.preview-title {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 8px;
}

.preview-body {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-chart-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(41, 98, 255, 0.15));
}

/* Social Proof Ecosystem Bar */
.social-proof-bar {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 24px;
    text-align: center;
}

.social-proof-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.partners-ticker {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 12px 0;
    border-top: var(--border-glow);
    border-bottom: var(--border-glow);
}

.partners-ticker-track {
    display: inline-block;
    animation: partners-scroll 35s linear infinite;
}

.partners-ticker-track span {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #8a93a6;
    margin-right: 60px;
    letter-spacing: 0.5px;
}

@keyframes partners-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Features Grid Section */
.features-section {
    max-width: 1400px;
    margin: 80px auto 40px;
    padding: 0 24px;
}

.features-header {
    text-align: center;
    margin-bottom: 40px;
}

.features-header h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.features-header p {
    font-size: 1rem;
    color: #a0aec0;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--border-glow);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    border: var(--border-glow-hover);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(41, 98, 255, 0.1);
    color: #2962ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.feature-card p {
    font-size: 0.9rem;
    color: #8a93a6;
    line-height: 1.6;
}

/* Conversion CTA Banner */
.conversion-cta-section {
    max-width: 1400px;
    margin: 80px auto 40px;
    padding: 0 24px;
}

.cta-glass-card {
    background: linear-gradient(135deg, rgba(13, 23, 48, 0.8), rgba(6, 13, 31, 0.8)), var(--accent-blue-gradient);
    backdrop-filter: var(--glass-blur);
    border: var(--border-glow);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.cta-glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(41, 98, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.cta-glass-card h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
}

.cta-glass-card p {
    font-size: 1.05rem;
    color: #cbd5e1;
    max-width: 600px;
    line-height: 1.6;
}

.cta-input-group {
    margin-top: 10px;
}

.btn-cta-primary {
    background: #ffffff;
    color: #2962ff;
    padding: 14px 36px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
    background: #f8fafc;
}

/* Light Theme overrides for Landing elements */
body.light-theme .hero-title {
    color: #0f172a;
}
body.light-theme .hero-subtitle {
    color: #475569;
}
body.light-theme .btn-secondary-outline {
    background: rgba(255, 255, 255, 0.7);
    border-color: #cbd5e1;
    color: #0f172a;
}
body.light-theme .btn-secondary-outline:hover {
    background: #ffffff;
    border-color: #2962ff;
}
body.light-theme .preview-glass-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #cbd5e1;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
body.light-theme .preview-header {
    background: #f8fafc;
    border-bottom: 1px solid #cbd5e1;
}
body.light-theme .preview-title {
    color: #94a3b8;
}
body.light-theme .partners-ticker {
    border-top-color: #cbd5e1;
    border-bottom-color: #cbd5e1;
}
body.light-theme .partners-ticker-track span {
    color: #475569;
}
body.light-theme .features-header h3 {
    color: #0f172a;
}
body.light-theme .features-header p {
    color: #475569;
}
body.light-theme .feature-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #cbd5e1;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
body.light-theme .feature-card h4 {
    color: #0f172a;
}
body.light-theme .feature-card p {
    color: #475569;
}
body.light-theme .feature-card:hover {
    border-color: rgba(41, 98, 255, 0.4);
}
body.light-theme .cta-glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9)), var(--accent-blue-gradient);
    border: 1px solid #cbd5e1;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
body.light-theme .cta-glass-card h3 {
    color: #0f172a;
}
body.light-theme .cta-glass-card p {
    color: #475569;
}
body.light-theme .btn-cta-primary {
    background: #2962ff;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(41, 98, 255, 0.2);
}
body.light-theme .btn-cta-primary:hover {
    background: #1e40af;
    box-shadow: 0 8px 25px rgba(41, 98, 255, 0.35);
}

/* Breakpoint adjustments for Landing elements */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        margin: 30px auto;
    }
    .hero-subtitle {
        margin: 0 auto;
    }
    .hero-ctas {
        justify-content: center;
    }
    .preview-glass-card {
        transform: none;
        max-width: 600px;
        margin: 0 auto;
    }
    .preview-glass-card:hover {
        transform: translateY(-4px);
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .feature-card {
        padding: 24px;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.3rem;
    }
    .cta-glass-card {
        padding: 40px 20px;
    }
    .cta-glass-card h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.85rem;
    }
    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .hero-cta {
        width: 100%;
    }
    .preview-body {
        padding: 16px;
    }
}





