* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

:root {
    --primary-blue: #3b82f6;
    --primary-blue-dark: #2563eb;
    --primary-blue-light: #60a5fa;
    --accent-blue: #3b82f6;
    --accent-teal: #14b8a6;
    --accent-gold: #f59e0b;
    --bg-light: #0f172a;
    --bg-white: #1e293b;
    --bg-gray: #1e293b;
    --bg-accent: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-light: #94a3b8;
    --border-color: #334155;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Tech Background Container */
.tech-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Animated Grid Overlay */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Animated Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(59, 130, 246, 0.4), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(20, 184, 166, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(59, 130, 246, 0.3), transparent),
        radial-gradient(2px 2px at 80% 10%, rgba(245, 158, 11, 0.3), transparent),
        radial-gradient(1px 1px at 90% 60%, rgba(59, 130, 246, 0.4), transparent),
        radial-gradient(2px 2px at 33% 80%, rgba(20, 184, 166, 0.3), transparent),
        radial-gradient(1px 1px at 15% 55%, rgba(59, 130, 246, 0.3), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: particlesFloat 15s ease-in-out infinite;
}

@keyframes particlesFloat {
    0%, 100% {
        background-position: 0% 0%;
        opacity: 0.6;
    }
    25% {
        background-position: 100% 100%;
        opacity: 1;
    }
    50% {
        background-position: 0% 100%;
        opacity: 0.7;
    }
    75% {
        background-position: 100% 0%;
        opacity: 0.9;
    }
}

/* Scan Line Effect */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(59, 130, 246, 0.5), 
        rgba(20, 184, 166, 0.5), 
        rgba(59, 130, 246, 0.5), 
        transparent);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.8), 0 0 40px rgba(20, 184, 166, 0.5);
    animation: scanLineMove 4s linear infinite;
}

@keyframes scanLineMove {
    0% {
        top: 0%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Glow Orbs */
.glow-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
    top: 10%;
    left: 20%;
    animation: orbFloat1 20s infinite;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.3) 0%, transparent 70%);
    top: 60%;
    right: 20%;
    animation: orbFloat2 25s infinite;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
    bottom: 15%;
    left: 50%;
    animation: orbFloat3 30s infinite;
}

@keyframes orbFloat1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 50px) scale(0.9);
    }
    75% {
        transform: translate(40px, 20px) scale(1.05);
    }
}

@keyframes orbFloat2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-40px, 40px) scale(1.15);
    }
    66% {
        transform: translate(30px, -50px) scale(0.85);
    }
}

@keyframes orbFloat3 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    30% {
        transform: translate(-50px, -30px) scale(1.2) rotate(120deg);
    }
    60% {
        transform: translate(40px, 40px) scale(0.9) rotate(240deg);
    }
    90% {
        transform: translate(-20px, -40px) scale(1.1) rotate(320deg);
    }
}

/* Matrix Rain Canvas */
.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    pointer-events: none;
}

/* Circuit Lines */
.circuit-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, transparent 48%, rgba(59, 130, 246, 0.1) 48%, rgba(59, 130, 246, 0.1) 52%, transparent 52%),
        linear-gradient(0deg, transparent 48%, rgba(20, 184, 166, 0.08) 48%, rgba(20, 184, 166, 0.08) 52%, transparent 52%);
    background-size: 100px 100px;
    background-position: 0 0;
    animation: circuitMove 30s linear infinite;
    opacity: 0.4;
}

.circuit-lines::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(59, 130, 246, 0.5);
    border-radius: 50%;
    top: 20%;
    left: 10%;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
    animation: circuitPulse 2s ease-in-out infinite;
}

.circuit-lines::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(20, 184, 166, 0.5);
    border-radius: 50%;
    bottom: 30%;
    right: 15%;
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.8);
    animation: circuitPulse 2.5s ease-in-out infinite 0.5s;
}

@keyframes circuitMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

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

/* Light Beams */
.light-beams {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.light-beam {
    position: absolute;
    width: 2px;
    height: 200px;
    background: linear-gradient(to bottom, 
        transparent,
        rgba(59, 130, 246, 0.6),
        rgba(20, 184, 166, 0.4),
        transparent
    );
    opacity: 0;
    filter: blur(2px);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
}

.beam-1 {
    left: 15%;
    animation: beamFall1 8s ease-in-out infinite;
}

.beam-2 {
    left: 50%;
    animation: beamFall2 10s ease-in-out infinite 2s;
}

.beam-3 {
    left: 80%;
    animation: beamFall3 12s ease-in-out infinite 4s;
}

@keyframes beamFall1 {
    0% {
        top: -200px;
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes beamFall2 {
    0% {
        top: -200px;
        opacity: 0;
        transform: translateX(0);
    }
    20% {
        opacity: 0.6;
    }
    50% {
        transform: translateX(100px);
    }
    80% {
        opacity: 0.6;
    }
    100% {
        top: 100%;
        opacity: 0;
        transform: translateX(0);
    }
}

@keyframes beamFall3 {
    0% {
        top: -200px;
        opacity: 0;
        transform: translateX(0) rotate(0deg);
    }
    20% {
        opacity: 0.7;
    }
    50% {
        transform: translateX(-80px) rotate(5deg);
    }
    80% {
        opacity: 0.7;
    }
    100% {
        top: 100%;
        opacity: 0;
        transform: translateX(0) rotate(0deg);
    }
}

/* Ensure content is above background */
.top-nav,
.wrapper,
.footer,
.modal {
    position: relative;
    z-index: 1;
}

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

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-delay-1 {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.1s forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.2s forwards;
}

.fade-in-delay-3 {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.3s forwards;
}

.fade-in-delay-4 {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.4s forwards;
}

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

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

/* Keyframe Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Top Navigation */
.top-nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-badge {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue-light);
    font-weight: 600;
    font-size: 0.875rem;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.1));
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-star {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

/* Main Wrapper */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    min-height: calc(100vh - 140px);
    width: 100%;
    box-sizing: border-box;
}

/* Mobile: Change order so main content comes first */
@media (max-width: 1024px) {
    .wrapper {
        padding-top: 0.5rem;
        max-width: 100%;
    }
    
    .main-content {
        width: 100%;
        max-width: 100%;
    }
    
    .sidebar {
        width: 100%;
        max-width: 100%;
    }
}

/* Sidebar */
.sidebar {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
}

/* Desktop: Show sidebar in a grid layout */
@media (min-width: 1025px) {
    .wrapper {
        display: grid;
        grid-template-columns: 1fr;
        max-width: 900px;
    }
    
    .main-content {
        order: 1;
    }
    
    .sidebar {
        order: 2;
    }
}

.logo-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--bg-gray);
}

.logo-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.brand-name {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    font-family: 'Inter', sans-serif;
}

.brand-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
}

/* Stats Container */
.stats-container {
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--bg-accent);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateX(5px);
    background: #475569;
    border-color: rgba(59, 130, 246, 0.3);
}

.stat-card.highlighted {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
    border: 1px solid var(--primary-blue);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-blue-light);
    margin-bottom: 0.25rem;
}

.stat-card.highlighted .stat-number {
    color: white;
}

.stat-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-card.highlighted .stat-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.feature-item:hover {
    background: var(--bg-accent);
    border-radius: 8px;
}

.feature-bullet {
    color: var(--primary-blue);
    font-size: 1.2rem;
    line-height: 1;
}

.feature-item strong {
    color: var(--accent-gold);
    font-weight: 700;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-section {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-teal));
    border-radius: 12px 12px 0 0;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.hero-content {
    margin-bottom: 1.5rem;
    text-align: center;
}

.hero-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Input Card */
.input-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    box-shadow: var(--shadow-md);
}

.input-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.input-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
}

.stock-input {
    flex: 1;
    min-width: 0;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: var(--bg-light);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.stock-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: #1e293b;
}

.stock-input::placeholder {
    color: var(--text-light);
}

/* Progress Bar Styles */
.progress-container {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.progress-container.hidden {
    display: none;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-text {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.progress-percent {
    color: var(--primary-blue-light);
    font-weight: 700;
    font-size: 0.95rem;
}

.progress-bar-wrapper {
    width: 100%;
    height: 8px;
    background: var(--bg-accent);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light), var(--accent-teal));
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-status {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
    text-align: center;
    min-height: 1.2rem;
}

.analyze-button {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4), 0 0 20px rgba(59, 130, 246, 0.2);
    white-space: nowrap;
    letter-spacing: 0.01em;
    flex-shrink: 0;
}

.analyze-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5), 0 0 30px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, var(--primary-blue-light), var(--primary-blue));
}

.analyze-button:active {
    transform: translateY(0);
}

.analyze-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.button-arrow {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.analyze-button:hover .button-arrow {
    transform: translateX(5px);
}

.input-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: left;
}

/* Trust Badges */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1rem;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-accent);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.trust-badge:hover {
    background: #475569;
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.trust-icon {
    font-size: 1.5rem;
}

.trust-badge span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

/* WhatsApp Section */
.whatsapp-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-xl), 0 0 30px rgba(59, 130, 246, 0.2);
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(59, 130, 246, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.whatsapp-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: white;
    pointer-events: none;
}

.whatsapp-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(59, 130, 246, 0.3);
}

.whatsapp-icon-wrapper {
    flex-shrink: 0;
}

.whatsapp-icon {
    font-size: 3rem;
    display: block;
}

.whatsapp-content {
    flex: 1;
}

.whatsapp-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.whatsapp-text {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.whatsapp-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    position: relative;
    border: 1px solid var(--border-color);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: auto;
}

.modal-close:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-blue-light);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

/* Progress Modal Styles */
.progress-modal-content {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2rem;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    position: relative;
    border: 1px solid var(--border-color);
}

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

.progress-title {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

.progress-bar-container {
    margin-bottom: 1.5rem;
    position: relative;
}

.progress-bar-track {
    width: 100%;
    height: 10px;
    background: var(--bg-accent);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
    border-radius: 10px;
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.progress-percentage {
    position: absolute;
    right: 0;
    top: -30px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-blue-light);
}

.analysis-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.analysis-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-accent);
    transition: all 0.3s ease;
    opacity: 0.6;
}

.analysis-step.active {
    border-color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    opacity: 1;
    transform: translateX(5px);
}

.analysis-step.completed {
    border-color: rgba(20, 184, 166, 0.5);
    background: rgba(20, 184, 166, 0.1);
    opacity: 1;
}

.analysis-step.completed .step-icon {
    filter: grayscale(0);
}

.step-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

.analysis-step.active .step-icon,
.analysis-step.completed .step-icon {
    filter: grayscale(0);
}

.step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.step-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.step-status {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.analysis-step.active .step-status {
    color: var(--primary-blue-light);
    font-weight: 500;
}

.analysis-step.completed .step-status {
    color: var(--accent-teal);
    font-weight: 500;
}

.results-content {
    color: var(--text-primary);
    line-height: 1.8;
}

/* Analysis Complete Modal Styles */
.complete-modal-content {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 1.75rem 1.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-xl), 0 0 60px rgba(16, 185, 129, 0.3);
    position: relative;
    border: 1px solid rgba(16, 185, 129, 0.2);
    overflow: hidden;
    text-align: center;
}

.complete-modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    animation: pulseGlow 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.success-icon-wrapper {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
}

.success-icon-bg {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #34d399);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6), 0 0 60px rgba(16, 185, 129, 0.4);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.6), 0 0 60px rgba(16, 185, 129, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.8), 0 0 80px rgba(16, 185, 129, 0.6);
    }
}

.success-icon {
    font-size: 2rem;
    animation: iconRotate 0.6s ease-out;
}

@keyframes iconRotate {
    from {
        transform: rotate(-20deg) scale(0);
    }
    to {
        transform: rotate(0deg) scale(1);
    }
}

.complete-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    opacity: 0;
}

.complete-description {
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    opacity: 0;
}

.complete-description p {
    margin-bottom: 0.2rem;
    font-size: 0.875rem;
}

.question-text {
    color: var(--text-primary) !important;
    font-weight: 500;
    margin-top: 0.5rem !important;
}

.join-text {
    color: #10b981 !important;
    font-weight: 600;
    font-size: 1rem !important;
}

.complete-features {
    text-align: left;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.complete-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    opacity: 0;
}

.feature-check {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: #10b981;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.whatsapp-cta-button {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, #10b981, #34d399);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5), 0 0 40px rgba(16, 185, 129, 0.3);
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.whatsapp-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.whatsapp-cta-button:hover::before {
    left: 100%;
}

.whatsapp-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.6), 0 0 60px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #34d399, #10b981);
}

.whatsapp-cta-button:active {
    transform: translateY(-1px);
}

.whatsapp-btn-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.whatsapp-btn-text {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

/* Animations for complete modal */
@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Footer */
.footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-blue-light);
}

.footer-copyright {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .wrapper {
        padding: 0.75rem;
        gap: 1rem;
        padding-top: 1rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .top-nav {
        padding: 0.5rem 0;
        width: 100%;
        max-width: 100%;
    }
    
    .nav-badge {
        padding: 0 1rem;
        font-size: 0.75rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .main-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .sidebar {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .brand-name {
        font-size: 1.5rem;
    }
    
    .brand-tagline {
        font-size: 0.85rem;
    }
    
    .logo-icon {
        font-size: 2rem;
    }
    
    .sidebar {
        padding: 1.5rem;
        margin-top: 0;
    }
    
    .logo-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .stats-container {
        margin-bottom: 1.5rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-section {
        padding: 1.5rem;
        margin-top: 0;
    }
    
    .hero-content {
        margin-bottom: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .input-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .stock-input {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .input-wrapper {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }

    .analyze-button {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
    
    .trust-badges {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .whatsapp-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .whatsapp-card {
        flex-direction: column;
        text-align: center;
    }

    .trust-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .trust-badge {
        padding: 0.75rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .whatsapp-section {
        padding: 1.5rem;
    }
    
    .whatsapp-title {
        font-size: 1.25rem;
    }
    
    .whatsapp-text {
        font-size: 1rem;
    }
    
    /* Progress Modal Mobile */
    .progress-modal-content {
        padding: 1.5rem;
        max-height: 85vh;
    }
    
    .progress-header {
        margin-bottom: 1rem;
    }
    
    .progress-title {
        font-size: 1.25rem;
    }
    
    .progress-bar-container {
        margin-bottom: 1rem;
    }
    
    .progress-percentage {
        top: -25px;
        font-size: 0.875rem;
    }
    
    .analysis-step {
        padding: 0.625rem;
        gap: 0.625rem;
    }
    
    .step-icon {
        font-size: 1.5rem;
    }
    
    .step-title {
        font-size: 0.875rem;
    }
    
    .step-status {
        font-size: 0.75rem;
    }
    
    /* Complete Modal Mobile */
    .complete-modal-content {
        padding: 1.125rem 0.875rem;
        border-radius: 16px;
    }
    
    .success-icon-bg {
        width: 55px;
        height: 55px;
    }
    
    .success-icon {
        font-size: 1.75rem;
    }
    
    .success-icon-wrapper {
        margin-bottom: 0.4rem;
    }
    
    .complete-title {
        font-size: 1.125rem;
        margin-bottom: 0.4rem;
    }
    
    .complete-description {
        margin-bottom: 0.6rem;
    }
    
    .complete-description p {
        font-size: 0.75rem;
        margin-bottom: 0.15rem;
    }
    
    .complete-features {
        margin-bottom: 0.6rem;
        gap: 0.3rem;
    }
    
    .complete-feature {
        font-size: 0.75rem;
        gap: 0.45rem;
    }
    
    .feature-check {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }
    
    .whatsapp-cta-button {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .whatsapp-btn-icon {
        width: 18px;
        height: 18px;
    }
    
    .whatsapp-btn-text {
        font-size: 0.85rem;
    }
}
