/* ══════════════════════════════════════════
     LEGAL ASSETS INC  ─  EPIC SPLASH SCREEN
   ══════════════════════════════════════════ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #070b14;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'Space Grotesk', sans-serif;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ── Moving grid background ── */
.pre-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 48px 48px;
    }
}

/* ── Scan line ── */
.pre-scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
    animation: scanDown 4s linear infinite;
    pointer-events: none;
}

@keyframes scanDown {
    from {
        top: -2px;
    }

    to {
        top: 100%;
    }
}

/* ── Background orbs ── */
.pre-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: orbFloat 10s ease-in-out infinite;
}

.pre-orb-1 {
    width: 600px;
    height: 600px;
    background: #1d4ed8;
    opacity: 0.12;
    top: -220px;
    left: -220px;
}

.pre-orb-2 {
    width: 500px;
    height: 500px;
    background: #7c3aed;
    opacity: 0.10;
    bottom: -180px;
    right: -180px;
    animation-delay: 3s;
    animation-direction: reverse;
}

.pre-orb-3 {
    width: 350px;
    height: 350px;
    background: #0891b2;
    opacity: 0.08;
    top: 40%;
    left: 40%;
    animation-delay: 6s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.06);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.94);
    }
}

/* ── Streaming price numbers (sides) ── */
.pre-streams {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.stream-col {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-size: 11px;
    font-weight: 600;
    animation: streamFall linear infinite;
    opacity: 0.18;
}

.stream-col:nth-child(1) {
    left: 3%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.stream-col:nth-child(2) {
    left: 7%;
    animation-duration: 9s;
    animation-delay: 2s;
}

.stream-col:nth-child(3) {
    right: 3%;
    animation-duration: 11s;
    animation-delay: 1s;
}

.stream-col:nth-child(4) {
    right: 8%;
    animation-duration: 8s;
    animation-delay: 4s;
}

.s-green {
    color: #10b981;
}

.s-red {
    color: #ef4444;
}

@keyframes streamFall {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(180%);
    }
}

/* ── Main center block ── */
.pre-center {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Triple spinning rings */
.pre-rings-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
}

.pre-ring {
    position: absolute;
    border-radius: 50%;
    border: 2.5px solid transparent;
    box-shadow: inset 0 0 12px rgba(59, 130, 246, 0.1);
}

.pre-ring.r1 {
    inset: 0;
    border-top-color: #3b82f6;
    border-right-color: #06b6d4;
    animation: spin 1.1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.pre-ring.r2 {
    inset: 12px;
    border-bottom-color: #8b5cf6;
    border-left-color: #3b82f6;
    animation: spin 1.7s cubic-bezier(0.5, 0, 0.5, 1) infinite reverse;
}

.pre-ring.r3 {
    inset: 26px;
    border-top-color: #06b6d4;
    border-right-color: #10b981;
    animation: spin 0.85s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.pre-ring.r4 {
    inset: 40px;
    border-bottom-color: #f59e0b;
    animation: spin 2.1s cubic-bezier(0.5, 0, 0.5, 1) infinite reverse;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Center icon */
.pre-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 #3b82f6);
    }

    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 14px rgba(59, 130, 246, 0.5));
    }
}

/* Brand text */
.pre-brand {
    text-align: center;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.pre-brand-name {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #06b6d4, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    background-size: 200% 100%;
    animation: shimmerGrad 3s linear infinite;
}

@keyframes shimmerGrad {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.pre-brand-tag {
    font-size: 12px;
    color: #334155;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 6px;
}

/* ── Candlestick mini-chart ── */
.pre-candle-chart {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 64px;
    width: 180px;
    padding: 4px;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.candle-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    position: relative;
}

.candle-wick {
    width: 1.5px;
    background: currentColor;
    position: absolute;
    animation: wickGrow 0.3s ease forwards;
    animation-delay: var(--cd);
    transform-origin: bottom;
    transform: scaleY(0);
}

.candle-body {
    width: 7px;
    border-radius: 2px;
    animation: bodyGrow 0.35s ease forwards;
    animation-delay: var(--cd);
    transform-origin: bottom;
    transform: scaleY(0);
}

.candle-wrap.cg {
    color: #10b981;
}

.candle-wrap.cg .candle-body {
    background: rgba(16, 185, 129, 0.85);
}

.candle-wrap.cg .candle-wick {
    background: #10b981;
}

.candle-wrap.cr {
    color: #ef4444;
}

.candle-wrap.cr .candle-body {
    background: rgba(239, 68, 68, 0.85);
}

.candle-wrap.cr .candle-wick {
    background: #ef4444;
}

@keyframes bodyGrow {
    to {
        transform: scaleY(1);
    }
}

@keyframes wickGrow {
    to {
        transform: scaleY(1);
    }
}

/* ── Floating price cards ── */
.pre-card {
    position: absolute;
    z-index: 20;
    background: rgba(15, 21, 33, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 12px 16px;
    min-width: 130px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.pc-sym {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pc-price {
    font-size: 16px;
    font-weight: 800;
    color: #f1f5f9;
    font-family: 'Space Grotesk', monospace;
    margin: 4px 0 2px;
}

.pc-chg {
    font-size: 12px;
    font-weight: 700;
}

.pc-chg.up {
    color: #10b981;
}

.pc-chg.dn {
    color: #ef4444;
}

/* Positions */
.pre-card.fc-tl {
    top: 12%;
    left: 4%;
    animation: slideInLeft 0.8s ease 0.3s both;
}

.pre-card.fc-tr {
    top: 18%;
    right: 4%;
    animation: slideInRight 0.8s ease 0.5s both;
}

.pre-card.fc-bl {
    bottom: 20%;
    left: 4%;
    animation: slideInLeft 0.8s ease 0.7s both;
}

.pre-card.fc-br {
    bottom: 14%;
    right: 4%;
    animation: slideInRight 0.8s ease 0.9s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card pulse on its border */
.pre-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    animation: borderPulse 3s ease-in-out infinite;
}

.fc-tl::after,
.fc-bl::after {
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.18);
}

.fc-tr::after,
.fc-br::after {
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.18);
}

@keyframes borderPulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* ── Ticker strip ── */
.pre-ticker-strip {
    position: absolute;
    bottom: 90px;
    left: 0;
    right: 0;
    overflow: hidden;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeInUp 0.8s ease 1s both;
}

.pre-ticker-inner {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: tickerRoll 30s linear infinite;
}

@keyframes tickerRoll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.pt-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    white-space: nowrap;
}

.pt-sym {
    font-weight: 800;
    color: #fff;
}

.pt-px {
    color: #94a3b8;
    font-family: 'Space Grotesk', monospace;
}

.pt-chg {
    font-weight: 700;
    font-size: 11px;
}

/* ── Footer status ── */
.pre-footer {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 320px;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.pre-status-text {
    font-size: 12px;
    color: #475569;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    min-height: 18px;
    transition: opacity 0.3s;
}

.pre-progress-wrap {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 99px;
    overflow: hidden;
}

.pre-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #8b5cf6);
    background-size: 200% 100%;
    border-radius: 99px;
    width: 0%;
    animation: progressFill 2.2s ease forwards, shimmerMove 1.5s linear infinite;
}

@keyframes progressFill {
    0% {
        width: 0%;
    }

    50% {
        width: 75%;
    }

    85% {
        width: 90%;
    }

    100% {
        width: 100%;
    }
}

@keyframes shimmerMove {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ── Version badge ── */
.pre-version {
    position: absolute;
    bottom: 6px;
    right: 16px;
    font-size: 10px;
    color: #1e293b;
    letter-spacing: 0.05em;
}

/* Dot blinks */
.blink {
    animation: blink 0.8s ease-in-out infinite;
    display: inline-block;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ── Standard Google Translate Styling ── */
#google_translate_element {
    display: inline-block;
    vertical-align: middle;
    min-width: 200px;
}

.goog-te-gadget-simple {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    padding: 12px 16px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    width: 100% !important;
    justify-content: space-between !important;
    transition: all 0.3s ease;
}

.goog-te-gadget-simple:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: #60a5fa !important;
}

.goog-te-menu-value {
    width: 100%;
    display: flex !important;
    margin: 0 !important;
    align-items: center !important;
}

.goog-te-menu-value span {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

/* Globe Icon Placeholder */
.goog-te-gadget-simple::before {
    content: '🌐';
    margin-right: 10px;
    font-size: 18px;
}

.goog-te-gadget-icon {
    display: none !important;
}

.goog-logo-link {
    display: none !important;
}

.goog-te-gadget span {
    display: none !important;
}