.lb24-inline-cta {
    /* طیف رنگی جدید: قرمز پرانرژی و سرمه‌ای/آبی نفتی عمیق */
    --lb24-red-light: #ff334b;
    --lb24-red: #e01b3c;
    --lb24-navy-dark: #0f1e36;
    --lb24-navy-deep: #081020;
    --lb24-radius: 20px;
    --lb24-radius-sm: 14px;
    --lb24-ease: cubic-bezier(0.22, 1, 0.36, 1);

    margin: 36px 0;
    direction: rtl;
    container-type: inline-size;
}

.lb24-inline-cta *,
.lb24-inline-cta *::before,
.lb24-inline-cta *::after {
    box-sizing: border-box;
}

@keyframes lb24-gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes lb24-float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(-14px, 12px, 0) scale(1.06); }
}

@keyframes lb24-shine {
    0%   { transform: translateX(-160%) skewX(-18deg); }
    70%  { transform: translateX(220%) skewX(-18deg); }
    100% { transform: translateX(220%) skewX(-18deg); }
}

@keyframes lb24-fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- قالب اصلی ---------- */
.lb24-inline-cta__inner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(22px, 4vw, 38px);
    border-radius: var(--lb24-radius);
    color: #fff;
    /* تلفیق گرادیان متحرک با قرمزهای زنده و سرمه‌ای عمیق */
    background:
        linear-gradient(135deg,
            var(--lb24-red-light) 0%,
            var(--lb24-red) 35%,
            var(--lb24-navy-dark) 70%,
            var(--lb24-navy-deep) 100%);
    background-size: 220% 220%;
    animation: lb24-gradient-shift 14s ease infinite;
    /* ایجاد عمق بصری با سایه سرمه‌ای تیره */
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.25) inset,
        0 22px 50px rgba(8, 16, 32, 0.4);
}

.lb24-inline-cta__inner::before {
    content: "";
    position: absolute;
    inset: -20%;
    z-index: -1;
    /* افکت هاله‌های نوری قرمز کم‌رنگ و آبی آسمانی در پس‌زمینه */
    background:
        radial-gradient(circle at 82% 12%, rgba(255, 51, 75, 0.28), transparent 42%),
        radial-gradient(circle at 12% 88%, rgba(26, 115, 232, 0.2), transparent 38%);
    animation: lb24-float 11s ease-in-out infinite;
    pointer-events: none;
}

.lb24-inline-cta__inner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 78% 8%, #000 0%, transparent 62%);
    -webkit-mask-image: radial-gradient(circle at 78% 8%, #000 0%, transparent 62%);
    pointer-events: none;
}

.lb24-inline-cta__content,
.lb24-inline-cta__actions {
    position: relative;
    z-index: 1;
}

.lb24-inline-cta__content {
    max-width: 62ch;
    animation: lb24-fade-up 0.7s var(--lb24-ease) both;
}

.lb24-inline-cta__title {
    margin: 0 0 12px;
    font-size: clamp(1.25rem, 2.4vw, 1.9rem);
    line-height: 1.6;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 6px 24px rgba(8, 16, 32, 0.55);
}

.lb24-inline-cta__text {
    margin: 0;
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    line-height: 2.05;
    color: rgba(255, 255, 255, 0.92);
}

/* ---------- دکمه‌ها ---------- */
.lb24-inline-cta__actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-top: 26px;
    animation: lb24-fade-up 0.7s var(--lb24-ease) 0.12s both;
}

.lb24-inline-cta__button {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 72px;
    padding: 16px 18px;
    border-radius: var(--lb24-radius-sm);
    /* شیشه مات تاریک بر پایه سرمه‌ای تیره */
    background: rgba(8, 16, 32, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    text-align: center;
    line-height: 1.6;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    box-shadow: 0 8px 20px rgba(8, 16, 32, 0.3);
    transition:
        transform 0.28s var(--lb24-ease),
        background 0.28s var(--lb24-ease),
        border-color 0.28s var(--lb24-ease),
        box-shadow 0.28s var(--lb24-ease);
}

.lb24-inline-cta__button::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 45%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: translateX(-160%) skewX(-18deg);
    pointer-events: none;
}

.lb24-inline-cta__button:hover::before,
.lb24-inline-cta__button:focus-visible::before {
    animation: lb24-shine 0.85s var(--lb24-ease);
}

.lb24-inline-cta__button span {
    display: block;
    margin-top: 7px;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    direction: ltr;
    unicode-bidi: isolate;
    letter-spacing: 0.6px;
    font-variant-numeric: tabular-nums;
}

.lb24-inline-cta__button:hover,
.lb24-inline-cta__button:focus-visible {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 18px 34px rgba(8, 16, 32, 0.45);
    color: #fff;
}

.lb24-inline-cta__button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.lb24-inline-cta__button:active {
    transform: translateY(-1px) scale(0.99);
}

/* دکمه اول به عنوان اقدام اصلی، با رنگ پس‌زمینه سفید و متن قرمز تیره برای کنتراست بی‌نظیر */
.lb24-inline-cta__button:first-child {
    background: #fff;
    color: var(--lb24-red);
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(8, 16, 32, 0.35);
}

.lb24-inline-cta__button:first-child span {
    color: var(--lb24-navy-dark);
}

.lb24-inline-cta__button:first-child:hover,
.lb24-inline-cta__button:first-child:focus-visible {
    background: #fff5f6; /* سفید با سایه‌انداز صورتی/قرمز بسیار ملایم */
    color: #b80d27;
}

/* ---------- ریسپانسیو ---------- */
@container (max-width: 620px) {
    .lb24-inline-cta__actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .lb24-inline-cta {
        margin: 28px 0;
    }

    .lb24-inline-cta__actions {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        margin-top: 22px;
    }
}

@media (max-width: 640px) {
    .lb24-inline-cta__actions {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .lb24-inline-cta__inner {
        border-radius: 16px;
    }

    .lb24-inline-cta__button {
        min-height: 66px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px 10px;
    }

    .lb24-inline-cta__button span {
        margin-top: 0;
    }

    .lb24-inline-cta__button:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .lb24-inline-cta__inner {
        padding: 24px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lb24-inline-cta__inner,
    .lb24-inline-cta__actions,
    .lb24-inline-cta__button,
    .lb24-inline-cta__inner::before,
    .lb24-inline-cta__button:hover::before {
        animation: none !important;
        transition: none !important;
    }
}
