/* =========================================
   Telegram Integration Section
   ========================================= */

.tg-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) {
  .tg-grid { grid-template-columns: 1fr; gap: 48px; }
}

.tg-text h2 {
  font-size: clamp(34px, 4vw, 52px);
}

.tg-bullets {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
}
@media (max-width: 700px) { .tg-bullets { grid-template-columns: 1fr; } }
.tg-bullet {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.tg-bullet-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.tg-bullet strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.tg-bullet span {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
}

.tg-flow {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tg-flow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}
.tg-flow-step.accent {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.tg-flow-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
}
.tg-flow-step.accent .tg-flow-num { color: var(--accent); }
.tg-flow-arrow {
  font-size: 18px;
  color: var(--ink-faint);
}

/* ============ Telegram phone-like mockup ============ */
.tg-mockup-wrap {
  display: flex;
  justify-content: center;
}
.tg-mockup {
  width: 360px;
  background: #17212B;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-3);
  display: flex;
  flex-direction: column;
  height: 620px;
  border: 1px solid #243341;
}

.tg-mockup-bar {
  background: #2B5278;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}
.tg-mockup-back {
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
}
.tg-mockup-bot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.tg-mockup-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4DA9F2, #2E84D6);
  display: flex; align-items: center; justify-content: center;
}
.tg-mockup-name {
  font-size: 14px;
  font-weight: 600;
  color: white;
}
.tg-mockup-status {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
}
.tg-mockup-online {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4DD865;
  box-shadow: 0 0 0 2px rgba(77,216,101,0.25);
}
.tg-mockup-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,0.85);
}

.tg-msg-anim {
  animation: tg-msg-in 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
  transform-origin: bottom left;
}
@keyframes tg-msg-in {
  0%   { opacity: 0; transform: translateY(14px) scale(0.92); }
  60%  { opacity: 1; transform: translateY(-2px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.tg-mockup-body {
  flex: 1;
  background:
    radial-gradient(circle at 20% 10%, rgba(77,170,242,0.08), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(43,82,120,0.2), transparent 50%),
    #0E1621;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.tg-day-divider {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}
.tg-day-divider span {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  background: rgba(43,82,120,0.5);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 500;
}

.tg-msg {
  background: #182533;
  border-radius: 14px;
  border-top-left-radius: 4px;
  padding: 10px 12px;
  max-width: 88%;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.tg-msg-head {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tg-msg-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}
.tg-msg-tag {
  font-size: 9px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
  margin-left: auto;
}
.tg-msg-tag-otp {
  background: rgba(255,193,77,0.18);
  color: #FFC14D;
}
.tg-msg-tag-pay {
  background: rgba(77,216,101,0.18);
  color: #6CE085;
}
.tg-msg-from {
  font-size: 12px;
  font-weight: 600;
  color: #6BB8FF;
}
.tg-msg-body {
  font-size: 13px;
  color: rgba(255,255,255,0.92);
  line-height: 1.4;
  margin-top: 1px;
}
.tg-otp {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: #FFC14D;
  background: rgba(255,193,77,0.14);
  padding: 1px 8px;
  border-radius: 6px;
  letter-spacing: 0.08em;
  margin: 0 1px;
}
.tg-msg-time {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  align-self: flex-end;
  margin-top: 2px;
}

.tg-typing {
  background: #182533;
  border-radius: 14px;
  border-top-left-radius: 4px;
  padding: 12px 14px;
  align-self: flex-start;
  display: flex;
  gap: 4px;
}
.tg-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  animation: tg-bounce 1.2s infinite ease-in-out;
}
.tg-typing span:nth-child(2) { animation-delay: 0.15s; }
.tg-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes tg-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.tg-mockup-input {
  background: #17212B;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  border-top: 1px solid #243341;
}
.tg-mockup-input span { flex: 1; }
