/* =====================================================================
   Hyyat VPS — custom.css (child of Nexus)
   حياة هوست — سيرفرات وVPS
   الهوية مأخوذة من متغيرات --hy-* في قالب حياة دومين.
   كل ألوان nexus تُعرّف هنا (هذا الملف يحل محل custom.css الخاص بـ nexus).
   ===================================================================== */

:root {
    /* ---------- Hyyat brand tokens / هوية حياة هوست ---------- */
    --hy-n: #0b2a55;      /* كحلي / navy */
    --hy-nd: #081f40;     /* كحلي غامق / deep navy */
    --hy-b: #1557b0;      /* أزرق / blue */
    --hy-bd: #0e4a9e;     /* أزرق غامق / blue hover */
    --hy-b2: #3b7fd6;     /* أزرق فاتح للتدرجات / gradient blue */
    --hy-o: #f7931e;      /* برتقالي / accent orange (نص كحلي عليه) */
    --hy-od: #e8850f;     /* برتقالي غامق / orange hover */
    --hy-g: #8cc63f;      /* أخضر الحالة / status green (نقاط فقط) */
    --hy-red: #d64545;
    --hy-t: #3d5373;      /* النص / text */
    --hy-m: #4d6180;      /* نص ثانوي / muted */
    --hy-bg: #f4f7fb;     /* خلفية / page bg */
    --hy-br: #e3eaf3;     /* حدود / border */
    --hy-r: 12px;
    --hy-sh: 0 2px 10px rgba(11, 42, 85, .06);
    --hy-shh: 0 10px 28px rgba(11, 42, 85, .12);
    --hy-grad: linear-gradient(135deg, var(--hy-nd) 0%, var(--hy-n) 45%, var(--hy-b) 100%);
    --hy-font: "Tajawal", "Open Sans", Tahoma, Arial, sans-serif;
    --hy-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

    --white: #fff;

    /* ---------- Neutral (مائل للكحلي / navy-tinted) ---------- */
    --neutral-50: #f4f7fb;
    --neutral-100: #eef2f8;
    --neutral-200: #e3eaf3;
    --neutral-300: #cbd6e4;
    --neutral-400: #94a3b8;
    --neutral-500: #4d6180;
    --neutral-600: #3d5373;
    --neutral-700: #2c3e5a;
    --neutral-800: #1a2c47;
    --neutral-900: #0b2a55;
    --neutral-950: #081f40;

    /* ---------- Primary = أزرق حياة هوست ---------- */
    --primary-50: #eef4fb;
    --primary-100: #d9e6f6;
    --primary-200: #b3cdec;
    --primary-300: #82acdf;
    --primary-400: #4a84cc;
    --primary-500: #2a6bbf;
    --primary-600: #1557b0;
    --primary-700: #0e4a9e;
    --primary-800: #123e7a;
    --primary-900: #0b2a55;
    --primary-950: #081f40;
    --primary: var(--primary-600);
    --primary-lifted: var(--primary-700);
    --primary-accented: var(--primary-800);

    --secondary: var(--neutral-500);
    --secondary-lifted: var(--neutral-600);
    --secondary-accented: var(--neutral-700);

    /* ---------- Semantic (كلها ≥ 4.5 تباين مع الأبيض) ---------- */
    --success: #3a7d1e;           /* 5.08 */
    --success-lifted: #2f6a18;
    --success-accented: #24561a;
    --info: #1557b0;              /* 6.95 */
    --info-lifted: #0e4a9e;
    --info-accented: #123e7a;
    --notice: #7a3fbf;            /* 6.38 */
    --notice-lifted: #6633a8;
    --notice-accented: #5b2c9f;
    --warning: #b85c00;           /* 4.60 */
    --warning-lifted: #a85400;
    --warning-accented: #8a4500;
    --error: #c53030;             /* 5.47 */
    --error-lifted: #a82828;
    --error-accented: #8b2020;

    --grayscale: var(--neutral-900);
    --grayscale-lifted: var(--neutral-800);
    --grayscale-accented: var(--neutral-700);
    --neutral: var(--neutral-500);
    --neutral-lifted: var(--neutral-600);
    --neutral-accented: var(--neutral-700);

    /* ---------- Text / النص ---------- */
    --text-inverted: var(--white);
    --text-muted: var(--neutral-400);
    --text-lifted: var(--neutral-500);
    --text-accented: var(--neutral-600);
    --text: var(--neutral-600);

    /* ---------- Borders / الحدود ---------- */
    --border-muted: var(--neutral-200);
    --border: var(--neutral-300);
    --border-lifted: var(--neutral-400);
    --border-accented: var(--neutral-600);

    /* ---------- Backgrounds / الخلفيات ---------- */
    --bg: var(--white);
    --bg-muted: var(--neutral-50);
    --bg-lifted: var(--neutral-100);
    --bg-accented: var(--neutral-200);
    --bg-inverted: var(--neutral-900);

    /* ---------- Additional (من nexus) ---------- */
    --yellow-200: #fff085;
    --yellow-300: #ffdf20;
    --teal-300: #46edd5;
    --teal-400: #00d5be;
    --emerald-300: #5ee9b5;
    --pink-400: #fb64b6;

    /* ---------- Sizes / الأحجام ---------- */
    --text-xs: 0.625rem;
    --text-sm: 0.75rem;
    --text-md: 0.875rem;
    --text-lg: 1rem;
    --outline-sm: 1px;
    --outline-md: 2px;
    --outline-lg: 3px;
    --rounding-sm: 6px;
    --rounding-md: 10px;
    --rounding-lg: 14px;
    --letter-spacing: 0em;
    --disabled-opacity: 25%;
}

/* ---------- الخط / Typography ---------- */
body,
button, input, select, textarea,
.tooltip, .popover {
    font-family: var(--hy-font);
}
body {
    background-color: var(--hy-bg);
    color: var(--hy-t);
}
h1, h2, h3, h4, h5, h6 {
    color: var(--hy-n);
    font-weight: 700;
}

/* عناوين IP وأسماء السيرفرات / IPs & hostnames */
.hy-mono, code, kbd {
    font-family: var(--hy-mono);
    direction: ltr;
    unicode-bidi: isolate;
}

/* ---------- الشعار / Logo ---------- */
.navbar-brand .logo-img {
    max-height: 48px;
    width: auto;
}

/* ---------- زر الإجراء الرئيسي / Primary CTA (برتقالي بنص كحلي) ---------- */
.btn-hy-cta {
    background: var(--hy-o);
    border-color: var(--hy-o);
    color: var(--hy-n);
    font-weight: 700;
}
.btn-hy-cta:hover,
.btn-hy-cta:focus {
    background: var(--hy-od);
    border-color: var(--hy-od);
    color: var(--hy-nd);
}

/* ---------- نقاط الحالة / Server status dots ---------- */
.hy-status { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; }
.hy-status::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--neutral-400); }
.hy-status--online::before { background: var(--hy-g); box-shadow: 0 0 0 3px rgba(140, 198, 63, .22); }
.hy-status--offline::before { background: var(--hy-red); box-shadow: 0 0 0 3px rgba(214, 69, 69, .2); }
.hy-status--pending::before { background: var(--hy-o); box-shadow: 0 0 0 3px rgba(247, 147, 30, .22); }

/* =====================================================================
   الخطوة 2 / Step 2 — الهيدر، الرئيسية، الفوتر
   كل الاتجاهات بخصائص منطقية (inline-start/end) لتعمل عربي وإنجليزي.
   ===================================================================== */

/* ---------- الهيدر / Header ---------- */
.hy-theme #header { background: #fff; box-shadow: var(--hy-sh); }
.hy-theme #header .topbar { background: var(--hy-nd); }
.hy-theme #header .topbar,
.hy-theme #header .topbar .btn,
.hy-theme #header .topbar a { color: rgba(255,255,255,.85); }
.hy-theme #header .main-navbar-wrapper { background: var(--hy-n); padding-block: 0; }
.hy-theme #header .main-navbar-wrapper .navbar-nav .nav-link {
    color: rgba(255,255,255,.88);
    font-weight: 500;
    padding-block: .9rem;
}
.hy-theme #header .main-navbar-wrapper .navbar-nav .nav-link:hover,
.hy-theme #header .main-navbar-wrapper .navbar-nav .active > .nav-link { color: #fff; }
.hy-theme #header .main-navbar-wrapper .dropdown-menu { border-radius: var(--hy-r); box-shadow: var(--hy-shh); border-color: var(--hy-br); }
.hy-theme #header .main-navbar-wrapper .form-control { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
.hy-nav-cta { padding: .45rem 1.1rem; border-radius: 999px; margin-inline: .5rem; }
.hy-lang-btn { font-weight: 500; color: var(--hy-n) !important; }

/* ---------- القسم العلوي / Hero ---------- */
.hy-hero {
    background: var(--hy-grad);
    color: #fff;
    padding-block: 3.5rem 3rem;
    position: relative;
    overflow: hidden;
}
.hy-hero::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 22px 22px; pointer-events: none;
}
.hy-hero .container { position: relative; z-index: 1; }
.hy-kicker {
    display: inline-block; padding: .3rem .85rem; border-radius: 999px;
    background: rgba(140,198,63,.16); color: #cdeaa5; font-weight: 700; font-size: .85rem;
    margin-block-end: 1rem;
}
.hy-hero__title { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-weight: 800; line-height: 1.35; margin-block-end: 1rem; }
.hy-hero__lead { color: rgba(255,255,255,.85); font-size: 1.1rem; line-height: 1.9; max-width: 36rem; }
.hy-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1.75rem 1.25rem; }
.hy-hero__note { color: rgba(255,255,255,.75); font-size: .95rem; margin: 0; }
.hy-hero__note .hy-status { margin-inline-end: .5rem; vertical-align: middle; }
.hy-hero__art { text-align: center; }
.hy-hero__art img { width: 100%; max-width: 480px; height: auto; }
.btn-hy-ghost { border: 2px solid rgba(255,255,255,.55); color: #fff; font-weight: 700; }
.btn-hy-ghost:hover, .btn-hy-ghost:focus { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.hy-hero .btn-lg { border-radius: 999px; padding: .7rem 1.6rem; }

/* ---------- الأقسام / Sections ---------- */
.hy-section { margin-block: 3rem; }
.hy-section__head { text-align: center; margin-block-end: 2rem; }
.hy-section__head h2 { font-size: 1.8rem; font-weight: 800; margin-block-end: .5rem; }
.hy-section__head p { color: var(--hy-m); margin: 0; }
.hy-card {
    background: #fff; border: 1px solid var(--hy-br); border-radius: var(--hy-r);
    padding: 1.6rem; box-shadow: var(--hy-sh); transition: box-shadow .2s ease, transform .2s ease;
}
.hy-card:hover { box-shadow: var(--hy-shh); transform: translateY(-2px); }
.hy-card h3 { font-size: 1.15rem; margin-block: .9rem .5rem; }
.hy-card p { color: var(--hy-m); margin: 0; line-height: 1.8; }
.hy-card__icon {
    width: 3rem; height: 3rem; border-radius: 12px; display: grid; place-items: center;
    background: var(--primary-50); color: var(--hy-b); font-size: 1.35rem;
}
.hy-card--plan { text-align: center; display: flex; flex-direction: column; }
.hy-card--plan .hy-card__icon { margin-inline: auto; }
.hy-card--plan p { flex: 1; margin-block-end: 1.2rem; }
.hy-card--plan .btn { border-radius: 999px; margin-block-start: auto; }

/* ---------- لماذا / Why ---------- */
.hy-why h2 { font-weight: 800; font-size: 1.8rem; }
.hy-lead { color: var(--hy-m); font-size: 1.05rem; line-height: 1.9; }
.hy-img { width: 100%; height: auto; display: block; }
.hy-checks { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.hy-checks li { position: relative; padding-inline-start: 2rem; margin-block-end: .8rem; font-weight: 500; color: var(--hy-n); }
.hy-checks li::before {
    content: ""; position: absolute; inset-inline-start: 0; top: .3rem;
    width: 1.2rem; height: 1.2rem; border-radius: 50%;
    background: var(--hy-g) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230b2a55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
}

/* ---------- البلاطات / Tiles ---------- */
.hy-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
    height: 100%; min-height: 7.5rem; padding: 1.2rem .8rem; text-align: center;
    background: #fff; border: 1px solid var(--hy-br); border-radius: var(--hy-r);
    color: var(--hy-n); font-weight: 500; box-shadow: var(--hy-sh);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.hy-tile i { font-size: 1.6rem; color: var(--hy-b); }
.hy-tile:hover { text-decoration: none; border-color: var(--hy-b); box-shadow: var(--hy-shh); color: var(--hy-b); }

/* ---------- شريط الدعوة / CTA band ---------- */
.hy-cta-band {
    margin-block: 3rem 1rem; padding: 2.2rem 2rem; border-radius: calc(var(--hy-r) + 6px);
    background: var(--hy-grad); color: #fff; overflow: hidden;
}
.hy-cta-band h2 { color: #fff; font-weight: 800; }
.hy-cta-band p { color: rgba(255,255,255,.85); margin-block-end: 1.3rem; }
.hy-cta-band .btn { border-radius: 999px; padding: .7rem 1.6rem; }
.hy-cta-band .hy-img { max-width: 340px; margin-inline-start: auto; }

/* ---------- الفوتر (حياة هوست) / Footer (Hyyat Host) ---------- */
.hy-footer.footer {
    background: linear-gradient(160deg, var(--hy-n) 0%, #123e7a 100%);
    color: rgba(255,255,255,.92); padding-block: 4.5rem 1.5rem; margin-block-start: 3rem;
    position: relative; overflow: hidden;
}
.hy-footer__logo { display: inline-block; margin-block-end: 1rem; }
.hy-footer__logo img { height: 56px; width: auto; display: block; }
.hy-footer__about { line-height: 1.9; max-width: 22rem; margin-block-end: .6rem; }
.hy-footer__reply { font-size: .92rem; color: rgba(255,255,255,.7); }
.hy-footer__reply .hy-status { margin-inline-end: .45rem; vertical-align: middle; }
.hy-footer__social { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-block-start: 1rem; }
.hy-footer__social a {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    min-width: 2.4rem; height: 2.4rem; padding-inline: .7rem; border-radius: 999px;
    background: rgba(255,255,255,.1); color: #fff; transition: background .2s ease;
}
.hy-footer__social a:hover { background: rgba(255,255,255,.2); text-decoration: none; }
.hy-footer__social .hy-footer__wa { background: #25d366; color: #0b2a55; font-weight: 700; }
.hy-footer__social .hy-footer__wa:hover { background: #20bd5a; color: #081f40; }
.hy-footer__title { color: #fff; font-size: 1rem; font-weight: 700; margin-block-end: 1rem; }
.hy-footer__list li { margin-block-end: .55rem; }
.hy-footer__list a { font-size: .93rem; }
.hy-footer.footer a { color: #fff; }
.hy-footer.footer a:hover { color: var(--hy-o); }
.hy-footer__domains {
    display: inline-flex; align-items: center; gap: .45rem; flex-wrap: wrap;
    padding: .45rem .95rem; border-radius: 999px;
    background: rgba(247,147,30,.14); border: 1px solid rgba(247,147,30,.45);
    color: #ffd8a8 !important; font-weight: 500; font-size: .9rem;
}
.hy-footer__domains:hover { background: rgba(247,147,30,.24); text-decoration: none; }
.hy-footer__bottom {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
    border-top: 1px solid rgba(255,255,255,.14); padding-block-start: 1.25rem; margin-block-start: .5rem;
}
.hy-footer__bottom .copyright { font-size: .9rem; }
.hy-footer__bottom-end { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }

/* ---------- الفوتر: نص أبيض مضمون / footer: guaranteed white text ---------- */
.hy-theme .hy-footer.footer,
.hy-theme .hy-footer.footer p,
.hy-theme .hy-footer.footer .copyright,
.hy-theme .hy-footer.footer .hy-footer__about,
.hy-theme .hy-footer.footer .hy-footer__reply { color: rgba(255,255,255,.92) !important; }
.hy-theme .hy-footer.footer h4,
.hy-theme .hy-footer.footer .hy-footer__title { color: #fff !important; }
.hy-theme .hy-footer.footer .hy-footer__list a,
.hy-theme .hy-footer.footer .hy-footer__social a:not(.hy-footer__wa) { color: #fff !important; }
.hy-theme .hy-footer.footer .hy-footer__list a:hover { color: var(--hy-o) !important; }
.hy-theme .hy-footer.footer .hy-footer__wa { color: #0b2a55 !important; }

/* ---------- الفوتر: حركات (رفوف + خط بيانات) / footer animations ---------- */
.hy-footer .container { position: relative; z-index: 2; }
.hy-footer__racks {
    position: absolute; top: 0; left: 0; height: 64px; z-index: 1; /* left ثابت في الاتجاهين / fixed left in both directions */
    width: calc(100% + 240px);
    background: url("../img/hy-footer-racks.svg") repeat-x left top / 240px 64px;
    opacity: .55; pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
            mask-image: linear-gradient(to bottom, #000 40%, transparent);
    will-change: transform;
    animation: hy-racks-move 60s linear infinite;
}
.hy-footer__stream {
    position: absolute; inset-inline: 0; top: 0; height: 3px; z-index: 2; pointer-events: none; overflow: hidden;
}
.hy-footer__stream::before {
    content: ""; position: absolute; top: 0; left: 0; height: 100%; width: 35%;
    background: linear-gradient(90deg, transparent, var(--hy-g) 40%, var(--hy-o) 70%, transparent);
    will-change: transform;
    animation: hy-stream-move 4s linear infinite;
}
/* حركة بالـ transform (يتولاها كرت الشاشة) / GPU-composited */
@keyframes hy-racks-move { from { transform: translateX(0); } to { transform: translateX(-240px); } }
@keyframes hy-stream-move { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
/* تتوقف عندما يكون الفوتر خارج الشاشة / paused while footer is off-screen */
.hy-footer.hy-anim-off .hy-footer__racks,
.hy-footer.hy-anim-off .hy-footer__stream::before { animation-play-state: paused; }
.hy-footer__logo img { transition: transform .3s ease; }
.hy-footer__logo:hover img { transform: scale(1.04); }
.hy-footer__social a { transition: background .2s ease, transform .2s ease; }
.hy-footer__social a:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
    .hy-footer__racks, .hy-footer__stream::before { animation: none; }
    .hy-footer__logo img, .hy-footer__social a { transition: none; }
}

/* ---------- القائمة العلوية: روابط بيضاء على الكحلي / top menu: white on navy ---------- */
.hy-theme #header .main-navbar-wrapper .navbar-nav > li > a { color: #fff !important; font-weight: 500; }
.hy-theme #header .main-navbar-wrapper .navbar-nav > li > a:hover,
.hy-theme #header .main-navbar-wrapper .navbar-nav > li.active > a { color: var(--hy-o) !important; }
.hy-theme #header .main-navbar-wrapper .dropdown-menu a { color: var(--hy-n) !important; }
.hy-theme #header .main-navbar-wrapper .dropdown-menu a:hover { color: var(--hy-b) !important; }
/* زر الطلب: نص كحلي دائماً (nexus يفرض #444 على روابط الهيدر) / CTA text always navy */
.hy-theme .btn-hy-cta, .hy-theme #header .btn-hy-cta { color: var(--hy-n) !important; }

/* ---------- الجوال / Mobile ---------- */
@media (max-width: 991.98px) {
    .hy-hero { padding-block: 2.5rem 2rem; text-align: center; }
    .hy-hero__lead { margin-inline: auto; }
    .hy-hero__actions { justify-content: center; }
    .hy-hero__art { margin-block-start: 2rem; }
    .hy-hero__art img { max-width: 340px; }
    .hy-why { text-align: center; }
    .hy-checks { display: inline-block; text-align: start; }
}
@media (max-width: 575.98px) {
    .hy-cta-band { padding: 1.6rem 1.2rem; text-align: center; }
    .hy-footer__bottom, .hy-footer__bottom-end { justify-content: center; text-align: center; }
    .hy-footer__about-col { text-align: center; }
    .hy-footer__logo img { margin-inline: auto; }
    .hy-footer__about { margin-inline: auto; }
    .hy-footer__social { justify-content: center; }
}
