/* =============================================
   Almutakhassisa Medical Insurance
   Premium Corporate CSS
   ============================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* =============================================
   CSS Variables
   ============================================= */
:root {
    --primary-blue: #123A6F;
    --primary-red: #E21C2A;
    --white: #FFFFFF;
    --dark-gray: #1F2937;
    --light-gray: #F4F6F9;
    --accent-green: #007A3D;
    --primary-blue-light: #1a4f8f;
    --primary-blue-dark: #0d2a50;
    --shadow-sm: 0 2px 8px rgba(18, 58, 111, 0.08);
    --shadow-md: 0 4px 20px rgba(18, 58, 111, 0.12);
    --shadow-lg: 0 8px 40px rgba(18, 58, 111, 0.16);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   Base Reset & Typography
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'cairo', sans-serif;
    color: var(--dark-gray);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

body[dir="rtl"] {
    font-family: 'Cairo', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-blue);
}

body[dir="rtl"] h1,
body[dir="rtl"] h2,
body[dir="rtl"] h3,
body[dir="rtl"] h4,
body[dir="rtl"] h5,
body[dir="rtl"] h6 {
    font-family: 'Cairo', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* =============================================
   Utility Classes
   ============================================= */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    position: relative;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6B7280;
    margin-bottom: 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.bg-light-gray {
    background: var(--light-gray);
}

.text-primary-blue {
    color: var(--primary-blue) !important;
}

.text-primary-red {
    color: var(--primary-red) !important;
}

/* =============================================
   Buttons
   ============================================= */
.btn-primary-custom {
    background: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-blue);
    padding: 12px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
}

.btn-primary-custom:hover {
    background: var(--primary-blue-light);
    border-color: var(--primary-blue-light);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(18, 58, 111, 0.35);
    transform: translateY(-2px);
}

.btn-red-custom {
    background: var(--primary-red);
    color: var(--white);
    border: 2px solid var(--primary-red);
    padding: 12px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
}

.btn-red-custom:hover {
    background: #c41722;
    border-color: #c41722;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(226, 28, 42, 0.35);
    transform: translateY(-2px);
}

.btn-outline-custom {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 12px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
}

.btn-outline-custom:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* =============================================
   Navbar
   ============================================= */
.navbar-custom {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
    transition: var(--transition);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
}

.navbar-custom.scrolled {
    box-shadow: var(--shadow-md);
    padding: 8px 0;
}

.navbar-custom .navbar-brand {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-custom .navbar-brand .brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 1.1rem;
}

.navbar-custom .nav-link {
    color: var(--dark-gray);
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--primary-blue);
    background: rgba(18, 58, 111, 0.06);
}

.lang-switcher {
    background: var(--primary-blue);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.lang-switcher:hover {
    background: var(--primary-blue-light);
    color: var(--white);
    transform: translateY(-1px);
}

/* =============================================
   Hero Section
   ============================================= */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Heartbeat SVG */
.heartbeat-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heartbeat-svg {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.heartbeat-line {
    stroke: var(--primary-red);
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: heartbeat-draw 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(226, 28, 42, 0.5));
}

@keyframes heartbeat-draw {
    0% { stroke-dashoffset: 600; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -600; }
}

.heart-icon {
    position: absolute;
    font-size: 4rem;
    color: var(--primary-red);
    animation: heart-pulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(226, 28, 42, 0.4));
}

@keyframes heart-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Floating shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: var(--white);
}

.floating-shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.floating-shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

/* =============================================
   Statistics Section
   ============================================= */
.stats-section {
    background: var(--white);
    padding: 60px 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(18, 58, 111, 0.06);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: var(--white);
}

.stat-icon.blue { background: var(--primary-blue); }
.stat-icon.red { background: var(--primary-red); }
.stat-icon.green { background: var(--accent-green); }
.stat-icon.dark { background: var(--dark-gray); }

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.95rem;
    color: #6B7280;
    font-weight: 500;
}

/* =============================================
   Cards (General)
   ============================================= */
.custom-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(18, 58, 111, 0.06);
    height: 100%;
}

.custom-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: var(--white);
    background: var(--primary-blue);
}

.custom-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-blue);
}

.custom-card p {
    font-size: 0.95rem;
    color: #6B7280;
    line-height: 1.6;
}

/* =============================================
   Services Cards
   ============================================= */
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(18, 58, 111, 0.06);
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card .card-icon {
    margin: 0 auto 20px;
}

/* =============================================
   Why Choose Us
   ============================================= */
.why-section {
    background: var(--light-gray);
}

.why-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.why-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

body[dir="rtl"] .why-card {
    flex-direction: row-reverse;
    text-align: right;
}

.why-card .why-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(18, 58, 111, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-blue);
}

.why-card h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 6px;
}

.why-card p {
    font-size: 0.9rem;
    color: #6B7280;
    margin: 0;
}

/* =============================================
   Testimonials
   ============================================= */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(18, 58, 111, 0.06);
    transition: var(--transition);
    height: 100%;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
}

.testimonial-card .quote-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 12px;
}

.testimonial-card p {
    font-size: 0.95rem;
    color: #4B5563;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

body[dir="rtl"] .testimonial-author {
    flex-direction: row-reverse;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.testimonial-name {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.testimonial-role {
    font-size: 0.8rem;
    color: #9CA3AF;
}

/* =============================================
   CTA Section
   ============================================= */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* =============================================
   Page Headers
   ============================================= */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    z-index: 2;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
    margin-top: 0.5rem;
}

/* =============================================
   About Page
   ============================================= */
.mission-vision-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(18, 58, 111, 0.06);
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.mission-vision-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.mission-vision-card .mv-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
}

.mv-icon.blue { background: var(--primary-blue); }
.mv-icon.red { background: var(--primary-red); }
.mv-icon.green { background: var(--accent-green); }

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.value-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(18, 58, 111, 0.06);
    transition: var(--transition);
}

.value-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.value-item .value-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(18, 58, 111, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.3rem;
    color: var(--primary-blue);
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-blue), var(--primary-red));
    border-radius: 2px;
}

body[dir="rtl"] .timeline::before {
    left: 50%;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

body[dir="rtl"] .timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

body[dir="rtl"] .timeline-item:nth-child(even) {
    flex-direction: row;
}

.timeline-content {
    width: 45%;
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(18, 58, 111, 0.06);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-red);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary-blue);
    z-index: 2;
}

.timeline-year {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 6px;
}

.timeline-desc {
    font-size: 0.95rem;
    color: #6B7280;
}

/* CEO Section */
.ceo-section {
    background: var(--light-gray);
    border-radius: var(--radius);
    padding: 40px;
    display: flex;
    gap: 30px;
    align-items: center;
}

body[dir="rtl"] .ceo-section {
    flex-direction: row-reverse;
}

.ceo-avatar {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
}

/* =============================================
   Network Page
   ============================================= */
.filter-bar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

body[dir="rtl"] .filter-bar {
    flex-direction: row-reverse;
}

.filter-bar .filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-bar label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-blue);
    margin-bottom: 6px;
    display: block;
}

.filter-bar select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--dark-gray);
    background: var(--white);
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

body[dir="rtl"] .filter-bar select {
    background-position: left 12px center;
    padding-right: 14px;
    padding-left: 30px;
}

.filter-bar select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(18, 58, 111, 0.1);
}

.facility-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(18, 58, 111, 0.06);
    transition: var(--transition);
    height: 100%;
}

.facility-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.facility-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.badge-hospital { background: rgba(18, 58, 111, 0.1); color: var(--primary-blue); }
.badge-clinic { background: rgba(0, 122, 61, 0.1); color: var(--accent-green); }
.badge-pharmacy { background: rgba(226, 28, 42, 0.1); color: var(--primary-red); }
.badge-diagnostic { background: rgba(31, 41, 55, 0.1); color: var(--dark-gray); }

.facility-card h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.facility-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.facility-info span {
    font-size: 0.88rem;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

body[dir="rtl"] .facility-info span {
    flex-direction: row-reverse;
    text-align: right;
}

.results-count {
    font-size: 0.95rem;
    color: #6B7280;
    margin-bottom: 20px;
}

.results-count strong {
    color: var(--primary-blue);
}

#facilities-grid {
    min-height: 200px;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(18, 58, 111, 0.15);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* =============================================
   News Page
   ============================================= */
.news-card {
    background: var(--white);
    border-radius: var(--radius); /* البطاقة لها انحناء */
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* هذا ضروري لمنع overflow */
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.news-card-image {
    height: 220px !important;
    width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
    background: #f0f0f0;
    flex-shrink: 0;
    /* إزالة أي انحناء من الصورة */
    border-radius: 0 !important;
    /* تمديد الصورة لتغطي الزوايا */
    margin: -1px -1px 0 -1px; /* لتعويض border البطاقة */
    width: calc(100% + 2px) !important;
}

.news-card-image img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    transition: transform 0.5s ease;
    /* إزالة أي انحناء من الصورة */
    border-radius: 0 !important;
}

.news-card:hover 
.news-card-image img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--white);
    /* الجسم له انحناء في الزوايا السفلية فقط */
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
}

/* إذا أردت أن يكون للجسم نفس انحناء البطاقة ولكن بدون انحناء علوي */
.news-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 0 0 var(--radius) var(--radius);
}

.news-category {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(18, 58, 111, 0.08);
    color: var(--primary-blue);
    margin-bottom: 10px;
    width: fit-content;
}

.news-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-card p {
    font-size: 0.9rem;
    color: #6B7280;
    line-height: 1.6;
    flex: 1;
}

.news-date {
    font-size: 0.8rem;
    color: #9CA3AF;
    margin-top: 12px;
}

.news-filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

.news-filter-btn {
    padding: 8px 20px;
    border: 2px solid #E5E7EB;
    background: var(--white);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    color: #6B7280;
    transition: var(--transition);
}

.news-filter-btn.active,
.news-filter-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: rgba(18, 58, 111, 0.04);
}
/* =============================================
   Contact Page
   ============================================= */
.contact-form-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-floating-custom {
    margin-bottom: 20px;
}

.form-floating-custom label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--primary-blue);
    margin-bottom: 6px;
    display: block;
}

.form-floating-custom input,
.form-floating-custom textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--dark-gray);
    transition: var(--transition);
    font-family: inherit;
}

.form-floating-custom input:focus,
.form-floating-custom textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(18, 58, 111, 0.1);
}

.contact-info-card {
    background: var(--primary-blue);
    border-radius: var(--radius);
    padding: 40px;
    color: var(--white);
    height: 100%;
}

.contact-info-card h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.contact-info-item {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    align-items: flex-start;
}

body[dir="rtl"] .contact-info-item {
    flex-direction: row-reverse;
    text-align: right;
}

.contact-info-item .info-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-info-item p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.alert-custom {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-success-custom {
    background: rgba(0, 122, 61, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(0, 122, 61, 0.2);
}

.alert-error-custom {
    background: rgba(226, 28, 42, 0.1);
    color: var(--primary-red);
    border: 1px solid rgba(226, 28, 42, 0.2);
}

/* =============================================
   Footer
   ============================================= */
.footer {
    background: var(--dark-gray);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

.footer h5 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-inline-start: 6px;
}

.footer-newsletter-input {
    display: flex;
    gap: 8px;
}

.footer-newsletter-input input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    font-size: 0.9rem;
}

.footer-newsletter-input input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.footer-newsletter-input button {
    padding: 10px 20px;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.footer-newsletter-input button:hover {
    background: #c41722;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* =============================================
   Scroll Reveal Animation
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* =============================================
   Page Fade Transition
   ============================================= */
.page-transition {
    animation: pageFade 0.4s ease-in;
}

@keyframes pageFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .timeline::before {
        left: 20px;
    }

    body[dir="rtl"] .timeline::before {
        left: auto;
        right: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 50px;
    }

    body[dir="rtl"] .timeline-item,
    body[dir="rtl"] .timeline-item:nth-child(odd),
    body[dir="rtl"] .timeline-item:nth-child(even) {
        padding-left: 0;
        padding-right: 50px;
        align-items: flex-end;
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-dot {
        left: 20px;
        transform: translateX(-50%);
    }

    body[dir="rtl"] .timeline-dot {
        left: auto;
        right: 20px;
        transform: translateX(50%);
    }

    .ceo-section {
        flex-direction: column !important;
        text-align: center;
    }

    .filter-bar {
        flex-direction: column !important;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-padding {
        padding: 50px 0;
    }

    .stat-number {
        font-size: 2rem;
    }

    .page-header {
        padding: 120px 0 60px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }
}
/* =============================================
   App Page - Phone Mockup & Animations
   ============================================= */
.phone-mockup {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    perspective: 1200px;
}

.phone-frame {
    position: relative;
    width: 100%;
    padding-bottom: 200%; /* نسبة طولية للهاتف */
    background: #0d0d0d;
    border-radius: 36px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.2),
        0 0 0 8px #e0e0e0,
        0 0 0 12px #f5f5f5;
    overflow: hidden;
    transform-style: preserve-3d;
    animation: phoneFloat 5s ease-in-out infinite;
}

.phone-screen {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: #000;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, var(--primary-blue), #0a2846);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    animation: slideScreen 12s linear infinite alternate;
    position: relative;
}

.screen-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><circle cx="50" cy="50" r="40" fill="white"/><circle cx="50" cy="50" r="30" fill="%23123A6F"/><circle cx="50" cy="50" r="20" fill="white"/><circle cx="50" cy="50" r="10" fill="%23E21C2A"/></svg>');
    background-size: 60px 60px;
    background-position: 0 0;
    animation: moveBackground 20s linear infinite;
}

.screen-content i {
    color: white;
    font-size: 3rem;
    margin: 10px;
    opacity: 0.9;
    animation: pulse 2s ease-in-out infinite;
}

/* أيقونات وهمية للتطبيق */
.app-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px;
    width: 100%;
}

.app-icon {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-size: 0.7rem;
    border: 1px solid rgba(255,255,255,0.2);
    transform: scale(1);
    transition: transform 0.2s;
}

.app-icon span {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

/* Animation للهاتف */
@keyframes phoneFloat {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    25% { transform: translateY(-10px) rotateY(5deg); }
    75% { transform: translateY(10px) rotateY(-5deg); }
}

@keyframes slideScreen {
    0% { background-position: 0 0; }
    100% { background-position: 100% 100%; }
}

@keyframes moveBackground {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

/* زر التحميل */
.store-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0d0d0d;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
    margin: 8px;
}

.store-badge:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(18,58,111,0.3);
}

.store-badge i {
    margin-right: 8px;
    font-size: 1.2rem;
}

body[dir="rtl"] .store-badge i {
    margin-left: 8px;
    margin-right: 0;
}

.qr-code {
    display: inline-block;
    background: white;
    padding: 12px;
    border-radius: 16px;
    margin-top: 20px;
}

.qr-code img {
    width: 120px;
    height: 120px;
    display: block;
}

/* قائمة الميزات */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: #4B5563;
}

body[dir="rtl"] .feature-list li {
    flex-direction: row-reverse;
}

.feature-list li span:first-child {
    width: 28px;
    height: 28px;
    background: rgba(18,58,111,0.1);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-weight: bold;
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 767px) {
    .phone-mockup {
        margin-bottom: 40px;
    }
}

/* =============================================
   APP PAGE - PROFESSIONAL ULTRA PREMIUM DESIGN
   ============================================= */

/* Variables الخاصة بصفحة التطبيق */
:root {
    --app-gradient-start: #0A1F3E;
    --app-gradient-end: #1E3A5F;
    --app-glow-blue: rgba(18, 58, 111, 0.5);
    --app-glow-red: rgba(226, 28, 42, 0.4);
    --app-gold: #FFD700;
    --app-silver: #C0C0C0;
}

/* =============================================
   3D PHONE MOCKUP - CINEMATIC EXPERIENCE
   ============================================= */
.phone-showcase {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 2000px;
    transform-style: preserve-3d;
}

.phone-3d-container {
    position: relative;
    width: 320px;
    height: 650px;
    transform-style: preserve-3d;
    animation: phoneOrbit 20s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

/* الهاتف الرئيسي */
.phone-3d {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border-radius: 48px;
    box-shadow: 
        0 30px 50px -10px rgba(0,0,0,0.5),
        0 0 0 6px #2a2a2a,
        0 0 0 10px #3a3a3a,
        0 20px 40px -5px rgba(18,58,111,0.3);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.phone-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
    z-index: 2;
    border-radius: 48px 48px 0 0;
}

.phone-3d::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top, rgba(255,255,255,0.1), transparent);
    z-index: 2;
    border-radius: 0 0 48px 48px;
}

/* شاشة الهاتف - Ultra HD */
.phone-screen-3d {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: #000;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

/* محتوى الشاشة - تصميم متحرر احترافي */
.app-interface {
    position: relative;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, #123A6F, #06182E);
    display: flex;
    flex-direction: column;
}

/* شريط الحالة */
.status-bar {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent);
    backdrop-filter: blur(5px);
}

/* ويلكم كارد */
.welcome-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    margin: 16px 20px;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    animation: slideIn 0.8s ease;
}

.welcome-text {
    color: white;
    font-size: 0.9rem;
    opacity: 0.9;
}

.welcome-name {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 4px;
    letter-spacing: -0.5px;
}

/* بطاقة التأمين */
.insurance-card {
    background: linear-gradient(145deg, #E21C2A, #B71C1C);
    margin: 8px 20px;
    padding: 20px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(226,28,42,0.3);
    animation: cardFloat 3s infinite ease-in-out;
}

.insurance-card::before {
    content: '● ● ●';
    position: absolute;
    top: 20px;
    right: 20px;
    color: rgba(255,255,255,0.5);
    font-size: 1.2rem;
    letter-spacing: 4px;
}

.card-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(145deg, #FFD700, #FFA500);
    border-radius: 8px;
    margin-bottom: 20px;
}

.card-number {
    color: white;
    font-size: 1.1rem;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,0.9);
    font-size: 0.8rem;
}

/* شبكة التطبيق - ديناميكية */
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 20px;
    animation: gridAppear 0.6s ease;
}

.app-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: appIconPop 0.5s ease backwards;
}

.app-grid-item:nth-child(1) { animation-delay: 0.1s; }
.app-grid-item:nth-child(2) { animation-delay: 0.2s; }
.app-grid-item:nth-child(3) { animation-delay: 0.3s; }
.app-grid-item:nth-child(4) { animation-delay: 0.4s; }
.app-grid-item:nth-child(5) { animation-delay: 0.5s; }
.app-grid-item:nth-child(6) { animation-delay: 0.6s; }
.app-grid-item:nth-child(7) { animation-delay: 0.7s; }
.app-grid-item:nth-child(8) { animation-delay: 0.8s; }

.icon-circle {
    width: 52px;
    height: 52px;
    background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    backdrop-filter: blur(8px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.icon-circle:hover {
    transform: scale(1.1) translateY(-5px);
    background: linear-gradient(145deg, rgba(18,58,111,0.8), rgba(18,58,111,0.6));
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 8px 24px rgba(18,58,111,0.4);
}

.icon-label {
    color: rgba(255,255,255,0.9);
    font-size: 0.7rem;
    margin-top: 6px;
    font-weight: 500;
}

/* =============================================
   APP FEATURES SECTION - MODERN CARDS
   ============================================= */
.app-features-section {
    background: linear-gradient(145deg, #f8fafc, #eef2f6);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.app-features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="%23123A6F" opacity="0.03"/></svg>');
    background-size: 60px 60px;
}

.feature-card-modern {
    background: white;
    border-radius: 32px;
    padding: 40px 24px;
    box-shadow: 0 20px 40px -10px rgba(18,58,111,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(18,58,111,0.06);
    height: 100%;
}

.feature-card-modern:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px -10px rgba(18,58,111,0.2);
}

.feature-card-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.feature-card-modern:hover::after {
    transform: scaleX(1);
}

.feature-icon-3d {
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #123A6F, #0D2A50);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
    font-size: 2.2rem;
    box-shadow: 
        0 10px 20px -5px rgba(18,58,111,0.3),
        inset 0 -2px 0 rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.feature-card-modern:hover .feature-icon-3d {
    transform: rotateY(180deg);
    background: linear-gradient(145deg, #E21C2A, #B71C1C);
}

/* =============================================
   DOWNLOAD BUTTONS - APPLE STYLE
   ============================================= */
.download-buttons-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.download-btn-premium {
    display: flex;
    align-items: center;
    padding: 12px 28px;
    background: #0d0d0d;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.download-btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
}

.download-btn-premium:hover::before {
    left: 100%;
}

.download-btn-premium:hover {
    transform: translateY(-3px) scale(1.05);
    background: var(--primary-blue);
    box-shadow: 0 15px 30px -5px rgba(18,58,111,0.4);
}

.btn-icon {
    font-size: 2rem;
    margin-inline-end: 12px;
    color: white;
}

.btn-content {
    display: flex;
    flex-direction: column;
}

.btn-small-text {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-large-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

/* =============================================
   QR CODE - GLASS MORPHISM
   ============================================= */
.qr-container-premium {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
    display: inline-flex;
    align-items: center;
    gap: 24px;
}

.qr-code-premium {
    background: white;
    padding: 16px;
    border-radius: 20px;
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.qr-code-premium::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        transparent,
        transparent,
        rgba(255,255,255,0.3),
        transparent,
        transparent
    );
    transform: rotate(45deg);
    animation: qrShine 3s infinite;
}

/* =============================================
   APP STATS COUNTERS
   ============================================= */
.app-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.app-stat-item {
    text-align: center;
}

.app-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 6px;
    background: linear-gradient(145deg, var(--primary-blue), #1E3A5F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-stat-label {
    font-size: 0.9rem;
    color: #6B7280;
    font-weight: 500;
}

/* =============================================
   ANIMATIONS - CINEMATIC
   ============================================= */
@keyframes phoneOrbit {
    0%, 100% { transform: rotateY(0deg) rotateX(5deg) translateZ(0); }
    25% { transform: rotateY(10deg) rotateX(8deg) translateZ(20px); }
    75% { transform: rotateY(-10deg) rotateX(3deg) translateZ(20px); }
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes appIconPop {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes qrShine {
    0% { transform: rotate(45deg) translateX(-100%); }
    20%, 100% { transform: rotate(45deg) translateX(100%); }
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 991px) {
    .phone-3d-container {
        width: 280px;
        height: 570px;
    }
    
    .app-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        padding: 16px;
    }
    
    .icon-circle {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }
}

@media (max-width: 767px) {
    .phone-showcase {
        min-height: 500px;
    }
    
    .phone-3d-container {
        width: 260px;
        height: 530px;
    }
    
    .app-stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .download-buttons-container {
        justify-content: center;
    }
    
    .qr-container-premium {
        flex-direction: column;
        text-align: center;
    }
}

/* الحاوية الرئيسية */
.navbar-custom {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 8px 0;
    transition: var(--transition);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
}

.navbar-custom .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =============================================
   LOGO - تصميم ذكي للموبايل والديسكتوب
   ============================================= */

.navbar-brand {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    transition: var(--transition);
}

.navbar-logo {
    width: auto;
    height: 48px;
    max-width: 180px;
    object-fit: contain;
    transition: var(--transition);
}

/* Desktop - Logo على اليسار */
@media (min-width: 992px) {
    .navbar-brand {
        margin-inline-end: 40px;
    }
    
    .navbar-logo {
        height: 52px;
    }
}

/* Mobile - Logo في المنتصف */
@media (max-width: 991px) {
    .navbar-custom .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .navbar-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        z-index: 1;
    }
    
    /* RTL Support للموبايل */
    [dir="rtl"] .navbar-brand {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    
    .navbar-logo {
        height: 42px;
        max-width: 140px;
    }
    
    /* Toggle button - يبقى في اليسار */
    .navbar-toggler {
        margin-inline-end: auto;
        z-index: 2;
    }
    
    /* Mobile lang switcher - في اليمين */
    .mobile-lang-switcher {
        margin-inline-start: auto;
        z-index: 2;
    }
    
    .lang-switcher-mobile {
        display: inline-block;
        padding: 6px 12px;
        background: var(--primary-blue);
        color: white;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
        text-decoration: none;
        transition: var(--transition);
    }
    
    .lang-switcher-mobile:hover {
        background: var(--primary-blue-light);
        transform: translateY(-1px);
    }
}

/* =============================================
   DESKTOP NAVIGATION LAYOUT
   ============================================= */
@media (min-width: 992px) {
    .desktop-nav-layout {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .main-nav {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .desktop-lang-wrapper {
        margin-inline-start: 20px;
    }
    
    /* إخفاء عناصر الموبايل في الديسكتوب */
    .mobile-nav-layout,
    .mobile-lang-switcher {
        display: none !important;
    }
}

/* =============================================
   MOBILE NAVIGATION LAYOUT
   ============================================= */
@media (max-width: 991px) {
    /* إخفاء عناصر الديسكتوب في الموبايل */
    .desktop-nav-layout {
        display: none !important;
    }
    
    .mobile-nav-layout {
        display: block;
        width: 100%;
        padding: 20px 0 10px;
    }
    
    /* تنسيق القائمة المنسدلة للموبايل */
    .navbar-collapse {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-radius: 0 0 20px 20px;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    [dir="rtl"] .navbar-collapse {
        left: 0;
        right: 0;
    }
    
    .mobile-nav-layout .navbar-nav {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .mobile-nav-layout .nav-link {
        padding: 12px 16px !important;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 500;
        color: var(--dark-gray);
        transition: var(--transition);
    }
    
    .mobile-nav-layout .nav-link:hover,
    .mobile-nav-layout .nav-link.active {
        background: rgba(18, 58, 111, 0.06);
        color: var(--primary-blue);
        padding-inline-start: 24px !important;
    }
    
    .mobile-nav-layout hr {
        margin: 16px 0;
        border: 0;
        border-top: 1px solid rgba(18, 58, 111, 0.1);
    }
}

/* =============================================
   NAVBAR SCROLLED STATE
   ============================================= */
.navbar-custom.scrolled {
    box-shadow: var(--shadow-md);
    padding: 4px 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.navbar-custom.scrolled .navbar-logo {
    height: 44px;
}

@media (max-width: 991px) {
    .navbar-custom.scrolled .navbar-logo {
        height: 38px;
    }
    
    .navbar-custom.scrolled .navbar-collapse {
        top: 62px;
    }
}

/* =============================================
   BOOTSTRAP OVERRIDES
   ============================================= */
.navbar-toggler {
    border: 2px solid rgba(18, 58, 111, 0.1);
    padding: 8px 12px;
    border-radius: 10px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(18, 58, 111, 0.1);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2818, 58, 111, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =============================================
   RESPONSIVE FIXES
   ============================================= */
@media (max-width: 375px) {
    .navbar-logo {
        height: 36px;
        max-width: 120px;
    }
    
    .lang-switcher-mobile {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
}

/* منع تأثير الناف بار على باقي الصفحة */
body {
    padding-top: 70px;
}

@media (max-width: 991px) {
    body {
        padding-top: 62px;
    }
}

@media (min-width: 992px) {
    body {
        padding-top: 76px;
    }
}
/* =============================================
   TEAM CAROUSEL - FIXED & ENHANCED
   ============================================= */

.team-section {
    padding: 100px 0;
    background: linear-gradient(145deg, #0A1F3E, #06182E);
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* الخلفية المتحركة */
.team-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(circle at 30% 50%, rgba(226,28,42,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(18,58,111,0.15) 0%, transparent 50%);
    animation: teamBackgroundMove 30s linear infinite;
    pointer-events: none;
}

@keyframes teamBackgroundMove {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.1); }
}

/* عناوين القسم */
.team-section .section-header {
    position: relative;
    z-index: 10;
    margin-bottom: 50px;
}

.team-section .section-header h2,
.team-section .section-header p {
    color: white;
    position: relative;
    z-index: 2;
}

.team-section .section-badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: inline-block;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-badge i {
    margin-inline-end: 8px;
}

/* =============================================
   SWIPER CONTAINER - CRITICAL FIXES
   ============================================= */
.team-carousel-container {
    position: relative;
    width: 100%;
    padding: 30px 20px 70px;
    margin-top: 30px;
    z-index: 20;
    overflow: visible;
}

/* تأكيد أن Swiper يعمل بشكل صحيح */
.swiper {
    width: 100%;
    height: 100%;
    overflow: visible !important;
}

.swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
}

.swiper-slide {
    flex-shrink: 0 !important;
    width: auto !important;
}

/* =============================================
   TEAM CARD - FULL IMAGE DESIGN
   ============================================= */
.team-card {
    position: relative;
    width: 300px;
    height: 450px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 50px -10px rgba(0,0,0,0.4);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    transform-origin: center;
    animation: cardFloat 6s infinite ease-in-out;
}

/* صور الخلفية - تغطي البطاقة بالكامل */
.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* صور مخصصة لكل عضو */
.team-card[data-member="1"]::before {
    background-image: url('https://images.unsplash.com/photo-1560250097-0b93528c311a?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
}
.team-card[data-member="2"]::before {
    background-image: url('https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
}
.team-card[data-member="3"]::before {
    background-image: url('https://images.unsplash.com/photo-1568602471122-7832951cc4c5?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
}
.team-card[data-member="4"]::before {
    background-image: url('https://images.unsplash.com/photo-1580489944761-15a19d654956?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
}
.team-card[data-member="5"]::before {
    background-image: url('https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
}

/* تأثير التحويم */
.team-card:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 35px 70px -10px rgba(0,0,0,0.6);
}

.team-card:hover::before {
    transform: scale(1.1);
}

/* =============================================
   TEAM CARD CONTENT
   ============================================= */
.team-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 25px;
    background: linear-gradient(to top, 
        rgba(0,0,0,0.95) 0%,
        rgba(0,0,0,0.7) 50%,
        transparent 100%);
    color: white;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(2px);
}

.team-card:hover .team-card-content {
    background: linear-gradient(to top, 
        rgba(18,58,111,0.98) 0%,
        rgba(18,58,111,0.8) 70%,
        transparent 100%);
}

.team-card-content h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.team-position {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 5px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =============================================
   TEAM QUOTE - ANIMATED
   ============================================= */
.team-quote {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    margin-top: 0;
}

.team-card:hover .team-quote {
    max-height: 100px;
    opacity: 1;
    margin-top: 10px;
}

.team-quote p {
    color: rgba(255,255,255,0.95);
    font-size: 0.9rem;
    line-height: 1.5;
    font-style: italic;
    position: relative;
    padding-inline-start: 15px;
}

.team-quote p::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 1.8rem;
    color: rgba(255,255,255,0.5);
}

[dir="rtl"] .team-quote p::before {
    left: auto;
    right: 0;
}

/* =============================================
   SOCIAL ICONS
   ============================================= */
.team-social {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 30;
}

[dir="rtl"] .team-social {
    right: auto;
    left: 20px;
    transform: translateX(-30px);
}

.team-card:hover .team-social {
    opacity: 1;
    transform: translateX(0);
}

.team-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.team-social a:hover {
    background: var(--primary-red);
    transform: scale(1.15) translateY(-3px);
}

/* =============================================
   CARD ANIMATIONS
   ============================================= */
@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* =============================================
   SWIPER NAVIGATION
   ============================================= */
.swiper-button-next,
.swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    color: white;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-red);
    border-color: transparent;
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    display: none;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.3);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    width: 25px;
    border-radius: 10px;
    background: var(--primary-red);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991px) {
    .team-card {
        width: 280px;
        height: 420px;
    }
}

@media (max-width: 767px) {
    .team-card {
        width: 260px;
        height: 400px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}

@media (max-width: 575px) {
    .team-card {
        width: 280px;
        height: 420px;
        margin: 0 auto;
    }
}
/* =============================================
   إضافات وتحسينات التصميم
   ============================================= */

/* تأثيرات حركية للسايدبار */
.admin-sidebar {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
    position: relative;
    overflow: hidden;
}

.admin-sidebar::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

/* تحسين بطاقات الإحصائيات */
.visitor-stats-card {
    background: white;
    border-radius: 20px;
    padding: 25px 20px;
    box-shadow: 0 10px 30px rgba(18, 58, 111, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(18, 58, 111, 0.05);
}

.visitor-stats-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-red), var(--primary-blue));
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.visitor-stats-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(18, 58, 111, 0.15);
}

.visitor-stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
}

.visitor-stats-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.visitor-stats-card:hover .visitor-stats-icon::before {
    opacity: 1;
    animation: shine 1s;
}

@keyframes shine {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.visitor-stats-icon.online {
    background: linear-gradient(135deg, #00c9a7, #00b894);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 201, 167, 0.3);
}

.visitor-stats-icon.today {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    box-shadow: 0 10px 20px rgba(33, 150, 243, 0.3);
}

.visitor-stats-icon.week {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    color: white;
    box-shadow: 0 10px 20px rgba(156, 39, 176, 0.3);
}

.visitor-stats-icon.month {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    box-shadow: 0 10px 20px rgba(255, 152, 0, 0.3);
}

/* تحسين البطاقات الرئيسية */
.card {
    border: none;
    border-radius: 24px;
    background: white;
    box-shadow: 0 15px 35px rgba(18, 58, 111, 0.08);
    transition: all 0.4s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 25px 50px rgba(18, 58, 111, 0.15);
    transform: translateY(-5px);
}

.card-header {
    background: white;
    border-bottom: 2px solid rgba(18, 58, 111, 0.05);
    padding: 22px 25px;
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 25px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
    border-radius: 3px;
}

body[dir="rtl"] .card-header::after {
    left: auto;
    right: 25px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: var(--primary-red);
    font-size: 1.3rem;
}

/* تحسين الجداول */
.table {
    margin-bottom: 0;
}

.table thead th {
    background: linear-gradient(135deg, rgba(18, 58, 111, 0.02), rgba(226, 28, 42, 0.02));
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(18, 58, 111, 0.1);
    padding: 18px 20px;
    white-space: nowrap;
}

.table tbody td {
    padding: 16px 20px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(18, 58, 111, 0.05);
    transition: background 0.3s;
}

.table tbody tr {
    transition: all 0.3s;
}

.table tbody tr:hover {
    background: linear-gradient(90deg, rgba(18, 58, 111, 0.02), rgba(226, 28, 42, 0.02));
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(18, 58, 111, 0.08);
}

/* تحسين البادجات */
.badge {
    padding: 8px 14px;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 30px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.badge.bg-primary-soft {
    background: linear-gradient(135deg, rgba(18, 58, 111, 0.1), rgba(18, 58, 111, 0.15));
    color: var(--primary-blue);
    border: 1px solid rgba(18, 58, 111, 0.2);
}

.badge.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: var(--dark);
}

/* تحسين بطاقات الدول */
.country-card {
    background: white;
    border-radius: 18px;
    padding: 20px;
    transition: all 0.4s;
    border: 1px solid rgba(18, 58, 111, 0.05);
    position: relative;
    overflow: hidden;
}

.country-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
    transform: translateX(-100%);
    transition: transform 0.4s;
}

.country-card:hover::before {
    transform: translateX(0);
}

.country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(18, 58, 111, 0.15);
    border-color: transparent;
}

/* تحسين الأونلاين بادج */
.online-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(0, 201, 167, 0.1), rgba(0, 201, 167, 0.15));
    color: #00b894;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 201, 167, 0.2);
    backdrop-filter: blur(10px);
}

.online-badge i {
    font-size: 0.6rem;
    color: #00b894;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* تحسين الميني ستاتس */
.mini-stats {
    background: linear-gradient(135deg, rgba(18, 58, 111, 0.02), rgba(226, 28, 42, 0.02));
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(18, 58, 111, 0.05);
}

.mini-stat-item {
    background: white;
    border-radius: 16px;
    padding: 15px 20px;
    box-shadow: 0 5px 15px rgba(18, 58, 111, 0.05);
    transition: all 0.3s;
    border: 1px solid rgba(18, 58, 111, 0.05);
}

.mini-stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(18, 58, 111, 0.1);
    border-color: transparent;
}

.mini-stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.mini-stat-icon.primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: white;
    box-shadow: 0 8px 16px rgba(18, 58, 111, 0.2);
}

.mini-stat-icon.red {
    background: linear-gradient(135deg, var(--primary-red), #ff4d4d);
    color: white;
    box-shadow: 0 8px 16px rgba(226, 28, 42, 0.2);
}

/* تحسين الشارت */
.chart-card {
    background: white;
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(18, 58, 111, 0.08);
    transition: all 0.4s;
    border: 1px solid rgba(18, 58, 111, 0.05);
    position: relative;
    overflow: hidden;
}

.chart-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(18, 58, 111, 0.02) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.chart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(18, 58, 111, 0.15);
}

/* تحسين الأزرار */
.btn {
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 14px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    border: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary-soft {
    background: linear-gradient(135deg, rgba(18, 58, 111, 0.1), rgba(18, 58, 111, 0.15));
    color: var(--primary-blue);
    border: 1px solid rgba(18, 58, 111, 0.2);
}

.btn-primary-soft:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(18, 58, 111, 0.3);
}

/* تحسين شريط التقدم */
.country-progress {
    height: 6px;
    background: rgba(18, 58, 111, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0;
}

.country-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.country-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* تحسين التجاوب للشاشات الصغيرة */
@media (max-width: 768px) {
    .visitor-stats-card {
        padding: 20px 15px;
    }
    
    .visitor-stats-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .visitor-stats-value {
        font-size: 1.8rem;
    }
    
    .card-header {
        padding: 18px 20px;
    }
    
    .mini-stats {
        padding: 15px;
    }
    
    .mini-stat-item {
        padding: 12px 15px;
    }
}

/* تأثيرات الظهور */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.visitor-stats-card {
    animation: fadeInUp 0.6s ease forwards;
}

.visitor-stats-card:nth-child(1) { animation-delay: 0.1s; }
.visitor-stats-card:nth-child(2) { animation-delay: 0.2s; }
.visitor-stats-card:nth-child(3) { animation-delay: 0.3s; }
.visitor-stats-card:nth-child(4) { animation-delay: 0.4s; }

/* تأثير hover للروابط */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-blue));
    transform: translateX(-100%);
    transition: transform 0.3s;
}

.nav-link:hover::after {
    transform: translateX(0);
}

/* تحسين السكرول بار */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(18, 58, 111, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-blue-light), #ff4d4d);
}
.state-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.state-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(18,58,111,0.15);
}
.state-card h4 {
    color: var(--primary-blue);
    margin-bottom: 8px;
}