.bh-page {
    max-width: 960px;
    margin: 24px auto;
    padding: 0 16px;
    direction: rtl;
}

.bh-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    border-radius: 28px;
    padding: 28px 32px;
    min-height: 260px;
    overflow: hidden;
    background: radial-gradient(circle at 12% 30%, rgba(236, 72, 153, .35), transparent 40%), radial-gradient(circle at 90% 110%, rgba(56, 189, 248, .30), transparent 45%), linear-gradient(120deg, #3b0764 0%, #6b21a8 45%, #9333ea 100%);
    box-shadow: 0 14px 40px rgba(107, 33, 168, .35);
}

    .bh-hero::before {
        content: "";
        position: absolute;
        width: 380px;
        height: 380px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(216, 180, 254, .45), transparent 70%);
        left: -60px;
        top: -60px;
    }

.bh-hero-text {
    flex: 1;
    color: #fff;
    z-index: 1;
}

    .bh-hero-text h1 {
        font-size: 2rem;
        font-weight: 800;
        margin: 0 0 8px;
        color: white;
    }

    .bh-hero-text p {
        opacity: .85;
        margin: 0;
        color: white;
    }

.bh-bubble {
    display: inline-block;
    margin-top: 18px;
    background: #fff;
    color: #3b0764;
    padding: 14px 20px;
    border-radius: 20px 20px 20px 4px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
    max-width: 420px;
}

.bh-robot {
    width: 250px;
    z-index: 1;
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .35));
    animation: bh-float 3.5s ease-in-out infinite;
}

    .bh-robot.writing {
        animation: bh-bounce .7s ease-in-out infinite;
    }

    .bh-robot.done {
        animation: bh-pop .6s ease-out 1;
    }

@keyframes bh-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes bh-bounce {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-8px) rotate(2deg);
    }
}

@keyframes bh-pop {
    0% {
        transform: scale(.85);
    }

    60% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

.bh-card {
    background: #fff;
    border-radius: 22px;
    padding: 24px;
    margin-top: 20px;
    box-shadow: 0 6px 24px rgba(107, 33, 168, .10);
    border: 1px solid #f3e8ff;
}

    .bh-card h3 {
        color: #4c1d95;
        margin: 0 0 6px;
        font-weight: bold;
    }

.bh-label {
    display: block;
    font-weight: 700;
    color: #4c1d95;
    margin: 14px 0 6px;
}

.bh-select, .bh-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 2px solid #e9d5ff;
    box-sizing: border-box;
    background: #faf5ff;
    font-family: inherit;
    font-size: 1rem;
    color: #3b0764;
}

    .bh-select:focus, .bh-input:focus {
        outline: none;
        border-color: #a855f7;
    }

.bh-btn {
    margin-top: 22px;
    width: 100%;
    padding: 16px;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    background: linear-gradient(90deg, #7e22ce, #a855f7);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    font-family: inherit;
    box-shadow: 0 10px 20px rgba(126, 34, 206, .35);
    transition: transform .15s;
}

    .bh-btn.small {
        width: auto;
        padding: 10px 22px;
        font-size: 1rem;
        margin-top: 12px;
    }

    .bh-btn small {
        color: white;
    }
    
    .bh-btn span {
        color: white;
    }

    .bh-btn svg {
        fill: white !important;
    }

    .bh-btn.light {
        background: #f3e8ff;
        color: #6b21a8;
        box-shadow: none;
    }

    .bh-btn:hover:not(:disabled) {
        transform: translateY(-2px);
    }

    .bh-btn:disabled {
        opacity: .55;
        cursor: wait;
    }

        .bh-btn:disabled span {
            color: white;
        }

.bh-chip {
    display: inline-block;
    background: #f3e8ff;
    color: #6b21a8;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .8rem;
    margin: 4px 0 4px 6px;
}

.bh-msg {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 700;
}

    .bh-msg.ok {
        background: #ecfdf5;
        color: #047857;
    }

    .bh-msg.bad {
        background: #fef2f2;
        color: #b91c1c;
    }

.bh-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 8px 0 18px;
}

    .bh-steps::before {
        content: "";
        position: absolute;
        top: 17px;
        right: 8%;
        left: 8%;
        height: 3px;
        background: #f3e8ff;
    }

.bh-step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    color: #a1a1aa;
    font-size: .85rem;
    font-weight: 700;
}

.bh-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin: 0 auto 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f5;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e9d5ff;
    font-size: 1rem;
}

.bh-step.done {
    color: #6b21a8;
}

    .bh-step.done .bh-dot {
        background: #a855f7;
        color: #fff;
    }

.bh-step.active {
    color: #3b0764;
}

    .bh-step.active .bh-dot {
        background: #fff;
        box-shadow: 0 0 0 3px #a855f7;
        animation: bh-pulse 1.2s ease-in-out infinite;
    }

@keyframes bh-pulse {
    0%, 100% {
        box-shadow: 0 0 0 3px #a855f7;
    }

    50% {
        box-shadow: 0 0 0 8px rgba(168, 85, 247, .25);
    }
}

.bh-stage-text {
    color: #6b21a8;
    font-weight: 700;
    margin-top: 10px;
}

.bh-banner {
    width: 100%;
    border-radius: 18px;
    display: block;
}

.bh-post h2 {
    color: #4c1d95;
    margin-top: 1.4em;
}

.bh-post h3 {
    color: #6b21a8;
}

.bh-post table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.bh-post th, .bh-post td {
    border: 1px solid #e9d5ff;
    padding: 8px;
}

.bh-post th {
    background: #faf5ff;
}

@media (max-width: 640px) {
    .bh-hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 24px 18px;
    }

    .bh-robot {
        width: 150px;
    }

    .bh-hero-text h1 {
        font-size: 1.5rem;
    }

    .bh-step {
        font-size: .7rem;
    }
}

/* صفحهٔ دستیار محتوای مشتری */
.bh-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

    .bh-grid .bh-card {
        margin-top: 20px;
    }

.bh-quota {
    text-align: center;
    background: linear-gradient(160deg, #faf5ff, #fff);
}

.bh-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 8px auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .bh-ring > div {
        width: 92px;
        height: 92px;
        border-radius: 50%;
        background: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .bh-ring b {
        font-size: 2.6rem;
        font-weight: 900;
        color: #7e22ce;
        line-height: 1;
    }

    .bh-ring small {
        color: #6b7280;
        font-size: .75rem;
    }

.bh-price {
    background: #f3e8ff;
    border-radius: 14px;
    padding: 10px;
    color: #4c1d95;
    font-weight: 700;
    margin-top: 8px;
    text-align: center;
}

.bh-conn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: .8rem;
    font-weight: 700;
    margin-top: 8px;
}

    .bh-conn.ok {
        background: #ecfdf5;
        color: #047857;
    }

    .bh-conn.bad {
        background: #fef2f2;
        color: #b91c1c;
    }

    .bh-conn.wait {
        background: #f3e8ff;
        color: #7e22ce;
    }

.bh-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bh-seg {
    display: flex;
    gap: 8px;
}

    .bh-seg button {
        flex: 1;
        padding: 10px;
        border-radius: 12px;
        background: #faf5ff;
        border: 2px solid #e9d5ff;
        color: #6b21a8;
        font-weight: 700;
        font-family: inherit;
        cursor: pointer;
    }

        .bh-seg button.on {
            background: #7e22ce;
            color: #fff;
            border-color: #7e22ce;
        }

.bh-textarea {
    min-height: 110px;
    resize: vertical;
}

.bh-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 12px;
}

.bh-pc {
    border: 1px solid #f3e8ff;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

    .bh-pc .img {
        height: 120px;
        background: linear-gradient(135deg, #c4b5fd, #f0abfc) center / cover no-repeat;
    }

    .bh-pc .t {
        padding: 12px;
        font-weight: 700;
        color: #3b0764;
        font-size: .9rem;
        flex: 1;
    }

    .bh-pc .a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 12px 12px;
        gap: 6px;
    }

.bh-st {
    font-size: .75rem;
    border-radius: 999px;
    padding: 3px 10px;
    font-weight: 700;
    white-space: nowrap;
}

    .bh-st.pub {
        background: #ecfdf5;
        color: #047857;
    }

    .bh-st.ready {
        background: #fff7ed;
        color: #c2410c;
    }

    .bh-st.wr {
        background: #f3e8ff;
        color: #7e22ce;
    }

    .bh-st.err {
        background: #fef2f2;
        color: #b91c1c;
    }

.bh-link {
    color: #7e22ce;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    background: none;
    border: 0;
    font-family: inherit;
    text-decoration: none;
}

.bh-sec {
    color: #3b0764;
    margin: 28px 0 0;
    font-weight: bold;
}

.bh-empty {
    text-align: center;
    color: #6b7280;
    padding: 24px;
}

    .bh-empty img {
        width: 110px;
    }

    .bh-empty p {
        text-align: center;
        font-weight: bold;
        padding: 2em 0;
    }

@media (max-width: 800px) {
    .bh-grid, .bh-row2 {
        grid-template-columns: 1fr;
    }

    .bh-posts {
        grid-template-columns: 1fr;
    }
}
