/* global.css - التنسيقات العامة المشتركة */

:root {
    /* الألوان الأساسية - موحد لخلفيات الصفحة */
    --color-background: #0b0c0f; /* الموفر من المستخدم */
    --color-foreground: #e8eef8;
    --color-card: #0b0c0f; /* جعل البطاقات نفس لون الخلفية */
    --color-primary: #3b82f6;
    --color-secondary: #1e293b;
    --color-muted: #0b0c0f;
    --color-accent: #60a5fa;
    --color-border: rgba(59, 130, 246, 0.15);
    --color-border-hover: rgba(59, 130, 246, 0.35);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
}

body {
    background: var(--color-background);
    background-attachment: fixed;
    color: var(--color-foreground);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    font-feature-settings: 'liga' 1, 'calt' 1;
    position: relative;
    overflow-x: hidden;
}

body > * {
    position: relative;
    z-index: 1;
}

/* الأزرار */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5);
}

.btn-outline {
    background: transparent;
    color: white;
    padding: 1.1rem 2.5rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
    opacity: 1;
    transition: opacity 0.4s;
    border-radius: 14px;
}

.btn-outline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(135deg, 
                rgba(59, 130, 246, 0.35) 0%, 
                rgba(59, 130, 246, 0.28) 15%,
                rgba(59, 130, 246, 0.22) 30%,
                rgba(59, 130, 246, 0.18) 45%,
                rgba(59, 130, 246, 0.18) 55%,
                rgba(59, 130, 246, 0.22) 70%,
                rgba(59, 130, 246, 0.28) 85%,
                rgba(59, 130, 246, 0.35) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

.btn-outline:hover::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 60%);
}

.btn-outline:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.35);
}

.btn-outline:hover::after {
    background: linear-gradient(135deg, 
                rgba(59, 130, 246, 0.6) 0%, 
                rgba(59, 130, 246, 0.5) 15%,
                rgba(59, 130, 246, 0.42) 30%,
                rgba(59, 130, 246, 0.38) 45%,
                rgba(59, 130, 246, 0.38) 55%,
                rgba(59, 130, 246, 0.42) 70%,
                rgba(59, 130, 246, 0.5) 85%,
                rgba(59, 130, 246, 0.6) 100%);
}

.btn-outline > * {
    position: relative;
    z-index: 1;
}

.btn-outline i {
    transition: transform 0.3s;
}

.btn-outline:hover i {
    transform: translateX(4px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

/* البطاقات */
.card {
    background: var(--color-card);
    border: 2px solid var(--color-border);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card:hover {
    border-color: var(--color-border-hover);
    box-shadow: 0 24px 60px rgba(59, 130, 246, 0.4);
    transform: translateY(-4px);
}

/* حقول الإدخال */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(11, 12, 15, 0.85); /* matches #0b0c0f */
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 0.5rem;
    color: var(--color-foreground);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-field::placeholder {
    color: rgba(200, 220, 240, 0.5);
    font-weight: 400;
}

.search-input::placeholder {
    color: rgba(200, 220, 240, 0.5);
    font-weight: 400;
}

/* القوائم المنسدلة */
.select-field {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(11, 12, 15, 0.85); /* matches #0b0c0f */
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 0.5rem;
    color: var(--color-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-field:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.select-field option {
    background: #0b0c0f;
    color: white;
    padding: 0.75rem;
}

/* الشارات */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.4rem;
    border-radius: 0.3rem;
    font-size: 0.625rem;
    font-weight: 700;
}

.badge-vip {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: var(--color-primary);
}

.badge-pro {
    background: rgba(96, 165, 250, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.4);
    color: var(--color-accent);
}

/* التأثيرات المتحركة */
@keyframes pulse-custom {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

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

.animate-pulse-custom {
    animation: pulse-custom 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Loading Spinner */
.loading-spinner {
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    animation: spin 1s linear infinite;
}

/* Footer */
footer {
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    background: transparent;
    backdrop-filter: none;
}

/* Responsive */
@media (max-width: 768px) {
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .card {
        padding: 1rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hidden { display: none; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Remove market ticker elements site-wide (hidden as requested) */
.market-ticker {
    display: none !important;
}

/* Animated Gradient Background */
    .gradient-bg {
      position: fixed;
      inset: 0;
      z-index: -1;
      background: linear-gradient(135deg, #000006 0%, #000003 50%, #080000 100%);
      overflow: hidden;
    }

    .gradient-orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(140px);
      opacity: 0.4;
    }

    .gradient-orb-1 {
      width: 1200px;
      height: 1200px;
      background: radial-gradient(circle, #00021a, #000005);
      top: -25%;
      left: -15%;
      animation: float1 20s ease-in-out infinite;
    }

    .gradient-orb-2 {
      width: 1100px;
      height: 1100px;
      background: radial-gradient(circle, #1400cc, #00013d);
      bottom: -20%;
      right: -10%;
      animation: float2 25s ease-in-out infinite;
    }

    .gradient-orb-3 {
      width: 950px;
      height: 950px;
      background: radial-gradient(circle, #01000d, #000000);
      top: 35%;
      left: 35%;
      animation: float3 30s ease-in-out infinite;
    }

    .gradient-orb-4 {
      width: 1050px;
      height: 1050px;
      background: radial-gradient(circle, #0c00b3, #01002d);
      top: -15%;
      right: -15%;
      animation: float4 28s ease-in-out infinite;
    }

    .gradient-orb-5 {
      width: 1150px;
      height: 1150px;
      background: radial-gradient(circle, #01004d, #000008);
      bottom: -25%;
      left: 15%;
      animation: float5 23s ease-in-out infinite;
    }

    .gradient-orb-6 {
      width: 900px;
      height: 900px;
      background: radial-gradient(circle, #0e00cc, #000266);
      top: 15%;
      right: 25%;
      animation: float6 27s ease-in-out infinite;
    }

    .gradient-orb-7 {
      width: 1000px;
      height: 1000px;
      background: radial-gradient(circle, #00021a, #000004);
      top: 50%;
      left: -10%;
      animation: float7 24s ease-in-out infinite;
    }

    .gradient-orb-8 {
      width: 1100px;
      height: 1100px;
      background: radial-gradient(circle, #030099, #000140);
      bottom: 10%;
      right: 40%;
      animation: float8 26s ease-in-out infinite;
    }

    .gradient-orb-9 {
      width: 850px;
      height: 850px;
      background: radial-gradient(circle, #0004e6, #170080);
      top: -5%;
      left: 50%;
      animation: float9 22s ease-in-out infinite;
    }

    .gradient-orb-10 {
      width: 1000px;
      height: 1000px;
      background: radial-gradient(circle, #000133, #00000a);
      bottom: 30%;
      left: 60%;
      animation: float10 29s ease-in-out infinite;
    }

    @keyframes float1 {
      0%, 100% {
        transform: translate(0, 0);
      }
      25% {
        transform: translate(150px, -100px);
      }
      50% {
        transform: translate(80px, 120px);
      }
      75% {
        transform: translate(-120px, 50px);
      }
    }

    @keyframes float2 {
      0%, 100% {
        transform: translate(0, 0);
      }
      25% {
        transform: translate(-100px, 80px);
      }
      50% {
        transform: translate(120px, -120px);
      }
      75% {
        transform: translate(60px, 100px);
      }
    }

    @keyframes float3 {
      0%, 100% {
        transform: translate(0, 0) scale(1);
      }
      25% {
        transform: translate(-80px, -100px) scale(1.1);
      }
      50% {
        transform: translate(-150px, 80px) scale(0.9);
      }
      75% {
        transform: translate(100px, -50px) scale(1.05);
      }
    }

    @keyframes float4 {
      0%, 100% {
        transform: translate(0, 0);
      }
      33% {
        transform: translate(-120px, 100px);
      }
      66% {
        transform: translate(90px, -80px);
      }
    }

    @keyframes float5 {
      0%, 100% {
        transform: translate(0, 0);
      }
      30% {
        transform: translate(110px, -90px);
      }
      60% {
        transform: translate(-100px, 110px);
      }
    }

    @keyframes float6 {
      0%, 100% {
        transform: translate(0, 0);
      }
      35% {
        transform: translate(-130px, -70px);
      }
      70% {
        transform: translate(100px, 120px);
      }
    }

    @keyframes float7 {
      0%, 100% {
        transform: translate(0, 0);
      }
      40% {
        transform: translate(140px, 90px);
      }
      80% {
        transform: translate(-80px, -110px);
      }
    }

    @keyframes float8 {
      0%, 100% {
        transform: translate(0, 0) scale(1);
      }
      50% {
        transform: translate(-90px, 100px) scale(1.15);
      }
    }

    @keyframes float9 {
      0%, 100% {
        transform: translate(0, 0);
      }
      45% {
        transform: translate(-110px, 120px);
      }
      90% {
        transform: translate(130px, -90px);
      }
    }

    @keyframes float10 {
      0%, 100% {
        transform: translate(0, 0);
      }
      33% {
        transform: translate(100px, -100px);
      }
      66% {
        transform: translate(-120px, 80px);
      }
    }
