:root {
    --fb-blue: #203c86;
    --fb-cream: #f7f5cb;
    --fb-yellow: #ffff99;
    --fb-green: #25d366;
    --fb-bg: #f5f4ee;
    --fb-blue-50: rgba(32, 60, 134, 0.51);
    --fb-blue-28: rgba(32, 60, 134, 0.28);
    --fb-cream-13: rgba(247, 245, 203, 0.13);
}

/* Breadcrumb */
.fb-breadcrumb {
    background: var(--fb-bg);
    padding: 16px 20px;
    border-bottom: 1px solid var(--fb-cream-13);
}

.fb-breadcrumb__inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(32, 60, 134, 0.6);
}

.fb-breadcrumb a {
    color: var(--fb-blue);
    text-decoration: none;
}

.fb-breadcrumb a:hover {
    text-decoration: underline;
}

/* Hero */
.fb-testi-hero {
    background: var(--fb-blue);
    padding: 60px 20px 50px;
    text-align: center;
    direction: rtl;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fb-testi-hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.fb-testi-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--fb-cream-13);
    border: 1px solid var(--fb-green);
    color: var(--fb-cream);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.fb-testi-hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fb-green);
    animation: fbLivePulse 2s ease-in-out infinite;
}

@keyframes fbLivePulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.fb-testi-hero__title {
    color: var(--fb-cream);
    font-size: clamp(26px, 5vw, 42px);
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.fb-testi-hero__divider {
    width: 60px;
    height: 3px;
    background: var(--fb-cream);
    border-radius: 2px;
    margin: 0 auto 24px;
    opacity: 0.4;
    position: relative;
    z-index: 1;
}

.fb-testi-hero__desc {
    color: var(--fb-cream);
    font-size: 16px;
    line-height: 1.9;
    max-width: 600px;
    margin: 0 auto 36px;
    opacity: 0.85;
    position: relative;
    z-index: 1;
}

.fb-testi-hero__desc strong {
    color: var(--fb-yellow);
}

/* Write Review Button in Hero */
.fb-hero-write-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--fb-yellow);
    color: var(--fb-blue);
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 16px rgba(255, 255, 153, 0.3);
    position: relative;
    z-index: 1;
    margin-top: 20px;
    margin-bottom: 0;
}

.fb-hero-write-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 255, 153, 0.4);
}

.fb-hero-write-btn i {
    font-size: 18px;
}

/* Stats */
.fb-stats {
    display: flex;
    justify-content: center;
    border: 1px solid var(--fb-cream-13);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    margin: 0 auto 20px;
}

.fb-stats__item {
    padding: 16px 28px;
    text-align: center;
    border-right: 1px solid var(--fb-cream-13);
}

.fb-stats__item:last-child {
    border-right: none;
}

.fb-stats__num {
    color: var(--fb-yellow);
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}

.fb-stats__label {
    color: var(--fb-cream);
    font-size: 12px;
    opacity: 0.75;
    white-space: nowrap;
}

/* ═══════════════════════════════════════ */
/* ⭐ FORM SECTION - HIDDEN BY DEFAULT */
/* ═══════════════════════════════════════ */
.fb-form-section {
    background: white;
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    transition:
        max-height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        padding-top 0.4s ease,
        padding-bottom 0.4s ease;
}

.fb-form-section.is-open {
    max-height: 2500px;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* رسائل النجاح/الخطأ تظهر دائمًا حتى لو الفورم مغلق */
.fb-form-section .fb-alert {
    margin: 0 0 20px;
}

.fb-testi-form {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 40px rgba(32, 60, 134, 0.1);
    border: 1px solid rgba(32, 60, 134, 0.08);
}

.fb-testi-form__title {
    color: var(--fb-blue);
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.fb-testi-form__subtitle {
    color: var(--fb-blue);
    opacity: 0.6;
    font-size: 14px;
    text-align: center;
    margin-bottom: 32px;
}

.fb-form-group {
    margin-bottom: 20px;
}

.fb-form-label {
    display: block;
    color: var(--fb-blue);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: right;
}

.fb-form-label .required {
    color: #dc2743;
}

.fb-form-input,
.fb-form-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(32, 60, 134, 0.15);
    border-radius: 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--fb-blue);
    background: #fafafa;
    transition: all 0.3s ease;
    direction: rtl;
    text-align: right;
}

.fb-form-input:focus,
.fb-form-textarea:focus {
    outline: none;
    border-color: var(--fb-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(32, 60, 134, 0.08);
}

.fb-form-input::placeholder,
.fb-form-textarea::placeholder {
    color: rgba(32, 60, 134, 0.4);
    text-align: right;
}

.fb-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.fb-form-error {
    color: #dc2743;
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-start;
}

/* ⭐ Half-Star Rating System */
/* ⭐ Dropdown Rating System */
.fb-rating-select-wrap {
    position: relative;
}

.fb-rating-select {
    width: 100%;
    padding: 14px 50px 14px 18px;
    border: 2px solid rgba(32, 60, 134, 0.15);
    border-radius: 14px;
    font-size: 16px;
    font-family: inherit;
    color: var(--fb-blue);
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    direction: rtl;
    text-align: right;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.fb-rating-select:focus {
    outline: none;
    border-color: var(--fb-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(32, 60, 134, 0.08);
}

.fb-rating-select option {
    font-size: 16px;
    padding: 10px;
    direction: rtl;
}

/* سهم القائمة المنسدلة */
.fb-rating-select-wrap::after {
    content: "▼";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fb-blue);
    font-size: 12px;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.fb-rating-select-wrap:focus-within::after {
    transform: translateY(-50%) rotate(180deg);
}

/* عرض التقييم المختار */
.fb-rating-display {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--fb-blue);
    border-radius: 14px;
    color: var(--fb-cream);
    font-size: 15px;
    font-weight: 600;
    animation: fbFadeUp 0.3s ease;
}

.fb-rating-display.is-visible {
    display: flex;
}

.fb-rating-display__emoji {
    font-size: 24px;
}

.fb-rating-display__text {
    flex: 1;
}

.fb-rating-display__num {
    background: var(--fb-yellow);
    color: var(--fb-blue);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 800;
}

.fb-form-submit {
    width: 100%;
    padding: 16px;
    background: var(--fb-blue);
    color: var(--fb-cream);
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    margin-top: 8px;
}

.fb-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(32, 60, 134, 0.3);
}

.fb-form-submit:active {
    transform: translateY(0);
}

.fb-alert {
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fbFadeUp 0.5s ease;
}

.fb-alert--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.fb-alert--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.fb-input-icon {
    position: relative;
}

.fb-input-icon__prefix {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(32, 60, 134, 0.4);
    font-size: 14px;
    font-weight: 700;
}

.fb-input-icon input {
    padding-right: 40px;
    text-align: right;
}

/* Filters */
.fb-filter-bar {
    background: var(--fb-bg);
    padding: 24px 20px 0;
    direction: rtl;
}

.fb-filter-bar__inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.fb-filter__group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.fb-filter__btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1.5px solid var(--fb-blue);
    background: transparent;
    color: var(--fb-blue);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: inherit;
    user-select: none;
}

.fb-filter__btn:hover,
.fb-filter__btn.active {
    background: var(--fb-blue);
    color: var(--fb-cream);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--fb-blue-28);
}

/* Grid */
.fb-testi-section {
    background: var(--fb-bg);
    padding: 30px 20px 70px;
    direction: rtl;
}

.fb-testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
    margin-top: 30px;
}

/* Card */
.fb-testi-card {
    background: var(--fb-blue);
    border-radius: 24px;
    overflow: hidden;
    transition:
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.5s ease;
    box-shadow: 0 4px 20px var(--fb-blue-28);
    cursor: pointer;
    position: relative;
    border: 1px solid var(--fb-cream-13);
    opacity: 0;
    transform: translateY(30px);
    animation: fbFadeUp 0.6s ease forwards;
    display: flex;
    flex-direction: column;
}

.fb-testi-card:nth-child(1) {
    animation-delay: 0.05s;
}

.fb-testi-card:nth-child(2) {
    animation-delay: 0.1s;
}

.fb-testi-card:nth-child(3) {
    animation-delay: 0.15s;
}

.fb-testi-card:nth-child(4) {
    animation-delay: 0.2s;
}

.fb-testi-card:nth-child(5) {
    animation-delay: 0.25s;
}

.fb-testi-card:nth-child(6) {
    animation-delay: 0.3s;
}

.fb-testi-card:nth-child(7) {
    animation-delay: 0.35s;
}

.fb-testi-card:nth-child(8) {
    animation-delay: 0.4s;
}

@keyframes fbFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fb-testi-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow:
        0 25px 50px rgba(32, 60, 134, 0.4),
        0 0 0 2px rgba(247, 245, 203, 0.15),
        0 0 30px rgba(255, 255, 153, 0.1);
    border-color: rgba(247, 245, 203, 0.3);
}

.fb-testi-card__featured {
    position: absolute;
    top: -4px;
    left: 45%;
    color: var(--fb-yellow);
    font-size: 20px;
    font-weight: 800;
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
    animation: fbCrownPulse 2.5s ease-in-out infinite;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

@keyframes fbCrownPulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.08);
    }
}

.fb-testi-card__img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin: 14px 14px 0;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.15);
}

.fb-testi-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 18px;
}

.fb-testi-card:hover .fb-testi-card__img {
    transform: scale(1.08);
}

.fb-testi-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        var(--fb-blue-50) 0%,
        rgba(32, 60, 134, 0.1) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
}

.fb-testi-card:hover .fb-testi-card__overlay {
    opacity: 1;
}

.fb-testi-card__zoom {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(247, 245, 203, 0.95);
    color: var(--fb-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transform: scale(0.8) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.fb-testi-card:hover .fb-testi-card__zoom {
    transform: scale(1) translateY(0);
}

.fb-testi-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 10px;
    border-bottom: 1px solid rgba(247, 245, 203, 0.08);
    direction: rtl;
    gap: 12px;
}

.fb-testi-card__header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.fb-testi-card__icon {
    width: 18px;
    height: 18px;
    fill: rgba(247, 245, 203, 0.45);
    flex-shrink: 0;
}

.fb-testi-card__name {
    color: var(--fb-cream);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fb-testi-card__header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    flex-shrink: 0;
}

.fb-testi-card__stars {
    color: var(--fb-yellow);
    font-size: 13px;
    letter-spacing: 1px;
    line-height: 1;
}

.fb-testi-card__date {
    color: rgba(247, 245, 203, 0.55);
    font-size: 11px;
    line-height: 1;
}

.fb-testi-card__body {
    padding: 14px 20px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fb-testi-card__text {
    color: var(--fb-cream);
    font-size: 14px;
    line-height: 1.9;
    direction: rtl;
    text-align: right;
    unicode-bidi: plaintext;
    margin: 0;
    overflow: hidden;
    transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.fb-testi-card__text.is-clamped {
    max-height: 5.7em;
}

.fb-read-more {
    display: inline-block;
    background: none;
    border: none;
    color: var(--fb-yellow);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    padding: 6px 0 0;
    margin: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
    text-align: right;
}

.fb-read-more:hover {
    text-decoration: underline;
    opacity: 0.85;
}

.fb-testi-card__footer {
    padding: 14px 20px 18px;
    display: flex;
    align-items: center;
    gap: 0;
}

.fb-testi-card__footer .fb-testi-card__name {
    color: var(--fb-cream);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.fb-testi-card__footer-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    flex-wrap: wrap;
}

/* Lightbox */
.fb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.fb-lightbox.active {
    display: flex;
    animation: fbLightboxIn 0.3s ease;
}

@keyframes fbLightboxIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fb-lightbox__content {
    position: relative;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fb-lightbox__img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.fb-lightbox__caption {
    color: var(--fb-cream);
    margin-top: 16px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.fb-lightbox__close {
    position: absolute;
    top: -50px;
    right: 50%;
    transform: translateX(50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.fb-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.fb-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.fb-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.fb-lightbox__prev {
    left: -70px;
}

.fb-lightbox__next {
    right: -70px;
}

@media (max-width: 1100px) {
    .fb-lightbox__prev {
        left: 10px;
        top: auto;
        bottom: 20px;
    }

    .fb-lightbox__next {
        right: 10px;
        top: auto;
        bottom: 20px;
    }
}

/* CTAs */
.fb-testi-cta {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    border: 2px dashed var(--fb-blue);
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fb-testi-cta__text {
    color: var(--fb-blue);
    font-size: 18px;
    margin-bottom: 24px;
    font-weight: 700;
    line-height: 1.6;
}

.fb-testi-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--fb-green);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.fb-testi-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.fb-instagram-cta {
    background: linear-gradient(
        135deg,
        #f09433 0%,
        #e6683c 25%,
        #dc2743 50%,
        #cc2366 75%,
        #bc1888 100%
    );
    padding: 40px 20px;
    text-align: center;
    border-radius: 20px;
    margin: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(220, 39, 67, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fb-instagram-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.fb-instagram-cta__icon {
    font-size: 48px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.fb-instagram-cta__text {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.fb-instagram-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #dc2743;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.fb-instagram-cta__btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.fb-ctas-row {
    display: flex;
    gap: 24px;
    max-width: 1100px;
    margin: 50px auto 0;
    align-items: stretch;
}

.fb-ctas-row > * {
    flex: 1;
    min-width: 0;
}

.fb-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--fb-blue);
    font-size: 16px;
    display: none;
}

.fb-no-results.show {
    display: block;
    animation: fbFadeUp 0.4s ease;
}

/* Bottom Write Review Button */
.fb-bottom-write-section {
    text-align: center;
    padding: 40px 20px;
    background: var(--fb-bg);
    direction: rtl;
}

.fb-bottom-write-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--fb-blue);
    color: var(--fb-cream);
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(32, 60, 134, 0.3);
}

.fb-bottom-write-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(32, 60, 134, 0.4);
}

/* ═══════════════════════════════════════ */
/* ⭐ SUCCESS CELEBRATION OVERLAY */
/* ═══════════════════════════════════════ */
.fb-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: rgba(32, 60, 134, 0.85);
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.fb-success-overlay.is-visible {
    display: flex;
    opacity: 1;
}

.fb-success-overlay__content {
    text-align: center;
    color: var(--fb-cream);
    transform: scale(0.5) translateY(30px);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fb-success-overlay.is-visible .fb-success-overlay__content {
    transform: scale(1) translateY(0);
}

.fb-success-overlay__icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: fbSuccessBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

@keyframes fbSuccessBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.fb-success-overlay__title {
    font-size: clamp(24px, 5vw, 42px);
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.fb-success-overlay__subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

.fb-success-overlay__progress {
    width: 200px;
    height: 4px;
    background: rgba(247, 245, 203, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.fb-success-overlay__progress-bar {
    height: 100%;
    background: var(--fb-yellow);
    border-radius: 2px;
    width: 100%;
    transform-origin: right;
    animation: fbProgressShrink 4s linear forwards;
}

@keyframes fbProgressShrink {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

/* Canvas للفرقعات */
#confettiCanvas {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}

@media (max-width: 768px) {
    .fb-stats {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .fb-stats__item {
        border-right: none;
        border-bottom: 1px solid var(--fb-cream-13);
    }

    .fb-stats__item:last-child {
        border-bottom: none;
    }

    .fb-testi-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 16px;
    }

    .fb-lightbox__prev,
    .fb-lightbox__next {
        display: none;
    }

    .fb-ctas-row {
        flex-direction: column;
    }

    .fb-testi-form {
        padding: 24px;
    }

    .fb-star-rating label {
        font-size: 28px;
    }

    .fb-star-rating label.half-right,
    .fb-star-rating label.half-left {
        width: 14px;
    }

    .fb-star-rating label.half-right {
        margin-left: -14px;
    }

    .fb-star-rating label.half-left {
        margin-right: -14px;
    }

    .fb-star-rating label.full {
        width: 28px;
    }
}
