/* ============================================================
   عرب شات — الصفحة الرئيسية (تصميم موحّد مع صفحات الغرف الفرعية)
   ============================================================ */

:root {
    --primary: #ff3d00;
    --secondary: #2979ff;
    --dark: #0f172a;
    --light: #f8fafc;
    --success: #22c55e;
    --shadow: 0 15px 40px rgba(0,0,0,0.12);
    --glass: rgba(15, 23, 42, 0.95);
    --gold: #d4af37;
    --gold-light: #f3d67a;
    --header-h: 78px;
}

/* القالب الأصلي كان مبني كشاشة دخول ثابتة بارتفاع 100% بدون سكرول.
   التصميم الجديد صفحة طويلة بعدة أقسام، فلازم نلغي أي قيد ارتفاع/سكرول
   موروث من ملفات CSS العامة للنظام حتى تظهر كل الأقسام بشكل صحيح. */
html, body {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}
#login_wrap { height: auto !important; }

#login_wrap * { box-sizing: border-box; }
#login_wrap {
    width: 100%;
    height: auto;
    font-family: 'Tajawal', sans-serif;
    background: #f1f5f9;
    color: var(--dark);
    line-height: 1.7;
    direction: rtl;
}
#login_wrap h1, #login_wrap h2, #login_wrap h3, #login_wrap h4 { font-family: 'Cairo', sans-serif; }

/* ============ الهيدر الفاخر (LUXURY HEADER) ============ */
.luxury-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: var(--header-h);
    background: linear-gradient(180deg, rgba(15,23,42,0.98), rgba(15,23,42,0.94));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(212,175,55,0.25);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    transition: height .3s ease, box-shadow .3s ease;
}
.luxury-header.scrolled { height: 64px; box-shadow: 0 12px 28px rgba(0,0,0,0.3); }

.lux-header-inner {
    max-width: 1300px;
    height: 100%;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* شعار */
.lux-brand { display: flex; align-items: center; flex-shrink: 0; }
.lux-logo-frame {
    display: flex; align-items: center; justify-content: center;
    padding: 8px 16px; border-radius: 14px;
    background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
    border: 1px solid rgba(212,175,55,0.35);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 4px 14px rgba(0,0,0,0.15);
    transition: padding .3s ease, border-color .3s ease;
}
.lux-logo-frame:hover { border-color: var(--gold); }
.lux-logo { height: 36px; width: auto; display: block; }
.luxury-header.scrolled .lux-logo-frame { padding: 6px 14px; }
.luxury-header.scrolled .lux-logo { height: 30px; }

/* قائمة التنقل */
.lux-nav { display: flex; align-items: center; gap: 30px; flex: 1; justify-content: center; }
.lux-nav ul { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.lux-nav ul a {
    display: block; padding: 10px 16px; border-radius: 10px;
    color: #e2e8f0; text-decoration: none; font-weight: 600; font-size: 14px;
    position: relative; transition: color .25s ease, background-color .25s ease;
}
.lux-nav ul a::after {
    content: ''; position: absolute; right: 16px; left: 16px; bottom: 6px; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0); transform-origin: center; transition: transform .3s ease;
}
.lux-nav ul a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.lux-nav ul a:hover::after { transform: scaleX(1); }

/* مبدل اللغة الفاخر */
.lux-header-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.lux-lang-switch {
    display: flex; align-items: center; gap: 9px;
    padding: 6px 16px 6px 8px; border-radius: 50px; cursor: pointer;
    background: linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.02));
    border: 1px solid rgba(212,175,55,0.4);
    box-shadow: inset 0 0 0 1px rgba(212,175,55,0.08);
    position: relative; overflow: hidden;
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.lux-lang-switch::before {
    content: ''; position: absolute; top: 0; bottom: 0; width: 40%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,0.16), transparent);
    transform: translateX(-160%); transition: transform .6s ease;
}
.lux-lang-switch:hover::before { transform: translateX(320%); }
.lux-lang-switch:hover { border-color: var(--gold); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(212,175,55,0.22); }
.lux-lang-flag-ring {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: conic-gradient(from 180deg, var(--gold), var(--gold-light), #a97c1f, var(--gold));
    box-shadow: 0 2px 8px rgba(212,175,55,0.4);
}
.lux-lang-flag { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 2px solid #0f172a; display: block; }
.lux-lang-switch:hover .lux-lang-flag-ring { transform: rotate(20deg); transition: transform .35s ease; }
.lux-lang-code { color: #f8fafc; font-size: 12.5px; font-weight: 800; letter-spacing: .6px; }
.lux-lang-switch i { color: var(--gold-light); font-size: 10px; }

/* زر القائمة للموبايل */
.lux-menu-toggle {
    display: none; flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05); cursor: pointer; flex-shrink: 0;
}
.lux-menu-toggle span { width: 20px; height: 2px; background: #f1f5f9; border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.lux-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lux-menu-toggle.active span:nth-child(2) { opacity: 0; }
.lux-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ الهيدر - نسخة الموبايل ============ */
@media (max-width: 980px) {
    .lux-nav {
        position: fixed; inset: var(--header-h) 0 auto 0; z-index: 999;
        flex-direction: column; align-items: stretch; justify-content: flex-start;
        gap: 0; padding: 18px 6% 26px; max-height: calc(100vh - var(--header-h));
        overflow-y: auto; background: rgba(15,23,42,0.98); backdrop-filter: blur(14px);
        border-bottom: 1px solid rgba(212,175,55,0.25);
        transform: translateY(-10px); opacity: 0; visibility: hidden; pointer-events: none;
        transition: transform .3s ease, opacity .3s ease, visibility .3s;
    }
    .lux-nav.lux-nav-open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
    .lux-nav ul { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
    .lux-nav ul a { padding: 14px 10px; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .lux-nav ul a::after { display: none; }
    .lux-menu-toggle { display: flex; }
    .lux-lang-code { display: none; }
    .lux-lang-switch { padding: 7px; }
}

/* ============ HERO ============ */
#home_hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.90), rgba(30, 41, 59, 0.85)), url('images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 70px 5% 130px;
    text-align: center;
    color: #fff;
    clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
    position: relative;
}
#home_hero .hero-logo { height: 100px; margin-bottom: 18px; filter: drop-shadow(0 0 8px rgba(255,61,0,0.5)); }
#home_hero h1 { font-size: clamp(24px, 4vw, 40px); font-weight: 800; margin-bottom: 14px; line-height: 1.4; text-shadow: 0 4px 10px rgba(0,0,0,0.3); }
#home_hero p.hero-sub { font-size: 15.5px; font-weight: 400; opacity: 0.88; max-width: 700px; margin: 0 auto; line-height: 1.9; }

/* ============ LOGIN HUB ============ */
.hub-wrap { position: relative; }
.hub-deco {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle, rgba(212,175,55,0.16), transparent 72%);
    border: 1px solid rgba(212,175,55,0.32);
    color: var(--gold); font-size: 22px; opacity: 0.9;
    pointer-events: none; z-index: 90;
    animation: hubDecoFloat 4.5s ease-in-out infinite;
}
.hub-deco-right { right: -108px; }
.hub-deco-left { left: -108px; animation-delay: 1.4s; }
@keyframes hubDecoFloat { 0%, 100% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 8px)); } }
@media (max-width: 1240px) { .hub-deco { display: none; } }
#login_hub {
    max-width: 460px;
    margin: -95px auto 60px;
    background: #fff;
    border-radius: 28px;
    padding: 38px 34px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    text-align: center;
    position: relative;
    z-index: 100;
    border: 1px solid rgba(0,0,0,0.05);
}
#login_hub .hub-title { font-size: 20px; font-weight: 800; color: var(--dark); margin-bottom: 14px; }
.online-badge {
    display: inline-flex; align-items: center; gap: 9px;
    background: #f0fdf4; color: var(--success);
    padding: 8px 20px; border-radius: 50px;
    font-weight: 700; font-size: 13.5px; border: 1px solid #dcfce7;
}
.pulse-dot { width: 10px; height: 10px; background: var(--success); border-radius: 50%; animation: hpulse 2s infinite; }
@keyframes hpulse { 0%{transform:scale(.9);opacity:1;} 50%{transform:scale(1.4);opacity:.5;} 100%{transform:scale(.9);opacity:1;} }

.hub-actions { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.hub-btn {
    padding: 16px; border-radius: 16px; border: none; cursor: pointer;
    transition: background-color .3s ease, transform .3s ease, box-shadow .3s ease;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    font-family: 'Tajawal', sans-serif; font-size: 15.5px; font-weight: 700; color: #fff; width: 100%;
}
.hub-btn i { font-size: 19px; }
.hub-btn.guest { background: var(--primary); }
.hub-btn.guest:hover { background: #dd2c00; transform: scale(1.02); box-shadow: 0 12px 25px rgba(255,61,0,.28); }
.hub-btn.member { background: var(--secondary); }
.hub-btn.member:hover { background: #1e40af; transform: scale(1.02); box-shadow: 0 12px 25px rgba(41,121,255,.28); }

.register-link {
    display: block; margin-top: 20px; color: #64748b; font-weight: 600;
    text-decoration: none; font-size: 13.5px; cursor: pointer; transition: color .25s ease;
}
.register-link:hover { color: var(--primary); text-decoration: underline; }

/* ============ STATS BAND ============ */
.stats-band {
    background: linear-gradient(135deg, #0f172a, #1e293b 60%, #0f172a);
    padding: 60px 6%; position: relative; overflow: hidden;
}
.stats-band::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255,61,0,.18), transparent 45%),
                radial-gradient(circle at 80% 70%, rgba(41,121,255,.18), transparent 45%);
    pointer-events: none;
}
.stats-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; position: relative; z-index: 1; }
.stat-item { text-align: center; padding: 10px; }
.stat-icon { width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 18px; }
.stat-number { font-family: 'Cairo', sans-serif; font-size: clamp(24px,3.5vw,34px); font-weight: 800; color: #fff; margin-bottom: 6px; }
.stat-label { color: #94a3b8; font-size: 12.5px; font-weight: 600; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2,1fr); gap: 30px 16px; } }

/* ============ INFO SECTIONS ============ */
.info-section { padding: 60px 6%; max-width: 1200px; margin: 0 auto; }
.info-section.alt { background: #fff; }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 { font-size: clamp(20px,3vw,28px); font-weight: 800; margin-bottom: 10px; }
.section-title p { color: #64748b; font-size: 14px; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 22px; }
.info-card { background: #fff; border-radius: 22px; padding: 28px 24px; text-align: center; border: 1px solid #e2e8f0; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.info-card:hover { transform: translateY(-6px); box-shadow: 0 18px 35px rgba(0,0,0,.07); border-color: var(--primary); }
.info-icon { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--primary), #ff7043); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 21px; margin: 0 auto 16px; }
.info-card h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.info-card p { font-size: 13px; color: #64748b; line-height: 1.7; }

/* ============ ABOUT / SEO TEXT BLOCK ============ */
.about-block { max-width: 900px; margin: 0 auto; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 24px; padding: 36px 34px; }
.about-block h2 { font-size: 21px; font-weight: 800; margin-bottom: 16px; }
.about-block p { color: #475569; font-size: 14px; line-height: 2; margin-bottom: 14px; }
.about-block p:last-child { margin-bottom: 0; }

/* ============ STEPS ============ */
.steps-row { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 22px; }
.step-card { background: #f8fafc; border-radius: 22px; padding: 26px 22px; border: 1px solid #e2e8f0; }
.step-num { width: 34px; height: 34px; background: var(--secondary); color: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; margin-bottom: 14px; }
.step-card h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 6px; }
.step-card p { font-size: 12.5px; color: #64748b; line-height: 1.7; }

/* ============ TOP MEMBERS ============ */
.members-section { padding: 60px 6%; background: #fff; }
.members-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 18px; max-width: 1200px; margin: 0 auto; }
.member-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 20px; padding: 20px 14px; text-align: center; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.member-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,.06); border-color: var(--secondary); }
.member-avatar { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.12); background: #e2e8f0; }
.member-name { font-weight: 700; font-size: 13.5px; color: var(--dark); margin-bottom: 4px; }
.member-badge { font-size: 11px; font-weight: 700; color: var(--primary); }

/* ============ ROOMS GRID ============ */
.rooms-section { padding: 60px 6% 90px; background: #fff; border-top: 1px solid #e2e8f0; }
.luxury-rooms-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; }
.luxury-room-chip { background: #fff; padding: 18px; border-radius: 20px; display: flex; align-items: center; gap: 15px; text-decoration: none; color: inherit; transition: background-color .35s ease, border-color .35s ease, transform .35s ease, box-shadow .35s ease; border: 2px solid transparent; }
.luxury-room-chip:hover { border-color: var(--primary); transform: translateY(-6px); box-shadow: 0 15px 30px rgba(0,0,0,.07); }
.chip-icon { width: 46px; height: 46px; background: #f8fafc; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 19px; flex-shrink: 0; }
.chip-title { font-weight: 700; font-size: 14.5px; color: var(--dark); }
.chip-sub { font-size: 12px; color: var(--success); font-weight: 700; }

/* ============ FAQ ============ */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; padding: 18px 22px; cursor: pointer; transition: background-color .25s ease, border-color .25s ease; }
.faq-item:hover { background: #fff; border-color: var(--primary); }
.faq-q { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; }
.faq-q i { transition: transform .3s ease; color: var(--primary); font-size: 12px; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; font-size: 13px; color: #64748b; line-height: 1.8; }
.faq-item.open .faq-a { max-height: 240px; padding-top: 12px; }

/* ============ FEATURES STRIP (column3) ============ */
#col3_section { padding: 55px 6%; background: #fff; border-top: 1px solid #e2e8f0; }
.col3_container { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 22px; max-width: 1200px; margin: 0 auto; }
.col3_element { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 22px; padding: 30px 24px; text-align: center; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.col3_element:hover { transform: translateY(-6px); box-shadow: 0 18px 35px rgba(0,0,0,.07); border-color: var(--primary); }
.col3_element img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 16px; }
.col3_title { font-weight: 800; font-size: 15.5px; color: var(--dark); margin-bottom: 8px; }
.col3_text p:not(.col3_title) { font-size: 13px; color: #64748b; line-height: 1.7; }

/* ============ REVEAL ANIM ============ */
.reveal { opacity: 1; transform: none; }
.js-ready .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.js-ready .reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .js-ready .reveal { opacity: 1; transform: none; transition: none; } }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    #home_hero { padding: 60px 20px 110px; }
    #login_hub { width: 92%; padding: 30px 22px; margin-top: -80px; }
    .hub-btn { font-size: 14.5px; padding: 15px; }
    .info-section { padding: 44px 5%; }
    .about-block { padding: 26px 20px; }
}
.social-login-area{
    margin-top:18px;
    text-align:center;
}

.social-title{
    color:#bbb;
    font-size:13px;
    margin-bottom:12px;
}

.social-title span{
    position:relative;
    padding:0 12px;
}

.social-icons{
    display:flex;
    justify-content:center;
    gap:15px;
}

.social-circle{
    width:48px;
    height:48px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:20px;
    text-decoration:none;
    transition:.25s;
    box-shadow:0 8px 20px rgba(0,0,0,.25);
}

.social-circle:hover{
    transform:translateY(-3px) scale(1.08);
}

.google{
    background:#db4437;
}

.twitter{
    background:#1da1f2;
}