/* Additional custom styles and animations */

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img,
picture,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

canvas {
    max-width: 100%;
}

a,
button,
input,
select,
textarea {
    touch-action: manipulation;
}

.grid > *,
.flex > * {
    min-width: 0;
}

/* Selection color */
::selection {
    background: rgba(255, 215, 0, 0.3);
    color: white;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0f1c;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #FFD700, #00D4FF);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FFD700;
}

/* Range input styling */
input[type=range] {
    -webkit-appearance: none;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #FFD700;
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #374151;
    border-radius: 2px;
}

input[type=range]:focus::-webkit-slider-runnable-track {
    background: #4B5563;
}

/* Animation classes */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease-out;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease-out;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Glass morphism variants */
.glass-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Energy line animation */
.energy-line {
    stroke: url(#energyGradient);
    stroke-width: 2;
    fill: none;
    filter: drop-shadow(0 0 5px rgba(255,215,0,0.5));
    stroke-dasharray: 5,5;
    animation: dash 20s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -100;
    }
}

/* Floating particles */
.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FFD700;
    border-radius: 50%;
    opacity: 0.6;
    animation: floatParticle 15s infinite;
    pointer-events: none;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* Button hover effects */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.btn-glow:hover::before {
    left: 100%;
}

.mobile-menu-panel {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: grid-template-rows 220ms ease, opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

.mobile-menu-panel.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-panel__inner {
    overflow: hidden;
}

.mobile-menu-link {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.mobile-menu-link:hover {
    background: rgba(251, 191, 36, 0.12);
    color: #b45309;
    transform: translateX(4px);
}

.mobile-section-shell {
    border-radius: 1.5rem;
}

.mobile-card-compact {
    border-radius: 1.25rem;
}

.mobile-safe-text {
    word-break: break-word;
}

.mobile-bottom-bar {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 75;
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.mobile-bottom-bar__primary,
.mobile-bottom-bar__secondary {
    min-height: 48px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.mobile-bottom-bar__primary {
    flex: 1 1 auto;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.22);
}

.mobile-bottom-bar__secondary {
    flex: 0 0 52px;
    width: 52px;
    color: #128c7e;
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.2);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .orbitron {
        letter-spacing: 0.02em;
    }
    
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 2rem !important;
    }

    .card-3d-enhanced:hover {
        transform: translateY(-6px);
    }
}

/* Loading animation */
.loading-shimmer {
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Trust badge animation */
.trust-badge {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .7; }
}

/* Parallax effect helper */
.parallax-layer {
    will-change: transform;
}

/* Form validation styles */
input:invalid:not(:placeholder-shown) {
    border-color: #EF4444;
}

input:valid:not(:placeholder-shown) {
    border-color: #10B981;
}

/* Custom cursor for interactive elements */
@media (hover: hover) {
    .interactive {
        cursor: pointer;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}

.utl-modal-shell {
    transform: perspective(1400px) rotateX(0deg) scale(0.96);
}

.utl-tilt-card {
    aspect-ratio: 16 / 12;
    transition: transform 220ms ease, box-shadow 220ms ease;
    transform-style: preserve-3d;
}

.utl-rate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid rgba(59,130,246,0.3);
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 1rem;
    padding: 0.95rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: white;
    box-shadow: 0 0 10px rgba(59,130,246,0.2);
}

.utl-rate-row strong {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(255,255,255,0.8);
}

.utl-rate-row-featured {
    border-color: rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.7);
}
.utl-rate-row-featured strong {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255,255,255,0.9);
}

.utl-info-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.07);
    border-radius: 1.25rem;
    padding: 1rem;
    backdrop-filter: blur(14px);
}

.utl-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.9rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .utl-rate-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .utl-rate-row strong {
        font-size: 1.15rem;
    }
}

.whatsapp-float-btn {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-width: 60px;
    height: 60px;
    padding: 0 1.1rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 18px 40px rgba(18, 140, 126, 0.32);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
    -webkit-tap-highlight-color: transparent;
}

.whatsapp-float-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 24px 52px rgba(18, 140, 126, 0.38);
    filter: saturate(1.08);
}

.whatsapp-float-btn:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.28);
    outline-offset: 4px;
}

.whatsapp-float-btn:active {
    transform: scale(0.97);
}

.whatsapp-float-btn__icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}

.whatsapp-float-btn__label {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .whatsapp-float-btn {
        right: 14px;
        bottom: 14px;
        min-width: 56px;
        height: 56px;
        padding: 0 1rem;
    }

    .whatsapp-float-btn__icon {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }

    .whatsapp-float-btn__label {
        display: none;
    }
}

@media (max-width: 1024px) {
    .orb-glow {
        opacity: 0.28;
        filter: blur(30px);
    }
}

@media (max-width: 767px) {
    .sun-ray,
    .orb-glow {
        display: none;
    }

    .mobile-chip-stack {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .mobile-cta-stack {
        width: 100%;
        gap: 0.875rem;
    }

    .mobile-bottom-bar {
        display: flex;
    }

    .whatsapp-float-btn {
        bottom: 82px;
    }
}

@media (max-width: 479px) {
    .mobile-section-shell {
        border-radius: 1.25rem;
    }

    .mobile-card-compact {
        border-radius: 1rem;
    }

    .mobile-bottom-bar {
        left: 0.6rem;
        right: 0.6rem;
        bottom: 0.6rem;
        gap: 0.6rem;
        padding: 0.6rem;
    }

    .mobile-bottom-bar__primary {
        font-size: 0.92rem;
        padding: 0.8rem 0.9rem;
    }

    .whatsapp-float-btn {
        right: 12px;
        bottom: 76px;
    }
}
