﻿:root {
    --bg-primary: #07090e;
    --bg-card: rgba(18, 22, 36, 0.65);
    --bg-card-hover: rgba(26, 32, 53, 0.75);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-glow: rgba(99, 102, 241, 0.3);
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #06b6d4;
    --accent-pink: #ec4899;
    
    --font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    direction: rtl;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Ambient Glow Effects */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(130px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.45;
    animation: floatGlow 14s ease-in-out infinite alternate;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #4f46e5 0%, rgba(99, 102, 241, 0) 70%);
    top: -10%;
    right: -10%;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0) 70%);
    bottom: -15%;
    left: -10%;
    animation-delay: -5s;
}

.glow-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #ec4899 0%, rgba(236, 72, 153, 0) 70%);
    top: 40%;
    left: 45%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
    animation-delay: -9s;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(30px, 40px) scale(1.1);
    }
}

.bg-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

/* Page Layout */
.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 1.5rem 2rem;
}

/* Main Container Card */
.main-container {
    width: 100%;
    max-width: 780px;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 3.5rem 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px -15px rgba(99, 102, 241, 0.15);
    transition: border-color 0.3s ease;
}

.main-container:hover {
    border-color: var(--card-border-glow);
}

/* Logo */
.logo-wrapper {
    position: relative;
    margin-bottom: 1.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.45) 0%, rgba(99, 102, 241, 0) 70%);
    border-radius: 50%;
    filter: blur(20px);
    z-index: 0;
    animation: pulseGlow 3s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.9; }
}

.brand-logo {
    position: relative;
    z-index: 1;
    max-height: 105px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Badge */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--primary-light);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.25rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Typography */
.main-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 20%, #a5b4fc 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 2px 20px rgba(99, 102, 241, 0.35));
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 400;
    max-width: 580px;
    margin-bottom: 2.75rem;
    line-height: 1.8;
}

/* Countdown */
.countdown-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin-bottom: 2.75rem;
    width: 100%;
    max-width: 620px;
}

.timer-box {
    flex: 1;
    min-width: 90px;
    background: rgba(13, 17, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.25rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.timer-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    opacity: 0.6;
}

.timer-box:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.25);
}

.timer-value {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.timer-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.4rem;
}

.timer-divider {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.25);
    align-self: center;
    padding-bottom: 1.25rem;
    animation: blinkColon 1s infinite alternate;
}

@keyframes blinkColon {
    0% { opacity: 0.3; }
    100% { opacity: 0.9; }
}

/* Notify Me Card */
.notify-card {
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 1.5rem;
}

.notify-title {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 1rem;
}

.notify-form {
    width: 100%;
}

.input-group {
    display: flex;
    gap: 0.5rem;
    background: rgba(10, 13, 22, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.35rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--font-family);
    font-size: 0.95rem;
    padding: 0.6rem 0.85rem;
}

.input-group input::placeholder {
    color: #64748b;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
    white-space: nowrap;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.5);
}

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

.btn-arrow {
    width: 16px;
    height: 16px;
    transform: rotate(180deg);
    transition: transform 0.2s ease;
}

.btn-submit:hover .btn-arrow {
    transform: rotate(180deg) translateX(3px);
}

.notify-message {
    font-size: 0.875rem;
    margin-top: 0.75rem;
    min-height: 1.25rem;
    transition: all 0.3s ease;
}

.notify-message.success {
    color: #4ade80;
}

.notify-message.error {
    color: #f87171;
}

/* Footer & Enamad */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    text-align: center;
}

.enamad-wrapper {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.enamad-wrapper:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.enamad-wrapper img {
    display: block;
    max-width: 100px;
    height: auto;
    border-radius: 8px;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 640px) {
    .page-wrapper {
        padding: 1.5rem 1rem;
    }

    .main-container {
        padding: 2.5rem 1.25rem;
        border-radius: 22px;
    }

    .brand-logo {
        max-height: 80px;
        max-width: 180px;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .countdown-container {
        gap: 0.4rem;
        margin-bottom: 2rem;
    }

    .timer-box {
        min-width: 65px;
        padding: 0.85rem 0.25rem;
        border-radius: 12px;
    }

    .timer-value {
        font-size: 1.75rem;
    }

    .timer-label {
        font-size: 0.75rem;
    }

    .timer-divider {
        font-size: 1.35rem;
        padding-bottom: 0.75rem;
    }

    .input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 0.6rem;
    }

    .input-group input {
        background: rgba(10, 13, 22, 0.85);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        padding: 0.75rem 1rem;
    }

    .btn-submit {
        justify-content: center;
        padding: 0.75rem 1rem;
    }
}
