.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'liga';
}

html, body {
    background-color: #0d1117;
    color: #ffffff;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif !important;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.mud-typography, .mud-input, .mud-button, .mud-chip,
.mud-nav-link, .mud-menu-item, .mud-breadcrumbs,
.mud-alert, .mud-card, .mud-paper, .mud-text-field,
.mud-table, .mud-list, .mud-dialog, .mud-tabs,
* {
    font-family: 'Inter', sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-weight: 600;
    font-family: 'Inter', sans-serif !important;
}

.mud-layout h1, .mud-layout h2, .mud-layout h3,
.mud-layout h4, .mud-layout h5, .mud-layout h6 {
    color: inherit;
}

#blazor-error-ui {
    background: #800;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .reload { color: #fff; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }

/* Override MudBlazor dark theme */
.mud-theme-dark {
    --mud-palette-background: #0d1117;
    --mud-palette-surface: rgba(22, 27, 34, 0.55);
}

section, .section, .bg-white, .jumbotron,
.modal-content, .dropdown-menu,
.card:not(.mud-card), .list-group-item {
    background: transparent !important;
    background-color: transparent !important;
}

/* ===== Glassmorphism ===== */

.mud-paper {
    background: rgba(13, 17, 23, 0.78) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.mud-paper:hover {
    background: rgba(13, 17, 23, 0.88) !important;
    border-color: rgba(255, 255, 255, 0.14);
}

.mud-card {
    background: rgba(13, 17, 23, 0.75) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.mud-card:hover {
    background: rgba(13, 17, 23, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.14);
}

.mud-alert {
    background: rgba(13, 17, 23, 0.7) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mud-main-content { background: transparent !important; }

.mud-drawer {
    background: rgba(13, 17, 23, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ===== Footer ===== */

footer a { color: var(--mud-palette-text-secondary) !important; }
footer a:hover { color: var(--mud-palette-primary) !important; }

.footer-legal-links {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.45) !important;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal-links a:hover { color: var(--mud-palette-primary) !important; }
.footer-separator { margin: 0 8px; color: rgba(255, 255, 255, 0.2); }
.footer-copyright { font-size: 0.75rem; color: rgba(255, 255, 255, 0.3); }

.mud-layout a { text-decoration: none; }
a { transition: color 0.2s ease; }
.mud-layout a:hover { opacity: 0.85; }

/* ===== Particles Background ===== */

#particles-js {
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    z-index: 0 !important;
    pointer-events: none !important;
}

/* hero overlay added via .hero-landing::before */

#particles-js canvas {
    pointer-events: none !important;
    position: relative;
    z-index: 1;
}

.mud-layout {
    position: relative;
    z-index: 1;
    background: transparent !important;
}

.mud-layout-page { background: transparent !important; }

/* ===== Hero Landing ===== */

.header-area {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.hero-landing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 17, 23, 0.55);
    pointer-events: none;
    z-index: 0;
}

.hero-landing > * {
    position: relative;
    z-index: 1;
}

.header-area .logo-text {
    font-size: 100px;
    font-family: 'Inter', sans-serif !important;
    font-weight: 800;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 0, 0, 0.4);
    outline: none;
}

.mud-appbar a:focus,
.mud-appbar a:focus-visible,
.header-area h1:focus,
.header-area h1:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.hero-subtitle {
    color: #ffffff;
    font-size: 44px;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 0, 0, 0.35);
}

.hero-landing h3,
.hero-landing p,
.hero-landing a {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.hero-landing {
    height: 100vh;
    height: 100dvh;
    width: 100%;
    margin-top: -64px;
    padding-top: 90px;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

.brokerage-links {
    position: absolute;
    top: 70px;
    width: 100%;
    z-index: 5;
}

.brokerage-links a {
    color: grey;
    text-decoration: underline;
    font-size: smaller;
}

@media (max-width: 768px) {
    .header-area .logo-text { font-size: 44px !important; }
    .hero-subtitle { font-size: 22px !important; line-height: 32px !important; }
    .header-area { padding: 100px 0 80px 0 !important; }
    .brokerage-links { font-size: 11px; top: 66px; }
    .hero-landing { padding-top: 120px !important; }
}

@media (max-width: 480px) {
    .header-area .logo-text { font-size: 32px !important; }
    .hero-subtitle { font-size: 18px !important; line-height: 28px !important; }
    .header-area { padding: 80px 0 60px 0 !important; }
    .brokerage-links { font-size: 10px; top: 64px; line-height: 1.4; }
    .hero-landing { padding-top: 130px !important; }
}

/* ===== Content Section (below hero) ===== */

.content-section {
    position: relative;
    z-index: 3;
    padding: 40px 0;
}

/* gradient transition removed — hero overlay handles readability */

.content-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 17, 23, 0.55);
    pointer-events: none;
    z-index: -1;
}

/* ===== Z-index Stack ===== */

.mud-appbar { z-index: 1100 !important; }
.mud-drawer { z-index: 1200 !important; }
.mud-overlay { z-index: 1150 !important; }
.mud-popover-provider { z-index: 1300 !important; }
.mud-popover { z-index: 1300 !important; }
.mud-popover-open { z-index: 1400 !important; }

.mud-popover.mud-paper {
    background: rgba(22, 27, 34, 0.97) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* ===== Store Badges ===== */

.store-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.store-badge {
    height: 40px !important;
    width: auto !important;
    object-fit: contain !important;
    vertical-align: middle;
}

.store-badge-gplay {
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 6px;
}

.header-area .store-badge { height: 44px !important; }
.appbar-badges .store-badge { height: 28px !important; }

/* ===== Sector/Exchange Cards Grid ===== */

.champ-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 8px;
}

@media (max-width: 960px) { .champ-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .champ-grid { grid-template-columns: 1fr; } }

.champ-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(22, 27, 34, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none !important;
    color: #ffffff;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    overflow: hidden;
}

.champ-card:hover {
    background: rgba(30, 35, 44, 0.9);
    border-color: rgba(26, 115, 232, 0.4);
    transform: translateY(-2px);
}

.champ-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px; min-width: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.3) 0%, rgba(52, 168, 83, 0.3) 100%);
    border: 1px solid rgba(26, 115, 232, 0.15);
}

.champ-card-body { flex: 1; min-width: 0; }

.champ-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.champ-card-meta {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2px;
}

.champ-card-arrow {
    color: rgba(255, 255, 255, 0.2);
    transition: color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.champ-card:hover .champ-card-arrow {
    color: rgba(26, 115, 232, 0.7);
    transform: translateX(3px);
}

/* ===== Company Badge ===== */

.company-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
    overflow: hidden;
    flex-shrink: 0;
    width: 48px; height: 48px;
}

.company-badge img {
    width: 48px; height: 48px;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.company-badge-lg {
    width: 80px; height: 80px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.company-badge-lg img {
    width: 80px; height: 80px;
}

/* ===== Stock CTA Button (green key) ===== */

.stock-cta-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    padding: 0;
    margin-top: 7px;
    border-radius: 50%;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    animation: cta-pulse 2.5s ease-in-out infinite;
    position: relative;
}

.stock-cta-btn:hover {
    transform: scale(1.15);
    filter: brightness(1.2);
    box-shadow: 0 0 18px rgba(52, 168, 83, 0.45);
    border-radius: 50%;
}

.stock-cta-btn:active { transform: scale(0.92); }

.stock-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.stock-cta-icon svg {
    transition: transform 0.3s ease;
    border-radius: 50%;
    vertical-align: middle;
    display: block;
}

.stock-cta-btn:hover .stock-cta-icon svg { transform: scale(1.05); }

@keyframes cta-pulse {
    0%, 100% { box-shadow: 0 0 4px rgba(52, 168, 83, 0.15); }
    50% { box-shadow: 0 0 12px rgba(52, 168, 83, 0.3); }
}

/* ===== Stock Card Grid ===== */

.sc-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 8px;
}

@media (max-width: 960px) {
    .sc-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .sc-card-grid { grid-template-columns: 1fr; }
}

.sc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 16px 16px;
    background: rgba(22, 27, 34, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    overflow: visible;
}

.sc-card:hover {
    background: rgba(30, 35, 44, 0.92);
    border-color: rgba(26, 115, 232, 0.35);
    transform: translateY(-3px);
}

.sc-card-logo {
    margin-bottom: 12px;
}

.sc-card-initials {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a73e8, #34a853);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.sc-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    min-width: 0;
    width: 100%;
}

.sc-card-ticker {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.sc-card-name {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.sc-card-sector {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 10px;
    font-size: 0.72rem;
    font-weight: 500;
    color: #1a73e8;
    background: rgba(26, 115, 232, 0.12);
    border: 1px solid rgba(26, 115, 232, 0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sc-card-sector:hover {
    background: rgba(26, 115, 232, 0.22);
}

.sc-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
}

.sc-card-exchange, .sc-card-currency {
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
}

.sc-card-cta {
    margin-top: 8px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    animation: cta-pulse 2.5s ease-in-out infinite;
    border-radius: 50%;
    line-height: 0;
}

.sc-card-cta:hover {
    transform: scale(1.15);
    filter: brightness(1.2);
}

.sc-card-cta:active {
    transform: scale(0.92);
}

.sc-card:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

/* ===== Sector Group Header (predictions page) ===== */

.sector-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: rgba(26, 115, 232, 0.08);
    border-left: 3px solid #1a73e8;
    border-radius: 0 8px 8px 0;
}

.sector-group-header:first-child {
    margin-top: 0;
}

/* ===== Reviews Section ===== */

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 8px;
}

@media (max-width: 960px) {
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .reviews-grid { grid-template-columns: 1fr; }
}

.review-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.review-stars {
    display: flex;
    gap: 2px;
}

.review-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a73e8, #34a853);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.review-name {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.review-role {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

/* ===== Download App Dialog ===== */

.download-dialog .mud-dialog {
    background: rgba(22, 27, 34, 0.92) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px !important;
}

.download-dialog .mud-dialog-title { padding-bottom: 0; }
.download-dialog .mud-dialog-content { padding-top: 8px; }
.download-dialog .mud-dialog-actions { padding: 4px 16px 8px; justify-content: center; }

/* ===== News Cards ===== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 8px;
}

@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

.news-grid.news-grid-full { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .news-grid.news-grid-full { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-grid.news-grid-full { grid-template-columns: 1fr; } }

.news-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(22, 27, 34, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none !important;
    color: #ffffff;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    overflow: hidden;
}

.news-card:hover {
    background: rgba(30, 35, 44, 0.9);
    border-color: rgba(26, 115, 232, 0.4);
    transform: translateY(-2px);
}

.news-card-source {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
}

.news-card-source svg { flex-shrink: 0; opacity: 0.6; }
.news-card-dot { opacity: 0.4; }

.news-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card:hover .news-card-title { color: rgba(147, 197, 253, 1); }

/* ===== Share Buttons ===== */

.share-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    justify-content: flex-end;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    background: rgba(22,27,34,0.55);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.share-btn:hover { transform: scale(1.1); border-color: rgba(255,255,255,0.3); }
.share-telegram:hover { color: #26A5E4; border-color: #26A5E4; }
.share-linkedin:hover { color: #0A66C2; border-color: #0A66C2; }
.share-x:hover { color: #ffffff; border-color: #ffffff; }
.share-copy:hover { color: #34a853; border-color: #34a853; }

/* ===== Accessibility ===== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .stock-cta-btn { animation: none; }
    .champ-card:hover, .news-card:hover { transform: none; }
}

/* ── Legal pages (Privacy, Cookie, Terms) ── */
.legal-page {}

.legal-paper {
    background: rgba(22, 27, 34, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px !important;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.legal-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.legal-section ul {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-section li {
    margin-bottom: 0.35rem;
}

.legal-section strong {
    color: rgba(255, 255, 255, 0.9);
}

.cookie-table {
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.cookie-table .mud-table {
    background: transparent !important;
}

.cookie-table th {
    background: rgba(26, 115, 232, 0.12) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
}

.cookie-table td {
    color: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

@media (max-width: 600px) {
    .legal-section h2 {
        font-size: 1.15rem;
    }
}
