:root {
    --primary-color: #d4af37; /* Gold */
    --primary-hover: #b5952f;
    --text-color: #f8fafc;
    --bg-color: #0f172a;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-color);
    background: url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?q=80&w=2000&auto=format&fit=crop') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%);
    z-index: 1;
}

.container {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 800px;
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1s ease-out;
}

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

.header {
    margin-bottom: 2rem;
}

.logo {
    max-height: 100px;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    background-color: white;
    padding: 10px;
    object-fit: contain;
}

.logo:hover {
    transform: scale(1.05);
}

.title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #d4af37, #fde08b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 3rem;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    direction: ltr; /* keep numbers LTR even in RTL Arabic */
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 100px;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.time-box:hover {
    transform: translateY(-5px);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.1), 0 10px 20px rgba(0,0,0,0.3);
    border-color: rgba(212, 175, 55, 0.3);
}

.time {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: monospace;
}

.label {
    font-size: 0.9rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Form */
.notify-form {
    margin-bottom: 3rem;
}

.input-group {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-radius: 50px;
}

.input-group input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-left: 160px; /* space for button in absolute position if we wanted, but flex is better */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px 0 0 50px; /* Arabic RTL: right to left, so right side is rounded */
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

html[dir="rtl"] .input-group input {
    border-radius: 0 50px 50px 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.input-group input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.input-group .btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px 0 0 50px;
    background: var(--primary-color);
    color: #0f172a;
    font-weight: 800;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.input-group .btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Footer */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--primary-color);
    color: #0f172a;
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.copyright {
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1.5rem;
        width: 95%;
    }

    .title {
        font-size: 2.5rem;
    }

    .countdown {
        gap: 0.8rem;
    }

    .time-box {
        min-width: 70px;
        padding: 1rem 0.5rem;
    }

    .time {
        font-size: 1.8rem;
    }
    
    .input-group {
        flex-direction: column;
        border-radius: 16px;
        box-shadow: none;
    }
    
    html[dir="rtl"] .input-group input,
    .input-group .btn {
        border-radius: 50px;
        margin-bottom: 1rem;
    }
    
    .input-group .btn {
        justify-content: center;
        margin-bottom: 0;
    }
}
