* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #FFFFFF;
    min-height: 100vh;
    padding: 20px 0;
}

/* RTL-specific styles */
[dir="rtl"] body {
    font-family: 'Cairo', sans-serif;
}

/* LTR-specific styles */
[dir="ltr"] body {
    font-family: 'Inter', 'Roboto', 'Open Sans', sans-serif;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    width: 60px;
    height: 60px;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
}

h1 {
    color: #FFD700;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    padding: 0 10px;
    margin-bottom: 20px;
}

[dir="rtl"] h1 {
    text-align: right;
}

[dir="ltr"] h1 {
    text-align: left;
}

.telegram-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #0088cc;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 16px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.telegram-button:hover {
    background-color: #006699;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 136, 204, 0.4);
}

.telegram-button:active {
    transform: translateY(0);
}

.telegram-button svg {
    width: 20px;
    height: 20px;
}

.language-switcher {
    margin-top: 25px;
    text-align: center;
}

.language-label {
    font-size: 16px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 15px;
}

.language-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lang-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.lang-btn:active {
    transform: scale(1);
}

.lang-ar {
    background: linear-gradient(135deg, #00c853 0%, #00a843 100%);
}

.lang-en {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
}

.lang-fr {
    background: linear-gradient(135deg, #7b1fa2 0%, #6a1b9a 100%);
}

.lang-es {
    background: linear-gradient(135deg, #ff6f00 0%, #e65100 100%);
}

.alert-box {
    background-color: #4a0000;
    border: 3px solid #ff0000;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.alert-box p {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
}

[dir="rtl"] .alert-box p {
    text-align: right;
}

[dir="ltr"] .alert-box p {
    text-align: left;
}

.step-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 0, 0.6);
}

.step-card img {
    display: block;
    width: 100%;
    height: auto;
}

.step-card::before {
    content: attr(data-step);
    position: absolute;
    top: 15px;
    width: 40px;
    height: 40px;
    background-color: #00ff00;
    color: #1a1a2e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 255, 0, 0.4);
}

[dir="rtl"] .step-card::before {
    right: 15px;
}

[dir="ltr"] .step-card::before {
    left: 15px;
}

.step-text {
    padding: 20px 20px 10px 20px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    color: #FFFFFF;
}

[dir="rtl"] .step-text {
    text-align: right;
}

[dir="ltr"] .step-text {
    text-align: left;
}

.audio-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
    margin: 0 20px 20px 20px;
}

[dir="rtl"] .audio-btn {
    font-family: 'Cairo', sans-serif;
}

[dir="ltr"] .audio-btn {
    font-family: 'Inter', 'Roboto', 'Open Sans', sans-serif;
}

.audio-btn:hover {
    background: linear-gradient(135deg, #006699 0%, #004477 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 136, 204, 0.4);
}

.audio-btn:active {
    transform: translateY(0);
}

.audio-btn .play-icon,
.audio-btn .pause-icon {
    font-size: 18px;
}

.step-number {
    color: #FFA500;
}

.step-number {
    color: #FFA500;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 40px 0 30px;
}

.action-button {
    display: block;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a2e;
    text-decoration: none;
    padding: 16px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.action-button:active {
    transform: translateY(0);
}

footer {
    text-align: center;
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

@media (min-width: 600px) {
    h1 {
        font-size: 36px;
    }

    .step-text {
        font-size: 18px;
        padding: 25px 25px 10px 25px;
    }
    
    [dir="rtl"] .step-text {
        padding: 25px 25px 10px 25px;
    }
    
    [dir="ltr"] .step-text {
        padding: 25px 25px 10px 25px;
    }

    .audio-btn {
        margin: 0 25px 25px 25px;
    }

    .button-container {
        flex-direction: row;
        justify-content: center;
    }

    .action-button {
        flex: 0 1 300px;
    }
}