/* FOREBANK CAPITAL MANAGEMENT - STYLES.CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

:root {
    --primary-color: #000000;
    --secondary-color: #0066FF;
    --accent-color: #00D4FF;
    --text-color: #1a1a1a;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #2c2c2c;
    --white: #ffffff;
    --card-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
}

html, body {
    line-height: 1.7;
    color: var(--text-color);
    background: var(--white);
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

/* NAVIGATION */
.navbar {
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(12px);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.navbar-content {
    max-width: 1400px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

.logo {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.02em;
    z-index: 1001;
}

.logo span {
    color: var(--accent-color);
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    flex: 1;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--accent-color);
    transition: width 0.4s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.language-switcher {
    position: relative;
}

.language-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-button {
    background: linear-gradient(135deg, #00D4FF, #0066FF);
    color: white !important;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.nav-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
}

/* MOBILE MENU */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1003;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.close-menu-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 2rem;
    padding: 2rem;
}

.mobile-menu-content a {
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 200px;
}

.mobile-menu-content a:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00D4FF;
    transform: translateY(-2px);
}

.mobile-menu-content .nav-button {
    background: linear-gradient(135deg, #00D4FF, #0066FF);
    color: white !important;
    border: none;
    margin-top: 1rem;
    font-weight: 600;
}

.mobile-menu-content .nav-button.secondary {
    background: transparent;
    border: 1px solid #00D4FF;
    color: #00D4FF !important;
    margin-top: 0.5rem;
}

.mobile-menu-content .nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-center, 
    .nav-right {
        display: none;
    }
}

.mobile-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu a:hover {
    color: var(--accent-color);
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #0066FF 100%);
    color: var(--white);
    padding: 10rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(0,212,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-weight: 600;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* PORTFOLIO DASHBOARD */
.portfolio-dashboard {
    background: var(--white);
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dashboard-header {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), rgba(0, 212, 255, 0.05));
    padding: 3rem 2rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.dashboard-subtitle {
    font-size: 1.1rem;
    color: var(--medium-gray);
    margin-bottom: 2rem;
}

.main-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 102, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.15);
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--medium-gray);
    font-weight: 500;
}

.stat-change {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

.stat-change.positive {
    color: var(--success-color);
}

.stat-change.negative {
    color: var(--danger-color);
}

.dashboard-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* PORTFOLIO COMPOSITION */
.portfolio-composition {
    background: var(--white);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 102, 255, 0.08);
}

.composition-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.composition-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
}

.view-toggle {
    display: flex;
    background: var(--light-gray);
    border-radius: 8px;
    padding: 0.25rem;
}

.toggle-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: var(--secondary-color);
    color: var(--white);
}

.holdings-list {
    max-height: 400px;
    overflow-y: auto;
}

.holding-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.holding-item:hover {
    background: rgba(0, 102, 255, 0.02);
    border-radius: 8px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.holding-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 1rem;
    font-weight: 700;
    color: var(--white);
}

.holding-info {
    flex: 1;
}

.holding-symbol {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.holding-name {
    font-size: 0.85rem;
    color: var(--medium-gray);
}

.holding-metrics {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.holding-value {
    font-weight: 700;
    color: var(--primary-color);
}

.holding-weight {
    font-size: 0.85rem;
    color: var(--medium-gray);
}

.holding-change {
    font-size: 0.8rem;
    font-weight: 600;
}

/* PIE CHART */
.pie-chart-container {
    background: var(--white);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 102, 255, 0.08);
    text-align: center;
}

.pie-chart {
    width: 250px;
    height: 250px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 0.5rem;
}

.legend-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.legend-label {
    font-size: 0.85rem;
    color: var(--medium-gray);
}

.legend-value {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* HEATMAP */
.heatmap-section {
    background: var(--white);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 102, 255, 0.08);
    margin-bottom: 2rem;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.heatmap-item {
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    color: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.heatmap-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.heatmap-symbol {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.heatmap-change {
    font-size: 0.8rem;
}

/* GENERAL SECTIONS */
.section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section h2 {
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 18px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 102, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 102, 255, 0.18);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.card p {
    color: var(--medium-gray);
    line-height: 1.7;
    font-size: 1rem;
}

/* LIVE DATA TICKER */
.live-data {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: var(--white);
    padding: 2rem;
    text-align: center;
    overflow: hidden;
    position: relative;
}

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

.crypto-ticker {
    display: flex;
    animation: scroll-left 60s linear infinite;
    gap: 2rem;
    min-width: max-content;
    width: 200%;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.crypto-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    flex-shrink: 0;
}

.crypto-symbol {
    font-weight: 700;
    color: var(--accent-color);
    min-width: 50px;
    text-align: center;
}

.crypto-price {
    font-size: 1rem;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

.crypto-change {
    font-size: 0.85rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    min-width: 60px;
    text-align: center;
}

.crypto-change.positive { 
    background: rgba(34, 197, 94, 0.2); 
    color: #22c55e; 
}

.crypto-change.negative { 
    background: rgba(239, 68, 68, 0.2); 
    color: #ef4444; 
}

/* TEAM SECTION */
.team {
    background: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.team-header {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.team-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), #0099ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.team-icon i {
    font-size: 2rem;
    color: white;
}

.team-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 500;
    font-style: italic;
}

.team-content {
    max-width: 1200px;
    margin: 0 auto;
}

.team-description {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.team-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--medium-gray);
    text-align: justify;
    margin-bottom: 2rem;
}

.team-philosophy {
    background: rgba(0, 212, 255, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--primary-color);
    border-radius: 0 8px 8px 0;
}

.expertise-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.expertise-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.expertise-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
    border-color: var(--accent-color);
}

.expertise-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.expertise-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.expertise-item p {
    font-size: 0.95rem;
    color: var(--medium-gray);
    line-height: 1.6;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    background: linear-gradient(135deg, var(--primary-color), #333);
    padding: 2.5rem;
    border-radius: 15px;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-labels {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9) !important;
    display: block;
}

/* SECURITY SECTION */
.security-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 2rem auto 0;
}

.security-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.security-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.security-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ROADMAP SECTION */
.roadmap-section {
    padding: 4rem 2rem;
    background: var(--white);
}

.roadmap-timeline {
    max-width: 800px;
    margin: 2rem auto 0;
    position: relative;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.roadmap-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.roadmap-marker {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    flex-shrink: 0;
    z-index: 1;
}

.roadmap-content {
    margin-left: 2rem;
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    flex: 1;
}

.roadmap-date {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.roadmap-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.roadmap-description {
    color: var(--medium-gray);
    font-size: 0.95rem;
}

/* PERFORMANCE SECTION */
.performance-section {
    background: var(--light-gray);
    text-align: center;
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.performance-item {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.performance-item h3 {
    color: var(--secondary-color);
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.performance-item p {
    color: var(--medium-gray);
    font-weight: 500;
}

/* HISTORICAL PERFORMANCE */
.historical-performance {
    margin-top: 4rem;
    padding: 3rem 0;
}

.historical-header {
    text-align: center;
    margin-bottom: 3rem;
}

.historical-header h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.historical-subtitle {
    font-size: 1.1rem;
    color: var(--medium-gray);
    font-style: italic;
}

.yearly-performance {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.year-block {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid rgba(0, 102, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.year-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.year-block.current-year {
    border-color: var(--accent-color);
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 212, 255, 0.2);
}

.year-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.15);
}

.year-label {
    margin-bottom: 1.5rem;
    text-align: center;
}

.year-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.year-period {
    font-size: 0.9rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.year-metrics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-label {
    font-size: 0.95rem;
    color: var(--medium-gray);
    font-weight: 500;
}

.metric-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
}

.metric-value.primary { color: var(--secondary-color); }
.metric-value.success { color: #22c55e; }
.metric-value.highlight { color: var(--accent-color); }

.performance-summary {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), rgba(0, 212, 255, 0.05));
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    align-items: center;
}

.total-performance {
    text-align: center;
}

.total-roi {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.total-label {
    display: block;
    font-size: 1.1rem;
    color: var(--medium-gray);
    margin-bottom: 1rem;
    font-weight: 600;
}

.total-value {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.total-period {
    font-size: 0.9rem;
    color: var(--medium-gray);
    font-style: italic;
}

.projection-block {
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.projection-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.projection-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.projection-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.projection-value {
    font-size: 2.8rem;
    font-weight: 900;
    color: #22c55e;
    margin-bottom: 1rem;
}

.projection-reason {
    font-size: 0.9rem;
    color: var(--medium-gray);
    line-height: 1.5;
    font-style: italic;
}

.performance-chart {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.chart-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.chart-bars {
    display: flex;
    justify-content: space-around;
    align-items: end;
    height: 200px;
    gap: 1rem;
}

.chart-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 80px;
}

.bar-container {
    height: 150px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: end;
    margin-bottom: 0.5rem;
}

.bar-fill {
    width: 100%;
    border-radius: 8px 8px 0 0;
    position: relative;
    display: flex;
    align-items: start;
    justify-content: center;
    padding-top: 0.5rem;
    transition: all 0.3s ease;
}

.bar-fill.year1 { background: linear-gradient(180deg, #22c55e, #16a34a); }
.bar-fill.year2 { background: linear-gradient(180deg, #3b82f6, #1d4ed8); }
.bar-fill.year3 { background: linear-gradient(180deg, var(--accent-color), var(--secondary-color)); }
.bar-fill.projection-bar { 
    background: linear-gradient(180deg, #f59e0b, #d97706); 
    animation: pulse 2s infinite;
}

.bar-value {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.bar-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.bar-note {
    font-size: 0.7rem;
    color: var(--medium-gray);
    font-style: italic;
}

.chart-bar.projection .bar-label {
    color: #d97706;
}

/* INVESTMENT INFO SECTION */
.investment-info {
    background: var(--light-gray);
    padding: 4rem 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--secondary-color);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--medium-gray);
}

.info-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.process-note {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(251, 191, 36, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.process-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #f59e0b, #d97706);
}

.note-icon {
    flex-shrink: 0;
    color: #f59e0b;
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.note-content {
    flex: 1;
}

.note-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #92400e;
    margin: 0;
    font-weight: 500;
}

/* APPROACH/STRATEGY SECTION */
.approach-section {
    background: var(--primary-color);
    color: var(--white);
}

.approach-section h2 {
    color: var(--white);
}

.approach-section .card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.approach-section .card h3 {
    color: var(--accent-color);
}

.approach-section .card p {
    color: rgba(255, 255, 255, 0.8);
}

/* PROCESS FLOW STYLES */
.process-flow {
    margin-bottom: 4rem;
    padding: 2rem 0;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.process-flow h3 {
    text-align: center;
    color: var(--accent-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 4rem;
}

.flow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

.flow-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3.5rem;
    width: 100%;
    max-width: 1000px;
}

.flow-row.bottom {
    max-width: 700px;
}

.flow-step {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    padding: 2.2rem 1.8rem;
    border-radius: 18px;
    text-align: center;
    border: 2px solid rgba(0, 212, 255, 0.25);
    min-height: 180px;
    min-width: 220px;
    max-width: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.flow-step:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
    background: rgba(0, 212, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.25);
}

.step-icon {
    font-size: 2.8rem;
    color: var(--accent-color);
    margin-bottom: 1.2rem;
}

.step-content h4 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.step-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
}

.flow-arrow {
    color: var(--accent-color);
    font-size: 2.5rem;
    opacity: 0.7;
}

.vertical-arrow {
    text-align: center;
    margin: 1.5rem 0;
}

.vertical-arrow i {
    font-size: 2.8rem;
    color: var(--accent-color);
    opacity: 0.7;
}

.final-step {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 2rem;
}

/* STRATEGIES SECTION */
.strategies-section {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.12), rgba(0, 212, 255, 0.08));
    border: 2px solid rgba(0, 212, 255, 0.25);
    padding: 3.5rem;
    border-radius: 24px;
    backdrop-filter: blur(20px);
    margin-top: 4rem;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.strategies-section h4 {
    text-align: center;
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.strategies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.strategy-item {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    padding: 1.5rem 2rem;
    border-radius: 14px;
    border-left: 4px solid var(--accent-color);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.strategy-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(8px);
    box-shadow: 0 12px 35px rgba(0, 212, 255, 0.2);
}

.strategy-name {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 1.1rem;
}

.strategy-allocation {
    color: var(--accent-color);
    font-weight: 800;
    font-size: 1.3rem;
    background: rgba(0, 212, 255, 0.25);
    padding: 0.4rem 1rem;
    border-radius: 24px;
}

/* FOOTER */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.footer h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-icon {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.social-icon:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .section { padding: 5rem 2rem; }
    .hero h1 { font-size: 3.2rem; }
    .nav-links { gap: 1.8rem; }
}

@media (max-width: 1024px) {
    .section { padding: 4rem 2rem; }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.1rem; }
    .nav-center, .nav-right { display: none; }
    .mobile-menu-btn { display: block; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .flow-row { flex-direction: column; gap: 2.5rem; }
    .flow-row.bottom { flex-direction: column; gap: 2.5rem; }
    .flow-arrow { transform: rotate(90deg); }
    .vertical-arrow { display: none; }
    .team-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* ========================================
       ESTILOS BASE RESPONSIVE
       ======================================== */
    .section { padding: 3rem 1.5rem; }
    .section h2 { font-size: 2.4rem; margin-bottom: 2.5rem; }
    .hero { padding: 8rem 1.5rem 4rem; }
    .hero h1 { font-size: 2.4rem; }
    .hero p { font-size: 1rem; }
    .cards, .performance-grid, .info-grid { grid-template-columns: 1fr; gap: 2rem; }
    .card { padding: 2rem; }
    .main-stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .heatmap-grid { grid-template-columns: repeat(3, 1fr); }
    .flow-step { min-width: 100%; max-width: 320px; padding: 2rem; }
    .strategies-section { padding: 2.5rem 1.5rem; }
    .strategies-section h4 { font-size: 1.6rem; }
    .team { padding: 3rem 1.5rem; }
    .team-title { font-size: 2.2rem; }
    .expertise-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
    .team-stats { grid-template-columns: repeat(2, 1fr); padding: 2rem; }
    .yearly-performance { grid-template-columns: 1fr; gap: 1.5rem; }
    .year-block.current-year { transform: none; }
    .summary-stats { grid-template-columns: 1fr; gap: 2rem; }
    .total-value { font-size: 2.8rem; }
    .chart-bars { gap: 0.5rem; }
    .chart-bar { max-width: 60px; }
    .bar-value { font-size: 0.8rem; }
    .historical-header h3 { font-size: 1.8rem; }
    .info-grid { grid-template-columns: 1fr; gap: 2rem; }
    .process-note { padding: 1rem; gap: 0.5rem; }
    .note-text { font-size: 0.8rem; }
    .note-icon { font-size: 1rem; }
    
    /* ========================================
       FIX 1: OCULTAR BOTONES HEADER EN MÓVIL
       ======================================== */
    .nav-right {
        display: none !important;
    }
    
    /* Los botones ya están en el menú hamburguesa */
    .nav-links .btn {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin: 0.5rem 0 !important;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    /* ========================================
       FIX 2: SELECTOR DE IDIOMA VISIBLE
       ======================================== */
    .language-switcher {
        display: flex !important;
        position: fixed !important;
        top: 1.2rem !important;
        right: 4rem !important;
        z-index: 10001 !important;
        background: rgba(0, 0, 0, 0.8) !important;
        padding: 0.3rem !important;
        border-radius: 6px !important;
    }
    
    .language-switcher button {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.6rem !important;
    }
    
    /* ========================================
       FIX 3: TÍTULOS GENERALES
       ======================================== */
    .section-title,
    .section h2,
    h2 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
        padding: 0 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .section-subtitle,
    .subtitle,
    .section p {
        font-size: 0.95rem !important;
        padding: 0 1rem !important;
        line-height: 1.5 !important;
    }
    
    #seguridad h2,
    .security-section h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* ========================================
       FIX 4: HERO SECTION
       ======================================== */
    .hero {
        padding: 4rem 1rem 3rem !important;
        overflow-x: hidden !important;
    }
    
    .hero h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    /* ========================================
       FIX 5: PREVENIR SCROLL HORIZONTAL
       ======================================== */
    .container,
    .section,
    .content,
    .wrapper {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }
    
    section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* ========================================
       FIX 6: PORTAFOLIO - TABLA ACCIONES CON SCROLL
       ======================================== */
    .performance-section,
    .performance-grid {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .performance-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .performance-card {
        min-width: 280px !important;
        flex-shrink: 0 !important;
    }
    
    .portfolio-table,
    .stocks-table {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
    }
    
    .portfolio-table table,
    .stocks-table table {
        min-width: 600px !important;
    }
    
    .chart-container,
    .pie-chart,
    .circular-chart {
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* ========================================
       FIX 7: HEATMAP - CAJAS MÁS PEQUEÑAS
       ======================================== */
    .heatmap-grid,
    .heatmap-container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    .heatmap-item,
    .heatmap-card,
    .performance-card.heatmap-item {
        min-height: 100px !important;
        max-height: 130px !important;
        font-size: 0.9rem !important;
        padding: 1rem !important;
    }
    
    .heatmap-item h3,
    .heatmap-card h3 {
        font-size: 1rem !important;
    }
    
    .heatmap-item .percentage,
    .heatmap-card .percentage {
        font-size: 1.2rem !important;
    }
    
    /* ========================================
       FIX 8: REPÚBLICA DE MALTA - TÍTULOS
       ======================================== */
    .regulatory-section h2,
    .malta-section h2,
    .republic-malta h2 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
        padding: 0 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .regulatory-section h3,
    .malta-section h3,
    .regulatory-card h3,
    .regulatory-title {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
        word-wrap: break-word !important;
    }
    
    .regulatory-subtitle {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    .regulatory-card,
    .malta-card {
        padding: 1.5rem 1rem !important;
    }
    
    .regulatory-badge {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    
    /* ========================================
       FIX 9: GRIDS GENERALES
       ======================================== */
    .grid,
    .cards-grid,
    .info-grid,
    .expertise-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    .section { padding: 2.5rem 1rem; }
    .section h2 { font-size: 2rem; }
    .hero { padding: 7rem 1rem 3rem; }
    .hero h1 { font-size: 2rem; }
    .card { padding: 1.5rem; }
    .navbar { padding: 1rem; }
    .main-stats { grid-template-columns: 1fr; }
    .heatmap-grid { grid-template-columns: repeat(2, 1fr); }
    .crypto-item { padding: 0.8rem 1rem; }
    .crypto-price { font-size: 1rem; }
    .crypto-change { font-size: 0.8rem; }
    .team-icon { width: 60px; height: 60px; }
    .team-icon i { font-size: 1.5rem; }
    .team-title { font-size: 1.8rem; }
    .expertise-title { font-size: 1.6rem; }
    .team-stats { grid-template-columns: 1fr; text-align: center; }
    .expertise-grid { grid-template-columns: 1fr; gap: 1rem; }
    .expertise-item { padding: 1.5rem; }
    .team-intro { text-align: left; font-size: 1rem; }
    .team-philosophy { padding: 1rem 1.5rem; font-size: 1.1rem; margin: 1.5rem 0; }
    .historical-performance { margin-top: 3rem; padding: 2rem 0; }
    .performance-summary { padding: 1.5rem; }
    .year-block { padding: 1.5rem; }
    .metric-row { flex-direction: column; text-align: center; gap: 0.5rem; }
    .total-value { font-size: 2.2rem; }
    .projection-value { font-size: 2.2rem; }
    .process-note { padding: 0.875rem; margin-top: 1.25rem; }
    .note-text { font-size: 0.75rem; line-height: 1.4; }
}

body.menu-open {
    overflow: hidden;
}

/* ADDITIONAL STYLES FOR SECTORS VIEW AND IMPROVED TOOLTIPS */

/* SECTOR GROUP STYLES */
.sector-group {
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 102, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
}

.sector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), rgba(0, 212, 255, 0.05));
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sector-header:hover {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.08), rgba(0, 212, 255, 0.08));
}

.sector-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sector-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.sector-count {
    font-size: 0.85rem;
    color: var(--medium-gray);
    font-weight: 500;
}

.sector-metrics {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.sector-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.sector-weight {
    font-size: 0.95rem;
    color: var(--medium-gray);
    font-weight: 600;
}

.sector-change {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.sector-change.positive {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success-color);
}

.sector-change.negative {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger-color);
}

.sector-holdings {
    padding: 0.5rem 1rem 1rem;
}

.sub-holding {
    padding: 1rem !important;
    margin: 0.5rem 0;
    border-radius: 8px;
    background: rgba(0, 102, 255, 0.02);
    border: 1px solid rgba(0, 102, 255, 0.05);
}

.sub-holding:hover {
    background: rgba(0, 102, 255, 0.05) !important;
    border-color: rgba(0, 102, 255, 0.1);
    transform: translateX(0.5rem);
}

/* IMPROVED STRATEGY TOOLTIPS */
.strategy-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    width: 280px;
    z-index: 1000;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    text-align: left;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.strategy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.95);
}

.strategy-tooltip h5 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    padding-bottom: 0.5rem;
}

.strategy-metric {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.strategy-metric .label {
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
}

.strategy-metric .value {
    color: var(--white);
    font-weight: 600;
    text-align: right;
}

.strategy-metric-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 0.3rem 0 0.8rem;
    overflow: hidden;
}

.strategy-metric-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
    transition: width 0.6s ease;
}

/* RESPONSIVE ADJUSTMENTS FOR SECTORS */
@media (max-width: 768px) {
    .sector-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .sector-metrics {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        gap: 1rem;
    }

    .sector-name {
        font-size: 1.2rem;
    }

    .sector-value {
        font-size: 1.2rem;
    }

    .strategy-tooltip {
        width: 240px;
        padding: 1rem;
        left: 50%;
        transform: translateX(-50%);
    }

    .strategy-tooltip h5 {
        font-size: 1rem;
    }

    .strategy-metric {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .sector-group {
        margin-bottom: 1.5rem;
    }

    .sector-header {
        padding: 1rem;
    }

    .sector-metrics {
        flex-direction: column;
        gap: 0.5rem;
    }

    .sector-name {
        font-size: 1.1rem;
    }

    .sector-value {
        font-size: 1.1rem;
    }

    .sub-holding {
        padding: 0.75rem !important;
    }

    .strategy-tooltip {
        width: 200px;
        padding: 0.75rem;
        left: 10px;
        right: 10px;
        transform: none;
    }

    .strategy-tooltip::after {
        left: 30px;
        transform: none;
    }
}

/* ENHANCED TOGGLE BUTTONS */
.toggle-btn {
    position: relative;
    overflow: hidden;
}

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

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

.toggle-btn.active {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

/* Research & Insights Section Styles */
.research-insights {
    background: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.research-insights::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(0,102,255,0.05)"/><circle cx="20" cy="20" r="0.5" fill="rgba(0,212,255,0.08)"/><circle cx="80" cy="80" r="0.8" fill="rgba(0,102,255,0.06)"/></svg>');
    opacity: 0.4;
    z-index: 1;
}

.research-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.research-header {
    text-align: center;
    margin-bottom: 4rem;
}

.research-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #00D4FF, #0066FF);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.research-title {
    font-size: 3rem;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #0066FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.research-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.insights-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Market Pulse Card */
.market-pulse-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.market-pulse-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #00D4FF, #0066FF);
}

.pulse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.pulse-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.pulse-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00D4FF, #0066FF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.market-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: rgba(0, 102, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 102, 255, 0.1);
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.15);
    border-color: #00D4FF;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: #0066FF;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.metric-change {
    font-size: 0.8rem;
    margin-top: 0.3rem;
    font-weight: 600;
}

.metric-change.positive { color: #22c55e; }
.metric-change.negative { color: #ef4444; }

.market-analysis {
    background: rgba(0, 212, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    border-left: 4px solid #00D4FF;
}

.analysis-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.analysis-icon {
    color: #00D4FF;
    font-size: 1.5rem;
}

.analysis-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
}

.analysis-content {
    color: #4a5568;
    line-height: 1.6;
    font-size: 1rem;
}

/* Quick Insights Card */
.quick-insights-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.1);
}

.insights-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.insights-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
}

.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.insight-item:hover {
    background: rgba(0, 102, 255, 0.05);
    transform: translateX(5px);
}

.insight-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
}

.insight-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
}

.insight-content p {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
}

.insight-time {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

/* Research Hub */
.research-hub {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.research-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 102, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
     display: flex;
    flex-direction: column;
    min-height: 100%;      
}

.research-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 102, 255, 0.15);
}

.research-card-header {
    padding: 2rem 2rem 1rem;
    position: relative;
    flex-grow: 1;
}

.research-category {
    display: inline-block;
    background: linear-gradient(135deg, #00D4FF, #0066FF);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.research-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.research-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.research-preview {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.research-actions {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    padding: 0 2rem 2rem;
}

.research-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.research-btn.primary {
    background: linear-gradient(135deg, #0066FF, #00D4FF);
    color: white;
    border: none;
}

.research-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

.research-btn.secondary {
    background: rgba(0, 102, 255, 0.1);
    color: #0066FF;
    border: 1px solid rgba(0, 102, 255, 0.2);
}

.research-btn.secondary:hover {
    background: rgba(0, 102, 255, 0.15);
    border-color: #0066FF;
}

/* Newsletter Signup */
.newsletter-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #0066FF 100%);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(0,212,255,0.2)"/><circle cx="60" cy="80" r="1" fill="rgba(255,255,255,0.08)"/></svg>');
    opacity: 0.6;
}

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

.newsletter-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.newsletter-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.newsletter-input::placeholder {
    color: #6c757d;
}

.newsletter-btn {
    padding: 1rem 2rem;
    background: #00D4FF;
    color: #1a1a1a;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-btn:hover {
    background: #00b8d4;
    transform: translateY(-2px);
}

/* Portfolio Simulator Styles */
.portfolio-simulator {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    padding: 4rem 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.portfolio-simulator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(0,212,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.simulator-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.simulator-header {
    text-align: center;
    margin-bottom: 4rem;
}

.simulator-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 212, 255, 0.2);
    color: #00D4FF;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.simulator-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.simulator-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.simulator-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Control Panel */
.control-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.panel-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00D4FF, #0066FF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.panel-title {
    font-size: 1.4rem;
    font-weight: 700;
}

.preset-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.preset-btn {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.preset-btn.active,
.preset-btn:hover {
    background: linear-gradient(135deg, #00D4FF, #0066FF);
    border-color: #00D4FF;
    transform: translateY(-2px);
}

.allocation-controls {
    margin-bottom: 2rem;
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.asset-name {
    font-weight: 600;
}

.asset-percentage {
    font-weight: 700;
    color: #00D4FF;
}

.slider-container {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: transparent;
    outline: none;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00D4FF, #0066FF);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00D4FF, #0066FF);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

.slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #00D4FF, #0066FF);
    border-radius: 3px;
    transition: width 0.3s ease;
    pointer-events: none;
}

.investment-amount {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.amount-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.amount-input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.amount-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Results Panel */
.results-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.results-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.results-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.metric-box:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-5px);
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: #00D4FF;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.performance-chart {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.chart-container {
    height: 200px;
    position: relative;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(0, 212, 255, 0.3);
}

.chart-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Comparison Section */
.comparison-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.comparison-header {
    text-align: center;
    margin-bottom: 2rem;
}

.comparison-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.comparison-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.3);
}

.comparison-card.highlight {
    border: 2px solid #00D4FF;
    background: rgba(0, 212, 255, 0.1);
}

.card-header {
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.card-metrics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-metric-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.card-metric-value {
    font-weight: 700;
    color: #00D4FF;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.action-btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    border: none;
}

.action-btn.primary {
    background: linear-gradient(135deg, #00D4FF, #0066FF);
    color: white;
}

.action-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.4);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #00D4FF;
}

/* Regulatory Transparency Section - FIXED */
.regulatory-transparency {
    background: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.regulatory-transparency::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,15 60,35 85,35 67,50 75,75 50,60 25,75 33,50 15,35 40,35" fill="rgba(0,102,255,0.03)" opacity="0.5"/></svg>');
    opacity: 0.2;
    z-index: 1;
}

.regulatory-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.regulatory-header {
    text-align: center;
    margin-bottom: 4rem;
}

.regulatory-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.regulatory-title {
    font-size: 3rem;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.regulatory-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Jurisdiction Cards */
.jurisdiction-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 4rem;
}

.jurisdiction-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 102, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.jurisdiction-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 102, 255, 0.15);
    border-color: #0066FF;
}

.jurisdiction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #0066FF, #00D4FF);
}

.jurisdiction-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.flag-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    overflow: hidden;
}

.jurisdiction-info h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.jurisdiction-role {
    font-size: 1rem;
    color: #0066FF;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.regulator-info {
    background: rgba(0, 102, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid #0066FF;
}

.regulator-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.regulator-details {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
}

.license-box {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.license-number {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s ease;
}

.license-number:hover {
    color: #22c55e;
}

.verified-icon {
    color: #22c55e;
    font-size: 1.2rem;
}

.verification-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Compliance Features */
.compliance-section {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.1);
    margin-bottom: 4rem;
}

.compliance-header {
    text-align: center;
    margin-bottom: 3rem;
}

.compliance-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.compliance-item {
    background: rgba(0, 102, 255, 0.03);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 102, 255, 0.1);
}

.compliance-item:hover {
    background: rgba(0, 102, 255, 0.08);
    transform: translateY(-5px);
    border-color: #0066FF;
}

.compliance-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0066FF, #00D4FF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.compliance-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.compliance-item p {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .simulator-dashboard {
        grid-template-columns: 1fr;
    }

    .market-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .research-hub {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .compliance-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .research-insights,
    .portfolio-simulator,
    .regulatory-transparency {
        padding: 3rem 1.5rem;
    }

    .research-title,
    .simulator-title,
    .regulatory-title {
        font-size: 2.5rem;
    }

    .market-metrics {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .market-pulse-card,
    .quick-insights-card,
    .control-panel,
    .results-panel {
        padding: 1.5rem;
    }

    .research-hub {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .action-buttons {
        flex-direction: column;
    }

    .jurisdiction-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .results-metrics {
        grid-template-columns: 1fr;
    }

    .preset-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .research-insights,
    .portfolio-simulator,
    .regulatory-transparency {
        padding: 2rem 1rem;
    }

    .research-title,
    .simulator-title,
    .regulatory-title {
        font-size: 2rem;
    }

    .jurisdiction-card,
    .compliance-section,
    .comparison-section {
        padding: 1.5rem;
    }

    .flag-container {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .research-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #00D4FF;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* PORTFOLIO SIMULATOR CSS FIXES */
/* Agregar este CSS al final de tu styles.css */

/* Fix para título del chart que sale en negro */
.chart-title,
.performance-chart .chart-title {
    color: white !important;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Asegurar que todos los textos en el simulador sean blancos */
.portfolio-simulator h1,
.portfolio-simulator h2,
.portfolio-simulator h3,
.portfolio-simulator h4,
.portfolio-simulator h5,
.portfolio-simulator h6,
.portfolio-simulator p,
.portfolio-simulator span,
.portfolio-simulator div {
    color: white;
}

.portfolio-simulator .chart-header h4 {
    color: white !important;
}

/* Mejorar contraste en sliders */
.control-label .asset-name {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.control-label .asset-percentage {
    color: #00D4FF;
    font-weight: 700;
}

/* Mejorar botones de preset */
.preset-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
    font-weight: 600;
}

.preset-btn:hover {
    background: rgba(0, 212, 255, 0.3);
    border-color: #00D4FF;
    transform: translateY(-2px);
}

.preset-btn.active {
    background: linear-gradient(135deg, #00D4FF, #0066FF);
    border-color: #00D4FF;
    color: white;
}

/* Mejorar visualización de métricas */
.metric-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s ease;
}

.metric-box:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

/* Mejorar chart container */
.chart-container {
    background: rgba(0, 212, 255, 0.08);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.chart-placeholder {
    padding: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.chart-placeholder i {
    display: block;
    margin-bottom: 1rem;
    color: #00D4FF;
    font-size: 3rem;
}

/* Mejorar cards de comparación */
.comparison-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.comparison-card.highlight {
    border: 2px solid #00D4FF;
    background: rgba(0, 212, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.card-title {
    color: white !important;
    font-size: 1.3rem;
    font-weight: 700;
}

.card-subtitle {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem;
}

.card-metric-label {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem;
}

.card-metric-value {
    color: #00D4FF !important;
    font-weight: 700;
    font-size: 1rem;
}

/* Mejorar input de monto */
.amount-input {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
}

.amount-input:focus {
    border-color: #00D4FF;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
    outline: none;
}

.amount-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Mejorar sliders con mejor visualización */
.slider-container {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #00D4FF, #0066FF);
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.4);
}

/* Mejorar sección de control */
.allocation-controls h4 {
    color: white !important;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

/* Animaciones para cambios de valores */
.metric-value {
    transition: all 0.3s ease;
}

.metric-value.updating {
    color: #00D4FF;
    transform: scale(1.05);
}

/* Mejorar botones de acción */
.action-btn {
    position: relative;
    overflow: hidden;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

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

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

.action-btn.primary {
    background: linear-gradient(135deg, #00D4FF, #0066FF);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.action-btn.primary:hover {
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.6);
    transform: translateY(-5px);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #00D4FF;
    color: #00D4FF;
}

/* Responsive mejoras */
@media (max-width: 768px) {
    .simulator-dashboard {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .results-metrics {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .chart-container {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .results-metrics {
        grid-template-columns: 1fr;
    }
    
    .preset-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Estados de carga */
.loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

/* Efectos de transición suave */
.control-panel,
.results-panel,
.comparison-section {
    transition: all 0.3s ease;
}

.control-panel:hover,
.results-panel:hover {
    border-color: rgba(0, 212, 255, 0.3);
}

/* Mejorar títulos de secciones */
.panel-title {
    color: white !important;
    font-size: 1.4rem;
    font-weight: 700;
}

.comparison-title {
    color: white !important;
    font-size: 1.6rem;
    font-weight: 800;
}

/* Asegurar que el SVG chart tenga el fondo correcto */
.chart-container svg {
    background: rgba(0, 212, 255, 0.05) !important;
    border-radius: 12px;
    width: 100%;
    height: 100%;
}

/* Tooltip mejorado para métricas */
.metric-box {
    position: relative;
    cursor: help;
}

.metric-box::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
}

.metric-box:hover::before {
    opacity: 1;
}

/* Efecto de pulso para el botón activo */
@keyframes pulse-active {
    0% { box-shadow: 0 12px 30px rgba(0, 212, 255, 0.4); }
    50% { box-shadow: 0 12px 40px rgba(0, 212, 255, 0.6); }
    100% { box-shadow: 0 12px 30px rgba(0, 212, 255, 0.4); }
}

.portfolio-btn.active {
    animation: pulse-active 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .portfolio-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .portfolio-btn {
        width: 100%;
        max-width: 250px;
        flex-direction: row;
        justify-content: center;
        padding: 1.25rem;
    }
    
    .portfolio-btn i {
        margin-bottom: 0;
        margin-right: 0.75rem;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .portfolio-type-selection {
        padding: 1.5rem;
        margin: 1.5rem 0 2.5rem;
    }
    
    .portfolio-type-selection h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .portfolio-btn {
        padding: 1rem 1.5rem;
        min-width: 120px;
    }
    
    .portfolio-btn span {
        font-size: 0.9rem;
    }
}

/* Asegurar que el simulador tenga buen contraste */
.portfolio-simulator .simulator-content {
    color: white;
}

.portfolio-simulator h1,
.portfolio-simulator h2, 
.portfolio-simulator h3,
.portfolio-simulator h4,
.portfolio-simulator h5,
.portfolio-simulator h6 {
    color: white;
}

/* Mejorar los botones existentes */
.preset-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
}

.preset-btn.active {
    background: linear-gradient(135deg, #00D4FF, #0066FF);
    border-color: #00D4FF;
}

/* HERO SECTION IMPROVEMENTS */
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-badge {
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #00D4FF;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-stats .live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.hero-main-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-align: center;
}

.performance-line {
    display: block;
    background: linear-gradient(135deg, #00D4FF 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.operation-line {
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.85em;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    min-width: 200px;
    justify-content: center;
}

.hero-btn.primary {
    background: linear-gradient(135deg, #00D4FF, #0066FF);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.hero-btn.primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.6);
}

.hero-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #00D4FF;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 1024px) {
    .hero-main-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-main-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .hero-main-title {
        font-size: 2rem;
    }
    
    .performance-line, .operation-line {
        font-size: inherit;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
}

/* FIX PARA RESEARCH & INSIGHTS - CONTRASTE DE TEXTO */
.market-pulse-card .analysis-content,
.market-pulse-card .analysis-title,
.market-pulse-card .metric-label,
.quick-insights-card .insight-content h4,
.quick-insights-card .insight-content p {
    color: #1a1a1a !important;
}

.market-pulse-card {
    background: #ffffff !important;
    color: #1a1a1a !important;
}

.quick-insights-card {
    background: #ffffff !important;
    color: #1a1a1a !important;
}

.insights-title {
    color: #1a1a1a !important;
}

.metric-label {
    color: #6c757d !important;
}

/* Portfolio Type Mini Buttons */
.portfolio-type-mini {
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.15);
}

.portfolio-type-mini label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
}

.portfolio-mini-buttons {
    display: flex;
    gap: 0.5rem;
}

.portfolio-mini-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-mini-btn:hover {
    background: rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.4);
}

.portfolio-mini-btn.active {
    background: linear-gradient(135deg, #00D4FF, #0066FF);
    border-color: #00D4FF;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

/* Slider simplificado sin thumbs */
.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: transparent;
    outline: none;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 0;
    height: 0;
    background: transparent;
}

.slider::-moz-range-thumb {
    width: 0;
    height: 0;
    background: transparent;
    border: none;
}

/* Responsive fixes para simulator */
@media (max-width: 768px) {
    .simulator-dashboard {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .results-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .portfolio-mini-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .chart-container {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .results-metrics {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .metric-box {
        padding: 1rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .chart-container {
        height: 160px;
    }
    
    .control-panel,
    .results-panel {
        padding: 1.5rem;
    }
}

/* Regulatory pending status styles */
.verification-badge.pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: 1px solid #f59e0b;
}

.verification-badge.pending .pulse-dot {
    background: #fbbf24;
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1); 
    }
    50% { 
        opacity: 0.5; 
        transform: scale(1.1); 
    }
}

.pending-icon {
    color: #f59e0b !important;
}

/* Dual button styling for nav */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-button.secondary {
    background: transparent;
    color: #00D4FF;
    border: 1px solid #00D4FF;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.nav-button.secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-1px);
}

.nav-button.primary {
    background: linear-gradient(135deg, #00D4FF, #0066FF);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-button.primary:hover {
    background: linear-gradient(135deg, #0066FF, #0040CC);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}
/* =========================================================
   iPhone 15 / Safari iOS – Fix Pack (append-only overrides)
   ========================================================= */

/* 0) Altura real en iOS y zonas seguras (notch) */
@supports (height: 100svh) {
  .mobile-menu { height: 100svh !important; }
}
@supports not (height: 100svh) {
  .mobile-menu { height: 100vh !important; }
}
.navbar,
.mobile-menu {
  padding-top: max(0.75rem, env(safe-area-inset-top)) !important;
  padding-left: max(1rem, env(safe-area-inset-left)) !important;
  padding-right: max(1rem, env(safe-area-inset-right)) !important;
}

/* 1) Language switcher dentro del menú móvil (siempre visible) */
.mobile-menu .language-switcher.mobile-language {
  display: flex !important;
  gap: .5rem !important;
  margin: 0.75rem 0 0.25rem auto !important;
  justify-content: flex-end !important;
}
.mobile-menu .language-switcher.mobile-language button{
  font-size: .8rem !important;
  padding: .35rem .6rem !important;
  border-radius: 6px !important;
  background: rgba(0,0,0,.65) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.2) !important;
}

/* 2) Habilitar scroll horizontal real en Portafolio / Tablas / Charts
      (padres con overflow-x:hidden estaban “cortando” el contenido) */
#portfolio,
.dashboard-content,
.dashboard-grid,
.portfolio-composition,
.performance-section,
.performance-grid {
  overflow-x: visible !important;
}

.holdings-list,
.portfolio-table,
.stocks-table,
.chart-container,
.pie-chart,
.circular-chart {
  display: block !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Asegura ancho mínimo para tablas y evita corte del pie chart */
.portfolio-table table,
.stocks-table table { min-width: 640px !important; } /* si ya tienes 600px, lo elevamos un poco */
.pie-chart, .circular-chart { width: min(100%, 560px) !important; height: auto !important; }

/* 3) “República de Malta” – evitar solape del badge con el título */
.jurisdiction-card { position: relative !important; padding-top: 2.5rem !important; }
.verification-badge {
  position: absolute !important;
  top: max(0.75rem, env(safe-area-inset-top)) !important;
  right: 1rem !important;
  padding: .35rem .8rem !important;
  font-size: .75rem !important;
  border-radius: 999px !important;
  z-index: 2 !important;
}

/* 4) Hero: títulos más manejables en móvil */
.hero h1 { font-size: clamp(1.6rem, 6vw, 2.25rem) !important; }

/* 5) Anclas internas: que no queden ocultas bajo la navbar */
html { scroll-padding-top: calc(56px + env(safe-area-inset-top)) !important; }
