@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;600;700&display=swap');

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

body {
    font-family: 'Noto Sans', sans-serif;
    background: #2e003e;
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 215, 0, 0.05) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(138, 43, 226, 0.05) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: moveShapes 15s ease infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes moveShapes {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.header-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0088cc, #229ED9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(34, 158, 217, 0.4);
    transition: transform 0.2s;
}

.header-btn:hover {
    transform: scale(1.1);
}

.header-center {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #ffd700;
}

.content {
    position: relative;
    z-index: 1;
    padding: 80px 20px 100px;
    max-width: 600px;
    margin: 0 auto;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.game-icon {
    text-align: center;
    margin-bottom: 20px;
}

.game-icon img {
    width: 140px;
    height: 140px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
}

.title {
    text-align: center;
    color: #ffd700;
    font-size: 28px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.title-icon {
    width: 30px;
    height: 30px;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

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

.intro-text {
    text-align: center;
    color: white;
    margin-bottom: 20px;
    font-size: 16px;
}

.warning-box {
    background: rgba(255, 100, 0, 0.2);
    border: 2px solid #ff6400;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 30px;
}

.warning-box p {
    color: #ffd700;
    font-size: 14px;
    line-height: 1.6;
}

.affiliate-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
    direction: ltr !important;
}

.affiliate-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
    direction: ltr !important;
}

.affiliate-btn {
    width: 200px;
    height: 60px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
    transition: transform 0.2s;
}

.affiliate-btn:hover {
    transform: scale(1.05);
}

.hand-pointer {
    width: 21px;
    height: 32px;
    animation: pointLeft 1.5s ease-in-out infinite;
}

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

.promo-box {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #ffd700;
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    direction: ltr !important;
    text-align: center;
}

.promo-box:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.05);
}

.promo-box span {
    color: #ffd700;
    font-weight: 600;
}

.next-btn, .start-btn, .activate-btn, .generator-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff6b00, #ffd700);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
    transition: all 0.3s;
}

.next-btn:hover, .start-btn:hover, .activate-btn:hover, .generator-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
}

.section-title {
    color: #ffd700;
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

.platform-selector {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.platform-option {
    position: relative;
    cursor: pointer;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.3s;
}

.platform-option:hover {
    border-color: #ffd700;
}

.platform-option.selected {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.platform-option img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
}

.checkmark {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 24px;
    display: none;
}

.platform-option.selected .checkmark {
    display: block;
}

.input-group {
    margin-bottom: 25px;
}

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

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 16px;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #ffd700;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 15px;
}

.dashboard-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
}

.countdown {
    font-size: 2.5rem;
    color: #ffd700;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 8px;
}

.platform-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
}

.history-strip {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    height: 36px;
    overflow: hidden;
    padding: 0 10px;
}

.history-item {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 14px;
    min-width: 60px;
    backdrop-filter: blur(4px);
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.history-item.high {
    border-color: #00ff00;
    color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.15);
    background: rgba(0, 255, 0, 0.05);
}

.history-item.low {
    border-color: #0088cc;
    color: #0088cc;
    background: rgba(0, 136, 204, 0.05);
}

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

.signal-container {
    position: relative;
    margin-bottom: 40px;
}

.radar-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: conic-gradient(from 0deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    border-radius: 50%;
    animation: radarSpin 4s linear infinite;
    opacity: 0.3;
}

.signal-container.active .radar-bg {
    animation: radarSpin 2s linear infinite;
    opacity: 0.6;
}

@keyframes radarSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.signal-display {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
}

.signal-status {
    display: inline-block;
    padding: 12px 30px;
    background: #dc3545;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.signal-status.active {
    background: #28a745;
}

.crash-value {
    font-size: 48px;
    color: #ffd700;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    display: none;
}

.activation-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activation-area input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    text-align: center;
    text-transform: uppercase;
}

.generator-btn {
    background: linear-gradient(to bottom, #39ff14, #006400);
    margin-top: 10px;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.6);
    position: relative;
    overflow: hidden;
}

.generator-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: lightning-sweep 2s infinite;
}

@keyframes lightning-sweep {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
}

.footer-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff6b00, #ffd700);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    text-decoration: none;
    display: inline-block;
}

.back-btn {
    display: none;
}

.footer-center {
    color: #ffd700;
    font-weight: 700;
    text-align: center;
    padding: 8px 16px;
    border: 2px solid #ffd700;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.8); }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #2e003e, #4a0066);
    border: 2px solid #ffd700;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff6400;
    border-radius: 50%;
    color: #ffd700;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.4);
    transform: scale(1.1);
}

.modal-content {
    position: relative;
}

.modal-content h3 {
    color: #ffd700;
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
}

.modal-content p {
    color: white;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    gap: 15px;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.yes-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.no-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.generate-btn {
    background: linear-gradient(to bottom, #39ff14, #006400);
    color: white;
    width: 100%;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.6);
    position: relative;
    overflow: hidden;
}

.generate-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: lightning-sweep 2s infinite;
}

.analyzing {
    text-align: center;
    padding: 20px;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 215, 0, 0.3);
    border-top-color: #ffd700;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

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

.generated-code {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #ffd700;
    border-radius: 8px;
    padding: 15px;
    color: #ffd700;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.code-warning {
    color: #ff6400;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
}

/* Code Box for Generated Codes */
.code-box {
    background: rgba(75, 0, 130, 0.3);
    border: 2px dashed #ffd700;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: 700;
    color: #ffd700;
    letter-spacing: 3px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

/* SweetAlert2 Custom Styling */
.swal2-popup {
    font-family: 'Noto Sans', sans-serif !important;
}

.swal2-title {
    color: #ffd700 !important;
}

.swal2-html-container {
    color: #fff !important;
}

.swal2-confirm {
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3) !important;
}

.swal2-cancel {
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3) !important;
}

/* Floating Watermark */
.floating-watermark {
    position: fixed;
    width: 100px;
    height: 100px;
    opacity: 0.5;
    z-index: 9999;
    pointer-events: none;
    transition: all 1s ease-in-out;
}

/* Language Selection Modal */
.lang-modal-content {
    position: relative;
    width: 280px;
    max-height: 500px;
    padding: 25px 20px;
    background: rgba(46, 0, 62, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lang-modal-content h3 {
    margin-bottom: 20px;
    font-size: 18px;
    text-align: center;
    color: #ffd700;
    flex-shrink: 0;
}

.lang-modal-content .modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
}

.language-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
    min-height: 0;
}

/* Custom scrollbar for language list */
.language-grid::-webkit-scrollbar {
    width: 6px;
}

.language-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.language-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.5);
    border-radius: 3px;
}

.language-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.7);
}

.lang-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-card:hover {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.15);
    transform: translateX(5px);
}

.lang-card.active {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.lang-flag {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.lang-name {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    flex: 1;
}

.lang-card.active .lang-name {
    color: #ffd700;
}

/* Delayed Notification Banner */
.delayed-notification {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #8B0000, #DC143C);
    border: 2px solid #ffd700;
    border-radius: 12px;
    padding: 15px 50px 15px 20px;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 8px 30px rgba(220, 20, 60, 0.6);
    z-index: 150;
    animation: slideDown 0.4s ease-out;
    text-align: center;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.delayed-notification .notif-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.delayed-notification .notif-close:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

.delayed-notification .notif-line1 {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.delayed-notification .notif-line2 {
    font-size: 14px;
    font-weight: 600;
    color: #ffd700;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .header,
[dir="rtl"] .footer {
    flex-direction: row-reverse;
}

[dir="rtl"] .platform-selector,
[dir="rtl"] .modal-buttons {
    flex-direction: row-reverse;
}