/* =====================================================
   Bera Software — Free Business Growth Check
   ===================================================== */

.bs-growth-check,
.bs-growth-check * {
    box-sizing: border-box;
}

.bs-growth-check {
    --bs-growth-yellow: #ffc43d;
    --bs-growth-dark: #0c0f13;
    --bs-growth-card: #15191f;
    --bs-growth-border: rgba(255, 255, 255, 0.11);
    --bs-growth-text: #f8f7f2;
    --bs-growth-muted: #aab0ba;

    font-family: inherit;
}


/* Fixed Side Button */
/* =====================================================
   Fixed Growth & Consultation Dock
   ===================================================== */

.bs-growth-side-dock {
    position: fixed;
    z-index: 9000;
    top: 50%;
    right: 0;

    display: flex;
    align-items: flex-end;
    flex-direction: column;

    pointer-events: none;

    /* এটি remove করা জরুরি */
    transform: none;
}

.bs-growth-side-dock > * {
    pointer-events: auto;
}

.bs-growth-side-dock > * {
    pointer-events: auto;
}


/* Growth Check Button */

.bs-growth-fixed-button {
    position: relative;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 15px 20px;

    border: 0;
    border-radius: 15px 0 0 15px;

    color: #0b0d10;
    background: var(--bs-growth-yellow);

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);

    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;

    cursor: pointer;

    transition:
        padding-right 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.bs-growth-fixed-button:hover {
    padding-right: 26px;

    background: #ffd166;

    box-shadow: 0 15px 42px rgba(0, 0, 0, 0.34);
}

.bs-growth-fixed-button svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Expert Card */

.bs-growth-expert-card {
    position: fixed;
    z-index: 8999;
    left: 18px;
    bottom: 18px;

    overflow: hidden;

    width: 290px;
    padding: 17px 18px 18px;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 17px;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 0 100%,
            rgba(255, 196, 61, 0.12),
            transparent 48%
        ),
        rgba(12, 15, 19, 0.97);

    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    animation:
        bsExpertCardReveal 550ms 900ms ease both;
}

.bs-growth-expert-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--bs-growth-yellow),
        transparent
    );
}

@keyframes bsExpertCardReveal {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Availability Label */

.bs-growth-expert-label {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 10px;

    color: var(--bs-growth-yellow);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bs-growth-expert-label i {
    position: relative;

    display: block;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #25d366;
}

.bs-growth-expert-label i::after {
    content: "";

    position: absolute;
    inset: -4px;

    border: 1px solid rgba(37, 211, 102, 0.5);
    border-radius: 50%;

    animation: bsExpertAvailable 1.8s ease-out infinite;
}

@keyframes bsExpertAvailable {
    0% {
        opacity: 0.8;
        transform: scale(0.55);
    }

    75%,
    100% {
        opacity: 0;
        transform: scale(1.25);
    }
}


/* Expert Card Copy */

.bs-growth-expert-card strong {
    display: block;

    margin: 0;

    color: #ffffff;

    font-size: 15px;
    font-weight: 750;
    line-height: 1.3;
}

.bs-growth-expert-card p {
    margin: 8px 0 14px;

    color: #aeb4bd;

    font-size: 11px;
    line-height: 1.55;
}


/* WhatsApp Button */

.bs-growth-whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    padding: 11px 13px;

    border-radius: 9px;

    color: #ffffff;
    background: #168c45;

    font-size: 11px;
    font-weight: 800;
    text-decoration: none;

    transition:
        background 180ms ease,
        transform 180ms ease;
}

.bs-growth-whatsapp-link:hover {
    color: #ffffff;
    background: #20a955;

    transform: translateY(-2px);
}

.bs-growth-whatsapp-link svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Hidden on Desktop */

.bs-growth-mobile-whatsapp {
    display: none;
}


/* Shared Overlay */

.bs-growth-overlay[hidden] {
    display: none;
}

.bs-growth-overlay {
    position: fixed;
    z-index: 50000;
    inset: 0;

    display: grid;
    place-items: center;

    padding: 20px;

    background: rgba(5, 7, 10, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.bs-growth-lock {
    overflow: hidden;
}


/* Invitation Popup */

.bs-growth-invitation {
    position: relative;
    overflow: hidden;

    width: min(480px, 100%);
    padding: 34px;

    border: 1px solid var(--bs-growth-border);
    border-radius: 24px;

    color: var(--bs-growth-text);
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(255, 196, 61, 0.18),
            transparent 38%
        ),
        var(--bs-growth-dark);

    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.48);

    animation: bsGrowthPopupIn 350ms ease both;
}

.bs-growth-invitation::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--bs-growth-yellow),
        transparent
    );
}

.bs-growth-close {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;

    display: grid;
    place-items: center;

    width: 36px;
    height: 36px;
    padding: 0;

    border: 1px solid var(--bs-growth-border);
    border-radius: 50%;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);

    font-family: inherit;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;
}

.bs-growth-mini-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 17px;

    color: var(--bs-growth-yellow);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bs-growth-mini-label::before {
    content: "✦";
}

.bs-growth-invitation h2 {
    max-width: 390px;
    margin: 0;

    color: #ffffff;

    font-size: clamp(29px, 5vw, 39px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.bs-growth-invitation > p {
    margin: 17px 0 20px;

    color: var(--bs-growth-muted);

    font-size: 15px;
    line-height: 1.65;
}

.bs-growth-benefits {
    display: grid;
    gap: 10px;

    margin: 0 0 25px;
    padding: 0;

    list-style: none;
}

.bs-growth-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #dce0e5;

    font-size: 13px;
}

.bs-growth-benefits li::before {
    content: "✓";

    display: grid;
    place-items: center;

    width: 19px;
    height: 19px;

    border-radius: 50%;

    color: #0b0d10;
    background: var(--bs-growth-yellow);

    font-size: 11px;
    font-weight: 900;
}

.bs-growth-start {
    width: 100%;
    padding: 15px 19px;

    border: 0;
    border-radius: 12px;

    color: #0b0d10;
    background: var(--bs-growth-yellow);

    font-family: inherit;
    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform 180ms ease,
        background 180ms ease;
}

.bs-growth-start:hover {
    background: #ffd36b;
    transform: translateY(-2px);
}

.bs-growth-later {
    display: block;

    margin: 14px auto 0;
    padding: 2px;

    border: 0;

    color: var(--bs-growth-muted);
    background: transparent;

    font-family: inherit;
    font-size: 12px;

    cursor: pointer;
}


/* Main Diagnostic Modal */

.bs-growth-dialog {
    position: relative;
    overflow: hidden;

    width: min(760px, 100%);
    min-height: 570px;
    max-height: calc(100dvh - 36px);

    border: 1px solid var(--bs-growth-border);
    border-radius: 25px;

    color: var(--bs-growth-text);
    background:
        radial-gradient(
            circle at 90% 5%,
            rgba(255, 196, 61, 0.09),
            transparent 29%
        ),
        var(--bs-growth-dark);

    box-shadow: 0 30px 110px rgba(0, 0, 0, 0.55);

    animation: bsGrowthPopupIn 300ms ease both;
}

@keyframes bsGrowthPopupIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* Modal Header */

.bs-growth-header {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 12px;

    padding: 16px 20px;

    border-bottom: 1px solid var(--bs-growth-border);
}

.bs-growth-back,
.bs-growth-dialog-close {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;
    padding: 0;

    border: 1px solid var(--bs-growth-border);
    border-radius: 50%;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.035);

    font-family: inherit;
    font-size: 20px;

    cursor: pointer;
}

.bs-growth-back[hidden] {
    visibility: hidden;
    display: grid;
}

.bs-growth-brand {
    text-align: center;
}

.bs-growth-brand strong {
    display: block;

    color: #ffffff;

    font-size: 13px;
    font-weight: 800;
}

.bs-growth-brand span {
    display: block;

    margin-top: 3px;

    color: var(--bs-growth-yellow);

    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* Progress */

.bs-growth-progress {
    height: 4px;

    background: rgba(255, 255, 255, 0.07);
}

.bs-growth-progress span {
    display: block;

    width: 0;
    height: 100%;

    background: var(--bs-growth-yellow);

    transition: width 300ms ease;
}


/* Stage */

.bs-growth-stage {
    overflow-y: auto;

    min-height: 490px;
    max-height: calc(100dvh - 110px);
    padding: 42px 48px 38px;
}

.bs-growth-step-count {
    display: block;

    margin-bottom: 13px;

    color: var(--bs-growth-yellow);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bs-growth-question {
    max-width: 620px;
    margin: 0;

    color: #ffffff;

    font-size: clamp(28px, 4vw, 40px);
    font-weight: 680;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.bs-growth-description {
    margin: 13px 0 0;

    color: var(--bs-growth-muted);

    font-size: 14px;
    line-height: 1.6;
}


/* Business Name Screen */

.bs-growth-name-form {
    margin-top: 32px;
}

.bs-growth-input {
    width: 100%;
    padding: 16px 17px;

    border: 1px solid var(--bs-growth-border);
    border-radius: 12px;
    outline: none;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.045);

    font-family: inherit;
    font-size: 15px;

    transition:
        border-color 180ms ease,
        background 180ms ease;
}

.bs-growth-input:focus {
    border-color: var(--bs-growth-yellow);
    background: rgba(255, 255, 255, 0.065);
}

.bs-growth-input::placeholder {
    color: #737984;
}

.bs-growth-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 13px 21px;

    border: 0;
    border-radius: 11px;

    color: #0b0d10;
    background: var(--bs-growth-yellow);

    font-family: inherit;
    font-size: 13px;
    font-weight: 800;

    cursor: pointer;
}

.bs-growth-name-actions {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-top: 18px;
}

.bs-growth-skip {
    padding: 8px 2px;

    border: 0;

    color: var(--bs-growth-muted);
    background: transparent;

    font-family: inherit;
    font-size: 12px;

    cursor: pointer;
}


/* Answer Options */

.bs-growth-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;

    margin-top: 27px;
}

.bs-growth-option {
    display: flex;
    align-items: center;
    gap: 13px;

    min-height: 59px;
    padding: 13px 15px;

    border: 1px solid var(--bs-growth-border);
    border-radius: 12px;

    color: #e9ebee;
    background: rgba(255, 255, 255, 0.032);

    font-family: inherit;
    font-size: 12px;
    font-weight: 620;
    line-height: 1.4;
    text-align: left;

    cursor: pointer;

    transition:
        color 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        transform 180ms ease;
}

.bs-growth-option:hover,
.bs-growth-option.is-selected {
    border-color: rgba(255, 196, 61, 0.75);

    color: #ffffff;
    background: rgba(255, 196, 61, 0.1);

    transform: translateY(-2px);
}

.bs-growth-option-number {
    flex: 0 0 auto;

    display: grid;
    place-items: center;

    width: 28px;
    height: 28px;

    border: 1px solid var(--bs-growth-border);
    border-radius: 8px;

    color: var(--bs-growth-yellow);

    font-size: 10px;
    font-weight: 800;
}


/* Result */

.bs-growth-result-heading {
    margin: 0;

    color: #ffffff;

    font-size: clamp(31px, 5vw, 46px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.bs-growth-result-summary {
    margin: 17px 0 24px;

    color: #c9ced6;

    font-size: 14px;
    line-height: 1.7;
}

.bs-growth-result-card {
    padding: 20px;

    border: 1px solid rgba(255, 196, 61, 0.25);
    border-radius: 15px;

    background: rgba(255, 196, 61, 0.065);
}

.bs-growth-result-card small {
    display: block;

    margin-bottom: 7px;

    color: var(--bs-growth-yellow);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bs-growth-result-card h3 {
    margin: 0;

    color: #ffffff;

    font-size: 21px;
}

.bs-growth-secondary {
    margin: 9px 0 0;

    color: var(--bs-growth-muted);

    font-size: 12px;
}

.bs-growth-action-list {
    display: grid;
    gap: 9px;

    margin: 20px 0 0;
    padding: 0;

    list-style: none;
}

.bs-growth-action-list li {
    position: relative;

    padding-left: 27px;

    color: #dce0e5;

    font-size: 13px;
    line-height: 1.55;
}

.bs-growth-action-list li::before {
    content: "✓";

    position: absolute;
    top: 0;
    left: 0;

    color: var(--bs-growth-yellow);

    font-weight: 900;
}

.bs-growth-result-actions {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-wrap: wrap;

    margin-top: 24px;
}

.bs-growth-restart {
    padding: 12px 5px;

    border: 0;

    color: var(--bs-growth-muted);
    background: transparent;

    font-family: inherit;
    font-size: 12px;

    cursor: pointer;
}


/* Lead Form */

.bs-growth-lead-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;

    margin-top: 27px;
}

.bs-growth-field {
    display: grid;
    gap: 7px;
}

.bs-growth-field-full {
    grid-column: 1 / -1;
}

.bs-growth-field label {
    color: #dfe2e7;

    font-size: 11px;
    font-weight: 700;
}

.bs-growth-consent {
    grid-column: 1 / -1;

    display: flex;
    align-items: flex-start;
    gap: 9px;

    margin-top: 3px;

    color: var(--bs-growth-muted);

    font-size: 10px;
    line-height: 1.5;
}

.bs-growth-consent input {
    margin-top: 2px;

    accent-color: var(--bs-growth-yellow);
}

.bs-growth-submit {
    grid-column: 1 / -1;

    min-height: 50px;
    margin-top: 4px;
}

.bs-growth-form-note {
    grid-column: 1 / -1;

    margin: 0;

    color: #777e89;

    font-size: 9px;
    line-height: 1.5;
    text-align: center;
}


/* Focus */

.bs-growth-check button:focus-visible,
.bs-growth-check input:focus-visible {
    outline: 2px solid var(--bs-growth-yellow);
    outline-offset: 3px;
}


/* Mobile */

@media (max-width: 700px) {

    .bs-growth-fixed-button {
        top: auto;
        right: 14px;
        bottom: 16px;

        padding: 12px 15px;

        border-radius: 50px;

        font-size: 11px;
    }

    .bs-growth-overlay {
        align-items: end;

        padding: 10px;
    }

    .bs-growth-invitation {
        padding: 30px 22px 24px;

        border-radius: 22px;
    }

    .bs-growth-dialog {
        width: 100%;
        min-height: min(690px, calc(100dvh - 20px));
        max-height: calc(100dvh - 20px);

        border-radius: 22px;
    }

    .bs-growth-header {
        padding: 12px 14px;
    }

    .bs-growth-stage {
        min-height: 0;
        max-height: calc(100dvh - 90px);
        padding: 29px 20px 30px;
    }

    .bs-growth-question {
        font-size: 29px;
    }

    .bs-growth-options {
        grid-template-columns: 1fr;
        gap: 9px;

        margin-top: 23px;
    }

    .bs-growth-option {
        min-height: 54px;
    }

    .bs-growth-lead-form {
        grid-template-columns: 1fr;
    }

    .bs-growth-field-full,
    .bs-growth-consent,
    .bs-growth-submit,
    .bs-growth-form-note {
        grid-column: auto;
    }

}


/* Reduced Motion */

@media (prefers-reduced-motion: reduce) {

    .bs-growth-invitation,
    .bs-growth-dialog {
        animation: none;
    }

    .bs-growth-fixed-button,
    .bs-growth-start,
    .bs-growth-option,
    .bs-growth-progress span {
        transition: none;
    }

}

/* =====================================================
   MOBILE FLOATING ACTIONS FIX
   ===================================================== */

@media (max-width: 700px) {

    /* Bottom compact button dock */
    .bs-growth-side-dock {
        top: auto;
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));

        flex-direction: row;
        align-items: center;
        gap: 10px;

        transform: none;
    }

    /* Hide large expert card on mobile */
    .bs-growth-expert-card {
        display: none !important;
    }

    /* Compact Growth Check button */
    .bs-growth-fixed-button {
        position: relative;
        inset: auto;

        min-height: 48px;
        padding: 12px 16px;

        border-radius: 999px;

        font-size: 11px;

        box-shadow:
            0 8px 25px rgba(0, 0, 0, 0.28);
    }

    .bs-growth-fixed-button:hover {
        padding-right: 16px;
    }

    .bs-growth-fixed-button svg {
        width: 17px;
        height: 17px;
    }

    /* Compact WhatsApp icon */
    .bs-growth-mobile-whatsapp {
        width: 48px;
        height: 48px;

        display: grid;
        flex: 0 0 48px;
        place-items: center;

        color: #ffffff;
        background: #168c45;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 50%;

        box-shadow:
            0 8px 25px rgba(0, 0, 0, 0.28);

        text-decoration: none;
    }

    .bs-growth-mobile-whatsapp svg {
        width: 22px;
        height: 22px;

        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
}