/* ===== CSS RESET & VARIABLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

:root {
    /* ===== بيعلي Brand Colors - Modern Pink/Purple Gradient Theme ===== */
    --bg-dark: #0d0812;
    --bg-darker: #080510;
    --card-bg: rgba(22, 10, 38, 0.85);
    --card-border: rgba(232, 30, 140, 0.18);

    /* Primary: Vibrant Magenta/Pink */
    --primary: #e91e8c;
    --primary-dark: #b8156e;
    --primary-light: #f05caf;
    --primary-hover: #d01880;
    --primary-glow: rgba(233, 30, 140, 0.4);

    /* Accent: Rich Purple */
    --accent: #8b2fc9;
    --accent-light: #a855f7;
    --accent-glow: rgba(139, 47, 201, 0.4);

    /* Secondary Accent: Orange/Gold for highlights */
    --highlight: #ff6b35;
    --highlight-glow: rgba(255, 107, 53, 0.35);

    --text-main: #faf5ff;
    --text-muted: #b8a8cc;
    --text-dim: #7c6a9a;

    --success: #10b981;
    --error: #f43f5e;
    --info: #6366f1;

    /* Social Colors */
    --instagram: #e1306c;
    --tiktok: #00f2fe;
    --telegram: #0088cc;

    /* Typography */
    --font-family: 'Cairo', sans-serif;

    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.8);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.7), 0 2px 4px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 60px rgba(233, 30, 140, 0.06);
    --glass-blur: blur(20px);

    /* Brand Gradient */
    --brand-gradient: linear-gradient(135deg, #e91e8c 0%, #8b2fc9 50%, #4f46e5 100%);
    --brand-gradient-soft: linear-gradient(135deg, rgba(233,30,140,0.12) 0%, rgba(139,47,201,0.08) 100%);

    /* Transitions */
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-darker);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(233, 30, 140, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 47, 201, 0.05), transparent 25%);
}

/* ===== BACKGROUND EFFECTS ===== */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.55;
}

.orb-1 {
    top: -20%;
    right: -5%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(233, 30, 140, 0.2) 0%, rgba(139, 47, 201, 0.08) 50%, transparent 70%);
    animation: orbFloat1 14s ease-in-out infinite;
}

.orb-2 {
    bottom: -20%;
    left: -5%;
    width: 65vw;
    height: 65vw;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.16) 0%, rgba(139, 47, 201, 0.06) 50%, transparent 70%);
    animation: orbFloat2 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translateY(0px) scale(1) rotate(0deg); }
    50% { transform: translateY(-40px) scale(1.06) rotate(3deg); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translateY(0px) scale(1) rotate(0deg); }
    50% { transform: translateY(30px) scale(0.95) rotate(-3deg); }
}

/* ===== TYPOGRAPHY & UTILITIES ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-sm {
    max-width: 800px;
}

.section {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.6rem;
    margin-bottom: 14px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.section-title span {
    background: linear-gradient(135deg, #e91e8c 0%, #8b2fc9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 580px;
    margin: 0 auto;
}

.hidden {
    display: none !important;
}

/* ===== GLASSMORPHISM ===== */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.04) 0%, rgba(139, 47, 201, 0.02) 60%, transparent 80%);
    pointer-events: none;
}

/* ===== BUTTONS ===== */

.btn-pill {
    border-radius: 50px !important;
    padding: 14px 34px !important;
    letter-spacing: 0.5px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 14px;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.btn:hover::before {
    left: 200%;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::after {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #b8156e 0%, #e91e8c 50%, #8b2fc9 100%);
    background-size: 200% 200%;
    color: white;
    box-shadow: 0 4px 20px rgba(233,30,140,0.4), 0 0 0 0 rgba(233,30,140,0);
    animation: btnPulse 3s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(233,30,140,0.4); }
    50% { box-shadow: 0 4px 28px rgba(233,30,140,0.6), 0 0 40px rgba(139,47,201,0.2); }
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(233,30,140,0.55), 0 0 20px rgba(139,47,201,0.3);
    animation: none;
}

.btn-primary-sm {
    background: linear-gradient(135deg, #b8156e 0%, #e91e8c 60%, #8b2fc9 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(233,30,140,0.3);
}

.btn-primary-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233,30,140,0.45);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--card-border);
}

.btn-outline:hover {
    background-color: rgba(233, 30, 140, 0.07);
    border-color: rgba(233, 30, 140, 0.4);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

/* WhatsApp button */
.btn-whatsapp {
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    padding: 12px 24px;
    z-index: 100;
    transition: var(--transition);
    border-radius: 30px;
    background: rgba(12, 8, 25, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header.scrolled {
    top: 10px;
    background: rgba(12, 8, 25, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 10px 24px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.logo span {
    background: linear-gradient(135deg, #e91e8c 0%, #8b2fc9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(233, 30, 140, 0.25);
    box-shadow: 0 0 16px rgba(233, 30, 140, 0.2), 0 0 4px rgba(139, 47, 201, 0.2);
    transition: var(--transition);
}

.logo-img:hover {
    box-shadow: 0 0 24px rgba(233, 30, 140, 0.4), 0 0 8px rgba(139, 47, 201, 0.3);
    transform: scale(1.04);
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #e91e8c, #8b2fc9);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
    right: auto;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}


/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 60px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(233, 30, 140, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    gap: 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 24px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -2px;
}

.hero-title span {
    background: linear-gradient(to right, #f43f5e, #8b5cf6, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    width: 100%;
}

.hero-illustration {
    width: 100%;
}
/* ===== BENTO STATS WIDGET - NEW DESIGN ===== */
.bento-stats-widget {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    animation: bentoFloat 8s ease-in-out infinite;
}

@keyframes bentoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.bento-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    background: rgba(255,255,255,0.04);
    padding: 11px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.bento-live-pulse-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.bento-live-pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f43f5e;
    box-shadow: 0 0 10px #f43f5e;
    animation: livePulseBento 1.5s ease-in-out infinite;
}

@keyframes livePulseBento {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.4; }
}

.bento-badge-live {
    background: rgba(244,63,94,0.15);
    color: #f43f5e;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    border: 1px solid rgba(244,63,94,0.3);
    letter-spacing: 1px;
}

/* ===== شبكة البطاقات الجديدة ===== */
.bento-grid-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
}

/* البطاقة الأساسية */
.bento-card {
    background: rgba(18, 12, 30, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    padding: 20px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    overflow: hidden;
    position: relative;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.bento-card .bento-icon-glow {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bento-card:hover .bento-icon-glow {
    transform: scale(1.12) rotate(8deg);
}

/* البطاقة الكبيرة - تمتد على عمودين */
.bento-card-main {
    grid-column: 1 / -1;
}

/* رأس البطاقة */
.bento-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.bento-platform-tag {
    font-size: 0.72rem;
    font-weight: 800;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* محتوى البطاقة */
.bento-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bento-big-num {
    font-size: 2.6rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -1.5px;
}

.bento-big-num-small {
    font-size: 1.85rem;
    letter-spacing: -0.5px;
}

.bento-unit {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}

.bento-sub-desc {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    font-weight: 500;
    margin-top: 4px;
}

/* شريط التقدم */
.bento-card-bar {
    height: 5px;
    background: rgba(255,255,255,0.07);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 16px;
}

.bento-bar-fill {
    height: 100%;
    border-radius: 10px;
    animation: bentoBarGrow 1.4s cubic-bezier(0.4,0,0.2,1) 0.5s both;
}

@keyframes bentoBarGrow {
    from { width: 0 !important; }
}

/* ألوان الخلفيات */
.instagram-box {
    background: linear-gradient(135deg, rgba(225,48,108,0.1) 0%, rgba(139,47,201,0.06) 100%);
    border-color: rgba(225,48,108,0.2);
}

.tiktok-box {
    background: linear-gradient(135deg, rgba(37,244,238,0.08) 0%, rgba(254,44,85,0.06) 100%);
    border-color: rgba(37,244,238,0.12);
}

.shield-box {
    background: linear-gradient(135deg, rgba(16,185,129,0.08) 0%, rgba(59,130,246,0.06) 100%);
    border-color: rgba(16,185,129,0.15);
}

/* الأيقونات */
.bento-icon-glow {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}

.instagram-icon-shadow {
    background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);
    box-shadow: 0 6px 18px rgba(220,39,67,0.4);
}

.tiktok-icon-shadow {
    background: linear-gradient(135deg,#25f4ee,#fe2c55);
    box-shadow: 0 6px 18px rgba(254,44,85,0.3);
}

.shield-icon-shadow {
    background: linear-gradient(135deg,#10b981,#3b82f6);
    box-shadow: 0 6px 18px rgba(16,185,129,0.3);
}

/* موبايل */
@media (max-width: 768px) {
    .bento-stats-widget { max-width: 100%; }
    .bento-grid-new { gap: 10px; }
    .bento-big-num { font-size: 2.1rem; }
    .bento-big-num-small { font-size: 1.6rem; }
    .bento-card { padding: 16px; border-radius: 18px; }
}

@media (max-width: 480px) {
    .bento-grid-new {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .bento-card-main {
        grid-column: 1 / -1;
    }
    .bento-big-num { font-size: 1.8rem; letter-spacing: -0.5px; }
    .bento-big-num-small { font-size: 1.4rem; letter-spacing: -0.3px; }
    .bento-card { padding: 14px; border-radius: 16px; }
    .bento-icon-glow { width: 38px; height: 38px; font-size: 1.1rem; }
}

@keyframes progress {
    0% { stroke-dasharray: 0 100; }
}

/* Responsive */
@media (max-width: 768px) {
    .bento-stats-widget {
        max-width: 100%;
        animation: bentoFloatMobile 6s ease-in-out infinite;
        transform: none !important;
    }
    
    @keyframes bentoFloatMobile {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-8px); }
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-main {
        grid-column: 1 / 2;
        min-height: 160px;
    }
    
    .bento-stack {
        grid-column: 1 / 2;
        flex-direction: row;
    }
    
    .bento-progress-circle-wrap {
        left: auto;
        right: 10px;
        bottom: 10px;
        width: 100px;
        height: 100px;
        opacity: 0.1;
    }
}

/* ===== KD1S STYLE ORDER PAGE REDESIGN ===== */

.orders-page-header {
    background: var(--bg-dark);
    padding: 20px 0;
    margin-top: 80px; /* Offset for fixed header */
}

.orders-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    background: var(--card-bg);
    padding: 10px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
}

.order-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    min-width: 100px;
    border-radius: 15px;
    color: var(--text-muted);
    transition: var(--transition);
    text-align: center;
}

.order-tab i {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.order-tab span {
    font-weight: 700;
    font-size: 0.9rem;
}

.order-tab:hover {
    background: rgba(233, 30, 140, 0.08);
    color: var(--primary-light);
}

.order-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 20px var(--primary-glow);
}

.orders-main {
    padding: 40px 0;
}

.order-header-simple {
    padding-bottom: 20px;
    border-bottom: 3.5px solid #f59e0b; /* Amber/Yellow KD1S color */
    display: inline-block;
    margin-bottom: 30px;
}

.order-header-simple h2 {
    font-size: 1.6rem;
    font-weight: 900;
}

.form-group-custom {
    margin-bottom: 25px;
}

.label-kd1s {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-main);
    font-size: 1rem;
}

.input-kd1s {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    color: var(--text-main);
    font-family: var(--font-family);
    transition: var(--transition);
}

.input-kd1s:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.field-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 600;
}

.info-bubble-kd1s {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 15px;
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    font-weight: 600;
}

.cost-bubble-kd1s {
    background: rgba(233, 30, 140, 0.05);
    padding: 15px 20px;
    border-radius: 15px;
    border: 1px dashed var(--primary);
    color: var(--primary-light);
    font-weight: 800;
    font-size: 1.2rem;
    text-align: center;
}

.info-icon-kd1s {
    margin-right: 5px;
    color: var(--primary);
    cursor: help;
}

.btn-kd1s-primary {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 15px;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 10px 25px var(--primary-glow);
    transition: var(--transition);
}

.btn-kd1s-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px var(--primary-glow);
}

/* Custom Dropdown Adjustments */
.custom-cat-dropdown {
    position: relative;
    width: 100%;
}

.custom-cat-selected {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: #ffffff; /* KD1S white theme */
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151; /* Dark text for light bg */
    font-weight: 600;
}

.custom-cat-selected.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.custom-cat-selected:hover:not(.disabled) {
    border-color: var(--primary);
}

.custom-cat-dropdown.open .custom-cat-selected {
    border-color: #f59e0b; /* Amber border when open */
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.custom-cat-list {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.custom-cat-dropdown.open .custom-cat-list {
    display: block;
}

.custom-cat-item {
    display: flex;
    flex-direction: column; /* Stack name and meta for better mobile/long name support */
    align-items: flex-start;
    gap: 8px;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.2s;
    color: #4b5563;
    font-weight: 600;
    border-bottom: 1px solid #f9fafb;
}

.custom-cat-item:last-child {
    border-bottom: none;
}

.service-item-main {
    width: 100%;
}

.service-name {
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
}

.service-item-meta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.service-price-tag {
    font-size: 0.82rem;
    color: #10b981; /* Success green for price */
    background: rgba(16, 185, 129, 0.08);
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 800;
}

.custom-cat-item:hover {
    background: #f9fafb;
}

.custom-cat-item.active {
    background: #f3f4f6;
    color: #1f2937;
}

.service-id-badge {
    background: #4b5563;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.custom-cat-placeholder {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===========================
   MOBILE HAMBURGER + DRAWER
   =========================== */

/* Hamburger button - hidden on desktop, visible on mobile */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.hamburger-btn:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
}

.hamburger-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: #c084fc;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Drawer overlay */
.mobile-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.mobile-drawer-overlay.show {
    opacity: 1;
}

/* The drawer itself */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: rgba(10, 8, 28, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid rgba(139, 47, 201, 0.2);
    z-index: 999;
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-drawer.open {
    right: 0;
}

/* Drawer Header */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 18px 16px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06) 0%, transparent 100%);
}

.drawer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 900;
    color: #f8fafc;
}

.drawer-close-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    color: #f87171;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.25s ease;
}

.drawer-close-btn:hover {
    background: rgba(239, 68, 68, 0.22);
}

/* Auth section */
.drawer-auth-section {
    padding: 16px 18px;
}

/* Login button when NOT logged in */
.drawer-login-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 13px 16px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border-radius: 14px;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.drawer-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.45);
}

/* User info card when logged in */
.drawer-user-card {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 47, 201, 0.2);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drawer-user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
}

.drawer-user-row .icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.drawer-user-row.balance-row .icon-wrap {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.drawer-user-row.username-row .icon-wrap {
    background: rgba(139, 92, 246, 0.15);
    color: #a855f7;
}

.drawer-user-row.balance-row span b {
    color: #10b981;
}

.drawer-logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    color: #f87171;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 4px;
    transition: all 0.25s ease;
}

.drawer-logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}

/* Divider */
.drawer-divider {
    height: 1px;
    background: rgba(139, 92, 246, 0.1);
    margin: 0;
}

/* Nav Links */
.drawer-nav {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.drawer-nav-link i {
    width: 20px;
    text-align: center;
    color: #8b5cf6;
    font-size: 1rem;
}

.drawer-nav-link:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #f8fafc;
    transform: translateX(-4px);
}

/* Collapsible sections */
.drawer-section {
    border-bottom: none;
}

.drawer-section-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 18px;
    background: none;
    border: none;
    color: #cbd5e1;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: right;
}

.drawer-section-toggle span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-section-toggle span i {
    color: #8b5cf6;
    font-size: 1rem;
}

.drawer-section-toggle:hover {
    color: #f8fafc;
    background: rgba(139, 92, 246, 0.07);
}

.drawer-chevron {
    font-size: 0.8rem;
    color: #64748b;
    transition: transform 0.3s ease;
}

.drawer-section-toggle.active .drawer-chevron {
    transform: rotate(180deg);
}

.drawer-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.drawer-section-content.open {
    max-height: 600px;
}

.drawer-about-content {
    padding: 4px 18px 16px;
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-about-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.drawer-about-content ul li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-about-content ul li i {
    color: #10b981;
    font-size: 0.75rem;
}

.drawer-about-content strong {
    color: #c084fc;
}

/* Drawer footer */
.drawer-footer {
    margin-top: auto;
    padding: 16px 18px;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    text-align: center;
    font-size: 0.8rem;
    color: #475569;
}

/* ===========================
   RESPONSIVE: show hamburger only on mobile
   =========================== */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    /* Hide the regular nav on mobile (drawer replaces it) */
    .header-container .nav {
        display: none;
    }

    /* Show drawer overlay on mobile when active */
    .mobile-drawer-overlay.show {
        display: block;
    }
}

/* On desktop, always hide drawer-related elements */
@media (min-width: 769px) {
    .hamburger-btn {
        display: none !important;
    }

    .mobile-drawer-overlay,
    .mobile-drawer {
        display: none !important;
    }
}

/* Custom Header Logo & Close */
.drawer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 800;
}
.drawer-logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d4aa, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.drawer-close-btn {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 6px !important;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}
.drawer-close-btn:hover {
    background: #cbd5e1 !important;
}

/* Neon Drawer Buttons */
.neon-drawer-btn {
    position: relative;
    overflow: hidden;
    background: rgba(139, 92, 246, 0.1) !important;
    border: 1px solid rgba(139, 92, 246, 0.4) !important;
    color: #e2e8f0 !important;
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 12px 15px !important;
    box-shadow: 0 0 10px rgba(139, 47, 201, 0.2), inset 0 0 5px rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
}

.neon-drawer-btn:hover, .neon-drawer-btn.active {
    background: rgba(139, 47, 201, 0.2) !important;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4), inset 0 0 10px rgba(139, 47, 201, 0.2);
    border-color: rgba(139, 92, 246, 0.8) !important;
    text-shadow: 0 0 5px #fff;
}

.neon-drawer-btn.updates-btn {
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2), inset 0 0 5px rgba(16, 185, 129, 0.1);
}
.neon-drawer-btn.updates-btn:hover, .neon-drawer-btn.updates-btn.active {
    background: rgba(16, 185, 129, 0.2) !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4), inset 0 0 10px rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.8) !important;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #8b5cf6;
    border-radius: 10px;
}

/* ===== TESTIMONIALS AUTO-SCROLL CAROUSEL ===== */
.testi-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    direction: ltr; /* Force LTR for predictable marquee animation */
    /* Fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.testi-slider-viewport {
    overflow: hidden;
    width: 100%;
}

.testi-slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    /* total = 11 cards × (290px + 20px gap) = 3410px */
    width: max-content;
    animation: testiScroll 48s linear infinite;
    transform: translateZ(0);
    will-change: transform;
}

.testi-slider-wrapper:hover .testi-slider-track {
    animation-play-state: paused;
}

@keyframes testiScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.testi-slide {
    direction: rtl; /* Restore RTL text */
    flex: 0 0 290px;
    width: 290px;
    min-width: 290px;
    max-width: 290px;
    padding: 28px 22px;
    border-color: rgba(168,85,247,0.18);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color 0.3s, transform 0.3s;
    cursor: default;
    /* Override glass-card overflow:hidden so nothing gets clipped */
    overflow: visible;
    transform: translateZ(0);
}

.testi-slide:hover {
    border-color: rgba(168,85,247,0.45);
    transform: translateZ(0) translateY(-6px);
}

.testi-stars {
    display: flex;
    gap: 4px;
    color: #f59e0b;
    font-size: 0.9rem;
}

.testi-text {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.7;
    flex: 1;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.testi-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
    flex-shrink: 0;
}

.testi-name {
    font-weight: 800;
    font-size: 0.9rem;
}

.testi-platform {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Mobile: narrower cards but same marquee behaviour */
@media (max-width: 600px) {
    .testi-slide {
        flex: 0 0 250px;
        width: 250px;
        min-width: 250px;
        max-width: 250px;
    }
    .testi-slider-track {
        gap: 14px;
    }
}



/* ===== STATS SECTION - NEW DESIGN ===== */

/* البطاقة الرئيسية الكبيرة */
.stats-hero-card {
    position: relative;
    background: rgba(16, 10, 32, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(233, 30, 140, 0.2);
    border-radius: 30px;
    padding: 44px 48px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 80px rgba(233,30,140,0.06);
}

.stats-hero-bg-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 10% 50%, rgba(233,30,140,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 70% at 90% 50%, rgba(139,47,201,0.07) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.stats-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0;
}

.stats-divider {
    width: 1px;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(233,30,140,0.3), transparent);
    margin: 0 48px;
}

.stat-hero-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 6px;
}

.stat-hero-num {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.stat-hero-num .counter-value {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -2px;
}

.stat-suffix {
    font-size: 1.6rem;
    font-weight: 900;
    color: rgba(255,255,255,0.6);
}

.stat-hero-label {
    font-size: 1rem;
    color: rgba(255,255,255,0.55);
    font-weight: 600;
    margin-top: -4px;
}

.stat-hero-bar {
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
    width: 100%;
    max-width: 260px;
}

.stat-hero-fill {
    height: 100%;
    border-radius: 10px;
    animation: statBarGrow 1.5s cubic-bezier(0.4,0,0.2,1) 0.5s both;
}

@keyframes statBarGrow {
    from { width: 0 !important; }
}

/* الشبكة الصغيرة */
.stats-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stats-mini-card {
    position: relative;
    background: rgba(16, 10, 32, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 26px;
    padding: 32px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.stats-mini-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 80% at 50% 0%, var(--accent-glow, rgba(233,30,140,0.12)) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stats-mini-card:hover::before { opacity: 1; }

.stats-mini-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-color, rgba(233,30,140,0.4));
    box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 30px var(--accent-glow, rgba(233,30,140,0.15));
}

.stats-mini-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stats-mini-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.stats-mini-badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid;
    letter-spacing: 0.3px;
}

.stats-mini-num {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-bottom: 6px;
}

.stats-mini-num .counter-value {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -1.5px;
}

.stats-mini-num .stat-suffix {
    font-size: 1.4rem;
    color: var(--accent-color, rgba(255,255,255,0.6));
}

.stats-mini-label {
    position: relative;
    z-index: 1;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    margin-bottom: 18px;
}

/* شريط التقدم */
.stats-mini-progress {
    position: relative;
    z-index: 1;
    height: 5px;
    background: rgba(255,255,255,0.07);
    border-radius: 10px;
    overflow: hidden;
}

.stats-mini-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--accent-color), rgba(255,255,255,0.4));
    animation: statBarGrow 1.5s cubic-bezier(0.4,0,0.2,1) 0.7s both;
}

/* نجوم التقييم */
.stats-mini-stars {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 6px;
    color: #f59e0b;
    font-size: 1.1rem;
    animation: starsGlow 2s ease-in-out infinite alternate;
}

@keyframes starsGlow {
    from { filter: drop-shadow(0 0 4px rgba(245,158,11,0.4)); }
    to   { filter: drop-shadow(0 0 10px rgba(245,158,11,0.8)); }
}

/* ===== موبايل للإحصائيات الجديدة ===== */
@media (max-width: 768px) {
    .stats-hero-card {
        padding: 28px 24px;
    }

    .stats-hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .stats-divider {
        width: 80%;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(233,30,140,0.3), transparent);
        margin: 0 auto;
    }

    .stat-hero-num .counter-value {
        font-size: 2.8rem;
    }

    .stat-hero-bar {
        max-width: 100%;
    }

    .stats-mini-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stats-mini-card {
        padding: 24px 22px;
    }

    .stats-mini-num .counter-value {
        font-size: 2.4rem;
    }
}

@media (max-width: 480px) {
    .stats-hero-card {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .stat-hero-icon {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }

    .stat-hero-num .counter-value {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .stats-mini-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stats-mini-card {
        padding: 18px 14px;
        border-radius: 18px;
    }

    .stats-mini-num .counter-value {
        font-size: 1.8rem;
    }

    .stats-mini-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}

/* ===== BENTO GRID SERVICES ===== */

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: masonry;
    }
    .services-grid > .service-card:nth-child(1) {
        grid-column: span 2;
        background: linear-gradient(135deg, rgba(233, 30, 140, 0.1) 0%, rgba(139, 47, 201, 0.05) 100%);
    }
}

.service-card {
    padding: 32px;
    border-radius: 30px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 8, 25, 0.7);
    backdrop-filter: blur(20px);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(233, 30, 140, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ===== INFINITE TESTIMONIALS MARQUEE ===== */
.testi-slider-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.testi-slider-wrapper::before,
.testi-slider-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.testi-slider-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-darker), transparent);
}

.testi-slider-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-darker), transparent);
}

.testi-slider-track {
    display: inline-flex;
    gap: 24px;
    animation: scrollMarquee 40s linear infinite;
    padding-left: 24px;
    width: max-content;
}

.testi-slider-track:hover {
    animation-play-state: paused;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 12px)); }
}

.testi-slide {
    width: 350px !important;
    white-space: normal;
    flex-shrink: 0;
    margin: 0;
}

/* ============================================================
   📱 MOBILE RESPONSIVE - شامل لجميع أحجام الهواتف
   ============================================================ */

/* ---- الهواتف الصغيرة (أقل من 480px) ---- */
@media (max-width: 480px) {

    /* الهيدر */
    .header {
        top: 10px;
        width: 96%;
        padding: 10px 16px;
        border-radius: 20px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-img {
        height: 32px;
    }

    /* قسم الهيرو */
    .hero {
        padding-top: 110px;
        padding-bottom: 40px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem !important;
        letter-spacing: -0.5px !important;
        line-height: 1.25 !important;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 28px;
        padding: 0 4px;
    }

    .badge {
        font-size: 0.75rem !important;
        padding: 6px 14px !important;
        margin-bottom: 16px !important;
    }

    /* أزرار الهيرو */
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100% !important;
        font-size: 0.95rem !important;
        padding: 13px 20px !important;
        justify-content: center;
    }

    .btn-pill {
        border-radius: 40px !important;
        padding: 13px 20px !important;
    }

    /* بينتو ويدجيت */
    .bento-stats-widget {
        max-width: 100%;
    }

    .bento-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .bento-main {
        min-height: 140px !important;
    }

    .bento-stack {
        flex-direction: row !important;
        gap: 12px;
    }

    .bento-big-num {
        font-size: 1.8rem;
    }

    /* أقسام الصفحة */
    .section {
        padding: 55px 0;
    }

    .section-title {
        font-size: 1.7rem !important;
        margin-bottom: 10px;
    }

    .section-desc {
        font-size: 0.9rem !important;
    }

    .section-header {
        margin-bottom: 36px;
    }

    /* كاردات الخدمات */
    .service-card {
        padding: 22px 18px !important;
        border-radius: 20px !important;
    }

    .service-title {
        font-size: 1rem;
    }

    .service-icon-wrapper {
        width: 52px !important;
        height: 52px !important;
        font-size: 1.3rem !important;
    }

    /* كاردات الإحصائيات */
    .counters-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 14px !important;
    }

    .counter-card {
        padding: 20px 14px !important;
        border-radius: 18px !important;
    }

    .counter-value {
        font-size: 1.6rem !important;
    }

    .counter-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.1rem !important;
    }

    /* الشهادات */
    .testi-slide {
        width: 240px !important;
    }

    /* الفوتر */
    .footer-content {
        flex-direction: column !important;
        gap: 20px !important;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px !important;
    }

    /* container padding */
    .container {
        padding: 0 16px;
    }
}

/* ---- الهواتف المتوسطة (480px - 768px) ---- */
@media (min-width: 481px) and (max-width: 768px) {

    .header {
        top: 12px;
        width: 95%;
        padding: 11px 20px;
        border-radius: 24px;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 50px;
    }

    .hero-title {
        font-size: 2.6rem !important;
        letter-spacing: -1px !important;
        line-height: 1.2 !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100% !important;
        max-width: 380px;
        justify-content: center;
    }

    .section-title {
        font-size: 1.9rem !important;
    }

    .counters-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }

    .bento-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .container {
        padding: 0 20px;
    }
}

/* ---- إصلاحات عامة لجميع الهواتف (أقل من 768px) ---- */
@media (max-width: 768px) {

    /* منع التمرير الأفقي */
    body, html {
        overflow-x: hidden;
        width: 100%;
    }

    /* الهيدر المتجاوب */
    .header {
        border-radius: 22px;
    }

    /* إخفاء نافبار الديسكتوب */
    .nav {
        display: none !important;
    }

    .hamburger-btn {
        display: flex !important;
    }

    /* الدروار - تأكد يظهر */
    .mobile-drawer-overlay.show {
        display: block !important;
    }

    .mobile-drawer {
        display: flex !important;
    }

    /* مساحة العنوان الرئيسي */
    .hero-container {
        padding: 0 4px;
        text-align: center;
    }

    .hero-content {
        width: 100%;
        align-items: center;
    }

    /* الأزرار */
    .btn-pill {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* بينتو */
    .bento-stats-widget {
        margin: 0 auto;
    }

    /* كاردات الخدمات - عمود واحد */
    .services-grid {
        grid-template-columns: 1fr !important;
    }

    .services-grid > .service-card:nth-child(1) {
        grid-column: span 1 !important;
    }

    /* الكاردات العامة */
    .glass-card {
        border-radius: 20px;
    }

    /* الإحصائيات */
    .stats-section .container {
        padding: 0 16px;
    }

    /* قسم الخدمات العراقية */
    #iraqi-services .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    /* نص الهيرو - توسيط */
    .hero-title, .hero-subtitle, .badge {
        text-align: center;
    }

    /* الشهادات على الموبايل */
    .testi-slider-wrapper::before,
    .testi-slider-wrapper::after {
        width: 60px;
    }
}

/* ---- أجهزة اللوح (768px - 1024px) ---- */
@media (min-width: 769px) and (max-width: 1024px) {

    .hero-title {
        font-size: 3.2rem !important;
    }

    .section-title {
        font-size: 2.1rem !important;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .services-grid > .service-card:nth-child(1) {
        grid-column: span 1 !important;
    }

    .counters-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .container {
        padding: 0 28px;
    }
}

/* ---- تحسينات اللمس ---- */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }

    .service-card:hover {
        transform: none;
    }

    .bento-box:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.97);
        opacity: 0.9;
    }

    .service-card:active {
        transform: scale(0.99);
    }
}

/* ==========================================================================
   WIN GAME SECTION - لعبة فوز
   ========================================================================== */
.win-game-section {
    position: relative;
    padding: 60px 0;
}
.win-game-card {
    position: relative;
    max-width: 650px;
    margin: 0 auto;
    padding: 40px 24px;
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(245, 158, 11, 0.2);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), inset 0 0 30px rgba(245, 158, 11, 0.05);
    border-radius: 24px;
    overflow: hidden;
    text-align: center;
}
.win-game-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.slot-machine-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}
.slot-reels {
    display: flex;
    gap: 15px;
    justify-content: center;
    background: rgba(15, 23, 42, 0.6);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 15px rgba(0,0,0,0.6);
}
.slot-reel {
    width: 75px;
    height: 80px;
    overflow: hidden;
    background: #090d16;
    border-radius: 14px;
    border: 2px solid rgba(245, 158, 11, 0.3);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.9), 0 0 10px rgba(245, 158, 11, 0.1);
    position: relative;
}
.slot-reel::before, .slot-reel::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 20px;
    z-index: 2;
    pointer-events: none;
}
.slot-reel::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(9,13,22,0.95), transparent);
}
.slot-reel::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(9,13,22,0.95), transparent);
}
.reel-number-strip {
    display: flex;
    flex-direction: column;
    transform: translateY(0);
}
.reel-number {
    height: 80px;
    line-height: 80px;
    font-size: 2.8rem;
    font-weight: 800;
    color: #f8fafc;
    text-shadow: 0 0 10px rgba(255,255,255,0.5), 0 0 20px rgba(245,158,11,0.5);
    font-family: 'Cairo', sans-serif;
    user-select: none;
}
.btn-win-play {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.45);
    border: none;
    color: #fff;
    font-weight: 800;
    padding: 14px 36px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
}
.btn-win-play:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.65);
}
.btn-win-play:active {
    transform: translateY(-1px) scale(1.01);
}
.game-cooldown-box {
    background: rgba(245, 158, 11, 0.05);
    border: 1px dashed rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    padding: 20px;
    max-width: 380px;
    width: 100%;
}
.cooldown-icon {
    font-size: 2rem;
    color: #f59e0b;
    margin-bottom: 8px;
}
.cooldown-text {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 12px;
}
.cooldown-timer {
    font-size: 1.6rem;
    font-weight: 800;
    color: #f59e0b;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}
.game-guest-box {
    background: rgba(239, 68, 68, 0.05);
    border: 1px dashed rgba(239, 68, 68, 0.25);
    border-radius: 16px;
    padding: 20px;
    max-width: 380px;
    width: 100%;
}
.win-prizes-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 25px;
    width: 100%;
}
.prize-item {
    font-size: 0.78rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.03);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}
.prize-badge {
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.72rem;
}
.prize-badge.gold {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.3);
}
.prize-badge.silver {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.3);
}
.prize-badge.bronze {
    background: rgba(249, 115, 22, 0.15);
    color: #fdba74;
    border: 1px solid rgba(249, 115, 22, 0.3);
}
.prize-badge.small {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}
/* Winning celebration effects */
@keyframes win-glow {
    0%, 100% { border-color: rgba(245, 158, 11, 0.3); box-shadow: 0 0 10px rgba(245, 158, 11, 0.1); }
    50% { border-color: rgba(16, 185, 129, 1); box-shadow: 0 0 30px rgba(16, 185, 129, 0.6); }
}
.winning-flash .slot-reel {
    animation: win-glow 0.8s ease infinite;
}
@media (max-width: 500px) {
    .slot-reel {
        width: 60px;
        height: 70px;
    }
    .reel-number {
        height: 70px;
        line-height: 70px;
        font-size: 2.2rem;
    }
}


