/* --- Link Visual Engine --- */
.link-visual-engine {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-link-card {
    width: 320px;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: 0.5s ease;
}

.floating-link-card:hover {
    transform: rotate(0);
}

.mock-input {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #1e293b;
    font-weight: 600;
}

.link-success-pop {
    position: absolute;
    bottom: 20%;
    right: 5%;
    background: #3b82f6;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* --- Badge & Icon Styling --- */
.bg-soft-blue { background: rgba(59, 130, 246, 0.1); }
.shadow-premium { box-shadow: 0 30px 60px rgba(0,0,0,0.08); }

.tech-bullet-modern {
    width: 60px;
    height: 60px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.5rem;
}
.mt57{
    margin-top: 90%;

}

/* --- Terminal Stack & 3D Depth --- */
.api-visual-stack {
    position: relative;
    padding: 40px 0;
    perspective: 1000px;
}

.terminal-window-main {
    background: #0f172a;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotateX(5deg) rotateY(-5deg);
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.terminal-window-response {
    position: absolute;
    bottom: -30px;
    right: -20px;
    width: 240px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    z-index: 10;
    transform: translateZ(50px);
}

/* --- Terminal UI Details --- */
.terminal-header-custom {
    background: #1e293b;
    padding: 10px 15px;
}

.dot-btn { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-btn.r { background: #ff5f56; }
.dot-btn.y { background: #ffbd2e; }
.dot-btn.g { background: #27c93f; }

.terminal-tab {
    font-size: 0.7rem;
    color: #94a3b8;
    background: #0f172a;
    padding: 5px 15px;
    border-radius: 6px 6px 0 0;
    margin-bottom: -10px;
    border: 1px solid rgba(255,255,255,0.05);
}

.terminal-body-custom {
    padding: 25px;
    min-height: 250px;
}

/* --- Code Typography --- */
#api-type-text {
    color: #38bdf8; /* Light Blue */
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* --- Feature Icons --- */
.terminal-dot-icon {
    width: 32px; height: 32px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
}

/* Container & Generic Lifecycle Styling */
.bg-cyber-black { background-color: #050508; }
.py-100 { padding: 100px 0; }
.mb-100 { margin-bottom: 80px; }
.x-small { font-size: 0.7rem; }

/* The Actors (Man & Phone) */
.actor-icon-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.actor-inner {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

.actor-inner i {
    font-size: 2.5rem;
    color: #94a3b8;
}

/* Glow States */
.active-glow-violet {
    border-color: #8b5cf6;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.active-glow-success {
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.bg-soft-white { background: rgba(255, 255, 255, 0.1); color: white; font-size: 0.6rem; font-weight: 700; }

/* EnachPay Engine Node */
.engine-visual-wrapper {
    width: 200px;
    height: 200px;
}

.engine-core {
    background: rgba(15, 10, 29, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.border-violet { border: 1px solid rgba(139, 92, 246, 0.5); }
.border-success { border: 1px solid rgba(16, 185, 129, 0.5); }

/* Flowing Data Packets */
.data-packet {
    position: absolute;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #8b5cf6;
    box-shadow: 0 0 10px #8b5cf6;
    z-index: 8;
}

.dp-1 { top: 10%; left: 10%; animation: packetDrift 3s infinite linear; }
.dp-2 { top: 40%; right: 10%; animation: packetDrift 2.5s infinite linear delay-1s; }
.dp-3 { bottom: 10%; left: 50%; animation: packetDrift 3.5s infinite linear; }

@keyframes packetDrift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -20px) scale(1.2); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Connecting Flow Lines */
.flow-line-container {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.flow-line-progress {
    height: 100%;
    width: 0%;
    position: relative;
    border-radius: 10px;
}

.flow-violet { background: linear-gradient(to right, transparent, #8b5cf6, #22d3ee); }
.flow-success { background: linear-gradient(to right, transparent, #10b981, #dcfce7); }

.animate-flow .flow-line-progress {
    animation: flowSequence 5s infinite linear;
}

@keyframes flowSequence {
    0% { width: 0%; left: 0%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { width: 100%; left: 0%; opacity: 0; }
}

/* UPI Icons (Intent Row) */
.upi-icon {
    position: absolute;
    color: #10b981;
    font-size: 1rem;
    animation: floatNode 3s infinite ease-in-out;
}
.ui-1 { top: 0; left: 10%; }
.ui-2 { bottom: 10%; right: 10%; animation-delay: 1.5s; }