/* ============================================================
   ONLINECER — PREMIUM ANIMATION LAYER (animations.css)
   Hero FX, particles, glass cards, marquee, tilt, count-up,
   testimonials, scroll progress, preloader, cursor glow
   ============================================================ */

/* ---------- Fonts & Base ---------- */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h1, h2, h3, h4, h5, .xhero-title, .xsection-title h2 {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

::selection {
    background: rgba(37, 99, 235, 0.25);
}

/* ---------- Preloader ---------- */
.xpreloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #0b1220;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.xpreloader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.xpreloader-ring {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: #06b6d4;
    border-right-color: #2563eb;
    animation: xspin 0.9s linear infinite;
    position: relative;
}

.xpreloader-ring::after {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-bottom-color: #8b5cf6;
    animation: xspin 1.4s linear infinite reverse;
}

.xpreloader-text {
    color: #e2e8f0;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #2563eb, #06b6d4, #8b5cf6, #2563eb);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: xshimmer-text 2.2s linear infinite;
}

.xpreloader-bar {
    width: 180px;
    height: 3px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.xpreloader-bar span {
    display: block;
    height: 100%;
    width: 40%;
    border-radius: 99px;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    animation: xloadbar 1.1s ease-in-out infinite;
}

@keyframes xspin { to { transform: rotate(360deg); } }
@keyframes xloadbar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(450%); }
}
@keyframes xshimmer-text {
    to { background-position: 300% 0; }
}

/* ---------- Scroll Progress ---------- */
.xprogress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    z-index: 10000;
    background: linear-gradient(90deg, #2563eb, #06b6d4, #8b5cf6);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.55);
    transition: width 0.08s linear;
}

/* ---------- Cursor Glow (desktop only) ---------- */
.xcursor-glow {
    position: fixed;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.09) 0%, rgba(6, 182, 212, 0.05) 35%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
    opacity: 0;
}

@media (pointer: fine) {
    .xcursor-glow { opacity: 1; }
}

/* ============================================================
   HERO — dark premium with mesh, particles, floating cards
   ============================================================ */
.xhero {
    position: relative;
    background:
        radial-gradient(1100px 500px at 85% -10%, rgba(139, 92, 246, 0.16), transparent 60%),
        radial-gradient(900px 500px at -10% 20%, rgba(37, 99, 235, 0.22), transparent 60%),
        radial-gradient(700px 600px at 60% 110%, rgba(6, 182, 212, 0.12), transparent 60%),
        #0b1220;
    color: #fff;
    overflow: hidden;
    padding: 84px 0 130px;
    margin-top: -70px;               /* cancel body padding, sit under fixed header */
    padding-top: 140px;
}

/* grid overlay */
.xhero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 75%);
    pointer-events: none;
}

/* animated blobs */
.xblob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    pointer-events: none;
    animation: xblob-float 14s ease-in-out infinite alternate;
}

.xblob-1 { width: 420px; height: 420px; background: rgba(37, 99, 235, 0.45); top: -120px; left: -120px; }
.xblob-2 { width: 360px; height: 360px; background: rgba(6, 182, 212, 0.35); bottom: -100px; right: -80px; animation-delay: -4s; }
.xblob-3 { width: 280px; height: 280px; background: rgba(139, 92, 246, 0.32); top: 30%; left: 55%; animation-delay: -8s; }

@keyframes xblob-float {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(40px, -30px) scale(1.12); }
    100% { transform: translate(-30px, 30px) scale(0.94); }
}

.xhero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.xhero-inner {
    position: relative;
    z-index: 2;
}

.xhero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

/* hero copy */
.xhero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 18px;
    border-radius: 99px;
    background: rgba(37, 99, 235, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: #93c5fd;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.4px;
    backdrop-filter: blur(8px);
    animation: xfade-up 0.8s ease both;
}

.xhero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
    animation: xpulse-dot 2s infinite;
}

@keyframes xpulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
    70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.xhero-title {
    font-size: clamp(38px, 5.2vw, 64px);
    line-height: 1.12;
    font-weight: 800;
    margin: 22px 0 18px;
    letter-spacing: -1px;
    animation: xfade-up 0.8s 0.12s ease both;
}

.xhero-title .xgrad {
    background: linear-gradient(90deg, #60a5fa, #22d3ee, #a78bfa);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: xgrad-slide 4s linear infinite;
}

@keyframes xgrad-slide {
    to { background-position: 200% center; }
}

.xtyped-wrap {
    display: block;
    min-height: 1.15em;
}

.xtyped {
    color: #22d3ee;
    position: relative;
}

.xtyped::after {
    content: '|';
    color: #22d3ee;
    font-weight: 400;
    animation: xblink 0.8s step-end infinite;
}

@keyframes xblink { 50% { opacity: 0; } }

.xhero-sub {
    color: #94a3b8;
    font-size: 17.5px;
    max-width: 540px;
    margin-bottom: 30px;
    animation: xfade-up 0.8s 0.22s ease both;
}

/* hero search */
.xhero-search {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 7px;
    max-width: 620px;
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.45);
    animation: xfade-up 0.8s 0.32s ease both;
    position: relative;
}

.xhero-search::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    padding: 1px;
    background: linear-gradient(120deg, rgba(37,99,235,0.7), rgba(6,182,212,0.7), rgba(139,92,246,0.7));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.xhero-search:focus-within::before { opacity: 1; }

.xhero-search .xsearch-icon {
    display: flex;
    align-items: center;
    padding-left: 14px;
    color: #64748b;
}

.xhero-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 15.5px;
    padding: 12px 14px;
    font-family: inherit;
    min-width: 0;
}

.xhero-search input::placeholder { color: #64748b; }

.xhero-search select {
    background: rgba(255, 255, 255, 0.07);
    border: none;
    border-radius: 11px;
    color: #cbd5e1;
    padding: 0 12px;
    margin-right: 8px;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
}

.xhero-search select option { color: #0f172a; }

.xhero-search button {
    border: none;
    border-radius: 12px;
    padding: 13px 26px;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    background-size: 160% 160%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.5s ease;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    white-space: nowrap;
}

.xhero-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(6, 182, 212, 0.45);
    background-position: 100% 100%;
}

/* hero chips */
.xhero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
    animation: xfade-up 0.8s 0.42s ease both;
}

.xhero-chips span {
    color: #7dd3fc;
    font-size: 13.5px;
    font-weight: 500;
    opacity: 0.85;
}

.xhero-chips a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.xhero-chips a:hover {
    color: #fff;
    border-color: rgba(34, 211, 238, 0.55);
    background: rgba(34, 211, 238, 0.1);
    transform: translateY(-2px);
}

/* hero trust row */
.xhero-trust {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
    animation: xfade-up 0.8s 0.52s ease both;
}

.xhero-avatars { display: flex; }

.xhero-avatars .xav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2.5px solid #0b1220;
    margin-left: -11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.xhero-avatars .xav:first-child { margin-left: 0; }

.xhero-trust-text { color: #94a3b8; font-size: 14px; line-height: 1.5; }
.xhero-trust-text strong { color: #e2e8f0; }
.xhero-trust-text .xstars { color: #fbbf24; letter-spacing: 1px; }

/* ---------- Hero floating glass cards ---------- */
.xhero-art {
    position: relative;
    height: 520px;
    z-index: 2;
}

.xglass {
    position: absolute;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.5);
    padding: 18px 20px;
    color: #e2e8f0;
    animation: xfloat 6s ease-in-out infinite;
}

.xglass strong { color: #fff; }

.xglass-1 { top: 30px; left: 30px; width: 250px; animation-delay: 0s; z-index: 3; }
.xglass-2 { top: 200px; right: 0; width: 235px; animation-delay: -2s; z-index: 3; }
.xglass-3 { bottom: 20px; left: 60px; width: 260px; animation-delay: -4s; z-index: 3; }
.xglass-4 { top: -50px; right: 30px; padding: 12px 18px; border-radius: 99px; animation-delay: -1s; z-index: 4; }

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

.xglass-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.xglass-head .xg-av {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

.xglass-head h4 { font-size: 15px; font-weight: 600; color: #fff; }
.xglass-head small { color: #94a3b8; font-size: 12.5px; display: flex; align-items: center; gap: 6px; }

.xonline-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.9);
    animation: xpulse-dot 2s infinite;
}

.xglass .xskill-row { display: flex; flex-wrap: wrap; gap: 6px; }

.xglass .xskill-row span {
    font-size: 11.5px;
    padding: 4px 10px;
    border-radius: 99px;
    background: rgba(37, 99, 235, 0.22);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #93c5fd;
    font-weight: 600;
}

.xglass .xpay-row { display: flex; align-items: center; gap: 12px; }

.xglass .xpay-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669, #34d399);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.xglass .xpay-amount { font-size: 21px; font-weight: 800; color: #34d399; font-family: 'Poppins', sans-serif; }
.xglass .xpay-amount small { font-size: 12px; color: #6ee7b7; font-weight: 600; display: block; }

.xglass .xstars-row { color: #fbbf24; font-size: 13px; letter-spacing: 2px; margin-bottom: 6px; }
.xglass .xquote { font-size: 13px; color: #cbd5e1; font-style: italic; line-height: 1.55; }

.xglass-4 .xh4-pill {
    display: flex; align-items: center; gap: 10px;
    font-size: 13.5px; font-weight: 600; color: #e2e8f0;
}
.xglass-4 .xh4-pill i { color: #a78bfa; }

/* hero wave divider */
.xhero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
    pointer-events: none;
}

.xhero-wave svg { width: 100%; height: 90px; display: block; }

/* ---------- Marquee (skills ticker) ---------- */
.xmarquee-section {
    background: #f8fafc;
    padding: 26px 0;
    border-bottom: 1px solid #eef2f7;
    position: relative;
    overflow: hidden;
}

.xmarquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 0;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.xmarquee-track {
    display: flex;
    align-items: center;
    gap: 44px;
    padding-right: 44px;
    flex-shrink: 0;
    animation: xmarquee 30s linear infinite;
}

.xmarquee:hover .xmarquee-track { animation-play-state: paused; }

.xmarquee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
    color: #475569;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.xmarquee-item i {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

.xmarquee-item:hover { color: #2563eb; }

@keyframes xmarquee {
    to { transform: translateX(-100%); }
}

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.xsection { padding: 90px 0; position: relative; }
.xsection-light { background: #fff; }
.xsection-tint { background: #f8fafc; }

.xsection-title {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 54px;
}

.xsection-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 99px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.18);
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.xsection-title h2 {
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.xsection-title h2 .xgrad {
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.xsection-title p { color: #64748b; margin-top: 14px; font-size: 16.5px; }

/* ---------- Count-up stats ---------- */
.xstats {
    background: #0b1220;
    position: relative;
    overflow: hidden;
    padding: 70px 0;
}

.xstats::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 300px at 15% 0%, rgba(37, 99, 235, 0.25), transparent 60%),
        radial-gradient(600px 300px at 85% 100%, rgba(6, 182, 212, 0.18), transparent 60%);
    pointer-events: none;
}

.xstats-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    z-index: 1;
}

.xstat {
    text-align: center;
    padding: 30px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(8px);
    transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.xstat:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.4);
    background: rgba(255, 255, 255, 0.07);
}

.xstat-icon {
    width: 58px; height: 58px;
    margin: 0 auto 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.35);
}

.xstat:nth-child(2) .xstat-icon { background: linear-gradient(135deg, #7c3aed, #a78bfa); box-shadow: 0 12px 26px rgba(124, 58, 237, 0.35); }
.xstat:nth-child(3) .xstat-icon { background: linear-gradient(135deg, #059669, #34d399); box-shadow: 0 12px 26px rgba(5, 150, 105, 0.35); }
.xstat:nth-child(4) .xstat-icon { background: linear-gradient(135deg, #d97706, #fbbf24); box-shadow: 0 12px 26px rgba(217, 119, 6, 0.35); }

.xstat h3 {
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 800;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    line-height: 1.1;
}

.xstat h3 .xsuffix { color: #22d3ee; }
.xstat p { color: #94a3b8; font-size: 14.5px; margin-top: 8px; font-weight: 500; }

/* ---------- Categories ---------- */
.xcat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.xcat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 28px 24px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #eef2f7;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    transform-style: preserve-3d;
}

.xcat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(6, 182, 212, 0.06));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.xcat-card::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    bottom: 18px;
    font-size: 14px;
    color: #2563eb;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.35s ease;
}

.xcat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.1);
    border-color: rgba(37, 99, 235, 0.25);
}

.xcat-card:hover::before { opacity: 1; }
.xcat-card:hover::after { opacity: 1; transform: translateX(0); }

.xcat-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.3);
    position: relative;
    z-index: 1;
    transition: transform 0.35s ease;
}

.xcat-card:hover .xcat-icon { transform: scale(1.1) rotate(-5deg); }

.xcat-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    position: relative;
    z-index: 1;
}

.xcat-card p {
    font-size: 13.5px;
    color: #64748b;
    position: relative;
    z-index: 1;
    margin: 0;
}

/* ---------- Enhanced project / freelancer cards ---------- */
.xcards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.xcards .project-card {
    position: relative;
    border: 1px solid #eef2f7;
    border-radius: 20px;
    background: #fff;
    padding: 24px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    transform-style: preserve-3d;
}

.xcards .project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #06b6d4, #8b5cf6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s ease;
}

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

.xcards .project-card:hover {
    box-shadow: 0 26px 55px rgba(15, 23, 42, 0.12);
    border-color: rgba(37, 99, 235, 0.22);
}

.xtilt-glare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.55), transparent 45%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    border-radius: inherit;
    mix-blend-mode: overlay;
}

.xcards .project-card:hover .xtilt-glare { opacity: 1; }

.xcards .project-card-header h3 a { font-size: 17px; }

/* ---------- How it works ---------- */
.xsteps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
}

.xsteps::before {
    content: '';
    position: absolute;
    top: 44px;
    left: 12%;
    right: 12%;
    height: 3px;
    background: repeating-linear-gradient(90deg, #cbd5e1 0 10px, transparent 10px 20px);
    border-radius: 99px;
    z-index: 0;
}

.xstep {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 34px 26px;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 22px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.xstep:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.1);
}

.xstep-num {
    width: 58px; height: 58px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 0 0 8px #f8fafc, 0 14px 30px rgba(37, 99, 235, 0.35);
}

.xstep:nth-child(2) .xstep-num { background: linear-gradient(135deg, #7c3aed, #a78bfa); box-shadow: 0 0 0 8px #f8fafc, 0 14px 30px rgba(124, 58, 237, 0.35); }
.xstep:nth-child(3) .xstep-num { background: linear-gradient(135deg, #059669, #34d399); box-shadow: 0 0 0 8px #f8fafc, 0 14px 30px rgba(5, 150, 105, 0.35); }

.xstep h3 { font-size: 19px; font-weight: 700; color: #0f172a; margin-bottom: 10px; }
.xstep p { color: #64748b; font-size: 14.5px; line-height: 1.7; }

.xstep-icon {
    font-size: 26px;
    color: #2563eb;
    margin-bottom: 8px;
    display: inline-block;
}

/* ---------- Testimonials ---------- */
.xtesti-wrap {
    position: relative;
    overflow: hidden;
    padding: 6px;
}

.xtesti-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.xtesti-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.xtesti {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 22px;
    padding: 30px 28px;
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.xtesti:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.1);
}

.xtesti-quote-icon {
    position: absolute;
    top: 22px;
    right: 26px;
    font-size: 34px;
    color: rgba(37, 99, 235, 0.12);
}

.xtesti-stars { color: #fbbf24; font-size: 14px; letter-spacing: 2px; margin-bottom: 14px; }

.xtesti p {
    color: #475569;
    font-size: 15px;
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 20px;
}

.xtesti-user { display: flex; align-items: center; gap: 13px; }

.xtesti-user h4 { font-size: 15px; font-weight: 700; color: #0f172a; }
.xtesti-user small { color: #64748b; font-size: 12.5px; }

.xtesti-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 34px;
}

.xtesti-arrow {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xtesti-arrow:hover {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
}

.xtesti-dots { display: flex; gap: 8px; }

.xtesti-dot {
    width: 9px; height: 9px;
    border-radius: 99px;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.35s ease;
    border: none;
    padding: 0;
}

.xtesti-dot.active {
    width: 28px;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
}

/* ---------- CTA ---------- */
.xcta {
    position: relative;
    overflow: hidden;
    padding: 90px 0;
    background: linear-gradient(120deg, #0f172a, #1e1b4b, #0f172a);
    background-size: 200% 200%;
    animation: xcta-bg 12s ease infinite;
    text-align: center;
    color: #fff;
}

@keyframes xcta-bg {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.xcta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(500px 260px at 20% 30%, rgba(37, 99, 235, 0.28), transparent 60%),
        radial-gradient(500px 260px at 80% 70%, rgba(6, 182, 212, 0.22), transparent 60%);
    pointer-events: none;
}

.xcta-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }

.xcta h2 {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.xcta p { color: #94a3b8; font-size: 17px; margin-bottom: 34px; }

.xcta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.xcta .btn {
    padding: 15px 34px;
    border-radius: 14px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.xcta .btn-light {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.45);
}

.xcta .btn-light:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 44px rgba(6, 182, 212, 0.5);
}

.xcta .btn-ghost {
    background: rgba(255, 255, 255, 0.07);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
}

.xcta .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-3px);
}

/* shine sweep on buttons */
.btn { position: relative; }

.btn::after {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 45%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-22deg);
    transition: left 0.6s ease;
}

.btn:hover::after { left: 130%; }

/* ---------- Floating decorative orbs in CTA ---------- */
.xcta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.35;
    pointer-events: none;
    animation: xfloat 7s ease-in-out infinite;
}

.xcta-orb-1 { width: 140px; height: 140px; background: radial-gradient(circle, #60a5fa, transparent 70%); top: 12%; left: 8%; }
.xcta-orb-2 { width: 100px; height: 100px; background: radial-gradient(circle, #22d3ee, transparent 70%); bottom: 18%; right: 10%; animation-delay: -3s; }
.xcta-orb-3 { width: 70px; height: 70px; background: radial-gradient(circle, #a78bfa, transparent 70%); top: 55%; left: 18%; animation-delay: -5s; }

/* ---------- Center button ---------- */
.xcenter-btn { text-align: center; margin-top: 46px; }

.xcenter-btn .btn { padding: 15px 36px; border-radius: 14px; font-size: 16px; }

/* ---------- Reveal system (upgraded) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

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

.reveal-left { transform: translateX(-46px); }
.reveal-right { transform: translateX(46px); }
.reveal-zoom { transform: scale(0.88); }

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.13s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.21s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.29s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.37s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.45s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.53s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.61s; }

@keyframes xfade-up {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Back to top upgrade ---------- */
.back-to-top {
    background: linear-gradient(135deg, #2563eb, #06b6d4) !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4) !important;
}

/* ============================================================
   FREELANCER CARDS — premium Upwork/Fiverr style
   ============================================================ */
.xfreelancer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.xfreelancer-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    text-decoration: none;
    color: inherit;
    transform-style: preserve-3d;
    position: relative;
}

.xfreelancer-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #06b6d4, #8b5cf6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s ease;
    z-index: 1;
}

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

.xfreelancer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 55px rgba(15, 23, 42, 0.12);
    border-color: rgba(37, 99, 235, 0.22);
}

.xfreelancer-card-banner {
    position: relative;
    height: 90px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.xfreelancer-card-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.1), transparent 50%);
}

.xfreelancer-card-avatar {
    position: relative;
    bottom: -36px;
    z-index: 2;
}

.xfreelancer-card-avatar .avatar,
.xfreelancer-card-avatar .avatar-initials {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

.xfreelancer-card-body {
    padding: 44px 24px 18px;
    text-align: center;
    flex: 1;
}

.xfreelancer-card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
}

.xfreelancer-title {
    font-size: 13.5px;
    color: #64748b;
    margin: 0 0 14px;
}

.xfreelancer-card-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
}

.xfreelancer-stars {
    color: #fbbf24;
    font-size: 13px;
    letter-spacing: 1px;
}

.xfreelancer-rating-text {
    font-weight: 700;
    color: #0f172a;
    font-size: 14px;
}

.xfreelancer-projects-done {
    color: #94a3b8;
    font-size: 12.5px;
}

.xfreelancer-projects-done::before {
    content: '·';
    margin-right: 6px;
}

.xfreelancer-card-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.xfreelancer-skill {
    padding: 5px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.15);
    transition: all 0.25s ease;
}

.xfreelancer-card:hover .xfreelancer-skill {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.25);
}

.xfreelancer-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}

.xfreelancer-rate {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.xfreelancer-rate-amount {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    font-family: 'Poppins', sans-serif;
}

.xfreelancer-rate-unit {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

.xfreelancer-hire-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.xfreelancer-card:hover .xfreelancer-hire-btn {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

/* ============================================================
   PROJECT CARDS — premium find work style
   ============================================================ */
.xproject-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.xproject-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 20px;
    padding: 24px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    text-decoration: none;
    color: inherit;
    transform-style: preserve-3d;
    position: relative;
}

.xproject-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669, #34d399);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s ease;
}

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

.xproject-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 55px rgba(15, 23, 42, 0.12);
    border-color: rgba(5, 150, 105, 0.22);
}

.xproject-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.xproject-type-badge {
    padding: 5px 14px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.xproject-type-badge.badge-hourly {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.xproject-type-badge.badge-fixed {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.xproject-proposals {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 500;
}

.xproject-proposals i {
    margin-right: 4px;
    color: #94a3b8;
}

.xproject-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.xproject-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.65;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.xproject-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    font-size: 12.5px;
    color: #94a3b8;
}

.xproject-meta i {
    margin-right: 4px;
    color: #cbd5e1;
}

.xproject-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.xproject-skill {
    padding: 5px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(6, 182, 212, 0.08);
    color: #0891b2;
    border: 1px solid rgba(6, 182, 212, 0.15);
    transition: all 0.25s ease;
}

.xproject-card:hover .xproject-skill {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.25);
}

.xproject-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.xproject-budget {
    font-size: 20px;
    font-weight: 800;
    color: #059669;
    font-family: 'Poppins', sans-serif;
}

.xproject-budget small {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    margin-left: 3px;
}

.xproject-bid-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #059669, #34d399);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.xproject-card:hover .xproject-bid-btn {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.4);
}

/* Responsive for new cards */
@media (max-width: 1024px) {
    .xfreelancer-grid { grid-template-columns: repeat(2, 1fr); }
    .xproject-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    .xfreelancer-grid { grid-template-columns: 1fr; }
    .xproject-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .xhero-grid { grid-template-columns: 1fr; }
    .xhero-art {
        height: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-top: 20px;
        max-width: 640px;
    }
    .xglass { position: static; animation: xfloat 7s ease-in-out infinite; width: auto !important; }
    .xglass-4 { grid-column: span 2; justify-self: center; }
    .xcat-grid { grid-template-columns: repeat(2, 1fr); }
    .xcards { grid-template-columns: repeat(2, 1fr); }
    .xtesti-track { grid-template-columns: repeat(3, 1fr); }
    .xtesti-grid { grid-template-columns: repeat(2, 1fr); }
    .xstats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    .xhero { padding-top: 110px; padding-bottom: 82px; margin-top: -64px; }
    .xhero-grid { gap: 28px; }
    .xhero-copy { text-align: center; }
    .xhero-badge { margin: 0 auto; }
    .xhero-sub { margin-left: auto; margin-right: auto; }
    .xhero-search { flex-direction: column; align-items: stretch; gap: 10px; }
    .xhero-search input,
    .xhero-search select,
    .xhero-search button { width: 100%; min-height: 48px; }
    .xhero-search .xsearch-icon { display: none; }
    .xhero-chips { justify-content: center; }
    .xhero-trust { flex-direction: column; align-items: center; text-align: center; }
    .xhero-avatars { justify-content: center; }
    .xhero-art { display: none; }
    .xsection { padding: 60px 0; }
    .xsection-title h2 { font-size: 28px; }
    .xsection-title p { font-size: 15px; }
    .xcat-grid { grid-template-columns: 1fr; }
    .xcards { grid-template-columns: 1fr; }
    .xsteps { grid-template-columns: 1fr; gap: 20px; }
    .xsteps::before { display: none; }
    .xtesti-track { grid-template-columns: 1fr; }
    .xtesti-grid { grid-template-columns: 1fr; }
    .xstats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .xstat { padding: 18px 12px; }
    .xproject-grid { grid-template-columns: 1fr; }
    .xproject-card { padding: 18px; }
    .xproject-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
    .xcenter-btn .btn { width: 100%; }
}

@media (max-width: 520px) {
    .xhero { padding-top: 100px; padding-bottom: 72px; margin-top: -64px; }
    .xhero-title { font-size: 28px; }
    .xhero-sub { font-size: 14px; line-height: 1.65; }
    .xhero-chips { gap: 6px; }
    .xhero-chips a { font-size: 12px; padding: 8px 12px; }
    .xstats-grid { grid-template-columns: 1fr; }
    .xstat { padding: 18px 14px; }
    .xsection-title { margin-bottom: 36px; }
    .xsection-title h2 { font-size: 24px; line-height: 1.18; }
    .xsection-title p { font-size: 14px; }
    .xstep,
    .xcat-card,
    .xproject-card,
    .xtesti-card {
        padding-left: 18px;
        padding-right: 18px;
    }
    .xproject-title { font-size: 16px; }
    .xproject-desc { font-size: 13px; }
}

/* ============================================================
   AUTH PAGES — premium dark glass login / register
   ============================================================ */
.xauth {
    position: relative;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px 64px;
    overflow: hidden;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(139, 92, 246, 0.16), transparent 60%),
        radial-gradient(800px 500px at -10% 30%, rgba(37, 99, 235, 0.22), transparent 60%),
        radial-gradient(700px 600px at 60% 110%, rgba(6, 182, 212, 0.14), transparent 60%),
        #0b1220;
}

.xauth::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 25%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 25%, transparent 75%);
    pointer-events: none;
}

.xauth-wrap {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    width: 100%;
    border-radius: 26px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 40px 100px rgba(2, 6, 23, 0.6);
    animation: xfade-up 0.7s ease both;
}

/* gradient border glow */
.xauth-wrap::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 27px;
    padding: 1px;
    background: linear-gradient(120deg, rgba(37,99,235,0.8), rgba(6,182,212,0.6), rgba(139,92,246,0.8));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.55;
    pointer-events: none;
}

/* ---------- Left brand panel ---------- */
.xauth-side {
    position: relative;
    padding: 46px 42px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 15%, rgba(99, 102, 241, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(6, 182, 212, 0.22) 0%, transparent 40%),
        linear-gradient(160deg, rgba(15, 23, 42, 0.6), rgba(30, 27, 75, 0.55));
    color: #fff;
    z-index: 5;
}

.xauth-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 34px;
}

.xauth-logo .xlogo-badge {
    width: 44px; height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.45);
    animation: xfloat 5s ease-in-out infinite;
}

.xauth-side h2 {
    font-size: clamp(24px, 2.6vw, 31px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin: 0 0 12px;
    position: relative;
    z-index: 1;
}

.xauth-side h2 .xgrad {
    background: linear-gradient(90deg, #60a5fa, #22d3ee, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.xauth-side .xlead {
    color: #94a3b8;
    font-size: 14.5px;
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 340px;
    position: relative;
    z-index: 1;
}

.xauth-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
    position: relative;
    z-index: 1;
}

.xauth-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: #cbd5e1;
}

.xauth-features li i {
    width: 34px; height: 34px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    color: #7dd3fc;
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.3s ease;
}

.xauth-features li:hover i {
    transform: translateY(-2px) scale(1.06);
    background: rgba(37, 99, 235, 0.25);
}

/* floating mini card on side panel */
.xauth-float {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 17px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.5);
    z-index: 1;
    margin-top: 28px;
    align-self: flex-start;
}

.xauth-float .xf-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    background: linear-gradient(135deg, #059669, #34d399);
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.4);
    flex-shrink: 0;
}

.xauth-float strong { display: block; font-size: 15px; color: #34d399; font-family: 'Poppins', sans-serif; }
.xauth-float small { color: #94a3b8; font-size: 11.5px; }

/* auth blobs - smaller and dimmer to avoid overlapping form */
.xauth .xblob {
    opacity: 0.35;
    filter: blur(120px);
}
.xauth .xblob-1 { width: 300px; height: 300px; top: -80px; left: -80px; }
.xauth .xblob-2 { width: 260px; height: 260px; bottom: -60px; right: -60px; }

.xauth .xhero-particles {
    opacity: 0.4;
}

/* ---------- Right form panel ---------- */
.xauth-main {
    background: rgba(255, 255, 255, 0.97);
    padding: 44px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.xauth-main h1 {
    font-size: 26px;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.4px;
}

.xauth-main .xsub {
    color: #64748b;
    margin: 0 0 26px;
    font-size: 14.5px;
}

/* fields with icons */
.xfield {
    position: relative;
    margin-bottom: 16px;
}

.xfield > i.xf-icon {
    position: absolute;
    left: 15px;
    top: 38px;
    color: #94a3b8;
    font-size: 14.5px;
    pointer-events: none;
    transition: color 0.3s ease;
    z-index: 1;
}

.xfield input {
    width: 100%;
    padding: 13px 16px 13px 44px;
    border: 2px solid #e2e8f0;
    border-radius: 13px;
    font-size: 14.5px;
    font-family: inherit;
    background: #f8fafc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    color: #0f172a;
    height: 48px;
}

.xfield input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.xfield:focus-within > i.xf-icon { color: #2563eb; }

.xfield .pass-toggle {
    position: absolute;
    right: 10px;
    top: 65%;
    transform: translateY(-50%);
    width: 34px; height: 34px;
    border: none;
    background: transparent;
    border-radius: 9px;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.25s ease, background 0.25s ease;
    z-index: 2;
}

.xfield .pass-toggle:hover { color: #2563eb; background: rgba(37, 99, 235, 0.08); }

.xauth-label {
    display: block;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.4;
}

/* auth button */
.xbtn-auth {
    width: 100%;
    padding: 14px;
    font-size: 15.5px;
    margin-top: 10px;
    border: none;
    border-radius: 13px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    background-size: 160% 160%;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.35);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.xbtn-auth::after {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 45%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-22deg);
    transition: left 0.6s ease;
}

.xbtn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(6, 182, 212, 0.45);
    background-position: 100% 100%;
}

.xbtn-auth:hover::after { left: 130%; }

.xauth-link {
    text-align: center;
    margin-top: 22px;
    color: #64748b;
    font-size: 14px;
}

.xauth-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

.xauth-link a:hover { text-decoration: underline; }

/* error / flash boxes */
.xerror-box {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 13px;
    padding: 12px 16px;
    margin-bottom: 18px;
    color: #dc2626;
    font-size: 13.5px;
}

.xerror-box ul { list-style: none; margin: 0; padding: 0; }
.xerror-box li { padding: 3px 0; }
.xerror-box li::before {
    content: '\f06a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
    font-size: 12px;
}

/* role selector (register) */
.xrole-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.xrole-option input[type="radio"] { display: none; }

.xrole-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: #f8fafc;
}

.xrole-option label i {
    font-size: 24px;
    margin-bottom: 7px;
    color: #64748b;
    transition: all 0.3s ease;
}

.xrole-option label span { font-weight: 700; font-size: 13.5px; color: #334155; }
.xrole-option label small { color: #94a3b8; font-size: 11px; margin-top: 3px; }

.xrole-option input[type="radio"]:checked + label {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.xrole-option input[type="radio"]:checked + label i {
    color: #2563eb;
    transform: scale(1.12);
}

.xauth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
}

@media (max-width: 880px) {
    .xauth-wrap { grid-template-columns: 1fr; }
    .xauth-side { padding: 34px 30px; }
    .xauth-features { display: none; }
    .xauth-float { display: none; }
    .xauth-main { padding: 36px 30px; }
}

@media (max-width: 560px) {
    .xauth-row { grid-template-columns: 1fr; }
    .xauth { padding: 24px 14px 32px; }
    .xauth-wrap { border-radius: 22px; }
    .xauth-side { padding: 28px 22px; }
    .xauth-main { padding: 28px 20px; }
    .xauth-main h1 { font-size: 22px; }
    .xauth-main .xsub { font-size: 13.5px; margin-bottom: 22px; }
    .xfield input { height: 46px; }
    .xfield > i.xf-icon { top: 36px; }
    .xrole-grid { grid-template-columns: 1fr; }
    .xbtn-auth { padding: 13px; font-size: 15px; }
    .xauth-link { font-size: 13px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .reveal-stagger > * { opacity: 1; transform: none; }
}
