/* ========== BRAND MODAL (clicked brand → messenger picker) ========== */
.brand-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2500;
  align-items: center;
  justify-content: center;
}
.brand-modal.active { display: flex; }
.brand-modal-content {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 40px 36px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: brandModalIn 0.28s var(--ease);
}
@keyframes brandModalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
.brand-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.8rem;
  color: var(--ink-3);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  user-select: none;
}
.brand-modal-close:hover { color: var(--ink); }
.brand-modal-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
}
.brand-modal-content h3 span { color: var(--accent); }
.brand-modal-content > p {
  color: var(--ink-2);
  font-size: 14px;
  margin: 0 0 28px;
}
.brand-modal-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.brand-modal-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
  min-width: 130px;
}
.brand-modal-tg {
  background: rgba(42, 171, 238, 0.12);
  color: #2AABEE;
  border: 1px solid rgba(42, 171, 238, 0.45);
}
.brand-modal-tg:hover {
  background: #2AABEE;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(42, 171, 238, 0.3);
}
.brand-modal-max {
  background: rgba(123, 97, 255, 0.12);
  color: #6b53e0;
  border: 1px solid rgba(123, 97, 255, 0.45);
}
.brand-modal-max:hover {
  background: #7B61FF;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(123, 97, 255, 0.3);
}
.brand-modal-svg { width: 32px; height: 32px; }
.brand-modal-tg .brand-modal-svg { color: inherit; }
.brand-modal-max .brand-modal-svg { color: inherit; }

/* ========== LIGHTBOX (gallery) ========== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 2.4rem;
  color: var(--ink);
  cursor: pointer;
  z-index: 2001;
  user-select: none;
  transition: color 0.2s;
  line-height: 1;
}
.lightbox-close:hover { color: var(--ink-2); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.6rem;
  color: var(--ink);
  cursor: pointer;
  padding: 18px;
  user-select: none;
  transition: color 0.2s;
}
.lightbox-nav:hover { color: var(--ink-2); }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

@media (max-width: 640px) {
  .lightbox img { max-width: 95vw; max-height: 78vh; }
  .lightbox-close { top: 14px; right: 18px; font-size: 2rem; }
  .lightbox-nav { font-size: 2rem; padding: 10px; }
  .brand-modal-content { padding: 30px 22px; }
  .brand-modal-btn { padding: 14px 22px; min-width: 110px; font-size: 13px; }
}
