/* /public_html/new.habeshacute.online/assets/css/help-ai-popup.css */

/* -------------------------------------------------------
 AI launcher card
-------------------------------------------------------- */
.help-ai-launcher-card{
position:relative;
overflow:hidden;
background:
radial-gradient(circle at top right, rgba(139,92,246,.14), transparent 30%),
radial-gradient(circle at bottom left, rgba(236,72,153,.10), transparent 26%),
linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.94));
border:1px solid rgba(203,213,225,.8);
box-shadow:
0 18px 40px rgba(15,23,42,.08),
0 1px 0 rgba(255,255,255,.7) inset;
}

.help-ai-launcher-card .help-card__head h2{
color:#0f172a;
}

.help-ai-launcher-card .help-ai-intro{
color:#475569;
}

.help-ai-launcher{
display:flex;
align-items:center;
gap:16px;
padding:18px;
border-radius:22px;
background:
linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,252,.9));
border:1px solid rgba(203,213,225,.75);
box-shadow:
0 14px 30px rgba(15,23,42,.06),
0 1px 0 rgba(255,255,255,.8) inset;
}

.help-ai-launcher__icon{
width:58px;
height:58px;
border-radius:18px;
display:flex;
align-items:center;
justify-content:center;
font-size:28px;
background:linear-gradient(135deg,#8b5cf6,#ec4899);
color:#fff;
box-shadow:0 14px 28px rgba(139,92,246,.22);
flex:0 0 auto;
}

.help-ai-launcher__copy{
display:flex;
flex-direction:column;
gap:4px;
min-width:0;
flex:1 1 auto;
}

.help-ai-launcher__copy strong{
color:#0f172a;
font-size:16px;
font-weight:900;
}

.help-ai-launcher__copy span{
color:#64748b;
font-size:13px;
line-height:1.7;
}

.help-ai-open-btn{
flex:0 0 auto;
white-space:nowrap;
}

/* -------------------------------------------------------
 Modal shell
-------------------------------------------------------- */
.help-ai-modal[hidden]{
display:none !important;
}

.help-ai-modal{
position:fixed;
inset:0;
z-index:9999;
}

.help-ai-modal__backdrop{
position:absolute;
inset:0;
background:rgba(15,23,42,.34);
backdrop-filter:blur(8px);
}

.help-ai-modal__dialog{
position:relative;
width:min(760px, calc(100vw - 28px));
max-height:calc(100vh - 32px);
margin:16px auto;
display:flex;
flex-direction:column;
border-radius:30px;
overflow:hidden;
border:1px solid rgba(203,213,225,.95);
background:
linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.97));
box-shadow:
0 28px 80px rgba(15,23,42,.18),
0 1px 0 rgba(255,255,255,.9) inset;
}

/* -------------------------------------------------------
 Header
-------------------------------------------------------- */
.help-ai-modal__header{
display:flex;
align-items:flex-start;
justify-content:space-between;
gap:14px;
padding:20px 22px 16px;
border-bottom:1px solid rgba(226,232,240,.95);
background:
radial-gradient(circle at top right, rgba(139,92,246,.12), transparent 35%),
radial-gradient(circle at bottom left, rgba(236,72,153,.09), transparent 26%),
linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94));
}

.help-ai-modal__title-wrap{
display:flex;
align-items:flex-start;
gap:14px;
min-width:0;
}

.help-ai-modal__avatar{
width:48px;
height:48px;
border-radius:16px;
display:flex;
align-items:center;
justify-content:center;
font-size:22px;
background:linear-gradient(135deg,#8b5cf6,#ec4899);
color:#fff;
box-shadow:0 14px 28px rgba(139,92,246,.2);
flex:0 0 auto;
}

.help-ai-modal__title-wrap h3{
margin:0 0 4px;
color:#0f172a;
font-size:20px;
font-weight:900;
}

.help-ai-modal__title-wrap p{
margin:0;
color:#64748b;
font-size:13px;
line-height:1.7;
}

.help-ai-modal__close{
width:42px;
height:42px;
border:none;
border-radius:14px;
background:rgba(148,163,184,.12);
color:#0f172a;
font-size:28px;
line-height:1;
cursor:pointer;
transition:transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.help-ai-modal__close:hover{
background:rgba(148,163,184,.18);
box-shadow:0 10px 20px rgba(15,23,42,.08);
transform:scale(1.04);
}

/* -------------------------------------------------------
 Body
-------------------------------------------------------- */
.help-ai-modal__body{
padding:20px 22px 22px;
overflow:auto;
background:
linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
}

/* -------------------------------------------------------
 Form
-------------------------------------------------------- */
.help-ai-form--modal .form-group label{
display:block;
margin-bottom:8px;
color:#334155;
font-size:13px;
font-weight:800;
}

.help-ai-form--modal textarea{
width:100%;
min-height:140px;
resize:vertical;
border-radius:18px;
border:1px solid rgba(203,213,225,.95);
background:rgba(255,255,255,.95);
color:#0f172a;
padding:14px 16px;
font-size:14px;
line-height:1.7;
outline:none;
box-shadow:
0 1px 0 rgba(255,255,255,.9) inset,
0 10px 26px rgba(15,23,42,.04);
}

.help-ai-form--modal textarea::placeholder{
color:#94a3b8;
}

.help-ai-form--modal textarea:focus{
border-color:rgba(139,92,246,.55);
box-shadow:
0 0 0 4px rgba(139,92,246,.12),
0 12px 30px rgba(139,92,246,.08);
}

/* -------------------------------------------------------
 Status and output
-------------------------------------------------------- */
.help-ai-actions{
display:flex;
justify-content:flex-end;
margin-top:14px;
}

.help-ai-status--modal{
margin-top:16px;
padding:12px 14px;
border-radius:16px;
background:linear-gradient(180deg, rgba(248,250,252,.96), rgba(241,245,249,.94));
border:1px solid rgba(226,232,240,.95);
color:#475569;
font-size:13px;
line-height:1.7;
box-shadow:0 8px 20px rgba(15,23,42,.04);
}

.help-ai-output--modal{
margin-top:16px;
padding:16px;
border-radius:22px;
background:
linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.95));
border:1px solid rgba(226,232,240,.95);
box-shadow:
0 14px 34px rgba(15,23,42,.06),
0 1px 0 rgba(255,255,255,.9) inset;
}

.help-ai-output__label{
font-size:11px;
font-weight:900;
letter-spacing:.08em;
text-transform:uppercase;
color:#8b5cf6;
margin-bottom:10px;
}

.help-ai-output__body{
white-space:pre-wrap;
color:#0f172a;
font-size:14px;
line-height:1.85;
}

/* -------------------------------------------------------
 Body lock
-------------------------------------------------------- */
body.help-ai-modal-open{
overflow:hidden;
}

/* -------------------------------------------------------
 Buttons
-------------------------------------------------------- */
.help-ai-modal .btn.btn--primary,
.help-ai-launcher-card .btn.btn--primary{
border:none;
border-radius:999px;
padding:11px 18px;
background:linear-gradient(135deg,#8b5cf6,#ec4899);
color:#fff;
font-weight:800;
box-shadow:0 14px 28px rgba(139,92,246,.2);
}

.help-ai-modal .btn.btn--primary:hover,
.help-ai-launcher-card .btn.btn--primary:hover{
filter:brightness(1.03);
transform:translateY(-1px);
}

.help-ai-launcher-card .btn.btn--disabled{
border:none;
border-radius:999px;
padding:11px 18px;
background:#e2e8f0;
color:#64748b;
font-weight:800;
cursor:not-allowed;
}

/* -------------------------------------------------------
 Light theme harmony
-------------------------------------------------------- */
html[data-theme="light"] .help-ai-launcher-card{
background:
radial-gradient(circle at top right, rgba(139,92,246,.12), transparent 30%),
radial-gradient(circle at bottom left, rgba(236,72,153,.08), transparent 26%),
linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
}

html[data-theme="light"] .help-ai-modal__dialog{
background:
linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,252,.97));
}

/* -------------------------------------------------------
 Dark theme override
-------------------------------------------------------- */
html[data-theme="dark"] .help-ai-launcher-card{
background:
radial-gradient(circle at top right, rgba(139,92,246,.18), transparent 30%),
radial-gradient(circle at bottom left, rgba(236,72,153,.12), transparent 26%),
linear-gradient(180deg, rgba(30,41,59,.96), rgba(15,23,42,.95));
border-color:rgba(71,85,105,.65);
box-shadow:0 20px 44px rgba(2,6,23,.28);
}

html[data-theme="dark"] .help-ai-launcher-card .help-card__head h2{
color:#f8fafc;
}

html[data-theme="dark"] .help-ai-launcher-card .help-ai-intro{
color:#cbd5e1;
}

html[data-theme="dark"] .help-ai-launcher{
background:linear-gradient(180deg, rgba(30,41,59,.92), rgba(15,23,42,.9));
border-color:rgba(71,85,105,.55);
box-shadow:0 16px 30px rgba(2,6,23,.24);
}

html[data-theme="dark"] .help-ai-launcher__copy strong{
color:#f8fafc;
}

html[data-theme="dark"] .help-ai-launcher__copy span{
color:#cbd5e1;
}

html[data-theme="dark"] .help-ai-modal__backdrop{
background:rgba(2,6,23,.54);
}

html[data-theme="dark"] .help-ai-modal__dialog{
border-color:rgba(71,85,105,.68);
background:
linear-gradient(180deg, rgba(30,41,59,.98), rgba(15,23,42,.97));
box-shadow:
0 28px 80px rgba(2,6,23,.45),
0 1px 0 rgba(255,255,255,.04) inset;
}

html[data-theme="dark"] .help-ai-modal__header{
border-bottom-color:rgba(71,85,105,.45);
background:
radial-gradient(circle at top right, rgba(139,92,246,.18), transparent 35%),
radial-gradient(circle at bottom left, rgba(236,72,153,.12), transparent 26%),
linear-gradient(180deg, rgba(30,41,59,.98), rgba(15,23,42,.95));
}

html[data-theme="dark"] .help-ai-modal__title-wrap h3{
color:#f8fafc;
}

html[data-theme="dark"] .help-ai-modal__title-wrap p{
color:#cbd5e1;
}

html[data-theme="dark"] .help-ai-modal__close{
background:rgba(148,163,184,.12);
color:#f8fafc;
}

html[data-theme="dark"] .help-ai-modal__close:hover{
background:rgba(148,163,184,.18);
}

html[data-theme="dark"] .help-ai-modal__body{
background:
linear-gradient(180deg, rgba(30,41,59,.98), rgba(15,23,42,.96));
}

html[data-theme="dark"] .help-ai-form--modal .form-group label{
color:#e2e8f0;
}

html[data-theme="dark"] .help-ai-form--modal textarea{
background:rgba(15,23,42,.82);
color:#f8fafc;
border-color:rgba(71,85,105,.58);
box-shadow:0 12px 26px rgba(2,6,23,.16);
}

html[data-theme="dark"] .help-ai-form--modal textarea::placeholder{
color:#94a3b8;
}

html[data-theme="dark"] .help-ai-form--modal textarea:focus{
border-color:rgba(139,92,246,.6);
box-shadow:
0 0 0 4px rgba(139,92,246,.14),
0 12px 30px rgba(2,6,23,.2);
}

html[data-theme="dark"] .help-ai-status--modal{
background:linear-gradient(180deg, rgba(15,23,42,.82), rgba(30,41,59,.78));
border-color:rgba(71,85,105,.48);
color:#cbd5e1;
}

html[data-theme="dark"] .help-ai-output--modal{
background:linear-gradient(180deg, rgba(15,23,42,.88), rgba(30,41,59,.82));
border-color:rgba(71,85,105,.5);
box-shadow:0 14px 34px rgba(2,6,23,.2);
}

html[data-theme="dark"] .help-ai-output__label{
color:#c4b5fd;
}

html[data-theme="dark"] .help-ai-output__body{
color:#f8fafc;
}

/* -------------------------------------------------------
 Mobile
-------------------------------------------------------- */
@media (max-width: 720px){
.help-ai-launcher{
flex-direction:column;
align-items:flex-start;
}

.help-ai-open-btn{
width:100%;
}

.help-ai-modal__dialog{
width:calc(100vw - 16px);
margin:8px auto;
max-height:calc(100vh - 16px);
border-radius:22px;
}

.help-ai-modal__header,
.help-ai-modal__body{
padding:16px;
}

.help-ai-modal__title-wrap h3{
font-size:18px;
}
}
/* AI launcher override/fix */

.help-ai-launcher-card {
overflow: hidden;
position: relative;
}

.help-ai-launcher {
position: relative;
z-index: 1;
display: grid !important;
grid-template-columns: 52px minmax(0, 1fr) !important;
grid-template-areas:
"icon copy"
"button button" !important;
gap: 14px !important;
align-items: start !important;
padding: 18px !important;
border-radius: 22px;
box-sizing: border-box;
max-width: 100%;
}

.help-ai-launcher__icon {
grid-area: icon;
width: 52px;
height: 52px;
display: grid;
place-items: center;
flex: 0 0 52px;
border-radius: 18px;
background: linear-gradient(135deg, #8b5cf6, #ec4899);
color: #fff;
font-size: 1.45rem;
}

.help-ai-launcher__copy {
grid-area: copy;
min-width: 0;
max-width: 100%;
white-space: normal;
word-break: normal;
overflow-wrap: anywhere;
}

.help-ai-launcher__copy strong,
.help-ai-launcher__copy span {
display: block;
max-width: 100%;
}

.help-ai-open-btn {
grid-area: button;
width: 100% !important;
max-width: 100% !important;
min-height: 46px;
display: inline-flex !important;
box-sizing: border-box;
border-radius: 15px;
}

@media (max-width: 680px) {
.help-ai-launcher {
grid-template-columns: 48px minmax(0, 1fr) !important;
padding: 15px !important;
}

.help-ai-launcher__icon {
width: 48px;
height: 48px;
flex-basis: 48px;
}
}
.help-ai-form textarea {
  min-height: 120px;
  max-height: 180px;
  resize: vertical;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.95rem;
}

.help-ai-form textarea:focus {
  border-color: var(--help-brand);
  box-shadow: 0 0 0 3px var(--help-brand-soft);
}
.help-ai-modal__close {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--help-line);
  background: var(--help-surface-soft);
  color: var(--help-text);
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.help-ai-modal__close span {
  transform: translateY(-1px);
}