/* EXCOINCASH NEXA — المساعد العربي الذكي */
.nexa-ai-fab{
	position:fixed;
	inset-inline-start:16px;
	bottom:calc(16px + env(safe-area-inset-bottom));
	z-index:99980;
	display:inline-flex;align-items:center;gap:8px;
	padding:11px 16px;border:0;cursor:pointer;
	border-radius:999px;
	background:linear-gradient(135deg,#ffdc4a,#ffc300);
	color:#14161c!important;text-decoration:none!important;font-family:Cairo,system-ui,sans-serif;font-weight:800;font-size:14px;
	box-shadow:0 14px 30px rgba(0,0,0,.35);
}
.nexa-ai-fab span{font-size:18px;line-height:1;}
.nexa-ai-fab em{font-style:normal;}
.nexa-ai-fab:hover{filter:brightness(1.05);}

.nexa-help-menu[hidden]{display:none!important}
.nexa-help-menu{position:fixed;inset:0;z-index:99994;display:flex;align-items:flex-end;justify-content:flex-start;background:rgba(6,8,12,.48);opacity:0;transition:opacity .2s ease;font-family:Cairo,system-ui,sans-serif}
.nexa-help-menu.is-open{opacity:1}
.nexa-help-menu__panel{position:relative;width:min(390px,calc(100% - 24px));margin:0 16px calc(76px + env(safe-area-inset-bottom));padding:20px;border:1px solid rgba(255,195,0,.22);border-radius:18px;background:#14161c;color:#f5f6f8;box-shadow:0 26px 60px rgba(0,0,0,.5)}
.nexa-help-menu__panel>strong{display:block;font-size:19px}.nexa-help-menu__panel>p{margin:4px 0 16px;color:rgba(245,246,248,.68);font-size:13px}
.nexa-help-menu__close{position:absolute;top:10px;left:12px;border:0;background:transparent;color:inherit;font-size:24px;cursor:pointer}
.nexa-help-choice{display:flex;width:100%;align-items:center;gap:12px;margin-top:9px;padding:13px;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:rgba(255,255,255,.04);color:#f5f6f8!important;text-decoration:none!important;text-align:right;cursor:pointer;font-family:inherit}
.nexa-help-choice:hover{border-color:rgba(255,195,0,.38);background:rgba(255,195,0,.08)}.nexa-help-choice>span{display:grid;width:42px;height:42px;place-items:center;border-radius:10px;background:rgba(255,195,0,.13);font-size:20px}.nexa-help-choice>b{display:flex;flex:1;flex-direction:column;font-size:14px}.nexa-help-choice small{margin-top:2px;color:rgba(245,246,248,.6);font-size:11px;font-weight:500}

.nexa-ai[hidden]{display:none!important}
.nexa-ai{
	position:fixed;inset:0;z-index:99995;
	display:flex;align-items:flex-end;justify-content:flex-start;
	background:rgba(6,8,12,.55);
	opacity:0;transition:opacity .25s ease;
	font-family:Cairo,system-ui,sans-serif;
}
.nexa-ai.is-open{opacity:1;}
.nexa-ai__panel{
	width:min(420px,100%);
	height:min(620px,88vh);
	margin:0 12px calc(12px + env(safe-area-inset-bottom));
	display:flex;flex-direction:column;
	background:#14161c;color:#f5f6f8;
	border:1px solid rgba(255,195,0,.22);
	border-radius:22px;overflow:hidden;
	box-shadow:0 26px 60px rgba(0,0,0,.5);
	transform:translateY(24px);transition:transform .25s ease;
}
.nexa-ai.is-open .nexa-ai__panel{transform:translateY(0);}

.nexa-ai__head{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);}
.nexa-ai__avatar{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#ffdc4a,#ffc300);font-size:20px;}
.nexa-ai__title{flex:1;display:flex;flex-direction:column;}
.nexa-ai__title strong{font-size:15px;}
.nexa-ai__title span{font-size:12px;opacity:.6;}
.nexa-ai__close{background:transparent;border:0;color:inherit;font-size:24px;opacity:.6;cursor:pointer;font-family:inherit;}
.nexa-ai__close:hover{opacity:1;}

.nexa-ai__log{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px;}
.nexa-ai__msg{display:flex;flex-direction:column;align-items:flex-start;max-width:88%;}
.nexa-ai__msg--user{align-self:flex-end;align-items:flex-end;}
.nexa-ai__bubble{
	padding:11px 14px;border-radius:16px;font-size:14.5px;line-height:1.85;
	background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.07);
}
.nexa-ai__msg--user .nexa-ai__bubble{background:linear-gradient(135deg,#ffdc4a,#ffc300);color:#14161c;font-weight:600;border:0;}
.nexa-ai__handoff{margin-top:6px;font-size:12.5px;font-weight:700;color:#ffc300;text-decoration:none;}
.nexa-ai__handoff:hover{text-decoration:underline;}
.nexa-ai__msg--typing .nexa-ai__bubble{display:flex;gap:5px;}
.nexa-ai__msg--typing i{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.55);animation:nexaAiDot 1s infinite ease-in-out;}
.nexa-ai__msg--typing i:nth-child(2){animation-delay:.15s;}
.nexa-ai__msg--typing i:nth-child(3){animation-delay:.3s;}
@keyframes nexaAiDot{0%,80%,100%{opacity:.3;transform:translateY(0);}40%{opacity:1;transform:translateY(-3px);}}

.nexa-ai__chips{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 10px;}
.nexa-ai__chip{
	background:rgba(255,195,0,.1);border:1px solid rgba(255,195,0,.3);color:#ffd75e;
	border-radius:999px;padding:7px 13px;font-size:13px;cursor:pointer;font-family:inherit;
}
.nexa-ai__chip:hover{background:rgba(255,195,0,.18);}

.nexa-ai__form{display:flex;gap:8px;padding:12px 14px;border-top:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.02);}
.nexa-ai__form input{
	flex:1;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);
	border-radius:14px;padding:12px 14px;color:#f5f6f8;font-family:inherit;font-size:14px;
}
.nexa-ai__form input:focus{outline:none;border-color:rgba(255,195,0,.55);}
.nexa-ai__form button{
	width:46px;border:0;border-radius:14px;cursor:pointer;
	background:linear-gradient(135deg,#ffdc4a,#ffc300);color:#14161c;font-size:16px;font-family:inherit;
}

.nexa-ai-card{
	display:flex;align-items:center;gap:14px;flex-wrap:wrap;
	margin:0 0 18px;padding:16px 18px;border-radius:18px;
	background:linear-gradient(135deg,rgba(255,195,0,.12),rgba(255,255,255,.03));
	border:1px solid rgba(255,195,0,.28);
	font-family:Cairo,system-ui,sans-serif;
}
.nexa-ai-card__icon{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:rgba(255,195,0,.18);font-size:22px;}
.nexa-ai-card__body{flex:1;min-width:180px;}
.nexa-ai-card__body strong{display:block;font-size:15px;margin-bottom:3px;}
.nexa-ai-card__body p{margin:0;font-size:13.5px;opacity:.72;line-height:1.75;}
.nexa-ai-card__cta{
	background:linear-gradient(135deg,#ffdc4a,#ffc300);color:#14161c;
	border:0;border-radius:12px;padding:11px 18px;font-weight:800;font-size:14px;cursor:pointer;font-family:inherit;
}

@media (min-width:768px){
	.nexa-ai{align-items:flex-end;justify-content:flex-start;}
	.nexa-ai__panel{margin:0 24px 24px;}
}
@media (max-width:520px){
	.nexa-ai-fab em{display:none;}
	.nexa-ai-fab{padding:13px;}
	.nexa-ai__panel{height:86vh;width:100%;margin-inline:8px;}
}
@media (prefers-reduced-motion:reduce){
	.nexa-ai,.nexa-ai__panel{transition:none;}
	.nexa-ai__msg--typing i{animation:none;}
}

/* رفع الزر فوق شريط التنقل السفلي في الهاتف */
@media (max-width:767px){
	.nexa-ai-fab{bottom:calc(86px + env(safe-area-inset-bottom));}
	.nexa-help-menu__panel{margin-bottom:calc(86px + env(safe-area-inset-bottom));}
}
