/* QR Contact Cards - public profile page */
:root {
	--qrcc-accent: #1a73e8;
	--qrcc-bg: #f1f3f4;
	--qrcc-card: #ffffff;
	--qrcc-panel: #f4f5f6;
	--qrcc-text: #202124;
	--qrcc-muted: #5f6368;
	--qrcc-line: #e3e5e8;
}

@media (prefers-color-scheme: dark) {
	:root {
		--qrcc-accent: #8ab4f8;
		--qrcc-bg: #121314;
		--qrcc-card: #1e1f21;
		--qrcc-panel: #26272a;
		--qrcc-text: #e8eaed;
		--qrcc-muted: #9aa0a6;
		--qrcc-line: #303236;
	}
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.qrcc-profile {
	margin: 0;
	min-height: 100vh;
	background: var(--qrcc-bg);
	color: var(--qrcc-text);
	font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 16px;
}

.qrcc-card {
	width: 100%;
	max-width: 400px;
	background: var(--qrcc-card);
	border: 1px solid var(--qrcc-line);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .06);
}

.qrcc-head {
	padding: 28px 24px 12px;
	text-align: center;
}

.qrcc-avatar {
	width: 72px;
	height: 72px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: var(--qrcc-accent);
	color: var(--qrcc-card);
	font-size: 28px;
	font-weight: 600;
	line-height: 72px;
	letter-spacing: .02em;
}

.qrcc-name {
	margin: 0;
	font-size: 1.5rem;
	line-height: 1.25;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.qrcc-position { margin: 6px 0 0; font-size: 1rem; }

.qrcc-org { margin: 2px 0 0; color: var(--qrcc-muted); }

.qrcc-details { padding: 8px 24px 20px; }

.qrcc-row {
	display: flex;
	gap: 16px;
	align-items: baseline;
	padding: 14px 0;
	border-top: 1px solid var(--qrcc-line);
}

.qrcc-row:first-child { border-top: 0; }

.qrcc-label {
	flex: 0 0 76px;
	color: var(--qrcc-muted);
	font-size: .8125rem;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.qrcc-value {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	font-style: normal;
	color: var(--qrcc-text);
	overflow-wrap: anywhere;
	text-decoration: none;
}

address.qrcc-value span { display: block; }

a.qrcc-value { color: var(--qrcc-accent); }
a.qrcc-value:hover { text-decoration: underline; }
a.qrcc-value:focus-visible { outline: 2px solid var(--qrcc-accent); outline-offset: 2px; border-radius: 4px; }

@media (max-width: 340px) {
	.qrcc-row { flex-direction: column; gap: 4px; }
	.qrcc-label { flex-basis: auto; }
}

.qrcc-actions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
	gap: 4px;
	padding: 12px;
	background: var(--qrcc-panel);
	border-top: 1px solid var(--qrcc-line);
}

.qrcc-action {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 14px 6px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: var(--qrcc-accent);
	font: inherit;
	font-size: .875rem;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.qrcc-action span { color: var(--qrcc-muted); }

.qrcc-action:hover, .qrcc-action:focus-visible { background: var(--qrcc-card); }

.qrcc-action:focus-visible { outline: 2px solid var(--qrcc-accent); outline-offset: 1px; }

.qrcc-action:active { transform: scale(.97); }

.qrcc-icon { display: block; }

.qrcc-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translate(-50%, 16px);
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--qrcc-text);
	color: var(--qrcc-card);
	font-size: .875rem;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s, transform .2s;
}

.qrcc-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

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

/* ---------- Share / call sheet ---------- */
.qrcc-offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }

.qrcc-sheet {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background: rgba(0, 0, 0, .45);
	animation: qrcc-fade .15s ease-out;
}

.qrcc-sheet-panel {
	width: 100%;
	max-width: 400px;
	max-height: 86vh;
	overflow-y: auto;
	padding: 18px 16px 16px;
	border-radius: 16px 16px 0 0;
	background: var(--qrcc-card);
	color: var(--qrcc-text);
	box-shadow: 0 -8px 32px rgba(0, 0, 0, .25);
	animation: qrcc-rise .2s ease-out;
}

.qrcc-sheet-title { margin: 0 4px 10px; font-size: 1.0625rem; font-weight: 600; }

.qrcc-sheet-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2px;
}

.qrcc-sheet-item {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	min-height: 52px;
	padding: 8px 10px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: var(--qrcc-text);
	font: inherit;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.qrcc-sheet-item:hover, .qrcc-sheet-item:focus-visible { background: var(--qrcc-panel); }
.qrcc-sheet-item:focus-visible { outline: 2px solid var(--qrcc-accent); outline-offset: -2px; }

.qrcc-sheet-dot {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--qrcc-accent);
	color: #fff;
	font-weight: 700;
	line-height: 36px;
	text-align: center;
}

.qrcc-kind-whatsapp .qrcc-sheet-dot { background: #25d366; }
.qrcc-kind-telegram .qrcc-sheet-dot { background: #229ed9; }
.qrcc-kind-facebook .qrcc-sheet-dot { background: #1877f2; }
.qrcc-kind-x .qrcc-sheet-dot { background: #111; }
.qrcc-kind-linkedin .qrcc-sheet-dot { background: #0a66c2; }
.qrcc-kind-email .qrcc-sheet-dot { background: #ea4335; }
.qrcc-kind-sms .qrcc-sheet-dot { background: #34a853; }
.qrcc-kind-copy .qrcc-sheet-dot { background: #5f6368; }
.qrcc-kind-call .qrcc-sheet-dot { background: #1a73e8; }

.qrcc-sheet-text { display: flex; flex-direction: column; min-width: 0; }
.qrcc-sheet-main { overflow-wrap: anywhere; }
.qrcc-sheet-sub { font-size: .8125rem; color: var(--qrcc-muted); }

.qrcc-sheet-close {
	display: block;
	width: 100%;
	margin-top: 10px;
	min-height: 48px;
	border: 1px solid var(--qrcc-line);
	border-radius: 12px;
	background: var(--qrcc-panel);
	color: var(--qrcc-text);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

@keyframes qrcc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes qrcc-rise { from { transform: translateY(24px); } to { transform: none; } }

@media (min-width: 560px) {
	.qrcc-sheet { align-items: center; }
	.qrcc-sheet-panel { border-radius: 16px; max-width: 420px; }
	.qrcc-sheet-list { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.qrcc-sheet, .qrcc-sheet-panel { animation: none; }
}
