.jiran-assistant-toggle {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #1a3a5c, #2d6a9f);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(26, 58, 92, 0.35);
    cursor: pointer;
}
.jiran-assistant-panel {
    position: fixed;
    bottom: 90px;
    left: 24px;
    width: min(380px, calc(100vw - 32px));
    max-height: min(520px, 70vh);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    font-family: Cairo, Tahoma, sans-serif;
}
.jiran-assistant-panel[hidden] { display: none !important; }
.jiran-assistant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #1a3a5c;
    color: #fff;
}
.jiran-assistant-header button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.jiran-assistant-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #f7f9fc;
    min-height: 200px;
    max-height: 280px;
}
.jiran-assistant-msg {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}
.jiran-assistant-msg.user {
    background: #e3eef9;
    margin-right: 20%;
    text-align: right;
}
.jiran-assistant-msg.bot {
    background: #fff;
    border: 1px solid #e2e8f0;
    margin-left: 10%;
    text-align: right;
}
.jiran-assistant-msg.bot .jiran-assistant-link {
    display: inline-block;
    margin-bottom: 2px;
    color: #1a5fb4;
    font-weight: 700;
    text-decoration: underline;
    word-break: break-word;
}
.jiran-assistant-msg.bot br + br {
    display: block;
    content: '';
    margin-top: 6px;
}
.jiran-assistant-link:hover {
    color: #0d3d73;
}
.jiran-assistant-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
    border-top: 1px solid #eee;
}
.jiran-assistant-buttons button {
    font-size: 0.78rem;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    cursor: pointer;
}
.jiran-assistant-buttons button:hover { background: #f1f5f9; }
.jiran-assistant-lead-form {
    padding: 8px 12px;
    border-top: 1px solid #eee;
    background: #fffbeb;
}
.jiran-assistant-input-row {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #eee;
}
.jiran-assistant-input-row input {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.9rem;
}
.jiran-assistant-input-row button {
    border: none;
    background: #2d6a9f;
    color: #fff;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 600;
}
@media (max-width: 576px) {
    .jiran-assistant-toggle-label { display: none; }
    .jiran-assistant-toggle { padding: 14px; border-radius: 50%; }
}
