:root {
    --stellar-primary: #0D1B2A;
    --stellar-secondary: #1B263B;
    --stellar-accent: #415A77;
    --tech-cyan: #00F5FF;
    --tech-purple: #8A2BE2;
    --tech-gold: #FFD700;
    --alert-yellow: #FFFF00;
    --digital-green: #00FF41;
    --deep-blue: #4169E1;
    --success-teal: #50C878;
    --light-text: #E0E1DD;
    --dim-text: #778DA9;
    --dark-overlay: rgba(13, 27, 42, 0.9);
    --grid-alpha: 0.15;
}

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

body {
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.stellar-view {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--stellar-primary) 0%, var(--stellar-secondary) 50%, var(--stellar-accent) 100%);
    position: relative;
    overflow-x: hidden;
    padding-top: 40px;
}

.alert-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, var(--alert-yellow), #FFA500);
    color: #000;
    text-align: center;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: pulseAlert 2s ease-in-out infinite;
}

@keyframes pulseAlert {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.float-btn {
    position: fixed;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    width: 380px;
    height: 56px;
    background: linear-gradient(45deg, var(--deep-blue), var(--tech-purple));
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(65, 105, 225, 0.5);
    z-index: 1000;
    animation: floatAnim 2s ease-in-out infinite;
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 10px;
    letter-spacing: 0.5px;
}

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

.float-btn:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 10px 30px rgba(65, 105, 225, 0.8);
}

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

.float-btn span {
    position: relative;
    z-index: 2;
}

@keyframes floatAnim {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        box-shadow: 0 6px 20px rgba(65, 105, 225, 0.5);
    }
    50% {
        transform: translateX(-50%) translateY(-8px);
        box-shadow: 0 12px 30px rgba(65, 105, 225, 0.7);
    }
}

.tech-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(90deg, rgba(65, 169, 255, var(--grid-alpha)) 1px, transparent 1px),
    linear-gradient(rgba(65, 169, 255, var(--grid-alpha)) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridPulseAnim 3s ease-in-out infinite;
    z-index: 1;
}

.chart-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.9) 0%, rgba(27, 38, 59, 0.7) 100%);
    z-index: 2;
}

.chart-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(65, 105, 225, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(65, 105, 225, 0.1) 1px, transparent 1px);
    z-index: 3;
}

.live-chart {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    z-index: 4;
    overflow: hidden;
}

.chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    stroke: var(--digital-green);
    stroke-width: 3;
    fill: none;
    filter: drop-shadow(0 0 10px rgba(0, 255, 65, 0.5));
}

.chart-candles {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 0 5%;
}

.candle {
    width: 6px;
    background: linear-gradient(to top, var(--success-teal), var(--digital-green));
    border-radius: 2px;
    position: relative;
    box-shadow: 0 0 6px rgba(0, 255, 65, 0.3);
}

.candle::before,
.candle::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: var(--tech-gold);
}

.candle::before {
    top: -8px;
    height: 8px;
}

.candle::after {
    bottom: -8px;
    height: 12px;
}

.ai-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem 1rem;
}

.ai-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--tech-cyan), var(--tech-purple));
    padding: 3px;
    margin-bottom: 1.2rem;
    animation: avatarGlowAnim 2s ease-in-out infinite alternate;
}

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: url('./image/23230﹖xiav4ohswtcr1wctbmdundbkjw4o.k8.gif');
    background-size: cover;
    background-position: center;
    border: 2px solid var(--stellar-primary);
}

.title-block {
    text-align: center;
    max-width: 800px;
    padding: 0 15px;
}

.main-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(45deg, var(--tech-cyan), var(--tech-gold), var(--tech-purple));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmerAnim 3s ease-in-out infinite;
    line-height: 1.2;
    margin-bottom: 0.6rem;
}

.sub-title {
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    color: var(--digital-green);
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}

.desc-text {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: var(--light-text);
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.input-block {
    width: 100%;
    max-width: 480px;
    margin-bottom: 1.5rem;
    padding: 0 15px;
}

.input-field {
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    background: rgba(27, 38, 59, 0.8);
    border: 2px solid var(--stellar-accent);
    border-radius: 10px;
    color: var(--light-text);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.input-field::placeholder {
    color: var(--dim-text);
    font-size: 0.95rem;
}

.input-field:focus {
    outline: none;
    border-color: var(--tech-cyan);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
    transform: translateY(-2px);
}

.action-btn {
    width: 100%;
    padding: 1.1rem 1.8rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: linear-gradient(45deg, var(--deep-blue), var(--tech-purple));
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(65, 105, 225, 0.3);
}

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

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(65, 105, 225, 0.5);
}

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

.action-btn:active {
    transform: translateY(-1px);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.progress-box {
    background: var(--stellar-secondary);
    padding: 2.5rem 1.8rem;
    border-radius: 14px;
    text-align: center;
    border: 1px solid var(--stellar-accent);
    max-width: 380px;
    width: 90%;
}

.progress-text {
    color: var(--light-text);
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--stellar-primary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--tech-cyan), var(--digital-green));
    width: 0%;
    border-radius: 3px;
    transition: width 0.1s ease;
}

.stage-text {
    color: var(--dim-text);
    font-size: 0.85rem;
    font-style: italic;
}

.result-modal {
    background: var(--stellar-secondary);
    padding: 2.5rem 1.8rem;
    border-radius: 14px;
    text-align: center;
    border: 1px solid var(--success-teal);
    max-width: 420px;
    width: 90%;
}

.result-title {
    color: var(--success-teal);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.result-desc {
    color: var(--dim-text);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.whatsapp-btn {
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    margin-bottom: 1.8rem;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(37, 211, 102, 0.5);
}

.kline-container {
    width: 100%;
    height: 180px;
    background: rgba(27, 38, 59, 0.8);
    border-radius: 10px;
    padding: 0.8rem;
    margin-top: 0.8rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--stellar-accent);
}

.kline-title {
    color: var(--tech-cyan);
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.kline-chart {
    width: 100%;
    height: 130px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 0 8px;
}

.candle-holder {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.candle-stick {
    width: 10px;
    position: relative;
    background: linear-gradient(to bottom, #ff4d4d, #ff4d4d 50%, #00FF41 50%, #00FF41);
    border-radius: 2px;
    z-index: 2;
}

.candle-stick::before,
.candle-stick::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: var(--tech-gold);
    z-index: 1;
}

.candle-stick::before {
    top: -12px;
}

.candle-stick::after {
    bottom: -12px;
}

.candle-label {
    font-size: 0.75rem;
    color: var(--dim-text);
    margin-top: 4px;
}

.trend-arrow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 25px;
    z-index: 3;
    animation: arrowRiseAnim 8s linear infinite;
}

.trend-arrow svg {
    width: 100%;
    height: 100%;
    fill: var(--digital-green);
    filter: drop-shadow(0 0 4px rgba(0, 255, 65, 0.8));
}

@keyframes arrowRiseAnim {
    0% {
        transform: translateY(180px) translateX(0);
    }
    10% {
        transform: translateY(160px) translateX(40px);
    }
    20% {
        transform: translateY(140px) translateX(80px);
    }
    30% {
        transform: translateY(120px) translateX(120px);
    }
    40% {
        transform: translateY(100px) translateX(160px);
    }
    50% {
        transform: translateY(80px) translateX(200px);
    }
    60% {
        transform: translateY(60px) translateX(240px);
    }
    70% {
        transform: translateY(40px) translateX(280px);
    }
    80% {
        transform: translateY(20px) translateX(320px);
    }
    90% {
        transform: translateY(0) translateX(360px);
    }
    100% {
        transform: translateY(-20px) translateX(400px);
    }
}

@keyframes candleRiseAnim {
    0% {
        height: 0;
        opacity: 0;
    }
    100% {
        height: var(--candle-height);
        opacity: 1;
    }
}

.candle-stick {
    animation: candleRiseAnim 1.5s ease-out forwards;
    animation-delay: calc(var(--candle-delay) * 0.2s);
}

.risk-section {
    margin-top: 0.5rem;
    max-width: 800px;
    text-align: left;
    background: rgba(27, 38, 59, 0.6);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--stellar-accent);
}

.warning-title {
    color: var(--alert-yellow);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.risk-list {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.2;
}

.risk-list li {
    margin-bottom: 0.7rem;
    list-style: none;
    position: relative;
    padding-left: 1.3rem;
}

.risk-list li::before {
    content: '•';
    color: var(--tech-cyan);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.footer-links {
    margin-top: 1.2rem;
    text-align: center;
}

.footer-link {
    color: var(--tech-cyan);
    text-decoration: none;
    margin: 0 0.8rem;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--tech-gold);
    text-decoration: underline;
}

@keyframes gridPulseAnim {
    0%,
    100% {
        opacity: 0.15;
    }
    50% {
        opacity: 0.25;
    }
}

@keyframes avatarGlowAnim {
    0% {
        box-shadow: 0 0 15px rgba(0, 245, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 35px rgba(138, 43, 226, 0.8);
    }
}

@keyframes titleShimmerAnim {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.featured-img-section {
    width: 100%;
    max-width: 800px;
}

.img-container {
    background: rgba(27, 38, 59, 0.7);
    border-radius: 14px;
    border: 1px solid var(--stellar-accent);
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 380px;
    height: 212px;
    margin: 0 auto;
    padding: 0;
}

.featured-img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

.metrics-section {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
}

.metrics-title {
    color: var(--tech-cyan);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.2rem;
    text-shadow: 0 0 12px rgba(0, 245, 255, 0.8);
    letter-spacing: 0.8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
}

.stat-box {
    background: var(--stellar-secondary);
    border-radius: 14px;
    padding: 1.2rem;
    text-align: center;
    border: 1px solid var(--stellar-accent);
    transition: all 0.3s ease;
    position: relative;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(138, 43, 226, 0.1), transparent);
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(138, 43, 226, 0.3);
}

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

.stat-icon {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
    display: block;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--tech-gold);
    margin-bottom: 0.2rem;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

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

.testimonials-section {
    width: 100%;
    max-width: 800px;
}

.testimonials-title {
    color: var(--success-teal);
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 0 8px rgba(80, 200, 120, 0.5);
}

.testimonials-box {
    background: rgba(27, 38, 59, 0.6);
    border-radius: 14px;
    padding: 1.2rem;
    border: 1px solid var(--stellar-accent);
    height: 140px;
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    height: 100%;
    position: relative;
    width: 100%;
}

.testimonial-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    gap: 1.2rem;
    padding: 0.8rem;
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
    opacity: 1;
}

.testimonial-item.active {
    transform: translateY(0);
    opacity: 1;
    z-index: 2;
}

.testimonial-item.next {
    transform: translateY(100%);
    opacity: 0;
    z-index: 1;
}

.testimonial-item.prev {
    transform: translateY(-100%);
    opacity: 0;
    z-index: 1;
}

.item-date {
    flex-shrink: 0;
    width: 70px;
    font-size: 0.85rem;
    color: var(--tech-cyan);
    font-weight: 600;
    padding-top: 0.1rem;
}

.item-content {
    flex: 1;
}

.username {
    color: var(--tech-gold);
    font-weight: 600;
    font-size: 0.95rem;
}

.stock-code {
    color: var(--digital-green);
    font-weight: 700;
    background: rgba(0, 255, 65, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9rem;
}

.analyzed-text {
    color: var(--light-text);
    font-weight: 500;
}

.feedback-text {
    color: var(--light-text);
    font-style: italic;
    margin-top: 0.4rem;
    line-height: 1.4;
    font-size: 0.95rem;
    opacity: 0.9;
}

.stocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 800px;
}

.stock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.8rem;
    background: rgba(27, 38, 59, 0.5);
    border-radius: 10px;
    border: 1px solid var(--stellar-accent);
    transition: all 0.3s ease;
}

.stock-item:hover {
    transform: translateY(-4px);
    background: rgba(65, 90, 119, 0.3);
    box-shadow: 0 4px 12px rgba(0, 245, 255, 0.3);
}

.stock-symbol {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
    color: var(--tech-cyan);
}

.stock-name {
    font-size: 0.85rem;
    color: var(--light-text);
    text-align: center;
}

.stock-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tech-gold);
    margin-top: 0.4rem;
}

.price-change {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.2rem;
}

.price-change.up {
    color: var(--digital-green);
}

.price-change.down {
    color: #ff4d4d;
}

.testimonial-chart {
    width: 100%;
    height: 150px;
    margin-top: 0.5rem;
    background: rgba(27, 38, 59, 0.8);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--stellar-accent);
}

.bar-chart {
    width: 100%;
    height: 100%;
    padding: 8px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
}

.bar {
    width: 12px;
    background: linear-gradient(to top, #00FF41, #00c93c);
    border-radius: 3px 3px 0 0;
    position: relative;
    box-shadow: 0 0 6px rgba(0, 255, 65, 0.3);
    animation: barRiseAnim 1.5s ease-out forwards;
    animation-delay: calc(var(--bar-delay) * 0.2s);
}

.bar::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 12px;
    background: var(--tech-gold);
    z-index: 1;
}

@keyframes barRiseAnim {
    0% {
        height: 0;
        opacity: 0;
    }
    100% {
        height: var(--bar-height);
        opacity: 1;
    }
}

.bar:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.6);
}

@media (max-width: 768px) {
    .ai-container {
        padding: 0.8rem 0.5rem;
    }

    .ai-avatar {
        width: 180px;
        height: 180px;
        margin-bottom: 1rem;
    }

    .img-container {
        width: 100%;
        height: auto;
        max-width: 380px;
        aspect-ratio: 380/212;
    }

    .risk-section {
        padding: 1.2rem;
    }

    .metrics-section {
        margin: 1rem 0;
    }

    .metrics-title {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }

    .stat-box {
        padding: 0.7rem 0.4rem;
    }

    .stat-icon {
        font-size: 1.3rem;
        margin-bottom: 0.2rem;
    }

    .stat-value {
        font-size: 1.1rem;
        margin-bottom: 0.1rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .testimonials-box {
        height: 150px;
        padding: 1rem;
    }

    .testimonial-item {
        flex-direction: column;
        gap: 0.4rem;
        padding: 0.7rem;
        height: 100%;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .item-date {
        width: auto;
        flex-shrink: 0;
        font-size: 0.8rem;
    }

    .item-content {
        flex: 1;
        min-height: 0;
    }

    .feedback-text {
        font-size: 0.85rem;
        margin-top: 0.2rem;
        line-height: 1.35;
    }

    .stocks-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.7rem;
    }

    .kline-container {
        height: 160px;
    }

    .kline-chart {
        height: 120px;
    }

    .testimonial-chart {
        height: 130px;
    }

    .float-btn {
        width: 90%;
        max-width: 320px;
        height: 52px;
        font-size: 0.95rem;
    }
}
