/* =========================================================
   FINTECH DESIGN SYSTEM
   نظام التصميم العام لمشروع Fintech
========================================================= */

:root {
    --fintech-bg: #05070d;
    --fintech-bg-soft: #081827;
    --fintech-bg-deep: #06111f;

    --fintech-blue: #7cc4ff;
    --fintech-blue-rgb: 124, 196, 255;

    --fintech-green: #1bc6ab;
    --fintech-green-rgb: 27, 198, 171;

    --fintech-text: #ffffff;
    --fintech-muted: rgba(226, 241, 255, 0.68);
    --fintech-muted-strong: rgba(226, 241, 255, 0.74);
    --fintech-label: rgba(226, 241, 255, 0.58);

    --fintech-border: rgba(124, 196, 255, 0.13);
    --fintech-border-strong: rgba(124, 196, 255, 0.18);
    --fintech-white-soft: rgba(255, 255, 255, 0.045);

    --fintech-surface: rgba(16, 33, 54, 0.94);
    --fintech-surface-dark: rgba(7, 17, 29, 0.90);

    --fintech-radius-md: 24px;
    --fintech-radius-lg: 30px;
    --fintech-radius-xl: 38px;
    --fintech-radius-pill: 999px;

    --fintech-container: 1560px;
}

/* الأساس العام / Global base */
[class^="vp-fintech-"],
[class*=" vp-fintech-"],
[class^="vp-fintech-"] *,
[class^="vp-fintech-"] *::before,
[class^="vp-fintech-"] *::after,
[class*=" vp-fintech-"] *,
[class*=" vp-fintech-"] *::before,
[class*=" vp-fintech-"] *::after {
    box-sizing: border-box;
}

.vp-fintech-section {
    position: relative;
    overflow: hidden;
    color: var(--fintech-text);
    padding: 180px 0 210px;
    isolation: isolate;
}

/* طبقة glow عامة / Global premium glow layer */
.vp-fintech-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 18%, rgba(var(--fintech-blue-rgb), 0.08), transparent 32%),
        radial-gradient(circle at 82% 74%, rgba(var(--fintech-green-rgb), 0.07), transparent 34%);
    opacity: 0.95;
}

.vp-fintech-container {
    width: min(100% - 64px, var(--fintech-container));
    margin-inline: auto;
}

/* الشارة / Eyebrow */
.vp-fintech-eyebrow {
    display: inline-flex;
    margin-bottom: 28px;
    padding: 10px 14px;
    border: 1px solid rgba(var(--fintech-blue-rgb), 0.18);
    border-radius: var(--fintech-radius-pill);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(164, 216, 255, 0.86);
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    backdrop-filter: blur(14px);
}

/* العناوين / Titles */
.vp-fintech-title {
    margin: 0;
    color: var(--fintech-text);
    font-size: clamp(48px, 5.8vw, 112px);
    line-height: 0.92;
    letter-spacing: -0.075em;
    font-weight: 650;
    text-wrap: balance;
}

.vp-fintech-title--display {
    font-size: clamp(54px, 6.6vw, 118px);
}

/* النصوص / Text */
.vp-fintech-text {
    color: var(--fintech-muted);
    font-size: clamp(17px, 1.15vw, 21px);
    line-height: 1.8;
    font-weight: 300;
}

/* الزجاج / Glass */
.vp-fintech-glass {
    border: 1px solid var(--fintech-border-strong);
    background:
        linear-gradient(145deg, var(--fintech-surface), var(--fintech-surface-dark));
    backdrop-filter: blur(20px);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.36),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    transition:
        transform 0.55s ease,
        border-color 0.55s ease,
        box-shadow 0.55s ease;
}

.vp-fintech-glass:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--fintech-blue-rgb), 0.30);
    box-shadow:
        0 38px 110px rgba(0, 0, 0, 0.45),
        0 0 46px rgba(var(--fintech-blue-rgb), 0.11),
        0 0 0 1px rgba(255, 255, 255, 0.045) inset;
}

/* سطح داخلي / Inner surface */
.vp-fintech-surface {
    background: var(--fintech-white-soft);
    border: 1px solid rgba(var(--fintech-blue-rgb), 0.10);
    transition:
        transform 0.45s ease,
        border-color 0.45s ease,
        background 0.45s ease;
}

.vp-fintech-surface:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.065);
    border-color: rgba(var(--fintech-blue-rgb), 0.18);
}

/* الليبل / Labels */
.vp-fintech-label {
    display: block;
    color: var(--fintech-label);
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* الحالة / Status */
.vp-fintech-status {
    color: var(--fintech-blue);
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* الزر / Button */
.vp-fintech-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 64px 0 30px;
    border-radius: var(--fintech-radius-pill);
    border: 1px solid rgba(var(--fintech-blue-rgb), 0.24);
    background: linear-gradient(135deg, var(--fintech-blue), var(--fintech-green));
    color: var(--fintech-bg-deep);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-weight: 800;
    box-shadow:
        0 18px 48px rgba(82, 166, 244, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.20) inset;
    transition:
        transform 0.45s ease,
        box-shadow 0.45s ease,
        filter 0.45s ease;
}

.vp-fintech-button::after {
    content: "→";
    position: absolute;
    right: 28px;
    font-size: 18px;
    transition: transform 0.45s ease;
}

.vp-fintech-button:hover {
    transform: translateY(-4px);
    filter: saturate(1.12);
    box-shadow:
        0 28px 72px rgba(var(--fintech-green-rgb), 0.28),
        0 0 42px rgba(var(--fintech-blue-rgb), 0.18);
}

.vp-fintech-button:hover::after {
    transform: translateX(6px);
}

/* حركة خفيفة للأوربات / Soft orb movement */
.vp-fintech-hero__orb,
.vp-fintech-themes__glow {
    animation: vpFintechFloat 8s ease-in-out infinite;
}

@keyframes vpFintechFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-16px);
    }
}

/* Responsive */
@media (max-width: 1080px) {
    .vp-fintech-section {
        padding: 130px 0 150px;
    }
}

@media (max-width: 720px) {
    .vp-fintech-container {
        width: min(100% - 32px, var(--fintech-container));
    }

    .vp-fintech-title,
    .vp-fintech-title--display {
        font-size: clamp(40px, 12vw, 68px);
        line-height: 0.96;
    }

    .vp-fintech-text {
        font-size: 16px;
        line-height: 1.7;
    }

    .vp-fintech-glass:hover,
    .vp-fintech-surface:hover {
        transform: none;
    }
}

/* =========================================================
   FINTECH REVEAL MOTION
   حركة ظهور احترافية للعناصر
========================================================= */

.vp-fintech-reveal {
    opacity: 0;
    transform: translateY(34px) scale(0.985);
    filter: blur(10px);
    transition:
        opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.95s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.95s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

.vp-fintech-reveal-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
    .vp-fintech-reveal {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

/* =========================================================
   FINTECH CARD DEPTH HOVER
   عمق وتفاعل للكروت عند مرور الماوس
========================================================= */

.vp-fintech-depth-card {
    transform-style: preserve-3d;
    transition:
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.45s ease;
}

.vp-fintech-depth-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
    background:
        radial-gradient(
            circle 220px at var(--vp-mx, 50%) var(--vp-my, 50%),
            rgba(124, 196, 255, 0.22),
            transparent 62%
        );
    transition: opacity 0.35s ease;
}

.vp-fintech-depth-active {
    transform:
        perspective(900px)
        rotateX(var(--vp-rx, 0deg))
        rotateY(var(--vp-ry, 0deg))
        translateY(-8px);
    border-color: rgba(124, 196, 255, 0.34);
    box-shadow:
        0 42px 120px rgba(0, 0, 0, 0.48),
        0 0 64px rgba(124, 196, 255, 0.16),
        0 0 0 1px rgba(255, 255, 255, 0.045) inset;
}

.vp-fintech-depth-active::after {
    opacity: 1;
}

@media (max-width: 900px) {
    .vp-fintech-depth-active {
        transform: none;
    }
}

/* =========================================================
   FINTECH PAGE VISUAL LOCK
   Keeps global theme background from leaking between blocks
========================================================= */

body:has(.vp-fintech-section),
body:has(.vp-fintech-hero),
body:has(.vp-fintech-dashboard),
body:has(.vp-fintech-wallet),
body:has(.vp-fintech-security),
body:has(.vp-fintech-admin),
body:has(.vp-fintech-themes),
body:has(.vp-fintech-cta) {
    background:
        radial-gradient(circle at 18% 18%, rgba(124, 196, 255, 0.08), transparent 32%),
        radial-gradient(circle at 82% 78%, rgba(27, 198, 171, 0.06), transparent 34%),
        linear-gradient(180deg, #06111f 0%, #05070d 100%);
}

body:has(.vp-fintech-hero) .vp-footer-enterprise,
body:has(.vp-fintech-dashboard) .vp-footer-enterprise,
body:has(.vp-fintech-wallet) .vp-footer-enterprise,
body:has(.vp-fintech-admin) .vp-footer-enterprise,
body:has(.vp-fintech-security) .vp-footer-enterprise,
body:has(.vp-fintech-cta) .vp-footer-enterprise {

  --primary: var(--fintech-blue);

  --text: var(--fintech-text);

  --subtext: var(--fintech-muted);

  --glow-color: var(--fintech-blue-rgb);

  --button-text: #06111f;

  --shadow-soft:
    0 22px 70px rgba(var(--fintech-blue-rgb), 0.18);

}