/* =========================================================
   TRIMARKETA SMART FUNDAMENTAL V2
   Premium White / Navy / Indigo / Cyan
   ========================================================= */

.tm-smart-fundamental-title-v2 {
    position: relative !important;
    display: inline-block !important;

    color: #0b1629 !important;

    font-weight: 900 !important;
    letter-spacing: -0.045em !important;
    line-height: 1.04 !important;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,0) 0%,
            rgba(99,102,241,.05) 50%,
            rgba(255,255,255,0) 100%
        );

    animation:
        tmSfv2TitleIn .7s cubic-bezier(.22,1,.36,1) both;
}

.tm-smart-fundamental-title-v2::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 100%;
    height: 3px;

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            #4f46e5,
            #06b6d4,
            transparent
        );

    transform-origin: left;

    animation:
        tmSfv2Line .9s .25s cubic-bezier(.22,1,.36,1) both;
}

.tm-smart-fundamental-tagline-v2 {
    margin-top: 12px !important;

    color: #64748b !important;

    font-size: 14px !important;
    font-weight: 600 !important;

    letter-spacing: .02em !important;

    opacity: 0;

    animation:
        tmSfv2Tagline .65s .35s ease forwards;
}

@keyframes tmSfv2TitleIn {

    0% {
        opacity: 0;
        transform:
            translateY(15px)
            scale(.985);
        filter: blur(4px);
    }

    100% {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
        filter: blur(0);
    }
}

@keyframes tmSfv2Line {

    0% {
        transform: scaleX(0);
        opacity: 0;
    }

    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes tmSfv2Tagline {

    0% {
        opacity: 0;
        transform: translateY(7px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ambient glow */
#tm-stock-terminal-v4,
[data-tm-smart-fundamental="active"] {
    --tm-sf-indigo: #4f46e5;
    --tm-sf-cyan: #06b6d4;
}

/* Smooth global rendering */
#tm-stock-terminal-v4 *,
[data-tm-smart-fundamental="active"] * {
    -webkit-tap-highlight-color: transparent;
}

/* Mobile */
@media (max-width: 768px) {

    .tm-smart-fundamental-title-v2 {
        letter-spacing: -.035em !important;
    }

    .tm-smart-fundamental-tagline-v2 {
        font-size: 13px !important;
    }
}

@media (prefers-reduced-motion: reduce) {

    .tm-smart-fundamental-title-v2,
    .tm-smart-fundamental-tagline-v2,
    .tm-smart-fundamental-title-v2::after {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
