body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #000;
}

.container {
    text-align: center;
    padding: 20px;
    max-width: 400px;
    width: 100%;
    box-sizing: border-box;
    /* Ensure content is centered vertically in the container if needed */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.hidden {
    display: none !important;
}

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

.icons-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
}

.icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
}

.icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.icon-single {
    width: 100px;
    height: 100px;
    margin-bottom: 24px;
    border-radius: 50%;
}

.icon-single img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.telegram-icon {
    box-shadow: none;
}

.arrow-icon {
    background: transparent;
    width: 48px;
    height: 48px;
    border-radius: 0;
    box-shadow: none;
    align-self: center;
}

.arrow-icon svg {
    width: 40px;
    height: 40px;
    fill: #3390ec;
}

.fragment-icon {
    box-shadow: none;
}

h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    padding: 0 10px;
}

.subtitle {
    font-size: 15px;
    color: #707579;
    margin-bottom: 16px;
}

.subtitle a {
    color: #2481cc;
    text-decoration: none;
}

.description {
    font-size: 15px;
    margin-bottom: 32px;
    color: #000;
    line-height: 1.4;
    max-width: 320px;
}

.tg-input {
    width: 100%;
    padding: 14px;
    border: 1px solid #dfe1e5;
    border-radius: 12px;
    font-size: 18px;
    outline: none;
    box-sizing: border-box;
    margin-bottom: 24px;
    background-color: #f1f3f4; /* Light gray background like TG inputs */
    color: #000;
    transition: border-color 0.2s, background-color 0.2s;
    text-align: center;
}

.tg-input:focus {
    border-color: #3390ec;
    background-color: #fff;
}

.continue-btn {
    background-color: #2481cc;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 17px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.continue-btn:active {
    background-color: #1e6fae;
}

.btn-icon {
    width: 24px;
    height: 24px;
}

/* Loading Screen Styles */
.stars-animation {
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.star-svg {
    width: 100px;
    height: 100px;
}

.rotating {
    animation: rotate 2s linear infinite, pulse 1s ease-in-out infinite alternate;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    from { transform: scale(1) rotate(0deg); }
    to { transform: scale(1.1) rotate(360deg); } /* Combined with rotate logic in JS or complex keyframes if simple css */
}
/* Fix rotation: separate pulse or just rotate */
@keyframes rotate-pulse {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}
.rotating {
    animation: rotate-pulse 3s linear infinite;
}


.loading-text {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222222;
}

.waiting-timer {
    font-size: 28px;
    font-weight: 700;
    color: #2481cc;
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    max-width: 300px;
    margin: 0 auto;
}

.progress-fill {
    height: 100%;
    background-color: #3390ec;
    width: 0%;
    transition: width 0.6s ease-out;
}

.waiting-status-msg {
    font-size: 15px;
    color: #333333;
    margin-top: 18px;
    margin-bottom: 8px;
    min-height: 24px;
    font-weight: 500;
    padding: 0 10px;
    line-height: 1.35;
    transition: opacity 0.25s ease;
}

.waiting-note {
    font-size: 13px;
    color: #707579;
    margin-top: 4px;
    margin-bottom: 0;
    max-width: 320px;
    line-height: 1.4;
    padding: 0 10px;
}


/* Success Styles */
.icon-success {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #e8f5e9;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.icon-success svg {
    width: 48px;
    height: 48px;
}

/* RTL (Arabic) Support */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] .arrow-icon svg {
    transform: scaleX(-1);
}

html[dir="rtl"] .continue-btn {
    flex-direction: row-reverse;
}

