
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', 'Arial', sans-serif;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Holographic scanlines effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        transparent 49%, 
        rgba(0, 255, 136, 0.03) 50%, 
        transparent 51%
    );
    background-size: 100% 4px;
    animation: scanlines 2s linear infinite;
    pointer-events: none;
    z-index: 10000;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Video background */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    object-fit: cover;
}

/* Overlay for better text readability */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.8) 0%, rgba(26, 31, 58, 0.6) 50%, rgba(15, 20, 25, 0.9) 100%);
    z-index: -1;
}

/* Enhanced tech background */
.tech-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0,191,255,0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,191,255,0.15) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 25s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #00bfff;
    border-radius: 50%;
    animation: float 12s infinite linear;
    box-shadow: 0 0 6px #00bfff;
}

.particle:nth-child(1) { left: 5%; animation-delay: 0s; }
.particle:nth-child(2) { left: 15%; animation-delay: 1.5s; }
.particle:nth-child(3) { left: 25%; animation-delay: 3s; }
.particle:nth-child(4) { left: 35%; animation-delay: 4.5s; }
.particle:nth-child(5) { left: 45%; animation-delay: 6s; }
.particle:nth-child(6) { left: 55%; animation-delay: 7.5s; }
.particle:nth-child(7) { left: 65%; animation-delay: 9s; }
.particle:nth-child(8) { left: 75%; animation-delay: 10.5s; }
.particle:nth-child(9) { left: 85%; animation-delay: 12s; }
.particle:nth-child(10) { left: 95%; animation-delay: 13.5s; }

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Data streams */
.data-stream {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #00ff88, transparent);
    animation: dataFlow 3s infinite linear;
}

.data-stream:nth-child(11) { left: 10%; animation-delay: 0s; }
.data-stream:nth-child(12) { left: 30%; animation-delay: 1s; }
.data-stream:nth-child(13) { left: 50%; animation-delay: 2s; }
.data-stream:nth-child(14) { left: 70%; animation-delay: 0.5s; }
.data-stream:nth-child(15) { left: 90%; animation-delay: 1.5s; }

@keyframes dataFlow {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Floating numbers animation */
.floating-numbers {
    position: absolute;
    width: 100%;
    height: 100%;
    font-size: 0.8rem;
    color: rgba(0, 255, 136, 0.3);
    font-family: 'Share Tech Mono', monospace;
}

/* Matrix-style binary numbers */
.floating-numbers::before {
    content: "0101 1010 1100 0011 1001 0110 1111 0000 1010 0101 1100 0011 1001 0110";
    position: absolute;
    top: 10%;
    left: 5%;
    width: 90%;
    height: 80%;
    color: rgba(0, 191, 255, 0.1);
    font-size: 0.6rem;
    white-space: pre-wrap;
    line-height: 1.5;
    animation: matrixRain 20s linear infinite;
    pointer-events: none;
}

@keyframes matrixRain {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(100vh); opacity: 0; }
}

.number {
    position: absolute;
    animation: numberFloat 8s infinite linear;
}

.number:nth-child(1) { left: 8%; animation-delay: 0s; }
.number:nth-child(2) { left: 18%; animation-delay: 2s; }
.number:nth-child(3) { left: 28%; animation-delay: 4s; }
.number:nth-child(4) { left: 38%; animation-delay: 6s; }
.number:nth-child(5) { left: 48%; animation-delay: 1s; }
.number:nth-child(6) { left: 58%; animation-delay: 3s; }
.number:nth-child(7) { left: 68%; animation-delay: 5s; }
.number:nth-child(8) { left: 78%; animation-delay: 7s; }

@keyframes numberFloat {
    0% {
        transform: translateY(100vh);
        opacity: 0;
    }
    20% {
        opacity: 0.7;
    }
    80% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-50px);
        opacity: 0;
    }
}

/* Main container */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
    animation: containerFadeIn 1s ease-out;
}

@keyframes containerFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced logo with icons */
.logo {
    font-size: 2.2rem;
    font-weight: bold;
    color: #00bfff;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(0,191,255,0.5);
    animation: glow 2s ease-in-out infinite alternate;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(0,191,255,0.8);
}

.logo::before {
    content: "🤖";
    font-size: 2rem;
    animation: rotate 4s linear infinite;
}

.logo::after {
    content: "📈";
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(0,191,255,0.5); }
    to { text-shadow: 0 0 30px rgba(0,191,255,0.8), 0 0 40px rgba(0,191,255,0.3); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Main title */
.main-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.2rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #00bfff, #00ff88, #ff0080);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: titleSlideIn 1.2s ease-out 0.3s both, holographicShift 4s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(0,191,255,0.5);
    letter-spacing: 3px;
}

@keyframes holographicShift {
    0%, 100% { 
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    25% { 
        background-position: 50% 0%;
        filter: hue-rotate(90deg);
    }
    50% { 
        background-position: 100% 50%;
        filter: hue-rotate(180deg);
    }
    75% { 
        background-position: 50% 100%;
        filter: hue-rotate(270deg);
    }
}

@keyframes titleSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(45deg, #00bfff, #00ff88);
    border-radius: 2px;
    animation: lineExpand 1s ease-out 1.5s both;
}

@keyframes lineExpand {
    0% { width: 0; }
    100% { width: 100px; }
}

/* Enhanced subtitle */
.subtitle {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #b3d9ff;
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0.9;
    position: relative;
    animation: subtitleFadeIn 1s ease-out 0.6s both;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(179, 217, 255, 0.3);
}

@keyframes subtitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 0.9;
        transform: translateY(0);
    }
}

.subtitle::before {
    content: "⚡ ";
    color: #00ff88;
    animation: sparkle 2s ease-in-out infinite;
}

.subtitle::after {
    content: " ⚡";
    color: #00ff88;
    animation: sparkle 2s ease-in-out infinite 1s;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Stats row */
.stats-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    animation: statsSlideIn 1s ease-out 0.9s both;
}

@keyframes statsSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 0.8;
        transform: translateY(0);
    }
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border: 1px solid rgba(0,191,255,0.2);
    backdrop-filter: blur(10px);
    min-width: 120px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(0,191,255,0.5);
    box-shadow: 0 10px 30px rgba(0,191,255,0.3);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,191,255,0.1), transparent);
    transition: left 0.6s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ff88;
    display: block;
    animation: numberCount 2s ease-out 1.2s both;
    text-shadow: 0 0 15px rgba(0,255,136,0.5);
    letter-spacing: 1px;
}

@keyframes numberCount {
    0% { opacity: 0; transform: scale(0.5); }
    50% { transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.stat-label {
    font-size: 0.9rem;
    color: #b3d9ff;
    margin-top: 0.5rem;
}

/* Input section */
.input-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 500px;
    animation: inputSlideIn 1s ease-out 1.2s both;
}

@keyframes inputSlideIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-container {
    position: relative;
    width: 100%;
}

.stock-input {
    font-family: 'Share Tech Mono', monospace;
    width: 100%;
    padding: 18px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(0,191,255,0.4);
    border-radius: 15px;
    color: #ffffff;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 
        0 5px 15px rgba(0,0,0,0.2),
        inset 0 0 20px rgba(0,191,255,0.05),
        0 0 30px rgba(0,191,255,0.1);
}

.stock-input:focus {
    outline: none;
    border-color: #00bfff;
    box-shadow: 0 0 25px rgba(0,191,255,0.4), 0 5px 15px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.stock-input::placeholder {
    color: rgba(255,255,255,0.6);
}

/* Enhanced analyze button */
.analyze-btn {
    font-family: 'Orbitron', monospace;
    padding: 18px 45px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(45deg, #1e3c72, #2a5298, #00bfff, #00ff88);
    background-size: 300% 300%;
    border: 2px solid rgba(0,191,255,0.6);
    border-radius: 30px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: breathe 3s ease-in-out infinite, buttonGradientShift 5s ease-in-out infinite;
    box-shadow: 
        0 8px 25px rgba(0,191,255,0.3),
        inset 0 0 20px rgba(0,191,255,0.1),
        0 0 40px rgba(0,191,255,0.2);
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes buttonGradientShift {
    0%, 100% { background-position: 0% 50%; }
    33% { background-position: 50% 0%; }
    66% { background-position: 100% 50%; }
}

@keyframes breathe {
    0%, 100% { 
        box-shadow: 0 8px 25px rgba(0,191,255,0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 12px 35px rgba(0,191,255,0.5), 0 0 40px rgba(0,191,255,0.2);
        transform: scale(1.02);
    }
}

.analyze-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0,191,255,0.5);
}

.analyze-btn::before {
    content: '🚀 ';
    margin-right: 8px;
}

.analyze-btn::after {
    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 ease;
}

.analyze-btn:hover::after {
    left: 100%;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(8px);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1a1f3a 0%, #2a2f4a 50%, #1e2a4a 100%);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid rgba(0,191,255,0.4);
    box-shadow: 0 0 50px rgba(0,191,255,0.3), inset 0 0 50px rgba(0,191,255,0.1);
    text-align: center;
    min-width: 500px;
    max-width: 90vw;
    position: relative;
    overflow: hidden;
    animation: modalSlideIn 0.5s ease-out;
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0,191,255,0.05) 50%, transparent 70%);
    animation: modalShine 3s ease-in-out infinite;
}

@keyframes modalShine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* Enhanced loading animation */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.analysis-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.scanner-container {
    position: relative;
    width: 150px;
    height: 150px;
}

.scanner {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(0,191,255,0.2);
    border-radius: 50%;
    position: relative;
    animation: rotate 2s linear infinite;
}

.scanner::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid transparent;
    border-top-color: #00bfff;
    border-radius: 50%;
    animation: rotate 1s linear infinite reverse;
}

.scanner::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.progress-bar {
    width: 300px;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #00bfff, #00ff88);
    border-radius: 3px;
    animation: progressFill 4s ease-out forwards;
}

@keyframes progressFill {
    0% { width: 0%; }
    25% { width: 30%; }
    50% { width: 65%; }
    75% { width: 85%; }
    100% { width: 100%; }
}

            .analysis-steps {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 0.8rem;
    }

.step {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    opacity: 0.5;
    transition: all 0.5s ease;
}

.step.active {
    opacity: 1;
    background: rgba(0,191,255,0.1);
    border: 1px solid rgba(0,191,255,0.3);
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,191,255,0.2);
}

.step.completed {
    opacity: 1;
    background: rgba(0,255,136,0.1);
    border: 1px solid rgba(0,255,136,0.3);
    transform: translateX(5px);
}

.step-icon {
    font-size: 1.2rem;
    animation: stepIconPulse 2s ease-in-out infinite;
}

@keyframes stepIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.step-text {
    color: #b3d9ff;
    font-size: 0.95rem;
}

.loading-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: #00bfff;
    animation: pulse 1.5s ease-in-out infinite;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(0,191,255,0.5);
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Simplified results styles */
.results-container {
    display: none;
    position: relative;
    z-index: 1;
    animation: resultsSlideIn 0.6s ease-out;
}

@keyframes resultsSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.stock-symbol {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.8rem;
    color: #00bfff;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
    animation: symbolGlow 2s ease-in-out infinite alternate;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.stock-symbol::before {
    content: "📊 ";
    margin-right: 0.5rem;
}

@keyframes symbolGlow {
    0% { text-shadow: 0 0 10px rgba(0,191,255,0.5); }
    100% { text-shadow: 0 0 20px rgba(0,191,255,0.8); }
}

.main-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    border: 2px solid rgba(0,191,255,0.4);
    backdrop-filter: blur(15px);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    animation: resultItemSlideIn 0.6s ease-out;
    box-shadow: 0 0 30px rgba(0,191,255,0.2);
}

@keyframes resultItemSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0,191,255,0.05) 50%, transparent 70%);
    animation: resultShine 3s ease-in-out infinite;
}

@keyframes resultShine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.result-label {
    font-size: 1rem;
    color: #b3d9ff;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

.result-value {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    animation: valueFlicker 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes valueFlicker {
    0%, 90%, 100% { opacity: 1; }
    95% { opacity: 0.8; }
}

.trend-up { 
    color: #00ff88; 
    text-shadow: 0 0 15px rgba(0,255,136,0.6);
}
.trend-down { 
    color: #ff4757; 
    text-shadow: 0 0 15px rgba(255,71,87,0.6);
}
.rating-buy { 
    color: #00ff88; 
    text-shadow: 0 0 15px rgba(0,255,136,0.6);
}
.rating-hold { 
    color: #ffa502; 
    text-shadow: 0 0 15px rgba(255,165,2,0.6);
}
.rating-sell { 
    color: #ff4757; 
    text-shadow: 0 0 15px rgba(255,71,87,0.6);
}

/* Enhanced WhatsApp section */
.whatsapp-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.15) 0%, rgba(37, 211, 102, 0.05) 100%);
    border-radius: 15px;
    border: 2px solid rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
    animation: whatsappSlideIn 0.8s ease-out 0.3s both;
}

@keyframes whatsappSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.whatsapp-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.1) 0%, transparent 50%);
    animation: whatsappGlow 4s ease-in-out infinite;
}

@keyframes whatsappGlow {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
    50% { transform: scale(1.1) rotate(180deg); opacity: 0.8; }
}

.whatsapp-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.whatsapp-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    animation: bounce 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #25d366;
    text-shadow: 0 0 10px rgba(37, 211, 102, 0.5);
}

.whatsapp-text {
    color: #b3d9ff;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    line-height: 1.3;
    text-align: center;
    position: relative;
    z-index: 1;
}

.whatsapp-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.whatsapp-btn {
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    animation: buttonPulse 3s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(37, 211, 102, 0.3); }
    50% { box-shadow: 0 0 30px rgba(37, 211, 102, 0.6); }
}

.whatsapp-btn::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.5s ease;
}

.whatsapp-btn:hover::before {
    left: 100%;
}

.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.copy-btn {
    background: linear-gradient(45deg, #667eea, #764ba2) !important;
}

.copy-btn:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    opacity: 1;
    background: rgba(255,255,255,0.1);
    transform: rotate(90deg);
}

/* Responsive design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    .logo::before {
        font-size: 1.4rem;
    }
    
    .logo::after {
        font-size: 1rem;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .modal-content {
        min-width: 95%;
        margin: 5px;
        padding: 1.5rem 1rem;
    }
    
    .input-section {
        max-width: 95%;
    }

    .stats-row {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .stat-item {
        min-width: 150px;
        max-width: 200px;
        padding: 0.8rem;
    }

    .whatsapp-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .whatsapp-btn {
        width: 180px;
        justify-content: center;
        padding: 10px 15px;
    }
    
    .progress-bar {
        width: 200px;
    }
    
    .scanner-container {
        width: 100px;
        height: 100px;
    }
    
    .step-text {
        font-size: 0.85rem;
    }
    
    .stock-symbol {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .main-result {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .result-value {
        font-size: 1.6rem;
    }
    
    .whatsapp-section {
        margin-top: 1.5rem;
        padding: 1rem;
    }
    
    .whatsapp-icon {
        width: 32px;
        height: 32px;
    }
    
    .whatsapp-title {
        font-size: 1rem;
    }
    
    .whatsapp-text {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    
    .main-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .logo {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .modal-content {
        padding: 0.8rem 0.6rem;
    }
    
    .stock-input {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .analyze-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .stats-row {
        gap: 0.5rem;
        margin-bottom: 0.8rem;
    }
    
    .stat-item {
        min-width: 110px;
        max-width: 150px;
        padding: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .stock-symbol {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .main-result {
        padding: 1rem 0.8rem;
        margin-bottom: 1rem;
    }
    
    .result-value {
        font-size: 1.4rem;
    }
    
    .whatsapp-section {
        margin-top: 1rem;
        padding: 0.8rem;
    }
    
    .whatsapp-text {
        font-size: 0.75rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }
    
    .whatsapp-btn {
        width: 160px;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .step {
        padding: 0.4rem;
        gap: 0.6rem;
    }
    
    .step-text {
        font-size: 0.75rem;
    }
    
    .progress-bar {
        width: 180px;
    }
    
    .scanner-container {
        width: 80px;
        height: 80px;
    }
}
