.telegram-verification-open {
  overflow: hidden;
}

.telegram-verification-dialog {
  box-sizing: border-box;
  width: min(1540px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  overflow: auto;
  border: 0;
  background: transparent;
  color: #0a2b22;
}

.telegram-verification-dialog::backdrop {
  background: rgba(8, 30, 24, 0.34);
  -webkit-backdrop-filter: blur(12px) saturate(0.9);
  backdrop-filter: blur(12px) saturate(0.9);
}

.telegram-verification-panel {
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(410px, 0.82fr) minmax(560px, 1.18fr);
  gap: clamp(34px, 4vw, 72px);
  min-height: min(760px, calc(100dvh - 48px));
  padding: clamp(38px, 4.5vw, 72px);
  overflow: hidden;
  border: 1px solid rgba(91, 177, 151, 0.48);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(241, 250, 247, 0.9)),
    rgba(248, 253, 251, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 34px 100px rgba(6, 48, 36, 0.22);
}

@media (min-width: 1051px) and (max-height: 820px) {
  .telegram-verification-panel {
    gap: 38px;
    min-height: calc(100dvh - 48px);
    padding: 32px 58px;
  }

  .telegram-verification-summary h2 {
    margin-top: 24px;
    font-size: clamp(54px, 5.4vw, 78px);
  }

  .telegram-verification-summary h3 {
    margin-top: 18px;
    font-size: clamp(24px, 2vw, 31px);
  }

  .telegram-verification-summary > p:not(.telegram-verification-kicker) {
    margin-top: 14px;
    font-size: 15px;
  }

  .telegram-verification-timeline {
    gap: 8px;
    margin-top: 18px;
  }

  .telegram-verification-timeline li span {
    width: 29px;
    height: 29px;
  }

  .telegram-verification-status {
    min-height: 38px;
    margin-top: 18px;
  }

  .telegram-verification-actions {
    padding-top: 18px;
  }

  .telegram-verification-actions button,
  .telegram-verification-actions a {
    min-height: 46px;
  }

  .telegram-verification-evidence figure {
    min-height: 250px;
  }
}

.telegram-verification-close {
  position: absolute;
  z-index: 10;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(36, 126, 99, 0.25);
  border-radius: 50%;
  color: #0c684f;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 26px rgba(13, 77, 59, 0.12);
  font: 400 30px/1 Inter, sans-serif;
  cursor: pointer;
}

.telegram-verification-summary,
.telegram-verification-evidence {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.telegram-verification-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.telegram-verification-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #155d4a;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.telegram-verification-kicker span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(55, 155, 125, 0.34);
  border-radius: 50%;
  background: rgba(220, 246, 237, 0.78);
}

.telegram-verification-summary h2 {
  margin: 34px 0 0;
  color: #155f4a;
  font-family: Inter, sans-serif;
  font-size: clamp(58px, 6vw, 104px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
  text-transform: uppercase;
}

.telegram-verification-summary h3 {
  margin: 26px 0 0;
  color: #165f4b;
  font-family: Inter, sans-serif;
  font-size: clamp(26px, 2.3vw, 38px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
}

.telegram-verification-summary > p:not(.telegram-verification-kicker) {
  max-width: 600px;
  margin: 22px 0 0;
  color: #405d54;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.55;
}

.telegram-verification-timeline {
  display: grid;
  gap: 13px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.telegram-verification-timeline li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.telegram-verification-timeline li span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(48, 145, 115, 0.3);
  border-radius: 50%;
  color: #155f4a;
  background: rgba(229, 248, 241, 0.78);
  font-size: 11px;
  font-weight: 900;
}

.telegram-verification-timeline li strong {
  color: #35554b;
  font-size: 14px;
  font-weight: 750;
}

.telegram-verification-status {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 30px;
  padding: 9px 16px;
  border: 1px solid rgba(63, 157, 128, 0.3);
  border-radius: 999px;
  color: #125d49;
  background: rgba(215, 244, 234, 0.72);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.telegram-verification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 30px;
}

.telegram-verification-actions button,
.telegram-verification-actions a {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 24px;
  border: 1px solid #166d55;
  border-radius: 999px;
  color: #0d5c47;
  background: rgba(255, 255, 255, 0.68);
  font: 900 12px/1.2 Inter, sans-serif;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.telegram-verification-actions a {
  color: #fff;
  background: linear-gradient(145deg, #258f70, #0d654d);
  box-shadow: 0 13px 28px rgba(17, 105, 80, 0.18);
}

.telegram-verification-evidence {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.telegram-verification-evidence header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: #174f40;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.telegram-verification-evidence header img {
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 22px rgba(13, 84, 64, 0.1);
}

.telegram-verification-evidence figure {
  display: flex;
  min-height: 300px;
  align-items: center;
  margin: 0;
  padding: clamp(24px, 3vw, 46px);
  border: 1px solid rgba(99, 160, 142, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 22px 54px rgba(23, 75, 61, 0.1);
}

.telegram-verification-evidence figure img {
  display: block;
  width: 100%;
  height: auto;
}

.telegram-verification-evidence > p {
  margin: 18px 0 0;
  color: #405d54;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.telegram-verification-evidence > small {
  margin-top: 8px;
  color: #6b7f78;
  font-size: 11px;
  font-weight: 650;
}

.telegram-verification-radar {
  position: absolute;
  z-index: 0;
  right: -40px;
  bottom: -90px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(255, 255, 255, 0.22),
    0 0 0 84px rgba(255, 255, 255, 0.12);
}

.telegram-verification-radar i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #15946f;
  box-shadow: 0 0 0 10px rgba(21, 148, 111, 0.13);
  transform: translate(-50%, -50%);
}

[data-telegram-proof] .proof-flip-evidence {
  object-fit: contain;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
}

#proof-telegram-cleanup .proof-evidence-frame {
  background: rgba(255, 255, 255, 0.9);
}

@media (min-width: 901px) and (max-width: 1100px) {
  .telegram-verification-dialog {
    width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
  }

  .telegram-verification-panel {
    grid-template-columns: minmax(350px, 0.86fr) minmax(0, 1.14fr);
    gap: 26px;
    min-height: calc(100dvh - 32px);
    padding: 34px 30px;
  }

  .telegram-verification-summary h2 {
    margin-top: 24px;
    font-size: 56px;
  }

  .telegram-verification-summary h3 {
    margin-top: 18px;
    font-size: 25px;
  }

  .telegram-verification-summary > p:not(.telegram-verification-kicker) {
    margin-top: 14px;
    font-size: 14px;
  }

  .telegram-verification-timeline {
    gap: 8px;
    margin-top: 18px;
  }

  .telegram-verification-status {
    margin-top: 18px;
  }

  .telegram-verification-actions {
    padding-top: 18px;
  }

  .telegram-verification-actions button,
  .telegram-verification-actions a {
    min-height: 46px;
    padding-inline: 17px;
    font-size: 10px;
  }

  .telegram-verification-evidence figure {
    min-height: 220px;
    padding: 24px;
  }
}

@media (max-width: 900px) {
  .telegram-verification-dialog {
    width: min(900px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    overflow: auto;
  }

  .telegram-verification-panel {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 42px 34px;
  }

  .telegram-verification-summary h2 {
    font-size: clamp(52px, 11vw, 84px);
  }

  .telegram-verification-actions {
    margin-top: 22px;
  }

  .telegram-verification-evidence figure {
    min-height: 220px;
  }
}

@media (max-width: 600px) {
  .telegram-verification-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }

  .telegram-verification-panel {
    gap: 28px;
    padding: 54px 20px 24px;
    border-radius: 22px;
  }

  .telegram-verification-close {
    top: 12px;
    right: 12px;
  }

  .telegram-verification-kicker {
    font-size: 10px;
  }

  .telegram-verification-summary h2 {
    margin-top: 26px;
    font-size: clamp(42px, 13vw, 60px);
  }

  .telegram-verification-summary h3 {
    margin-top: 20px;
    font-size: 25px;
  }

  .telegram-verification-summary > p:not(.telegram-verification-kicker) {
    margin-top: 16px;
    font-size: 14px;
  }

  .telegram-verification-timeline {
    margin-top: 22px;
  }

  .telegram-verification-status {
    align-self: stretch;
    justify-content: center;
    text-align: center;
  }

  .telegram-verification-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .telegram-verification-evidence figure {
    min-height: 150px;
    padding: 14px;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .telegram-verification-dialog::backdrop {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
