/* ============================================
   ULTRA PREMIUM FEATURED SHARES SECTION
   ============================================ */

.featured-shares-premium {
    position: relative;
    padding: 100px 0 80px;
    background: #0f172a;
    overflow: hidden;
}

/* Background */
.fsp-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 0; }
.fsp-bg-orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.06; animation: fspOrbFloat 20s ease-in-out infinite; }
.fsp-orb-1 { width: 600px; height: 600px; background: #2563eb; top: -150px; right: -200px; }
.fsp-orb-2 { width: 500px; height: 500px; background: #7c3aed; bottom: -100px; left: -150px; animation-delay: -10s; }
.fsp-bg-grid {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
}
@keyframes fspOrbFloat { 
    0%,100% { transform: translate(0,0) scale(1); } 
    33% { transform: translate(30px,-30px) scale(1.1); } 
    66% { transform: translate(-20px,20px) scale(0.9); } 
}

/* Floating Particles */
.fsp-particles { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.fsp-particle {
    position: absolute; width: 3px; height: 3px;
    background: rgba(255,255,255,0.3); border-radius: 50%;
    animation: fspParticleFloat 8s ease-in-out infinite;
}
@keyframes fspParticleFloat {
    0%,100% { transform: translate(0,0); opacity: 0; }
    20% { opacity: 0.8; }
    50% { transform: translate(30px,-40px); opacity: 0.3; }
    80% { opacity: 0.8; }
}

/* Section Header */
.fsp-header { text-align: center; margin-bottom: 50px; position: relative; z-index: 1; }
.fsp-header-badge {
    display: inline-flex; align-items: center; gap: 12px;
    background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3);
    padding: 8px 24px; border-radius: 50px; color: #fbbf24;
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 2px; margin-bottom: 18px;
}
.fsp-title {
    font-family: 'Poppins', sans-serif; font-size: 2.8rem;
    font-weight: 800; color: #f1f5f9; margin-bottom: 12px;
}
.fsp-title-gradient {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.fsp-subtitle { font-size: 1.05rem; color: #64748b; max-width: 550px; margin: 0 auto; }

/* Grid */
.fsp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative; z-index: 1;
}
@media (max-width: 1200px) { .fsp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .fsp-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; } }

/* Premium Card */
.fsp-card {
    background: rgba(30,41,59,0.7); backdrop-filter: blur(15px);
    border-radius: 24px; overflow: hidden;
    position: relative; transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
    border: 1px solid rgba(255,255,255,0.08); height: 100%;
    display: flex; flex-direction: column;
}
.fsp-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    border-color: rgba(96,165,250,0.4);
    background: rgba(30,41,59,0.9);
}
.fsp-card:hover .fsp-card-glow { opacity: 1; }
.fsp-card:hover .fsp-card-shine { left: 150%; }
.fsp-card:hover .fsp-overlay { opacity: 1; visibility: visible; }
.fsp-card:hover .fsp-logo { transform: scale(1.08); }

/* Card Effects */
.fsp-card-glow {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(37,99,235,0.1), transparent 60%);
    opacity: 0; transition: opacity 0.5s; pointer-events: none; z-index: 0;
}
.fsp-card-shine {
    position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-25deg); transition: left 0.8s ease; pointer-events: none; z-index: 2;
}

/* Top Bar */
.fsp-card-top-bar { height: 4px; width: 100%; }
.fsp-card-top-bar.trend-up { background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7); }
.fsp-card-top-bar.trend-down { background: linear-gradient(90deg, #ef4444, #f87171, #fca5a5); }

/* Card Content */
.fsp-card-content { padding: 24px; flex: 1; display: flex; flex-direction: column; position: relative; z-index: 1; }

/* Company Header */
.fsp-company-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.fsp-logo-container { position: relative; flex-shrink: 0; }
.fsp-logo {
    width: 56px; height: 56px; object-fit: contain;
    border-radius: 16px; background: rgba(255,255,255,0.05);
    padding: 8px; border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.4s;
}
.fsp-logo-ring {
    position: absolute; top: -3px; left: -3px; right: -3px; bottom: -3px;
    border-radius: 19px; border: 2px solid transparent;
    transition: all 0.4s; animation: fspRingRotate 4s linear infinite;
    opacity: 0;
}
.fsp-card:hover .fsp-logo-ring { opacity: 1; }
.fsp-logo-ring.trend-up { border-color: rgba(16,185,129,0.3); }
.fsp-logo-ring.trend-down { border-color: rgba(239,68,68,0.3); }
@keyframes fspRingRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.fsp-premium-star {
    position: absolute; top: -8px; right: -8px;
    width: 24px; height: 24px; background: linear-gradient(135deg, #f59e0b, #fbbf24);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 10px; color: #fff; box-shadow: 0 4px 12px rgba(245,158,11,0.4);
}
.fsp-company-info { flex: 1; min-width: 0; }
.fsp-company-name {
    font-size: 17px; font-weight: 700; color: #f1f5f9;
    margin: 0 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-family: 'Poppins', sans-serif;
}
.fsp-company-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.fsp-sector-badge, .fsp-investor-badge {
    font-size: 10px; padding: 3px 8px; border-radius: 20px;
    display: inline-flex; align-items: center; gap: 4px;
}
.fsp-sector-badge { background: rgba(37,99,235,0.2); color: #93c5fd; }
.fsp-investor-badge { background: rgba(255,255,255,0.05); color: #94a3b8; }

.fsp-trending-badge {
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #fff; padding: 6px 14px; border-radius: 20px;
    font-size: 10px; font-weight: 700; animation: fspPulse 2s infinite;
    display: flex; align-items: center; gap: 5px; white-space: nowrap;
}
@keyframes fspPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* Price Section */
.fsp-price-section { margin-bottom: 14px; padding: 14px; background: rgba(255,255,255,0.03); border-radius: 14px; border: 1px solid rgba(255,255,255,0.05); }
.fsp-price-main { display: flex; justify-content: space-between; align-items: flex-end; }
.fsp-price-label { display: block; font-size: 10px; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.fsp-price-display { display: flex; align-items: baseline; gap: 2px; }
.fsp-currency { font-size: 16px; font-weight: 600; color: #64748b; }
.fsp-price-value { font-size: 2rem; font-weight: 800; color: #fff; font-family: 'Poppins', sans-serif; letter-spacing: -0.5px; transition: color 0.3s; }
.fsp-card:hover .fsp-price-value { color: #60a5fa; }

.fsp-change-indicator {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 12px; margin-bottom: 4px;
}
.fsp-change-indicator.trend-up { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); }
.fsp-change-indicator.trend-down { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); }
.fsp-change-icon { font-size: 18px; }
.trend-up .fsp-change-icon { color: #4ade80; }
.trend-down .fsp-change-icon { color: #f87171; }
.fsp-change-amount { display: block; font-size: 15px; font-weight: 700; }
.trend-up .fsp-change-amount { color: #4ade80; }
.trend-down .fsp-change-amount { color: #f87171; }
.fsp-change-percent { font-size: 11px; opacity: 0.8; }
.fsp-change-label { font-size: 10px; display: block; text-align: right; }
.fsp-change-label.trend-up { color: #4ade80; }
.fsp-change-label.trend-down { color: #f87171; }

/* Description */
.fsp-description { font-size: 13px; color: #94a3b8; line-height: 1.7; margin-bottom: 14px; flex: 1; }

/* Metrics Grid */
.fsp-metrics-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
    padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 12px;
}
.fsp-metric { display: flex; align-items: center; gap: 8px; }
.fsp-metric-icon {
    width: 28px; height: 28px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; flex-shrink: 0;
}
.fsp-metric-label { display: block; font-size: 9px; color: #64748b; text-transform: uppercase; }
.fsp-metric-value { font-size: 12px; font-weight: 600; color: #cbd5e1; }

/* Progress Section */
.fsp-progress-section { margin-top: auto; }
.fsp-progress-header { display: flex; justify-content: space-between; font-size: 11px; color: #94a3b8; margin-bottom: 6px; }
.fsp-progress-percent { font-weight: 600; color: #60a5fa; }
.fsp-progress-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.fsp-progress-fill { height: 100%; border-radius: 3px; transition: width 1.5s ease; }
.fsp-progress-fill.trend-up { background: linear-gradient(90deg, #10b981, #34d399); }
.fsp-progress-fill.trend-down { background: linear-gradient(90deg, #ef4444, #f87171); }

/* Card Footer */
.fsp-card-footer {
    padding: 16px 24px; background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex; justify-content: space-between; align-items: center;
    position: relative; z-index: 1;
}
.fsp-footer-info { font-size: 11px; color: #64748b; }
.fsp-footer-stat { display: flex; align-items: center; gap: 4px; }
.fsp-footer-actions { display: flex; gap: 8px; }
.fsp-btn {
    padding: 9px 18px; border-radius: 10px; font-size: 12px;
    font-weight: 600; text-decoration: none; transition: all 0.3s;
    display: inline-flex; align-items: center; gap: 6px;
}
.fsp-btn-outline { border: 1px solid rgba(255,255,255,0.2); color: #cbd5e1; }
.fsp-btn-outline:hover { border-color: #60a5fa; color: #60a5fa; background: rgba(37,99,235,0.1); }
.fsp-btn-primary { background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; }
.fsp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,99,235,0.4); color: #fff; }

/* Hover Overlay */
.fsp-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0; visibility: hidden; transition: all 0.5s;
    z-index: 10; display: flex; align-items: center; justify-content: center;
}
.fsp-overlay-backdrop {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,23,42,0.95); backdrop-filter: blur(10px);
}
.fsp-overlay-content { position: relative; z-index: 1; text-align: center; padding: 20px; }
.fsp-overlay-logo { width: 70px; height: 70px; object-fit: contain; border-radius: 16px; background: rgba(255,255,255,0.1); padding: 8px; margin-bottom: 12px; border: 2px solid rgba(255,255,255,0.2); }
.fsp-overlay-company { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.fsp-overlay-price { font-size: 2rem; font-weight: 800; color: #fff; font-family: 'Poppins', sans-serif; }
.fsp-overlay-change {
    display: inline-block; padding: 5px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 600; margin: 8px 0 18px;
}
.fsp-overlay-change.trend-up { background: rgba(16,185,129,0.3); color: #4ade80; border: 1px solid rgba(16,185,129,0.5); }
.fsp-overlay-change.trend-down { background: rgba(239,68,68,0.3); color: #f87171; border: 1px solid rgba(239,68,68,0.5); }
.fsp-overlay-actions { display: flex; gap: 10px; justify-content: center; }
.fsp-overlay-btn {
    padding: 10px 22px; border-radius: 10px; font-size: 12px;
    font-weight: 600; text-decoration: none; transition: all 0.3s;
    background: rgba(255,255,255,0.1); color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    display: inline-flex; align-items: center; gap: 6px;
}
.fsp-overlay-btn:hover { background: rgba(255,255,255,0.2); color: #fff; }
.fsp-overlay-btn-primary { background: #10b981; border-color: #10b981; color: #fff; }
.fsp-overlay-btn-primary:hover { background: #059669; }

/* CTA Button */
.fsp-cta { text-align: center; margin-top: 40px; position: relative; z-index: 1; }
.fsp-cta-btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 16px 40px; background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.15); border-radius: 50px;
    color: #fff; font-size: 15px; font-weight: 600; text-decoration: none;
    transition: all 0.3s;
}
.fsp-cta-btn:hover {
    background: rgba(37,99,235,0.2); border-color: #60a5fa;
    transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    color: #fff;
}
.fsp-cta-btn i { transition: transform 0.3s; }
.fsp-cta-btn:hover i { transform: translateX(5px); }