/* ===== Let's Connect – Glassmorphism + Quick Options ===== */
:root {
  --zalo: #0068ff;
  --zalo-grad: linear-gradient(135deg, #0068ff 0%, #00a8ff 100%);
}

@keyframes lcRotate {
  to { transform: rotate(360deg); }
}
@keyframes lcShimmer {
  0% { left: -100%; }
  50%, 100% { left: 150%; }
}
@keyframes lcPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}
@keyframes lcFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.connect-card {
  position: relative;
  background: linear-gradient(135deg, rgba(233,30,140,0.15) 0%, rgba(139,92,246,0.12) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius, 18px);
  padding: 22px;
  overflow: hidden;
  box-shadow:
    0 20px 60px -20px rgba(233,30,140,0.35),
    inset 0 1px 0 rgba(255,255,255,0.1);
  animation: lcFadeUp 0.5s ease both;
}

.connect-card::before {
  content: '';
  position: absolute; inset: -2px;
  border-radius: calc(var(--radius, 18px) + 2px);
  padding: 2px;
  background: conic-gradient(from 0deg, var(--brand, #e91e8c), var(--brand-2, #8b5cf6), var(--brand, #e91e8c), var(--brand-2, #8b5cf6), var(--brand, #e91e8c));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  animation: lcRotate 8s linear infinite;
  pointer-events: none;
}

.connect-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: lcShimmer 3s ease-in-out infinite;
  pointer-events: none;
}

.connect-info {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.connect-card .connect-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--brand-grad, linear-gradient(135deg, #e91e8c, #8b5cf6));
  display: grid; place-items: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(233,30,140,0.4);
  position: relative;
}
.connect-card .connect-icon::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  background: var(--success, #22c55e);
  border-radius: 50%;
  top: -2px; right: -2px;
  border: 2px solid var(--surface, #14141c);
  animation: lcPulse 2s infinite;
}

.connect-card .connect-text { flex: 1; font-size: inherit; font-weight: inherit; }
.connect-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.badge-live {
  padding: 3px 8px;
  background: rgba(34,197,94,0.2);
  border: 1px solid rgba(34,197,94,0.3);
  color: var(--success, #22c55e);
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 4px;
}
.badge-live::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--success, #22c55e);
  border-radius: 50%;
  animation: lcPulse 2s infinite;
}
.connect-desc {
  font-size: 13px;
  color: var(--text-secondary, #a0a0b0);
  line-height: 1.5;
}
.connect-desc strong {
  color: var(--text, #fff);
  font-weight: 700;
}

.btn-connect {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 15px 20px;
  background: var(--brand-grad, linear-gradient(135deg, #e91e8c, #8b5cf6));
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 10px 28px -8px rgba(233,30,140,0.55),
    inset 0 1px 0 rgba(255,255,255,0.25);
  transition: all 0.3s cubic-bezier(.2,.8,.2,1);
  z-index: 1;
}
.btn-connect:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 36px -8px rgba(233,30,140,0.7),
    inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-connect:active { transform: translateY(0); }
.btn-connect::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}
.btn-connect:hover::before { left: 100%; }

.btn-connect-text {
  display: flex; align-items: center; gap: 10px;
  position: relative; z-index: 1;
}
.btn-connect-text i { font-size: 15px; }
.btn-connect-arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: grid; place-items: center;
  font-size: 12px;
  transition: transform 0.3s;
  position: relative; z-index: 1;
}
.btn-connect:hover .btn-connect-arrow { transform: translateX(4px); }

.connect-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
}
.connect-trust-avatars { display: flex; }
.connect-trust-avatars span {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--surface, #14141c);
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700;
  color: #fff;
  margin-left: -8px;
}
.connect-trust-avatars span:first-child { margin-left: 0; }
.connect-trust-text {
  font-size: 11.5px;
  color: var(--text-muted, #6b6b7b);
  flex: 1;
}
.connect-trust-text strong {
  color: var(--text, #fff);
  font-weight: 700;
}

.quick-connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.quick-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--surface, #14141c);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: var(--radius-sm, 14px);
  cursor: pointer;
  transition: all 0.25s;
  text-align: left;
  font-family: inherit;
  color: var(--text, #fff);
  position: relative;
  overflow: hidden;
  width: 100%;
}
.quick-option:hover {
  transform: translateY(-2px);
  border-color: var(--border-2, rgba(255,255,255,0.14));
  background: var(--surface-2, #1c1c26);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.5);
}
.quick-option-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 17px;
  color: #fff;
  flex-shrink: 0;
}
.qi-zalo { background: var(--zalo-grad); box-shadow: 0 4px 12px rgba(0,104,255,0.35); }
.qi-call { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 4px 12px rgba(34,197,94,0.35); }
.qi-video { background: linear-gradient(135deg, #3b82f6, #1d4ed8); box-shadow: 0 4px 12px rgba(59,130,246,0.35); }
.qi-vcard { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 4px 12px rgba(245,158,11,0.35); }
.qi-whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); box-shadow: 0 4px 12px rgba(37,211,102,0.35); }
.qi-telegram { background: linear-gradient(135deg, #0088cc, #005f8c); box-shadow: 0 4px 12px rgba(0,136,204,0.35); }

.quick-option-body { flex: 1; min-width: 0; }
.quick-option-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quick-option-sub {
  font-size: 11px;
  color: var(--text-muted, #6b6b7b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quick-option-arrow {
  color: var(--text-muted, #6b6b7b);
  font-size: 11px;
  transition: transform 0.2s, color 0.2s;
}
.quick-option:hover .quick-option-arrow {
  color: var(--brand, #e91e8c);
  transform: translateX(3px);
}

/* Quick message modal */
.connect-modal-backdrop {
  position: fixed; inset: 0; z-index: 270;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(10px);
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.connect-modal-backdrop.open { display: flex; }
.connect-modal {
  width: 100%; max-width: 430px;
  background: var(--surface, #14141c);
  border-radius: 24px 24px 0 0;
  padding: 12px 20px 32px;
  max-height: 92vh;
  overflow-y: auto;
  animation: lcSlideUp 0.35s cubic-bezier(.2,.8,.2,1);
  border-top: 1px solid var(--border-2, rgba(255,255,255,0.14));
}
@keyframes lcSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.connect-modal .modal-handle {
  width: 40px; height: 4px;
  background: var(--surface-3, #252532);
  border-radius: 2px;
  margin: 0 auto 20px;
}
.connect-modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.connect-modal-header-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  font-size: 22px; color: #fff;
  flex-shrink: 0;
}
.connect-modal-title {
  font-size: 19px; font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.connect-modal-subtitle {
  font-size: 13px; color: var(--text-secondary, #a0a0b0);
  line-height: 1.4;
}
.connect-modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-2, #1c1c26);
  border: none;
  color: var(--text-secondary, #a0a0b0);
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 13px;
  flex-shrink: 0;
}
.message-templates {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.message-template {
  padding: 12px 14px;
  background: var(--surface-2, #1c1c26);
  border: 1.5px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 12px;
  color: var(--text, #fff);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  line-height: 1.4;
  width: 100%;
}
.message-template:hover {
  border-color: var(--brand, #e91e8c);
  background: rgba(233,30,140,0.05);
}
.message-template.selected {
  border-color: var(--brand, #e91e8c);
  background: rgba(233,30,140,0.1);
  box-shadow: 0 0 0 3px rgba(233,30,140,0.1);
}
.lc-btn-submit {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  background: var(--brand-grad, linear-gradient(135deg, #e91e8c, #8b5cf6));
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 8px 24px rgba(233,30,140,0.35);
}
.lc-btn-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.lc-form-hint {
  font-size: 11px;
  color: var(--text-muted, #6b6b7b);
  text-align: center;
  margin-top: 12px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
