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

body {
    background-color: #000;
    color: #fff;
    font-family: 'Noto Sans', sans-serif;
    min-height: 100vh;
}

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

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

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

.logo {
    width: 140px;
    height: 140px;
    margin: 20px auto;
}

.welcome-frame {
    border: 2px solid #4caf50;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.welcome-frame .video-container {
    margin: 0 0 20px 0;
}

.welcome-frame .welcome-text {
    margin: 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 30px 0;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.welcome-text {
    text-align: center;
    font-size: 24px;
    margin: 30px 0;
    font-weight: 600;
}

.button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 0;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.button-green {
    background-color: #4caf50;
    color: #fff;
}

.button-orange {
    background: linear-gradient(90deg, #ee7600, #fe9227);
    color: #fff;
}

.button-blue {
    background-color: #06b6d4;
    color: #fff;
}

.alert {
    background-color: #1e3a8a; /* Dark Blue */
    border: 2px solid #3b82f6; /* Lighter Blue */
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    position: relative;
    animation: slideIn 0.3s ease;
    font-weight: bold;
}

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

.lang-selector-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
    z-index: 100;
}

[dir="rtl"] .lang-selector-button {
    right: auto;
    left: 20px;
}

.lang-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    animation: fadeIn 0.3s ease;
}

.lang-modal-content {
    background-color: #1f2937;
    border: 1px solid #4b5563;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    max-width: 90%;
    width: 300px;
    color: #fff;
    max-height: 80vh;
    overflow-y: auto;
}

.lang-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
}

.lang-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.lang-list {
    list-style: none;
}

.lang-list-item {
    padding: 12px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: left;
}

[dir="rtl"] .lang-list-item {
    text-align: right;
}

.lang-list-item:hover {
    background-color: #374151;
}

.alert-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

[dir="rtl"] .alert-close {
    right: auto;
    left: 10px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #dc2626; /* red background */
    border: 2px solid #f97316; /* orange border */
    padding: 40px;
    border-radius: 8px;
    position: relative;
    max-width: 90%;
    width: 500px;
    color: #fff;
    font-size: 18px;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-content.success {
    background-color: #1f2937; /* dark gray background */
    border-color: #10b981; /* green border */
    color: #fff;
    text-align: center;
    display: block; /* Override flex for centered content */
}

.activation-code-container {
    background-color: #374151;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.activation-code-container p {
    font-size: 16px;
    margin-bottom: 10px;
}

#activationCodeText {
    font-size: 24px;
    font-weight: bold;
    color: #facc15; /* yellow */
    display: block;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.modal-copy-button {
    width: 100%;
}

.warning-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

[dir="rtl"] .modal-close {
    right: auto;
    left: 10px;
}

.promo-container {
    margin: 30px 0;
}

.promo-item {
    display: flex;
    align-items: center;
    margin: 20px 0;
    gap: 10px;
}

.hand-icon {
    width: 40px;
    height: 26px;
    animation: pointLeft 1s ease-in-out infinite;
}

@keyframes pointLeft {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-10px); }
}

[dir="rtl"] .hand-icon {
    transform: scaleX(-1);
    animation-name: pointRight;
}

@keyframes pointRight {
    0%, 100% { transform: translateX(0) scaleX(-1); }
    50% { transform: translateX(10px) scaleX(-1); }
}

.promo-link {
    flex: 1;
}

.promo-image {
    width: 160px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.promo-image:hover {
    transform: scale(1.05);
}

.promo-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background-color: #1f1f1f;
    padding: 10px 15px;
    border-radius: 8px;
}

.promo-text {
    font-size: 16px;
    font-weight: 600;
    color: #10b981;
    text-align: center;
}

.promo-code-value {
    color: yellow;
}

.copy-button {
    background-color: #4caf50;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.copy-button:hover {
    background-color: #45a049;
}

.input-container-wrapper {
    border: 2px solid #4caf50;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.platform-selection-container {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
}

.platform-option {
    flex: 1;
    background-color: #1f1f1f;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.platform-option:hover {
    border-color: #666;
    opacity: 1;
    transform: translateY(-2px);
}

.platform-option.selected {
    border-color: #4caf50;
    background-color: #1f2937;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
    opacity: 1;
    transform: scale(1.05);
}

.platform-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 5px;
}

.platform-name {
    font-weight: bold;
    font-size: 16px;
    color: #fff;
}

.input-container-wrapper .input-group {
    margin: 0;
}

.input-container-wrapper .input-group:first-child {
    margin-bottom: 20px;
}

.input-group {
    margin: 20px 0;
}

.input-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.input-field {
    width: 100%;
    padding: 12px;
    background-color: #1f1f1f;
    border: 2px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #06b6d4;
}

.input-field.valid {
    border-color: #10b981;
}

.input-field.invalid {
    border-color: #dc2626;
}

.upload-message {
    text-align: center;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
}

.screenshot-example-btn {
    display: block;
    margin: -10px auto 20px auto;
    padding: 8px 16px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.screenshot-example-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #172554, #2563eb);
}

.upload-button {
    width: 60%;
    display: block;
    margin: 0 auto;
    padding: 20px;
    background-color: #1f1f1f;
    border: 2px dashed #333;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.upload-button:hover {
    border-color: #06b6d4;
    background-color: #2a2a2a;
}

.file-name {
    margin-top: 10px;
    color: #10b981;
    font-size: 14px;
    text-align: center;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loader {
    width: 100px;
    height: 100px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.back-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1f1f1f;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
}

[dir="rtl"] .back-button {
    left: auto;
    right: 20px;
    transform: scaleX(-1);
}

.back-button:hover {
    background-color: #2a2a2a;
    transform: scale(1.1);
}

[dir="rtl"] .back-button:hover {
    background-color: #2a2a2a;
    transform: scale(1.1) scaleX(-1);
}

.back-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.modal-content.screenshot-modal {
    background-color: #1f2937;
    border: 2px solid #4b5563;
    padding: 20px;
    width: 350px;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.slider-container {
    width: 100%;
    height: 400px;
    overflow-x: auto;
    display: flex;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    border-radius: 8px;
    border: 1px solid #374151;
    -webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.slider-container::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.slider-container {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.slide {
    min-width: 100%;
    height: 100%;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.slider-nav {
    display: flex;
    gap: 15px;
    width: 100%;
    justify-content: center;
}

.nav-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
    flex: 1;
}

.nav-btn:hover {
    opacity: 0.9;
}

.nav-btn-1 {
    background-color: #14532d; /* Dark Green */
}

.nav-btn-2 {
    background-color: #581c87; /* Dark Purple */
}

.hidden {
    display: none;
}

@media (max-width: 640px) {
    .welcome-text {
        font-size: 20px;
    }
    
    .button {
        font-size: 16px;
    }
}






.logo-title {
    margin-top: 8px;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #eaff00;
    text-align: center;
}





.telegram-mini-button {
    position: absolute;
    top: 16px;
    left: 18px; 
    width: 40px;
    height: 40px;
    background-color: #24A1DE;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.25s ease, background 0.25s ease;
}

.telegram-mini-button:hover {
    transform: scale(1.08);
    background-color: #1b8cc5;
}

.telegram-mini-icon {
    width: 21px;
    height: 21px;
}

/* دعم RTL — انعكاس تلقائي */
[dir="rtl"] .telegram-mini-button {
    left: auto;
    right: 20px;
}



