/* ── Particle canvas ─────────────────────────────────────────── */
#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

main, footer {
  position: relative;
  z-index: 1;
}

/* ── Proxy Hero ──────────────────────────────────────────────── */
.proxy-hero {
  background: #0A1A36;
  padding: 36px 0 70px;
  text-align: center;
}

.proxy-hero__branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.proxy-hero__logo {
  height: 60px;
}

.proxy-hero__brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.proxy-hero__name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.proxy-hero__badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0A1A36;
  background: #2EC4F1;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.proxy-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46, 196, 241, 0.1);
  border: 1px solid rgba(46, 196, 241, 0.3);
  border-radius: 32px;
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 600;
}

.proxy-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #888;
  display: inline-block;
  flex-shrink: 0;
}
.proxy-status-dot.online {
  background: #2EC4F1;
  box-shadow: 0 0 0 0 rgba(46, 196, 241, 0.4);
  animation: pulse-dot 1.8s infinite;
}
.proxy-status-dot.offline {
  background: #e05252;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(46,196,241,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(46,196,241,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,196,241,0); }
}

.proxy-hero__title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 18px;
}

.proxy-hero__subtitle {
  font-size: 1.25rem;
  color: #B8C5E8;
  margin: 0;
}

/* ── Proxy list section ──────────────────────────────────────── */
.proxy-list-section {
  background: #11224A;
  padding: 70px 0 60px;
}

.proxy-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.proxy-loading {
  text-align: center;
  padding: 60px 0;
  color: #B8C5E8;
  font-size: 1.1rem;
}

/* ── Proxy Card ──────────────────────────────────────────────── */
.proxy-card {
  width: 360px;
  flex-shrink: 0;
  background: #0A1A36;
  border: 2px solid rgba(46, 196, 241, 0.15);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: all 0.3s ease;
  animation: fadeUp 0.4s both;
}
.proxy-card:hover {
  border-color: #2EC4F1;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(46, 196, 241, 0.2);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.proxy-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.proxy-card__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
}

.proxy-card__online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5A6F99;
  flex-shrink: 0;
}
.proxy-card__online-dot.online {
  background: #2EC4F1;
  animation: pulse-dot 1.8s infinite;
}
.proxy-card__online-dot.offline {
  background: #e05252;
  animation: none;
}


.proxy-card__details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(46, 196, 241, 0.05);
  border-radius: 10px;
  padding: 14px;
}

.proxy-card__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.9rem;
}

.proxy-card__key {
  color: #5A6F99;
  min-width: 54px;
  flex-shrink: 0;
}

.proxy-card__val {
  color: #E0EEFF;
  word-break: break-all;
}

.proxy-card__row--secret .proxy-card__val {
  font-family: monospace;
  font-size: 0.78rem;
  color: #2EC4F1;
  word-break: break-all;
}

.proxy-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.proxy-card__connect {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 32px;
}

.proxy-card__icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(46, 196, 241, 0.35);
  color: #2EC4F1;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.proxy-card__icon-btn:hover {
  background: rgba(46, 196, 241, 0.15);
  border-color: #2EC4F1;
}

/* ── Instructions ────────────────────────────────────────────── */
.proxy-instructions {
  background: #0A1A36;
  padding: 45px 0;
  text-align: center;
}

.proxy-instructions h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 30px;
}

.proxy-steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.proxy-step {
  flex: 1;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.proxy-step__highlight {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 22px;
}

.proxy-step__line {
  height: 2px;
  flex-grow: 1;
  background: #2EC4F1;
  opacity: 0.3;
}

.proxy-step:first-child .proxy-step__line:first-child,
.proxy-step:last-child  .proxy-step__line:last-child {
  opacity: 0;
}

.proxy-step__icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2EC4F1, #1A8FBF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  margin: 0 20px;
  position: relative;
  transition: transform 0.3s ease;
}
.proxy-step__icon:hover { transform: scale(1.1); }

.proxy-step__num {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  background: #fff;
  color: #2EC4F1;
  border-radius: 50%;
  border: 2px solid #2EC4F1;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.proxy-step h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 12px;
}

.proxy-step p {
  font-size: 0.95rem;
  color: #B8C5E8;
  line-height: 1.6;
  margin: 0;
}

/* ── Info blocks ─────────────────────────────────────────────── */
.proxy-info-blocks {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 60px;
}

.proxy-info-block {
  background: #11224A;
  border: 1px solid rgba(46, 196, 241, 0.2);
  border-radius: 16px;
  padding: 28px 28px 24px;
  width: 360px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.proxy-info-block h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2EC4F1;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.proxy-info-block p {
  flex: 1;
  font-size: 0.95rem;
  color: #B8C5E8;
  line-height: 1.7;
  margin: 0 0 18px;
}

.proxy-info-block p:last-child { margin-bottom: 0; }

.proxy-info-block strong {
  color: #fff;
  font-weight: 600;
}

.proxy-info-link {
  display: flex;
  align-items: center;
  background: #0A1A36;
  border: 1px solid rgba(46, 196, 241, 0.25);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 4px;
}

.proxy-info-link__url {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.78rem;
  color: #2EC4F1;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proxy-info-link__copy {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(46, 196, 241, 0.1);
  border: none;
  border-left: 1px solid rgba(46, 196, 241, 0.25);
  color: #2EC4F1;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.proxy-info-link__copy:hover { background: rgba(46, 196, 241, 0.25); }

.proxy-info-path {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0A1A36;
  border: 1px solid rgba(46, 196, 241, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2EC4F1;
  margin-top: 4px;
}

.proxy-info-path i {
  flex-shrink: 0;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .proxy-info-block { width: 100%; }
}

/* ── CTA ─────────────────────────────────────────────────────── */
.proxy-cta {
  background: linear-gradient(135deg, #11224A 0%, #0A1A36 100%);
  padding: 45px 0;
  text-align: center;
  border-top: 1px solid rgba(46, 196, 241, 0.15);
}

.proxy-cta__container h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 16px;
}

.proxy-cta__container p {
  font-size: 1.15rem;
  color: #B8C5E8;
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ── QR Modal ────────────────────────────────────────────────── */
.qr-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 12, 30, 0.85);
  backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.qr-modal.open {
  display: flex;
}

.qr-modal__box {
  background: #11224A;
  border: 2px solid rgba(46, 196, 241, 0.3);
  border-radius: 20px;
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  position: relative;
  animation: fadeUp 0.25s ease;
}

.qr-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: #5A6F99;
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}
.qr-modal__close:hover { color: #fff; }

.qr-modal__label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.qr-modal__box canvas,
.qr-modal__box img {
  border-radius: 12px;
  display: block;
}

.qr-modal__hint {
  font-size: 0.85rem;
  color: #B8C5E8;
  margin: 0;
  text-align: center;
  max-width: 220px;
  line-height: 1.5;
}

/* ── Toast ───────────────────────────────────────────────────── */
.proxy-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #2EC4F1;
  color: #0A1A36;
  padding: 12px 28px;
  border-radius: 32px;
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 9999;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
  white-space: nowrap;
}
.proxy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .proxy-hero__title { font-size: 2.2rem; }
  .proxy-instructions h2,
  .proxy-cta__container h2 { font-size: 2rem; }
  .proxy-card { width: 100%; }
  .proxy-steps {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .proxy-step__highlight { flex-direction: column; }
  .proxy-step__line { display: none; }
  .proxy-step__icon { margin: 0 0 16px; }
}

@media (max-width: 480px) {
  .proxy-hero { padding: 40px 0 50px; }
  .proxy-hero__title { font-size: 1.8rem; }
  .proxy-hero__logo { height: 50px; }
  .proxy-card__actions { flex-wrap: wrap; }
  .proxy-card__connect { width: 100%; }
}
