html, body {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ef 100%);
    color: #222;
    padding: 24px 8px;
    box-sizing: border-box;
}

.redirect-container {
    min-height: 100vh;
    /* width: 100vw; removido para evitar overflow */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

@media (max-width: 480px) {
  .redirect-container {
    padding-left: 18px;
    padding-right: 18px;
  }
  .redirect-card {
    padding: 28px 10px 20px 10px;
    max-width: 100%;
  }
}

.redirect-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.08);
    padding: 36px 28px 28px 28px;
    max-width: 350px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    box-sizing: border-box;
}

.icon-telegram {
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.redirect-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 18px 0;
    text-align: center;
    color: #222;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e6f0fa;
    border-radius: 6px;
    margin-bottom: 18px;
    overflow: hidden;
}
.progress {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #229ED9 0%, #4f8cff 100%);
    animation: progress-move 1.5s linear forwards;
}
@keyframes progress-move {
    from { width: 0; }
    to { width: 100%; }
}

.wait-text {
    font-size: 1.08rem;
    color: #222;
    margin: 0 0 18px 0;
    text-align: center;
    font-weight: 400;
}

.divider {
    border: none;
    border-top: 1px solid #ececec;
    margin: 10px 0 18px 0;
    width: 100%;
}

.fallback {
    font-size: 1.08rem;
    color: #222;
    text-align: center;
    margin: 0;
    font-weight: 400;
}

@media (max-width: 480px) {
  .redirect-container {
    padding-left: 18px;
    padding-right: 18px;
  }
  .redirect-card {
    padding: 28px 10px 20px 10px;
    max-width: 100%;
  }
  .wait-text, .fallback {
    font-size: 0.97rem;
  }
}

.fallback a {
    color: #229ED9;
    text-decoration: underline;
    transition: color 0.2s;
}
.fallback a:hover {
    color: #176cae;
}

.footer {
    margin-top: 12px;
    font-size: 0.95rem;
    color: #8a99b3;
    text-align: center;
    letter-spacing: 0.01em;
}