/* Floating demo panel - Forex Broker Review Demo */
.fbr-demo-float {
    position: fixed;
    /* Flush to viewport bottom; on notched phones sit above the home indicator */
    bottom: env(safe-area-inset-bottom, 0px);
    z-index: 999999;
    max-width: min(22rem, calc(100vw - 2rem));
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: #0f172a;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12), 0 2px 10px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.fbr-demo-float--right {
    right: 1.25rem;
}

.fbr-demo-float--left {
    left: 1.25rem;
}

.fbr-demo-float:hover {
    box-shadow: 0 14px 48px rgba(15, 23, 42, 0.16), 0 4px 14px rgba(15, 23, 42, 0.08);
}

.fbr-demo-float__brand {
    font-weight: 600;
}

.fbr-demo-float__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    color: #f0fdfa;
    border-radius: 11px 11px 0 0;
    font-weight: 600;
}

.fbr-demo-float__badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.9;
}

.fbr-demo-float__body {
    padding: 0.85rem;
}

.fbr-demo-float__body p {
    margin: 0 0 0.65rem;
}

.fbr-demo-float__creds {
    font-size: 12px;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    margin-bottom: 0.65rem;
    word-break: break-all;
}

.fbr-demo-float__creds code {
    font-size: 12px;
    background: transparent;
}

.fbr-demo-float__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fbr-demo-float__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
}

.fbr-demo-float__btn--primary {
    background: #0d9488;
    color: #fff;
}

.fbr-demo-float__btn--primary:hover,
.fbr-demo-float__btn--primary:focus {
    background: #0f766e;
    color: #fff;
}

.fbr-demo-float__btn--xl {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 15px;
}

.fbr-demo-float__btn--ghost {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.fbr-demo-float__btn--ghost:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.fbr-demo-float__note {
    font-size: 11px;
    color: #64748b;
    margin-top: 0.5rem !important;
    margin-bottom: 0 !important;
}

.fbr-demo-float__toggle {
    margin-left: auto;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: inherit;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1;
    font-size: 18px;
}

.fbr-demo-float__alert {
    font-size: 13px;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    margin: 0 0 0.65rem;
}

.fbr-demo-float__details {
    margin-top: 0.75rem;
    font-size: 13px;
}

.fbr-demo-float__details summary {
    cursor: pointer;
    color: #0d9488;
    font-weight: 600;
}

.fbr-demo-float__details[open] summary {
    margin-bottom: 0.5rem;
}

.fbr-demo-float__link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 12px;
    color: #0d9488;
}

.fbr-demo-float--collapsed .fbr-demo-float__body {
    display: none;
}

.fbr-demo-float--collapsed {
    border-radius: 12px 12px 0 0;
}

@media (max-width: 600px) {
    .fbr-demo-float {
        bottom: env(safe-area-inset-bottom, 0px);
        max-width: calc(100vw - 1.25rem);
    }

    .fbr-demo-float--right {
        right: 0.65rem;
    }

    .fbr-demo-float--left {
        left: 0.65rem;
    }
}
