/* Goldie chat widget: floating launcher + framed panel (bottom right). */
.lbi-goldie {
	--goldie-accent: #05f2fe;
	--goldie-ink: #02090d;
	--goldie-panel: #02090d;
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 2147483000;
	font-family: 'montserrat', Verdana, Geneva, sans-serif;
}

.lbi-goldie__launcher {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0 20px 0 6px;
	height: 56px;
	border: 0;
	border-radius: 999px;
	background: var(--goldie-accent);
	color: var(--goldie-ink);
	font: 700 15px/1 'montserrat', Verdana, Geneva, sans-serif;
	letter-spacing: 0.01em;
	cursor: pointer;
	box-shadow: 0 10px 30px rgba(2, 9, 13, 0.35), 0 0 0 0 rgba(5, 242, 254, 0.55);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
	animation: lbi-goldie-pulse 2.6s ease-out 1.5s 3;
}
.lbi-goldie__launcher:hover { background: #fff; transform: translateY(-2px); }
.lbi-goldie__launcher:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.lbi-goldie__avatar {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--goldie-ink);
	color: var(--goldie-accent);
	flex: none;
}
.lbi-goldie__avatar svg { width: 24px; height: 24px; }

.lbi-goldie.is-open .lbi-goldie__launcher { display: none; }

.lbi-goldie__panel {
	position: absolute;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: 400px;
	height: min(680px, calc(100vh - 40px));
	border-radius: 18px;
	overflow: hidden;
	background: var(--goldie-panel);
	box-shadow: 0 24px 60px rgba(2, 9, 13, 0.45);
	border: 1px solid rgba(5, 242, 254, 0.35);
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px) scale(0.98);
	transform-origin: bottom right;
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.lbi-goldie.is-open .lbi-goldie__panel {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}

.lbi-goldie__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 12px 12px 18px;
	background: var(--goldie-ink);
	border-bottom: 1px solid rgba(5, 242, 254, 0.25);
	color: #fff;
	flex: none;
}
.lbi-goldie__title { margin: 0; font-size: 15px; line-height: 1.2; font-weight: 700; }
.lbi-goldie__title span { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; color: var(--goldie-accent); }

.lbi-goldie__close {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.lbi-goldie__close:hover { background: var(--goldie-accent); border-color: var(--goldie-accent); color: var(--goldie-ink); }
.lbi-goldie__close:focus-visible { outline: 2px solid var(--goldie-accent); outline-offset: 2px; }
.lbi-goldie__close svg { width: 16px; height: 16px; }

.lbi-goldie__body { position: relative; flex: 1; background: var(--goldie-panel); }
.lbi-goldie__body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.lbi-goldie__loading {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
}
.lbi-goldie.is-loaded .lbi-goldie__loading { display: none; }

@keyframes lbi-goldie-pulse {
	0% { box-shadow: 0 10px 30px rgba(2, 9, 13, 0.35), 0 0 0 0 rgba(5, 242, 254, 0.55); }
	100% { box-shadow: 0 10px 30px rgba(2, 9, 13, 0.35), 0 0 0 18px rgba(5, 242, 254, 0); }
}

/* Phones: launcher shrinks to an icon, panel goes full screen. */
@media (max-width: 600px) {
	.lbi-goldie { right: 16px; bottom: 16px; }
	.lbi-goldie__launcher { padding: 0 6px; }
	.lbi-goldie__label { display: none; }
	.lbi-goldie.is-open { inset: 0; }
	.lbi-goldie__panel {
		position: fixed;
		inset: 0;
		width: 100%;
		height: 100%;
		height: 100dvh;
		border-radius: 0;
		border: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lbi-goldie__launcher, .lbi-goldie__panel { animation: none; transition: none; }
}
