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

:root {
    --primary: #0a0e2e;
    --secondary: #1a237e;
    --accent: #00bcd4;
    --accent-dark: #0097a7;
    --highlight: #ff4081;
    --light: #eef4ff;
    --text: #333;
    --text-light: #f5f5f5;
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.15);
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text-light);
    line-height: 1.7;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(10, 14, 46, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    position: relative;
}

/* Tech background elements */
.tech-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.grid-line {
    position: absolute;
    background: rgba(0, 188, 212, 0.05);
}

.grid-h {
    width: 100%;
    height: 1px;
    top: 0;
    animation: moveLine 30s linear infinite;
}

.grid-v {
    height: 100%;
    width: 1px;
    left: 0;
    animation: moveLine 40s linear infinite reverse;
}

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

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.2;
    filter: blur(20px);
}

/* Header styles - optimized */
header {
    padding: 25px 20px 20px; /* Reduced padding */
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.25);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 30px; /* Slightly reduced font size */
    margin-bottom: 8px; /* Reduced margin */
    letter-spacing: 1.5px;
    text-shadow: 0 0 15px rgba(0, 188, 212, 0.5);
    color: #fff;
}

.logo i {
    color: var(--accent);
    margin-right: 12px; /* Slightly reduced margin */
    font-size: 34px; /* Slightly reduced font size */
    filter: drop-shadow(0 0 10px rgba(0, 188, 212, 0.7));
}

.tagline {
    font-size: 17px; /* Slightly reduced font size */
    font-weight: 500;
    max-width: 400px;
    margin: 0 auto 12px; /* Reduced margin */
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
}

/* User join ticker */
.user-ticker {
    background: rgba(0, 188, 212, 0.15);
    padding: 12px; /* Reduced padding */
    text-align: center;
    border-bottom: 1px solid rgba(0, 188, 212, 0.3);
    overflow: hidden;
    position: relative;
    height: 45px; /* Reduced height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticker-content {
    position: absolute;
    left: 0;
    width: 100%;
    transition: transform 0.5s ease;
}

.ticker-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px; /* Reduced gap */
    font-size: 15px; /* Slightly reduced font size */
}

.user-count {
    background: var(--highlight);
    color: white;
    padding: 3px 10px; /* Reduced padding */
    border-radius: 20px;
    font-weight: 600;
    animation: countPulse 2s infinite;
}

@keyframes countPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Countdown - optimized title */
.countdown-container {
    background: rgba(255, 64, 129, 0.15);
    border-radius: 15px;
    padding: 12px; /* Reduced padding */
    margin: 15px auto; /* Reduced margin */
    max-width: 380px; /* Slightly reduced max-width */
    border: 1px solid rgba(255, 64, 129, 0.3);
}

.countdown-title {
    font-size: 15px; /* Slightly reduced font size */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px; /* Reduced margin */
    color: #ff6b9c;
    text-align: center;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 64, 129, 0.5);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 10px; /* Reduced gap */
}

.countdown-item {
    background: var(--primary);
    border-radius: 10px;
    padding: 8px; /* Reduced padding */
    min-width: 55px; /* Slightly reduced min-width */
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.countdown-value {
    font-size: 22px; /* Slightly reduced font size */
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: var(--highlight);
}

.countdown-label {
    font-size: 11px; /* Slightly reduced font size */
    text-transform: uppercase;
    opacity: 0.9;
}

/* Input section */
.input-section {
    padding: 0 20px 20px; /* Reduced bottom padding */
    text-align: center;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px; /* Slightly reduced font size */
    margin-bottom: 20px; /* Reduced margin */
    text-align: center;
    line-height: 1.3;
}

.section-title span {
    background: linear-gradient(to right, var(--accent), var(--highlight));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 188, 212, 0.4);
}

.input-group {
    max-width: 450px;
    margin: 0 auto 15px; /* Reduced margin */
    position: relative;
}

.stock-input {
    width: 100%;
    padding: 18px; /* Reduced padding */
    border-radius: 15px;
    border: 2px solid var(--accent);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 17px; /* Slightly reduced font size */
    font-weight: 500;
    outline: none;
    transition: all 0.3s;
    text-align: center;
}

.stock-input:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--highlight);
    box-shadow: 0 0 25px rgba(255, 64, 129, 0.4);
}

.stock-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px; /* Slightly reduced font size */
}

.input-error {
    color: var(--highlight);
    font-size: 14px; /* Slightly reduced font size */
    margin-top: 6px; /* Reduced margin */
    display: none;
}

/* Hot Stocks section */
.hot-stocks {
    margin: 15px auto 10px; /* Adjusted margin */
    max-width: 450px;
    text-align: center;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.hot-stocks span {
    font-weight: 600;
    color: var(--accent);
}

/* WhatsApp button - Updated for smaller text */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    text-decoration: none;
    padding: 14px 30px; /* Reduced padding further */
    border-radius: 50px;
    font-weight: 700;
    font-size: 17px; /* Reduced from 18px */
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    margin-top: 15px; /* Reduced margin */
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
    white-space: nowrap; /* Prevent text wrapping */
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn i {
    margin-right: 10px; /* Slightly reduced spacing */
    font-size: 22px; /* Reduced from 24px */
}

/* Video section - responsive design */
.video-section {
    padding: 0 20px 25px; /* Reduced bottom padding */
    max-width: 500px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    background: #000;
    border: 2px solid var(--accent);
}

.video-player {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
    overflow: hidden;
}

.video-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Platform advantages ticker */
.advantages-ticker {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50px;
    padding: 12px 20px; /* Reduced padding */
    margin: 0 auto 20px; /* Reduced bottom margin */
    max-width: 450px;
    overflow: hidden;
    position: relative;
    height: 40px; /* Reduced height */
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticker-wrapper {
    display: flex;
    animation: tickerScroll 20s linear infinite;
    position: absolute;
    left: 0;
    width: max-content;
}

.ticker-item-2 {
    display: flex;
    align-items: center;
    margin: 0 30px; /* Reduced margin */
    white-space: nowrap;
}

.ticker-item-2 i {
    color: var(--accent);
    margin-right: 10px; /* Reduced margin */
    font-size: 18px; /* Reduced font size */
}

.ticker-item-2 span {
    font-size: 15px; /* Slightly reduced font size */
    font-weight: 500;
}

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

/* Testimonials section - carousel style */
.testimonials {
    padding: 25px 20px; /* Reduced padding */
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

/* Removed testimonials-title as requested */

.testimonial-container {
    max-width: 450px; /* Slightly reduced max-width */
    margin: 0 auto;
    position: relative;
    height: 230px; /* Reduced height to make cards more compact */
    overflow: hidden;
}

.comment-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px; /* Slightly reduced border-radius */
    padding: 20px; /* Reduced padding */
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Reduced shadow */
    transition: transform 0.5s ease, opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(15px); /* Reduced translate */
}

.comment-card.active {
    opacity: 1;
    transform: translateY(0);
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px; /* Reduced margin */
}

.user-avatar {
    width: 50px; /* Slightly reduced size */
    height: 50px; /* Slightly reduced size */
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px; /* Reduced margin */
    border: 2px solid var(--accent);
    box-shadow: 0 0 8px rgba(0, 188, 212, 0.3);
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 700;
    font-size: 17px; /* Slightly reduced font size */
    color: white;
}

.social-platform {
    font-size: 13px; /* Slightly reduced font size */
    opacity: 0.9;
    display: flex;
    align-items: center;
}

.social-platform i {
    margin-right: 4px; /* Reduced margin */
    color: var(--accent);
}

.comment-content {
    font-size: 15px; /* Slightly reduced font size */
    line-height: 1.6; /* Slightly reduced line-height */
    font-style: italic;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px; /* Reduced padding */
    border-radius: 10px; /* Slightly reduced border-radius */
    position: relative;
}

.comment-content:before {
    content: "";
    position: absolute;
    top: -20px; /* Adjusted position */
    left: 8px; /* Adjusted position */
    font-size: 70px; /* Reduced font size */
    color: rgba(0, 188, 212, 0.2);
    font-family: serif;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px; /* Reduced margin */
    gap: 10px; /* Reduced gap */
}

.indicator {
    width: 12px; /* Slightly reduced size */
    height: 12px; /* Slightly reduced size */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: var(--accent);
    transform: scale(1.2); /* Slightly reduced scale */
    box-shadow: 0 0 8px rgba(0, 188, 212, 0.5);
}

/* Footer */
footer {
    padding: 25px 20px; /* Reduced padding */
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    font-size: 13px; /* Slightly reduced font size */
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px; /* Reduced gap */
    margin-bottom: 15px; /* Reduced margin */
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
}

.disclaimer {
    background: rgba(255, 64, 129, 0.1);
    padding: 15px; /* Reduced padding */
    font-size: 12px; /* Slightly reduced font size */
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    border-top: 1px solid rgba(255, 64, 129, 0.2);
}

/* AI analysis popup */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(15px);
}

.popup-content {
    background: linear-gradient(135deg, #0d47a1 0%, #1a237e 100%);
    border-radius: 20px;
    padding: 30px; /* Reduced padding */
    text-align: center;
    max-width: 90%;
    width: 400px; /* Slightly reduced width */
    box-shadow: 0 0 60px rgba(0, 188, 212, 0.5);
    position: relative;
    border: 2px solid var(--accent);
    animation: popIn 0.5s ease-out;
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.ai-analysis-icon {
    font-size: 60px; /* Reduced font size */
    color: var(--accent);
    margin-bottom: 20px; /* Reduced margin */
    animation: pulse 2s infinite;
    filter: drop-shadow(0 0 15px rgba(0, 188, 212, 0.5));
}

.popup-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px; /* Slightly reduced font size */
    margin-bottom: 18px; /* Reduced margin */
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.popup-text {
    font-size: 18px; /* Slightly reduced font size */
    margin-bottom: 20px; /* Reduced margin */
    line-height: 1.6;
}

.popup-stock {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px; /* Reduced padding */
    border-radius: 30px;
    font-weight: 700;
    margin: 12px 0 20px; /* Reduced margin */
    color: var(--accent);
    border: 2px solid var(--accent);
    font-size: 18px; /* Slightly reduced font size */
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.3);
}

/* Popup button - updated for smaller text */
.popup-btn {
    display: inline-block;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    text-decoration: none;
    padding: 14px 28px; /* Reduced padding further */
    border-radius: 50px;
    font-weight: 700;
    font-size: 17px; /* Reduced from 18px */
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    margin-top: 25px; /* Reduced margin */
    border: none;
    cursor: pointer;
    animation: pulseBig 1.5s infinite;
    z-index: 10;
    position: relative;
    white-space: nowrap; /* Prevent text wrapping */
}

@keyframes pulseBig {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 25px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.popup-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.7);
}

.popup-btn i {
    margin-right: 10px; /* Slightly reduced spacing */
    font-size: 22px; /* Reduced from 24px */
}

.close-popup {
    position: absolute;
    top: 15px; /* Adjusted position */
    right: 15px; /* Adjusted position */
    color: rgba(255, 255, 255, 0.8);
    font-size: 26px; /* Slightly reduced font size */
    cursor: pointer;
    transition: color 0.3s;
}

.close-popup:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Progress bar styles */
.progress-container {
    width: 100%;
    margin: 15px 0; /* Reduced margin */
}

.progress-item {
    margin-bottom: 20px; /* Reduced margin */
    text-align: left;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px; /* Reduced margin */
    font-size: 16px; /* Slightly reduced font size */
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.progress-bar {
    height: 10px; /* Reduced height */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3); /* Reduced shadow */
}

.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--accent), var(--highlight));
    transition: width 0.8s ease;
}

.progress-percent {
    position: absolute;
    right: 10px; /* Adjusted position */
    top: 0;
    font-size: 13px; /* Slightly reduced font size */
    color: white;
    line-height: 10px; /* Adjusted line-height */
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .section-title {
        font-size: 22px; /* Further reduced */
    }

    .logo {
        font-size: 26px; /* Further reduced */
    }

    .tagline {
        font-size: 15px; /* Further reduced */
    }

    .whatsapp-btn {
        padding: 12px 20px; /* Further reduced */
        font-size: 15px; /* Further reduced */
    }

    .whatsapp-btn i {
        font-size: 20px; /* Further reduced */
        margin-right: 8px; /* Further reduced */
    }

    .testimonial-container {
        height: 250px; /* Adjusted for smaller screens */
    }

    .popup-content {
        padding: 20px; /* Further reduced */
        width: 95%;
    }

    .popup-title {
        font-size: 26px; /* Further reduced */
    }

    .popup-text {
        font-size: 16px; /* Further reduced */
    }

    .popup-btn {
        padding: 12px 20px; /* Further reduced */
        font-size: 15px; /* Further reduced */
    }

    .popup-btn i {
        font-size: 20px; /* Further reduced */
        margin-right: 8px; /* Further reduced */
    }
}