:root {
    /* Base dark colors */
    --bg-dark: #050814;
    --bg-card: rgba(13, 19, 33, 0.75);
    --border-color: rgba(6, 182, 212, 0.25);

    /* Text colors */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    /* Elegant and calm colors for a luxurious feel (Replacing Yellow) */
    --accent-light: #00f2fe;
    --accent-dark: #4facfe;

    /* Gradients */
    --premium-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-gradient: linear-gradient(135deg, #0f172a, #1e293b);

    /* Effects */
    --btn-hover-glow: 0 0 25px rgba(118, 75, 162, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Cairo', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    touch-action: none;
}

/* Background Glowing Effects for Luxury Feel */
.background-effects {
    position: absolute;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.glow-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    animation: float 10s infinite alternate ease-in-out;
}

.top-right {
    width: 400px;
    height: 400px;
    background: #764ba2;
    top: -100px;
    right: -100px;
}

.bottom-left {
    width: 400px;
    height: 400px;
    background: #00f2fe;
    bottom: -100px;
    left: -100px;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-30px, 30px);
    }
}

/* Main Container */
.app-container {
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 35px 30px;
    width: 90%;
    max-width: 420px;
    max-height: 95vh;
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 2vh;
    position: relative;
    z-index: 1;
}

/* Header */
.app-header {
    text-align: center;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent-light);
    letter-spacing: 2px;
    margin-bottom: 2px;
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.logo .highlight {
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 4px;
    margin-bottom: 12px;
}

.sponsor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.75rem;
    color: var(--accent-light);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Carousel Section */
.carousel-container {
    width: 100%;
    position: relative;
}

.carousel {
    width: 100%;
    height: 18vh;
    min-height: 140px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: rgba(10, 15, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.5);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: scale(1.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.indicator.active {
    background: var(--accent-light);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

/* Auth Section */
.auth-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 5px;
}

.input-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-dark);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.input-wrapper input {
    width: 100%;
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px 50px 16px 20px;
    font-family: 'Cairo', sans-serif;
    font-size: 1.05rem;
    color: var(--text-main);
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.input-wrapper input:focus {
    border-color: var(--accent-light);
    background: rgba(10, 15, 30, 0.8);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15), inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.input-wrapper input:focus+.input-icon {
    color: var(--accent-light);
}

.input-wrapper input::placeholder {
    color: rgba(148, 163, 184, 0.4);
}

/* Buttons */
.btn {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 15px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    z-index: -1;
}

.btn:hover::after {
    left: 150%;
}

.btn:active {
    transform: scale(0.97);
}

/* Specific Buttons */
.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    gap: 2px;
    padding: 12px;
}

.btn-primary:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #1e293b, #2d3748);
}

.btn-primary .btn-text-en {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 3px;
    opacity: 0.6;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.btn-secondary:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.03);
}

.btn-secondary i {
    color: #fca5a5;
}

/* 3-Days Premium Key Button */
.btn-premium {
    background: var(--premium-gradient);
    color: #ffffff;
    padding: 18px;
    font-size: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(118, 75, 162, 0.4);
    animation: premium-pulse 2.5s infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-premium:hover {
    box-shadow: var(--btn-hover-glow);
    transform: translateY(-3px);
}

.btn-premium i {
    color: #ffd700;
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

@keyframes premium-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(118, 75, 162, 0.6);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(118, 75, 162, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(118, 75, 162, 0);
    }
}

/* Action Section */
.action-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

.btn-small {
    padding: 12px 20px;
    font-size: 0.9rem;
    width: auto;
    flex: 1;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 8, 20, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    width: 95%;
    max-width: 600px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 242, 254, 0.15);
    transform: translateY(50px) scale(0.9);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal.show .modal-content {
    transform: translateY(0) scale(1);
}

.iframe-content {
    max-width: 800px;
    height: 85vh;
}

.modal-title {
    text-align: center;
    font-size: 1.3rem;
    color: var(--accent-light);
    font-weight: 700;
}

.highlight-text {
    font-size: 1.1rem;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    line-height: 1.5;
}

.video-container {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    aspect-ratio: 3/4;
    max-height: 80vh;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.iframe-container {
    width: 100%;
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-color);
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}