/* WhatsApp phone mockup */

.rf-phone {
	width: min(300px, 85vw);
	margin: 0 auto;
}

.rf-phone__device {
	position: relative;
	padding: 12px;
	background: linear-gradient(145deg, #2a2038, #0f0818);
	border-radius: 36px;
	box-shadow:
		0 0 0 2px rgba(255, 255, 255, 0.08),
		0 24px 64px rgba(0, 0, 0, 0.55),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.rf-phone__notch {
	position: absolute;
	top: 18px;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 22px;
	background: #0a0118;
	border-radius: 0 0 14px 14px;
	z-index: 2;
}

.rf-phone__screen {
	position: relative;
	border-radius: 24px;
	overflow: hidden;
	background: #0b141a;
	min-height: 420px;
	display: flex;
	flex-direction: column;
}

.rf-phone__status {
	display: flex;
	justify-content: space-between;
	padding: 8px 16px 4px;
	font-size: 0.65rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
}

.rf-phone__wa-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px 10px;
	background: #1f2c34;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rf-phone__avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: linear-gradient(135deg, #efba60, #a67c2e);
	flex-shrink: 0;
}

.rf-phone__biz {
	flex: 1;
	min-width: 0;
}

.rf-phone__biz-name {
	font-size: 0.875rem;
	font-weight: 600;
	color: #e9edef;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rf-phone__biz-status {
	font-size: 0.6875rem;
	color: #8696a0;
}

.rf-phone__biz-status::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-right: 4px;
	background: #25d366;
	border-radius: 50%;
	vertical-align: middle;
}

.rf-phone__chat {
	flex: 1;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background:
		url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='%230b141a'/%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23ffffff' stroke-opacity='0.02'/%3E%3C/svg%3E");
	overflow-y: auto;
	min-height: 300px;
}

.rf-phone__thread {
	display: none;
	flex-direction: column;
	gap: 8px;
}

.rf-phone__thread.is-active {
	display: flex;
}

.rf-phone__thread.is-fading {
	opacity: 0;
	transition: opacity 0.4s ease;
}

.rf-bubble {
	max-width: 88%;
	padding: 8px 12px;
	font-size: 0.8125rem;
	line-height: 1.45;
	border-radius: 8px;
	position: relative;
	animation: rf-bubble-in 0.45s ease backwards;
}

.rf-bubble--in {
	align-self: flex-start;
	background: #1f2c34;
	color: #e9edef;
	border-top-left-radius: 2px;
}

.rf-bubble--out {
	align-self: flex-end;
	background: #005c4b;
	color: #e9edef;
	border-top-right-radius: 2px;
}

.rf-bubble--bot {
	background: #134e45;
	border-left: 3px solid #efba60;
}

.rf-bubble__time {
	display: block;
	font-size: 0.625rem;
	color: rgba(255, 255, 255, 0.45);
	text-align: right;
	margin-top: 4px;
}

.rf-bubble:nth-child(1) { animation-delay: 0.1s; }
.rf-bubble:nth-child(2) { animation-delay: 0.35s; }
.rf-bubble:nth-child(3) { animation-delay: 0.6s; }
.rf-bubble:nth-child(4) { animation-delay: 0.85s; }
.rf-bubble:nth-child(5) { animation-delay: 1.1s; }

.rf-typing {
	align-self: flex-start;
	display: flex;
	gap: 4px;
	padding: 10px 14px;
	background: #1f2c34;
	border-radius: 8px;
	border-top-left-radius: 2px;
}

.rf-typing span {
	width: 6px;
	height: 6px;
	background: #8696a0;
	border-radius: 50%;
	animation: rf-typing-dot 1.2s ease infinite;
}

.rf-typing span:nth-child(2) { animation-delay: 0.15s; }
.rf-typing span:nth-child(3) { animation-delay: 0.3s; }

.rf-phone__input-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: #1f2c34;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rf-phone__input-fake {
	flex: 1;
	height: 36px;
	background: #2a3942;
	border-radius: 20px;
}

.rf-phone__send {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #25d366;
	flex-shrink: 0;
}

/* Mini phone in demo cards */
.rf-phone--mini .rf-phone__device {
	padding: 8px;
	border-radius: 24px;
}

.rf-phone--mini .rf-phone__screen {
	min-height: 220px;
	border-radius: 16px;
}

.rf-phone--mini .rf-phone__notch {
	width: 50px;
	height: 14px;
	top: 12px;
}

.rf-phone--mini .rf-bubble {
	font-size: 0.6875rem;
	padding: 6px 10px;
}

/* Rental image strip mock */
.rf-bubble__images {
	display: flex;
	gap: 4px;
	margin-top: 6px;
}

.rf-bubble__img {
	width: 48px;
	height: 36px;
	border-radius: 6px;
	background: linear-gradient(135deg, #3d2a5c, #1a0f2e);
	border: 1px solid rgba(239, 186, 96, 0.3);
}

@keyframes rf-bubble-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes rf-typing-dot {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
	30% { transform: translateY(-4px); opacity: 1; }
}

@keyframes rf-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.6; transform: scale(1.15); }
}
