/**
 * The Keep QR Menu — Frontend Styles
 * Brand: The Keep Irish Pub
 */

/* Boot — hide flash until saved state is applied */
html.tkqm-booting #tkqm-app {
	opacity: 0;
	visibility: hidden;
}

html.tkqm-booting #tkqm-app.tkqm-ready,
html.tkqm-ready #tkqm-app {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.16s ease;
}

.tkqm-app.tkqm-pending-restore .tkqm-grid {
	opacity: 0;
	pointer-events: none;
}

.tkqm-app.tkqm-pending-restore .tkqm-main.is-loading .tkqm-grid,
.tkqm-app.tkqm-pending-restore.tkqm-pending-search .tkqm-main.is-loading .tkqm-grid {
	opacity: 0;
}

/* Reset within plugin scope */
.tkqm-app,
.tkqm-app *,
.tkqm-app *::before,
.tkqm-app *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.tkqm-app {
	color-scheme: dark;
	--tkqm-primary: #123C2F;
	--tkqm-gold: #C99D4C;
	--tkqm-gold-rgb: 201, 157, 76;
	--tkqm-cream: #F2E8D5;
	--tkqm-bg: #111111;
	--tkqm-mobile-cols: 2;
	--tkqm-tablet-cols: 3;
	--tkqm-desktop-cols: 4;
	--tkqm-radius: 8px;
	/* Kaynak: 1080×1350 — kart önizleme: 1080×1100 (üst/alt kırpma) */
	--tkqm-image-ratio: 1080 / 1350;
	--tkqm-card-image-ratio: 1080 / 1100;
	--tkqm-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
	--tkqm-font: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
	--tkqm-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	font-family: var(--tkqm-font-sans);
	background: var(--tkqm-bg);
	color: var(--tkqm-cream);
	min-height: 100vh;
	min-height: 100dvh;
	width: 100%;
	max-width: 100%;
	padding: 0;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow: visible;
}

/* Page scroll — prevent theme clipping */
body.tkqm-menu-page {
	overflow-x: hidden !important;
	overflow-y: auto !important;
	min-height: 100vh;
	min-height: 100dvh;
}

body.tkqm-menu-page .tkqm-app {
	min-height: 100dvh;
	overflow: visible;
}

body.tkqm-modal-open,
body.tkqm-locale-open {
	overflow: hidden !important;
	position: fixed;
	width: 100%;
	left: 0;
	right: 0;
}

body.tkqm-menu-page .entry-content > .tkqm-app,
body.tkqm-menu-page .wp-block-post-content > .tkqm-app {
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
	width: 100vw;
	max-width: 100vw;
	overflow: visible;
}

/* Header */
.tkqm-header {
	background: linear-gradient(180deg, var(--tkqm-primary) 0%, rgba(18, 60, 47, 0.95) 100%);
	padding: 14px 16px 12px;
	border-bottom: 2px solid var(--tkqm-gold);
}

.tkqm-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.tkqm-header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.tkqm-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(var(--tkqm-gold-rgb), 0.35);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
	color: var(--tkqm-gold);
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.tkqm-icon-btn:hover,
.tkqm-icon-btn.is-active {
	border-color: var(--tkqm-gold);
	background: rgba(var(--tkqm-gold-rgb), 0.12);
	color: var(--tkqm-cream);
}

#tkqm-search-toggle[aria-expanded="true"] {
	background: var(--tkqm-gold);
	color: var(--tkqm-bg);
	border-color: var(--tkqm-gold);
}

.tkqm-logo {
	flex: 1;
	text-align: center;
}

.tkqm-logo img {
	max-height: 44px;
	width: auto;
	object-fit: contain;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.tkqm-title {
	flex: 1;
	text-align: center;
	font-family: var(--tkqm-font);
	font-size: 1.35rem;
	font-weight: 400;
	color: var(--tkqm-gold);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Collapsible search panel */
.tkqm-search-panel {
	margin-top: 12px;
	animation: tkqm-search-in 0.25s ease;
}

.tkqm-search-panel[hidden] {
	display: none;
}

@keyframes tkqm-search-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.tkqm-search-panel-inner {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border: 1px solid rgba(var(--tkqm-gold-rgb), 0.45);
	border-radius: 10px;
	background: rgba(17, 17, 17, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: inset 0 1px 0 rgba(var(--tkqm-gold-rgb), 0.08);
}

.tkqm-search-panel-icon {
	color: rgba(var(--tkqm-gold-rgb), 0.75);
	display: flex;
	flex-shrink: 0;
}

.tkqm-search {
	flex: 1;
	min-width: 0;
	padding: 8px 4px;
	border: none;
	background: transparent !important;
	color: var(--tkqm-cream);
	caret-color: var(--tkqm-gold);
	font-size: 0.95rem;
	font-family: var(--tkqm-font-sans);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.tkqm-search::-webkit-search-decoration,
.tkqm-search::-webkit-search-cancel-button,
.tkqm-search::-webkit-search-results-button,
.tkqm-search::-webkit-search-results-decoration {
	-webkit-appearance: none;
	appearance: none;
	display: none;
}

.tkqm-search::placeholder {
	color: rgba(242, 232, 213, 0.72);
	opacity: 1;
}

.tkqm-search:-webkit-autofill,
.tkqm-search:-webkit-autofill:hover,
.tkqm-search:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px rgba(17, 17, 17, 0.95) inset !important;
	-webkit-text-fill-color: var(--tkqm-cream) !important;
	caret-color: var(--tkqm-gold);
	transition: background-color 9999s ease-out 0s;
}

/* Search mode — hide categories, pin header + search bar */
.tkqm-app.search-open .tkqm-header {
	position: sticky;
	top: 0;
	z-index: 1001;
}

.tkqm-app.search-open .tkqm-nav-sticky {
	display: none !important;
}

.tkqm-search-close {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	color: var(--tkqm-cream);
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, color 0.2s;
}

.tkqm-search-close:hover {
	background: var(--tkqm-gold);
	color: var(--tkqm-bg);
}

/* Sticky two-tier navigation */
.tkqm-nav-sticky {
	position: sticky;
	top: 0;
	z-index: 999;
	background: rgba(17, 17, 17, 0.97);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(var(--tkqm-gold-rgb), 0.2);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.tkqm-main-categories,
.tkqm-sub-categories {
	display: flex;
	align-items: center;
	gap: 8px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 10px 16px;
	scrollbar-width: none;
	-ms-overflow-style: none;
	-webkit-overflow-scrolling: touch;
}

.tkqm-sub-categories {
	min-height: 46px;
	padding-top: 8px;
	padding-bottom: 8px;
	border-top: 1px solid rgba(var(--tkqm-gold-rgb), 0.12);
	background: rgba(18, 60, 47, 0.15);
}

.tkqm-sub-categories[hidden] {
	display: none;
}

.tkqm-main-categories::-webkit-scrollbar,
.tkqm-sub-categories::-webkit-scrollbar {
	display: none;
}

.tkqm-main-cat-btn,
.tkqm-sub-cat-btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 14px;
	border: 1px solid rgba(var(--tkqm-gold-rgb), 0.3);
	border-radius: 4px;
	background: transparent;
	color: var(--tkqm-cream);
	font-size: 0.72rem;
	font-family: var(--tkqm-font-sans);
	font-weight: 500;
	letter-spacing: 0.06em;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.tkqm-sub-cat-btn {
	font-size: 0.68rem;
	padding: 8px 12px;
	border-radius: 3px;
	line-height: 1.2;
	min-height: 32px;
}

.tkqm-main-cat-btn:hover,
.tkqm-sub-cat-btn:hover {
	border-color: var(--tkqm-gold);
	color: var(--tkqm-gold);
}

.tkqm-main-cat-btn.is-active,
.tkqm-sub-cat-btn.is-active {
	background: var(--tkqm-gold);
	color: var(--tkqm-bg);
	border-color: var(--tkqm-gold);
	font-weight: 700;
}

.tkqm-cat-count {
	opacity: 0.75;
	font-weight: 400;
	font-size: 0.9em;
}

.tkqm-cat-expand-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 2px;
	opacity: 0.65;
	transition: opacity 0.2s, transform 0.2s;
}

.tkqm-main-cat-btn.has-submenu:hover .tkqm-cat-expand-icon,
.tkqm-main-cat-btn.has-submenu.is-active .tkqm-cat-expand-icon {
	opacity: 1;
}

.tkqm-main-cat-btn.has-submenu.is-active .tkqm-cat-expand-icon {
	transform: rotate(180deg);
}

.tkqm-main-cat-btn.is-active .tkqm-cat-count,
.tkqm-sub-cat-btn.is-active .tkqm-cat-count {
	opacity: 0.9;
	color: var(--tkqm-bg);
}

/* Main content — scroll fix */
.tkqm-main {
	padding: 14px 16px;
	padding-bottom: 120px;
	max-width: 1400px;
	margin: 0 auto;
	position: relative;
	min-height: calc(100vh - 180px);
	min-height: calc(100dvh - 180px);
	overflow: visible;
}

.tkqm-grid {
	display: grid;
	grid-template-columns: repeat(var(--tkqm-mobile-cols), 1fr);
	gap: 8px;
	padding-bottom: 120px;
}

@media (min-width: 600px) {
	.tkqm-grid {
		grid-template-columns: repeat(var(--tkqm-tablet-cols), 1fr);
		gap: 12px;
	}
}

@media (min-width: 1024px) {
	.tkqm-grid {
		grid-template-columns: repeat(var(--tkqm-desktop-cols), 1fr);
		gap: 14px;
	}

	.tkqm-header {
		padding: 18px 24px 14px;
	}

	.tkqm-logo img {
		max-height: 56px;
	}

	.tkqm-main {
		padding: 20px 24px 120px;
	}

	.tkqm-main-cat-btn {
		font-size: 0.78rem;
	}

	.tkqm-sub-cat-btn {
		font-size: 0.72rem;
	}
}

/* Compact product cards — no glow */
.tkqm-card {
	position: relative;
	background: linear-gradient(145deg, rgba(18, 60, 47, 0.55) 0%, rgba(18, 60, 47, 0.25) 100%);
	border: 1px solid rgba(242, 232, 213, 0.1);
	border-radius: var(--tkqm-radius);
	overflow: hidden;
	cursor: pointer;
	outline: none;
	box-shadow: none;
	filter: none;
	transition: border-color 0.2s ease;
}

.tkqm-card:hover,
.tkqm-card:focus-visible {
	border-color: rgba(242, 232, 213, 0.2);
	box-shadow: none;
	filter: none;
}

.tkqm-card-image-wrap {
	position: relative;
	aspect-ratio: var(--tkqm-card-image-ratio);
	overflow: hidden;
	background: var(--tkqm-bg);
}

.tkqm-card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}

.tkqm-card:hover .tkqm-card-image {
	transform: none;
}

.tkqm-card-body {
	padding: 6px 8px 8px;
}

.tkqm-card-title {
	font-family: var(--tkqm-font);
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--tkqm-cream);
	line-height: 1.25;
	margin-bottom: 3px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tkqm-card-price {
	display: block;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--tkqm-gold);
	margin-bottom: 3px;
}

.tkqm-card-desc {
	font-size: 0.68rem;
	color: rgba(242, 232, 213, 0.65);
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tkqm-view-detailed .tkqm-card-desc {
	-webkit-line-clamp: 2;
	font-size: 0.68rem;
}

/* Badges */
.tkqm-badge {
	position: absolute;
	top: 6px;
	left: 6px;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 0.58rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-family: var(--tkqm-font-sans);
	z-index: 2;
}

.tkqm-badge-new {
	background: #2ecc71;
	color: #111;
}

.tkqm-badge-popular {
	background: #e74c3c;
	color: #fff;
}

.tkqm-badge-recommended {
	background: var(--tkqm-gold);
	color: var(--tkqm-bg);
}

.tkqm-badge-signature {
	background: var(--tkqm-primary);
	color: var(--tkqm-gold);
	border: 1px solid var(--tkqm-gold);
}

/* Empty & loading */
.tkqm-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 48px 16px;
	color: rgba(242, 232, 213, 0.6);
	font-size: 0.9rem;
}

.tkqm-main.is-loading .tkqm-grid {
	opacity: 0;
	pointer-events: none;
	position: absolute;
	width: 100%;
	height: 0;
	overflow: hidden;
	visibility: hidden;
}

.tkqm-grid {
	transition: opacity 0.25s ease;
}

/* Loading — centered on phone screen, no page scroll */
.tkqm-loading {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 998;
	pointer-events: none;
	padding: 0;
	background: transparent;
}

.tkqm-loading[hidden] {
	display: none;
}

.tkqm-loading-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 24px 28px;
	border-radius: 14px;
	background: rgba(10, 24, 19, 0.92);
	border: 1px solid rgba(201, 157, 76, 0.45);
	box-shadow:
		0 0 24px 4px rgba(201, 157, 76, 0.28),
		0 0 48px 8px rgba(201, 157, 76, 0.12),
		0 12px 40px rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.tkqm-loading-text {
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(242, 232, 213, 0.75);
}

.tkqm-spinner {
	width: 36px;
	height: 36px;
	border: 3px solid rgba(var(--tkqm-gold-rgb), 0.25);
	border-top-color: var(--tkqm-gold);
	border-right-color: rgba(var(--tkqm-gold-rgb), 0.6);
	border-radius: 50%;
	animation: tkqm-spin 0.75s linear infinite;
}

.tkqm-modal-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px;
}

@keyframes tkqm-spin {
	to { transform: rotate(360deg); }
}

/* List layout */
.tkqm-layout-list .tkqm-grid {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tkqm-layout-list .tkqm-card {
	display: flex;
	flex-direction: row;
	align-items: stretch;
}

.tkqm-layout-list .tkqm-card-image-wrap {
	width: 76px;
	min-width: 76px;
	aspect-ratio: var(--tkqm-card-image-ratio);
	flex-shrink: 0;
	align-self: center;
	margin: 6px 0 6px 6px;
	border-radius: 6px;
}

.tkqm-layout-list .tkqm-card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 10px 12px;
	min-width: 0;
}

.tkqm-layout-list .tkqm-card-title {
	font-size: 0.85rem;
	-webkit-line-clamp: 2;
}

.tkqm-layout-list .tkqm-card-price {
	margin-bottom: 2px;
}

.tkqm-layout-list .tkqm-card-desc {
	-webkit-line-clamp: 2;
}

.tkqm-layout-list .tkqm-empty {
	width: 100%;
}

@media (min-width: 600px) {
	.tkqm-layout-list .tkqm-card-image-wrap {
		width: 88px;
		min-width: 88px;
	}
}

/* Modal */
.tkqm-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0;
}

.tkqm-modal[hidden] {
	display: none;
}

.tkqm-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(4px);
}

.tkqm-modal-content {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	max-height: 90dvh;
	background: var(--tkqm-bg);
	border-radius: 16px 16px 0 0;
	border: 1px solid rgba(var(--tkqm-gold-rgb), 0.3);
	border-bottom: none;
	overflow: hidden;
	animation: tkqm-slide-up 0.3s ease;
}

@media (min-width: 600px) {
	.tkqm-modal {
		align-items: center;
		padding: 24px;
	}

	.tkqm-modal-content {
		border-radius: 16px;
		border-bottom: 1px solid rgba(var(--tkqm-gold-rgb), 0.3);
		max-height: 85vh;
	}
}

@keyframes tkqm-slide-up {
	from {
		transform: translateY(100%);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.tkqm-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: rgba(17, 17, 17, 0.8);
	color: var(--tkqm-cream);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.tkqm-modal-close:hover {
	background: var(--tkqm-gold);
	color: var(--tkqm-bg);
}

.tkqm-modal-body {
	overflow-y: auto;
	max-height: 90vh;
	max-height: 90dvh;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
}

.tkqm-modal-product {
	width: 100%;
}

.tkqm-modal-image-wrap {
	position: relative;
	width: 100%;
	background: var(--tkqm-bg);
	line-height: 0;
}

.tkqm-modal-image {
	width: 100%;
	height: auto;
	display: block;
	vertical-align: top;
}

/* Scroll hint — mobile modal */
.tkqm-modal-scroll-hint {
	position: absolute;
	left: 50%;
	bottom: 14px;
	transform: translateX(-50%);
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.tkqm-modal-scroll-hint.is-visible {
	opacity: 1;
	visibility: visible;
}

.tkqm-modal-scroll-hint-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(17, 17, 17, 0.82);
	border: 1px solid rgba(var(--tkqm-gold-rgb), 0.55);
	color: var(--tkqm-gold);
	animation: tkqm-scroll-hint-bounce 1.6s ease-in-out infinite;
}

.tkqm-modal-scroll-hint-text {
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(242, 232, 213, 0.85);
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

@keyframes tkqm-scroll-hint-bounce {
	0%, 100% {
		transform: translateY(0);
		opacity: 0.85;
	}
	50% {
		transform: translateY(6px);
		opacity: 1;
	}
}

@media (min-width: 600px) {
	.tkqm-modal-scroll-hint {
		display: none;
	}
}

.tkqm-modal-info {
	padding: 20px;
}

.tkqm-modal-title {
	font-family: var(--tkqm-font);
	font-size: 1.35rem;
	color: var(--tkqm-cream);
	margin-bottom: 8px;
}

.tkqm-modal-price {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--tkqm-gold);
	margin-bottom: 12px;
}

.tkqm-modal-category {
	font-size: 0.8rem;
	color: rgba(242, 232, 213, 0.65);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(var(--tkqm-gold-rgb), 0.2);
}

.tkqm-modal-short {
	font-size: 0.88rem;
	color: rgba(242, 232, 213, 0.85);
	margin-bottom: 12px;
	font-style: italic;
}

.tkqm-modal-detail {
	font-size: 0.85rem;
	color: rgba(242, 232, 213, 0.75);
	line-height: 1.6;
}

.tkqm-modal-detail p {
	margin-bottom: 8px;
}

.tkqm-modal-detail p:last-child {
	margin-bottom: 0;
}

/* Prevent theme interference */
.tkqm-app a {
	text-decoration: none;
	color: inherit;
}

.tkqm-app button {
	-webkit-appearance: none;
	appearance: none;
	border: none;
	background: none;
}

.tkqm-app img:not(.tkqm-card-image):not(.tkqm-modal-image) {
	max-width: 100%;
	height: auto;
}

/* Safari bottom safe area */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
	.tkqm-main,
	.tkqm-grid {
		padding-bottom: calc(120px + env(safe-area-inset-bottom));
	}

	.tkqm-credit {
		padding-bottom: calc(48px + env(safe-area-inset-bottom));
	}
}

/* Credit footer */
.tkqm-credit {
	padding: 24px 16px 48px;
	text-align: center;
}

.tkqm-credit-text {
	display: inline-block;
	color: rgba(242, 232, 213, 0.42);
	font-family: var(--tkqm-font-sans);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: lowercase;
	text-decoration: underline;
	text-decoration-color: rgba(201, 157, 76, 0.35);
	text-underline-offset: 4px;
	cursor: pointer;
	user-select: none;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.tkqm-credit-text:hover {
	color: var(--tkqm-gold);
	text-decoration-color: var(--tkqm-gold);
}

/* Locale FAB — clean gold button */
.tkqm-locale-fab {
	position: fixed;
	right: 16px;
	left: auto;
	bottom: 24px;
	z-index: 998;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	border: 2px solid rgba(201, 157, 76, 0.65);
	background: linear-gradient(160deg, #123c2f 0%, #0a1f18 100%);
	color: #e8c878;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow:
		0 0 0 1px rgba(201, 157, 76, 0.2),
		0 0 22px 4px rgba(201, 157, 76, 0.38),
		0 8px 24px rgba(0, 0, 0, 0.5);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tkqm-locale-fab:hover,
.tkqm-locale-fab[aria-expanded="true"] {
	transform: scale(1.05);
	border-color: #e8c878;
	color: #fff8eb;
	box-shadow:
		0 0 0 2px rgba(201, 157, 76, 0.3),
		0 0 30px 6px rgba(201, 157, 76, 0.5),
		0 10px 28px rgba(0, 0, 0, 0.55);
}

body.tkqm-locale-open .tkqm-locale-fab {
	background: linear-gradient(160deg, #d4a853 0%, #c99d4c 100%);
	color: #0f1f18;
	border-color: #f5e6c8;
}

.tkqm-locale-panel[hidden] {
	display: none;
}

.tkqm-locale-panel {
	position: fixed;
	inset: 0;
	z-index: 99998;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px 16px;
}

.tkqm-locale-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.tkqm-locale-modal {
	position: relative;
	z-index: 1;
	width: min(360px, 100%);
	max-height: calc(100dvh - 40px);
	background: linear-gradient(165deg, rgba(18, 60, 47, 0.98) 0%, rgba(12, 12, 12, 0.98) 100%);
	border: 1px solid rgba(201, 157, 76, 0.4);
	border-radius: 16px;
	box-shadow:
		0 0 32px 6px rgba(201, 157, 76, 0.15),
		0 16px 48px rgba(0, 0, 0, 0.6);
	overflow: hidden;
	animation: tkqm-locale-in 0.22s ease;
}

@keyframes tkqm-locale-in {
	from { opacity: 0; transform: scale(0.94); }
	to { opacity: 1; transform: scale(1); }
}

.tkqm-locale-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px 10px;
	border-bottom: 1px solid rgba(var(--tkqm-gold-rgb), 0.2);
}

.tkqm-locale-title {
	font-family: var(--tkqm-font);
	font-size: 0.95rem;
	color: var(--tkqm-gold);
	font-weight: 600;
}

.tkqm-locale-close {
	width: 30px;
	height: 30px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	color: var(--tkqm-cream);
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
}

.tkqm-locale-close:hover {
	background: var(--tkqm-gold);
	color: var(--tkqm-bg);
}

.tkqm-locale-body {
	padding: 14px 16px 18px;
	overflow: visible;
}

.tkqm-locale-section + .tkqm-locale-section {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid rgba(var(--tkqm-gold-rgb), 0.15);
}

.tkqm-locale-section-title {
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(242, 232, 213, 0.55);
	margin-bottom: 8px;
	font-weight: 600;
}

.tkqm-locale-btn-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tkqm-app button.tkqm-locale-choice {
	flex: 1 1 calc(50% - 4px);
	min-width: calc(50% - 4px);
	margin: 0;
	padding: 11px 10px;
	border: 1px solid rgba(201, 157, 76, 0.28);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.04);
	color: var(--tkqm-cream);
	font-family: var(--tkqm-font-sans);
	font-size: 0.82rem;
	font-weight: 500;
	line-height: 1.25;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.tkqm-app button.tkqm-locale-choice:hover {
	border-color: rgba(201, 157, 76, 0.55);
	background: rgba(201, 157, 76, 0.1);
	color: #fff8eb;
}

.tkqm-app button.tkqm-locale-choice.is-active {
	border-color: var(--tkqm-gold);
	background: var(--tkqm-gold);
	color: var(--tkqm-bg);
	font-weight: 700;
	box-shadow: 0 0 16px rgba(201, 157, 76, 0.3);
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
	.tkqm-locale-fab {
		bottom: calc(24px + env(safe-area-inset-bottom));
	}
}
