* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Tajawal', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, 'Noto Sans Arabic', 'Noto Naskh Arabic', 'Droid Arabic Naskh', 'Geeza Pro', 'Simplified Arabic', 'Traditional Arabic', sans-serif;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    background: #0a1628;
    background: linear-gradient(135deg, #0a1628 0%, #1a2942 50%, #0f1f38 100%);
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* الخلفية المتحركة */
.animated-background {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #1e5a7d, #2d8ab8);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #2d8ab8, #4aa8d8);
    bottom: -5%;
    left: -5%;
    animation-delay: 5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #1a5f85, #236b92);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

/* المحتوى الرئيسي */
.content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.content.fade-out {
    opacity: 0;
    transform: scale(0.9);
}

/* الشعار */
.logo-container {
    animation: fadeInDown 1s ease;
}

.app-logo {
    width: 220px;
    height: 220px;
    object-fit: contain;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(45, 138, 184, 0.3);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* العنوان */
.main-title {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, #a8d8ea, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.3s backwards, gradientShift 5s ease infinite;
    text-shadow: 0 0 30px rgba(168, 216, 234, 0.5);
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.subtitle {
    font-size: 1.8rem;
    color: #a8d8ea;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.5s backwards;
    letter-spacing: 1px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* أيقونة البصمة */
.fingerprint-container {
    position: relative;
    width: 250px;
    height: 250px;
    cursor: pointer;
    animation: fadeInScale 1s ease 0.7s backwards;
    transition: transform 0.3s ease;
}

.fingerprint-container:hover {
    transform: scale(1.05);
}

.fingerprint-container:active {
    transform: scale(0.95);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fingerprint-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(45, 138, 184, 0.4), transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

.fingerprint-icon {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.fp-line {
    fill: none;
    stroke: #2d8ab8;
    stroke-width: 2;
    stroke-linecap: round;
    filter: drop-shadow(0 0 5px rgba(45, 138, 184, 0.8));
    animation: drawLine 2s ease-in-out infinite;
}

@keyframes drawLine {

    0%,
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 3px solid rgba(45, 138, 184, 0.6);
    border-radius: 50%;
    animation: pulseRing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.pulse-ring-2 {
    animation-delay: 1s;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* نص الحث على الإجراء */
.cta-text {
    animation: fadeInUp 1s ease 0.9s backwards;
}

.cta-text p {
    font-size: 1.5rem;
    color: #6bb6d6;
    font-weight: 400;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* شاشة النجاح */
.success-screen {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.success-screen.active {
    opacity: 1;
    pointer-events: all;
}

.success-animation {
    text-align: center;
    position: relative;
    z-index: 101;
}

/* أيقونة النجاح */
.success-checkmark {
    margin: 0 auto 40px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.checkmark {
    width: 150px;
    height: 150px;
    display: block;
    margin: 0 auto;
}

.checkmark-circle {
    stroke: #2d8ab8;
    stroke-width: 3;
    stroke-miterlimit: 10;
    animation: fillCircle 0.4s ease-in-out 0.3s forwards, scaleCircle 0.3s ease-in-out 0.9s both;
}

.checkmark-check {
    stroke: #4aa8d8;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: drawCheck 0.5s ease-in-out 0.7s forwards;
}

@keyframes fillCircle {
    to {
        stroke-dasharray: 157;
        stroke-dashoffset: 0;
    }
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes scaleCircle {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* الشعار في شاشة النجاح */
.success-logo {
    margin: 30px auto;
    animation: fadeInScale 0.6s ease 1s backwards;
}

.success-logo img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(45, 138, 184, 0.3);
}

/* رسالة النجاح */
.success-title {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, #4aa8d8, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease 1.2s backwards, gradientShift 5s ease infinite;
    margin: 30px 0;
    text-shadow: 0 0 30px rgba(74, 168, 216, 0.5);
}

/* معلومات الراعي */
.sponsor-info {
    margin-top: 40px;
    animation: fadeInUp 0.6s ease 1.4s backwards;
}

.sponsor-label {
    font-size: 1.6rem;
    color: #6bb6d6;
    font-weight: 300;
    margin-bottom: 15px;
}

.sponsor-name {
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    margin: 10px 0;
}

.launch-date {
    font-size: 1.8rem;
    color: #4aa8d8;
    font-weight: 500;
    margin-top: 25px;
    padding: 15px 40px;
    background: rgba(45, 138, 184, 0.2);
    border-radius: 15px;
    border: 2px solid rgba(74, 168, 216, 0.4);
    display: inline-block;
    animation: fadeInUp 0.6s ease 1.6s backwards, datePulse 3s ease-in-out infinite;
    box-shadow: 0 5px 20px rgba(45, 138, 184, 0.3);
}

@keyframes datePulse {

    0%,
    100% {
        box-shadow: 0 5px 20px rgba(45, 138, 184, 0.3);
    }

    50% {
        box-shadow: 0 5px 30px rgba(45, 138, 184, 0.5);
    }
}

/* جزيئات احتفالية */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #2d8ab8;
    animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* تحسينات للأجهزة اللوحية */
@media screen and (max-width: 1024px) {
    .main-title {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .success-title {
        font-size: 2.8rem;
    }

    .sponsor-name {
        font-size: 2rem;
    }

    .launch-date {
        font-size: 1.5rem;
        padding: 12px 30px;
    }
}

/* تحسينات للشاشات الصغيرة */
@media screen and (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .app-logo {
        width: 180px;
        height: 180px;
    }

    .success-logo img {
        width: 160px;
        height: 160px;
    }

    .success-title {
        font-size: 2.2rem;
    }

    .sponsor-name {
        font-size: 1.6rem;
    }

    .sponsor-label {
        font-size: 1.3rem;
    }

    .launch-date {
        font-size: 1.2rem;
        padding: 10px 20px;
    }

    .fingerprint-container {
        width: 200px;
        height: 200px;
    }
}

/* تأثيرات إضافية عند اللمس */
@media (hover: none) and (pointer: coarse) {
    .fingerprint-container:active {
        animation: tapEffect 0.3s ease;
    }

    .fingerprint-container:hover {
        transform: scale(1);
    }
}

@keyframes tapEffect {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

/* إصلاح مشاكل العرض على Android */
* {
    -webkit-tap-highlight-color: transparent;
}

img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* تحسين الأداء */
.gradient-orb,
.fingerprint-glow,
.pulse-ring {
    will-change: transform, opacity;
}

.app-logo,
.success-logo img {
    will-change: transform;
}