.scb-box {
	position: relative;
	margin: 1.5em 0;
	border: 1px solid #dcdcde;
	border-radius: 10px;
	background: #f9fafb;
	overflow: hidden;
}

.scb-box pre {
	margin: 0;
	padding: 16px 16px 16px 90px;
	background: transparent;
	overflow-x: auto;
	font-size: 14px;
	line-height: 1.6;
}

.scb-box.scb-code { background: #1e1e2e; border-color: #1e1e2e; color: #cdd6f4; }
.scb-box.scb-code pre,
.scb-box.scb-code code { color: inherit; background: transparent; }

.scb-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border: 0;
	border-radius: 6px;
	background: #2563eb;
	color: #fff;
	font: inherit;
	font-size: 13px;
	line-height: 1.4;
	cursor: pointer;
	transition: background .2s, transform .1s;
}
.scb-btn:hover { background: #1d4ed8; }
.scb-btn:active { transform: scale(.96); }
.scb-btn:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
.scb-btn.is-copied { background: #16a34a; }

.scb-code > .scb-btn {
	position: absolute;
	top: 10px;
	left: 10px;
}

/* رابط */
.scb-link {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 12px 16px;
}
.scb-link .scb-title { font-weight: 600; }
.scb-link .scb-url {
	flex: 1 1 200px;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding: 6px 10px;
	background: #fff;
	border: 1px dashed #c3c4c7;
	border-radius: 6px;
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: 13px;
}

/* فائدة */
.scb-tip { border-inline-start: 4px solid #f59e0b; background: #fffbeb; border-color: #fde68a; }
.scb-tip-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 16px 0;
}
.scb-tip .scb-title { font-weight: 700; }
.scb-tip-body { padding: 8px 16px 14px; }
.scb-tip-body > :last-child { margin-bottom: 0; }

/* تنبيه منبثق */
.scb-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translate(-50%, 20px);
	padding: 10px 20px;
	background: #111827;
	color: #fff;
	border-radius: 8px;
	font-size: 14px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s, transform .25s;
	z-index: 99999;
}
.scb-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
	.scb-btn, .scb-toast { transition: none; }
}
