/* --- Premium Prism Connector V2 --- */
.connector-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 40px 50px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 40px;
  box-shadow:
    0 40px 80px -12px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(197, 160, 89, 0.15);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.connector-flow:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 40px 60px -15px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(197, 160, 89, 0.15);
  border-color: rgba(197, 160, 89, 0.4);
}

.connector-node {
  z-index: 5;
  position: relative;
  text-align: center;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.node-icon {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 15px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

.node-you .node-icon {
  background: linear-gradient(135deg, #064e3b, #10b981);
  color: white;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.node-lender .node-icon {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: var(--brand-gold);
  border: 1px solid rgba(197, 160, 89, 0.3);
}

.node-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  display: block;
  letter-spacing: 0.5px;
}

.connector-bridge {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 40px;
  position: relative;
  border-radius: 4px;
  overflow: visible;
}

.bridge-pulse {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-gold), #10b981);
  box-shadow:
    0 0 20px var(--brand-gold),
    0 0 40px rgba(197, 160, 89, 0.5);
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.65, 0, 0.35, 1);
}

.bridge-badge {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  padding: 8px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  z-index: 10;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.bridge-badge.active {
  background: rgba(197, 160, 89, 0.2);
  color: var(--brand-gold);
  border-color: var(--brand-gold);
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 0 30px rgba(197, 160, 89, 0.3);
}

.click-hint {
  position: absolute;
  top: -12px;
  right: -12px;
  background: var(--brand-gold);
  color: #000;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-gold 2s infinite;
  z-index: 20;
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.5);
}

@keyframes pulse-gold {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 15px rgba(197, 160, 89, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(197, 160, 89, 0);
  }
}

/* Mobile Responsive Connector */
@media (max-width: 768px) {
  .connector-flow {
    flex-direction: column;
    padding: 60px 20px;
    gap: 30px;
  }

  .connector-bridge {
    width: 2px;
    height: 120px;
    margin: 20px 0;
    flex: none;
  }

  .bridge-pulse {
    width: 4px;
    height: 0%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: height 1s cubic-bezier(0.65, 0, 0.35, 1);
  }

  .bridge-badge {
    left: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%) scale(0.85);
  }
}
