:root {
	--font-ui: "Nunito", "Montserrat", system-ui, sans-serif;
	--bg: #0a0a0a;
	--bg-darker: #0a0a0a;
	--bg-card: #0f0f0f;
	--bg-input: #121212;
	--text: #e4e4e7;
	--muted: #71717a;
	--text-secondary: #a1a1aa;
	--accent: #888;
	--team-color-1: #ffffff;
	--team-color-2: #d4d4d8;
	--glow-color-1: rgba(255, 255, 255, 0.1);
	--glow-color-2: rgba(255, 255, 255, 0.06);
	--accent-soft: rgba(255, 255, 255, 0.1);
	--surface-1: #0f0f0f;
	--surface-2: #1a1a1a;
	--surface-3: #252525;
	--border: #1f1f1f;
	--frosted-toolbar-bg: #1a1a1a;
	--frosted-tabs-bg: #1a1a1a;
	--frosted-address-bg: #121212;
	--frosted-button-bg: #1a1a1a;
	--frosted-border-color: #232323;
	--frosted-toolbar-width: clamp(460px, calc(100vw - 220px), 980px);
	--frosted-tabs-max-width: calc(100vw - 300px);
	--frosted-button-size: 28px;
	--frosted-bar-radius: 999px;
	--frosted-row-gap: 0.6rem;
	--motion-fast: 180ms;
	--motion-med: 280ms;
	--motion-slow: 420ms;
	--motion-ui: 260ms;
	--motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--motion-ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	transition:
		background-color var(--motion-ui) var(--motion-ease-soft),
		color var(--motion-ui) var(--motion-ease-soft),
		border-color var(--motion-ui) var(--motion-ease-soft),
		box-shadow var(--motion-ui) var(--motion-ease-soft),
		opacity var(--motion-ui) var(--motion-ease-soft),
		transform var(--motion-ui) var(--motion-ease-soft),
		filter var(--motion-ui) var(--motion-ease-soft);
}

*::before,
*::after {
	transition:
		background-color var(--motion-ui) var(--motion-ease-soft),
		color var(--motion-ui) var(--motion-ease-soft),
		border-color var(--motion-ui) var(--motion-ease-soft),
		box-shadow var(--motion-ui) var(--motion-ease-soft),
		opacity var(--motion-ui) var(--motion-ease-soft),
		transform var(--motion-ui) var(--motion-ease-soft),
		filter var(--motion-ui) var(--motion-ease-soft);
}

html,
body {
	height: 100%;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-ui);
	background: var(--bg);
	color: var(--text);
	min-height: 100vh;
	line-height: 1.5;
	overflow: hidden;
}

button,
input,
select,
textarea {
	font-family: var(--font-ui);
}

@keyframes fade-slide-up {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.99);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes soft-pop-in {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.985);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes app-shell-enter {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.995);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes view-enter-smooth {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.992);
		filter: blur(2px);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
		filter: blur(0);
	}
}

@keyframes reveal-up-soft {
	from {
		opacity: 0;
		transform: translateY(18px) scale(0.985);
		filter: blur(4px);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
		filter: blur(0);
	}
}

@keyframes reveal-side-soft {
	from {
		opacity: 0;
		transform: translateX(-14px) scale(0.988);
		filter: blur(3px);
	}

	to {
		opacity: 1;
		transform: translateX(0) scale(1);
		filter: blur(0);
	}
}

@keyframes menu-item-enter {
	from {
		opacity: 0;
		transform: translateX(10px) scale(0.97);
	}

	to {
		opacity: 1;
		transform: translateX(0) scale(1);
	}
}

@keyframes card-reveal {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.985);
		filter: blur(3px);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
		filter: blur(0);
	}
}

@keyframes tab-enter {
	from {
		opacity: 0;
		transform: translateX(-20px) scale(0.92);
		filter: blur(2px);
	}
	to {
		opacity: 1;
		transform: translateX(0) scale(1);
		filter: blur(0);
	}
}

@keyframes tab-new-pop {
	from {
		opacity: 0;
		transform: translateY(-10px) scale(0.82);
		filter: blur(2px);
	}
	60% {
		opacity: 1;
		transform: translateY(0) scale(1.06);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes tab-exit {
	from {
		opacity: 1;
		transform: translateX(0) scale(1);
	}
	to {
		opacity: 0;
		transform: translateX(20px) scale(0.92);
	}
}

@keyframes tab-active-highlight {
	0% {
		box-shadow: 0 4px 12px rgba(150, 200, 255, 0.15);
	}
	50% {
		box-shadow: 0 8px 20px rgba(150, 200, 255, 0.25);
	}
	100% {
		box-shadow: 0 4px 12px rgba(150, 200, 255, 0.15);
	}
}

@keyframes button-pulse {
	0%, 100% {
		box-shadow: 0 0 0 0 rgba(150, 200, 255, 0.3);
	}
	50% {
		box-shadow: 0 0 0 6px rgba(150, 200, 255, 0);
	}
}

@keyframes glow-border {
	0% {
		box-shadow: inset 0 0 0 rgba(150, 200, 255, 0.3), 0 0 20px rgba(150, 200, 255, 0.1);
	}
	50% {
		box-shadow: inset 0 0 8px rgba(150, 200, 255, 0.2), 0 0 30px rgba(150, 200, 255, 0.2);
	}
	100% {
		box-shadow: inset 0 0 0 rgba(150, 200, 255, 0.3), 0 0 20px rgba(150, 200, 255, 0.1);
	}
}

@keyframes button-press {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(0.97);
	}
	100% {
		transform: scale(1);
	}
}

@keyframes subtle-float {
	0%, 100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-2px);
	}
}

@keyframes shimmer {
	0% {
		background-position: -1000px 0;
	}
	100% {
		background-position: 1000px 0;
	}
}

@keyframes pulse-glow {
	0%, 100% {
		box-shadow: 0 0 0 0 rgba(150, 200, 255, 0.3);
	}
	50% {
		box-shadow: 0 0 0 10px rgba(150, 200, 255, 0);
	}
}

@keyframes slide-in-left {
	from {
		opacity: 0;
		transform: translateX(-20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slide-in-right {
	from {
		opacity: 0;
		transform: translateX(20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slide-in-top {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slide-in-bottom {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

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

@keyframes rotate-in {
	from {
		opacity: 0;
		transform: rotate(-5deg) scale(0.95);
	}
	to {
		opacity: 1;
		transform: rotate(0deg) scale(1);
	}
}

@keyframes bounce-in {
	0% {
		opacity: 0;
		transform: scale(0.3);
	}
	50% {
		opacity: 1;
		transform: scale(1.05);
	}
	70% {
		transform: scale(0.9);
	}
	100% {
		transform: scale(1);
	}
}

@keyframes glow-pulse {
	0%, 100% {
		filter: drop-shadow(0 0 0 rgba(150, 200, 255, 0.3));
	}
	50% {
		filter: drop-shadow(0 0 12px rgba(150, 200, 255, 0.6));
	}
}

@keyframes float-up {
	0% {
		opacity: 0;
		transform: translateY(20px);
	}
	100% {
		opacity: 1;
		transform: translateY(-8px);
	}
}

@keyframes wiggle {
	0%, 100% {
		transform: rotate(0deg);
	}
	25% {
		transform: rotate(-1deg);
	}
	75% {
		transform: rotate(1deg);
	}
}

@keyframes swing {
	20% {
		transform: rotate(15deg);
	}
	40% {
		transform: rotate(-10deg);
	}
	60% {
		transform: rotate(5deg);
	}
	80% {
		transform: rotate(-5deg);
	}
	100% {
		transform: rotate(0deg);
	}
}

@keyframes sway {
	0%, 100% {
		transform: skewX(0deg);
	}
	50% {
		transform: skewX(2deg);
	}
}

@keyframes blink {
	0%, 49%, 100% {
		opacity: 1;
	}
	50%, 99% {
		opacity: 0.3;
	}
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

@keyframes spin-reverse {
	0% {
		transform: rotate(360deg);
	}
	100% {
		transform: rotate(0deg);
	}
}

@keyframes flip {
	0% {
		transform: perspective(400px) rotateY(0);
	}
	100% {
		transform: perspective(400px) rotateY(360deg);
	}
}

@keyframes flip-x {
	0% {
		transform: perspective(400px) rotateX(0);
	}
	100% {
		transform: perspective(400px) rotateX(360deg);
	}
}

@keyframes color-shift {
	0% {
		filter: hue-rotate(0deg);
	}
	100% {
		filter: hue-rotate(360deg);
	}
}

@keyframes fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes fade-out {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

@keyframes zoom-in {
	from {
		opacity: 0;
		transform: scale(0.8);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes zoom-out {
	from {
		opacity: 1;
		transform: scale(1);
	}
	to {
		opacity: 0;
		transform: scale(0.8);
	}
}

@keyframes expand {
	from {
		transform: scaleX(0);
	}
	to {
		transform: scaleX(1);
	}
}

@keyframes height-expand {
	from {
		max-height: 0;
		opacity: 0;
	}
	to {
		max-height: 1000px;
		opacity: 1;
	}
}

@keyframes height-collapse {
	from {
		max-height: 1000px;
		opacity: 1;
	}
	to {
		max-height: 0;
		opacity: 0;
	}
}

@keyframes wave {
	0%, 100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-10px);
	}
}

@keyframes ripple {
	0% {
		transform: scale(0);
		opacity: 1;
	}
	100% {
		transform: scale(4);
		opacity: 0;
	}
}

.tile-icon-img {
	width: 18px;
	height: 18px;
	display: block;
	object-fit: contain;
}

#particles-js {
	position: fixed;
	inset: 0;
	z-index: 0;
	background: transparent;
	pointer-events: none;
}

#frosted-wallpaper {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: #0a0a0a center / cover no-repeat;
	transition: opacity 0.4s ease;
}

.particles-canvas {
	display: block;
	width: 100%;
	height: 100%;
	opacity: 1;
}

.app-shell {
	position: relative;
	z-index: 1;
	height: 100%;
	display: flex;
	flex-direction: row;
	padding: 8px;
	gap: 8px;
	background: transparent;
	animation: app-shell-enter 520ms var(--motion-ease-soft) both;
}

.frosted-shell {
	position: relative;
	z-index: 20;
	display: flex;
	flex-direction: column;
	width: 240px;
	height: 100%;
	flex-shrink: 0;
	background: rgba(12, 12, 12, 0.85);
	backdrop-filter: blur(30px);
	-webkit-backdrop-filter: blur(30px);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 14px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
	pointer-events: auto;
	transition: width 0.3s cubic-bezier(0.2, 0, 0, 1), opacity 0.3s ease;
}

.frosted-shell.collapsed {
  width: 52px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.frosted-shell.collapsed .sidebar-title {
  display: none;
}

.frosted-shell.collapsed .sidebar-header {
  justify-content: center;
  padding: 0.65rem 0;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.frosted-shell.collapsed #newTabBtn {
  display: none;
}

.frosted-shell.collapsed .sidebar-separator {
  display: none;
}

.frosted-shell.collapsed .tabs-row {
  display: none;
}

.frosted-shell.collapsed .collapsed-tab-favicons {
  display: flex;
}

.frosted-shell.collapsed .action-menu-item {
  justify-content: center;
  padding: 0;
  height: 32px;
  width: 32px;
  border-radius: 8px;
}

.frosted-shell.collapsed .action-menu-item span {
  display: none;
}

.frosted-shell.collapsed .action-menu-item i,
.frosted-shell.collapsed .action-menu-item svg {
  width: 16px;
  height: 16px;
  font-size: 0.8rem;
}

.sidebar-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem 0.65rem;
}

.sidebar-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-shadow: 0 0 12px rgba(168, 210, 255, 0.25);
  text-transform: lowercase;
}

.sidebar-logo-icon {
  width: 18px;
  height: 18px;
  color: #a8d2ff;
  flex-shrink: 0;
}

.sidebar-header-actions {
  display: flex;
  gap: 0.25rem;
  justify-content: flex-end;
}

.sidebar-action-btn svg {
  width: 16px;
  height: 16px;
}

.sidebar-action-btn {
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	font-size: 0.95rem;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: all 0.15s ease;
	outline: none;
}

.sidebar-action-btn:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}
.sidebar-action-btn:focus-visible {
  outline: none;
  box-shadow: none;
}

.sidebar-separator {
	height: 0;
	background: none;
	margin: 0;
}

.collapsed-tab-favicons {
	display: none;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	padding: 0.5rem 0;
	width: 100%;
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: none;
}

.collapsed-tab-favicons::-webkit-scrollbar {
	display: none;
}

.collapsed-tab-favicon {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.15s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	position: relative;
}

.collapsed-tab-favicon:hover {
	background: rgba(255, 255, 255, 0.08);
}

.collapsed-tab-favicon.active {
	background: rgba(255, 255, 255, 0.1);
}

.collapsed-tab-favicon.active::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 2px;
	height: 14px;
	background: #fff;
	border-radius: 0 2px 2px 0;
}

.collapsed-tab-favicon img {
	width: 16px;
	height: 16px;
	object-fit: contain;
}

.loading-progress-bar {
	position: relative;
	z-index: 20;
	height: 2px;
	flex-shrink: 0;
	background: transparent;
	overflow: hidden;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.loading-progress-bar.active {
	opacity: 1;
}

.loading-progress-bar .fill {
	display: none;
}

.loading-progress-bar.shimmer::after {
	content: "";
	position: absolute;
	top: 0;
	left: -40%;
	width: 40%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(167,139,250,0.7), rgba(255,255,255,0.9), rgba(167,139,250,0.7), transparent);
	border-radius: 0 2px 2px 0;
	animation: shimmer-sweep 1.4s ease-in-out infinite;
}

.loading-progress-bar.complete .fill {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background: linear-gradient(90deg, #a88bff, #fff);
	box-shadow: 0 0 6px rgba(167,139,250,0.5), 0 0 12px rgba(192,132,252,0.3);
	border-radius: 0 2px 2px 0;
	animation: fill-complete 0.3s ease forwards;
}

@keyframes shimmer-sweep {
	0% { left: -40%; }
	100% { left: 100%; }
}

@keyframes fill-complete {
	from { width: 0%; }
	to { width: 100%; }
}

.home-credits {
	position: fixed;
	bottom: 0.6rem;
	left: 0.8rem;
	z-index: 30;
	text-align: left;
	font-size: 0.8rem;
	transition: opacity 0.3s ease;
}

.home-customization {
	position: fixed;
	bottom: 0.6rem;
	left: 0.8rem;
	z-index: 30;
}

.customization-btn {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: rgba(255, 255, 255, 0.7);
	padding: 0.6rem;
	border-radius: 8px;
	cursor: pointer;
	font-size: 1rem;
	transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
}

.customization-btn:hover {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.3);
	transform: translateY(-2px) scale(1.05);
	box-shadow: 0 4px 12px rgba(150, 200, 255, 0.1), 0 0 12px rgba(150, 200, 255, 0.2);
	animation: pulse-glow 1.5s ease-in-out;
}

.customization-panel {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.96);
	background: var(--surface-1);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 0;
	width: min(92vw, 380px);
	max-height: min(78vh, 520px);
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
	-ms-overflow-style: auto;
	box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
	display: none;
	flex-direction: column;
	gap: 0;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	opacity: 0;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
	z-index: 9999;
}

.customization-panel::-webkit-scrollbar {
	width: 4px;
}

.customization-panel::-webkit-scrollbar-track {
	background: transparent;
}

.customization-panel::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.12);
	border-radius: 4px;
}

.customization-panel::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.2);
}

.customization-panel.open {
	display: flex;
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

body.is-proxied .customization-panel {
	display: none !important;
}

.customization-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.15rem 0.7rem;
}

.customization-header-left {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.customization-header-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.6);
	flex-shrink: 0;
}

.customization-header-text {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.customization-header-text h3 {
	margin: 0;
	font-size: 0.95rem;
	color: #fff;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.customization-header-sub {
	font-size: 0.7rem;
	color: rgba(255, 255, 255, 0.3);
	font-weight: 400;
}

.customization-close {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	font-size: 0.8rem;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s ease;
}

.customization-close:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.customization-divider {
	height: 1px;
	background: rgba(255, 255, 255, 0.06);
}

.customization-content {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1rem 1.15rem 1.15rem;
}

.date-time-preview {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 10px;
	padding: 1rem 1.2rem;
	text-align: center;
	font-size: 1.15rem;
	color: var(--text);
	min-height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Nunito", var(--font-ui);
	font-weight: 700;
	white-space: pre-line;
}

.customization-options {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.customization-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 10px;
	padding: 0.65rem 0.85rem;
}

.customization-option label {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
	font-weight: 500;
}

.customization-option select {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	color: #fff;
	padding: 0.4rem 0.65rem;
	font-size: 0.78rem;
	font-family: inherit;
	cursor: pointer;
	outline: none;
	transition: border-color 0.15s ease;
	appearance: auto;
}

.customization-option select:hover,
.customization-option select:focus {
	border-color: rgba(255, 255, 255, 0.2);
}

.customization-color-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.customization-color-row input[type="color"] {
	width: 28px;
	height: 28px;
	border: 2px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	cursor: pointer;
	background: none;
	padding: 0;
}

.customization-color-row input[type="color"]::-webkit-color-swatch-wrapper {
	padding: 1px;
}

.customization-color-row input[type="color"]::-webkit-color-swatch {
	border: none;
	border-radius: 5px;
}

.customization-color-hex {
	font-size: 0.72rem;
	color: rgba(255, 255, 255, 0.35);
	font-family: monospace;
	letter-spacing: 0.02em;
}

.customization-option input[type="checkbox"] {
	cursor: pointer;
	width: 16px;
	height: 16px;
}

.customization-option.custom-checkbox input[type="checkbox"] {
	display: none;
}

.customization-option.custom-checkbox label {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	cursor: pointer;
}

.checkbox-custom {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(150, 200, 255, 0.4);
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
	position: relative;
	animation: scale-in 0.3s ease-out;
}

.customization-option.custom-checkbox input[type="checkbox"]:checked + label .checkbox-custom {
	background: linear-gradient(135deg, rgba(150, 200, 255, 0.3), rgba(100, 150, 255, 0.2));
	border-color: rgba(150, 200, 255, 0.8);
	box-shadow: 0 0 8px rgba(150, 200, 255, 0.2);
	animation: checkbox-pop 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.customization-option.custom-checkbox input[type="checkbox"]:checked + label .checkbox-custom::after {
	content: "✓";
	color: rgba(150, 200, 255, 0.9);
	font-size: 0.9rem;
	font-weight: bold;
	animation: checkmark-appear 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.customization-option.custom-checkbox label:hover .checkbox-custom {
	border-color: rgba(150, 200, 255, 0.6);
	box-shadow: 0 0 8px rgba(150, 200, 255, 0.2);
	transform: scale(1.1);
	animation: pulse-glow 0.8s ease-in-out;
}

@keyframes checkbox-pop {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.1);
	}
	100% {
		transform: scale(1);
	}
}

@keyframes checkmark-appear {
	0% {
		transform: scale(0) rotate(-45deg);
		opacity: 0;
	}
	100% {
		transform: scale(1) rotate(0deg);
		opacity: 1;
	}
}

.customization-option select,
.customization-option input[type="color"] {
	flex: 1;
	padding: 0.4rem 0.6rem;
	background: rgba(20, 28, 36, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #d4d4d4;
	border-radius: 6px;
	font-family: var(--font-ui);
	font-size: 0.85rem;
}

.customization-option select:focus,
.customization-option input[type="color"]:focus {
	outline: none;
	border-color: rgba(255, 255, 255, 0.3);
	box-shadow: 0 0 0 2px rgba(150, 200, 255, 0.1), 0 0 12px rgba(150, 200, 255, 0.15);
	transform: scale(1.02);
	animation: glow-pulse 0.8s ease-out;
}

.customization-save-btn {
	padding: 0.6rem 1rem;
	background: rgba(150, 200, 255, 0.15);
	border: 1px solid rgba(150, 200, 255, 0.3);
	color: #fff;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	font-size: 0.85rem;
	transition: all 0.2s;
	width: 100%;
	margin-top: 0.5rem;
}

.customization-save-btn:hover {
	background: rgba(150, 200, 255, 0.25);
	border-color: rgba(150, 200, 255, 0.5);
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 8px 16px rgba(100, 150, 255, 0.15);
	animation: pulse-glow 1s ease-in-out;
}

.date-time-display {
	display: none;
}

.home-logo.replaced {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: clamp(4.5rem, 10vw, 7.25rem);
	font-weight: 800;
	letter-spacing: 0;
	animation: none;
	min-height: auto;
	line-height: 1.1;
	white-space: normal;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	text-shadow: none;
}

.home-logo.replaced .date-time-time {
	display: block;
	font-size: clamp(1rem, 2.2vw, 1.6rem);
	font-weight: 700;
	line-height: 1.1;
	opacity: 0.7;
}

.home-logo.replaced .date-time-date {
	display: block;
	font-size: inherit;
	font-weight: inherit;
	line-height: 0.95;
	opacity: 1;
}

body.is-proxied .home-credits,
.frosted-row {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	flex: 1;
	min-height: 0;
	gap: 0;
}

.tabs-row {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 2px;
	padding: 0.5rem 0.75rem;
	width: 100%;
	flex: 1;
	justify-content: flex-start;
	animation: reveal-side-soft 440ms var(--motion-ease-soft) both 40ms;
}

.tabs {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
	max-width: 100%;
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.tabs::-webkit-scrollbar {
	display: none;
}

.tab {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0 0.6rem;
	height: 30px;
	border-radius: 6px;
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, 0.55);
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 0.78rem;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	width: 100%;
	flex: 0 0 auto;
	overflow: hidden;
	filter: blur(0);
	transition: background 150ms ease, color 150ms ease, filter 150ms ease-out;
	position: relative;
}

.tab.tab-new {
	animation: none;
}

.tab:not(:last-child)::after {
	content: "";
	position: absolute;
	right: 0;
	top: 25%;
	height: 50%;
	width: 0;
	background: none;
}

.tab:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	border-color: transparent;
	transform: none;
	box-shadow: none;
}

.tab:hover svg,
.tab:hover .tab-favicon {
	opacity: 1;
}

.tab.active {
	background: rgba(255, 255, 255, 0.06);
	border-radius: 6px;
	color: #fff;
	border: none;
	position: relative;
	z-index: 2;
	box-shadow: none;
	animation: none;
}

.tab.active::before {
	content: "";
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
	height: 0;
	background: none;
	z-index: 3;
}

.tab.active::after {
	display: none;
}

.tab-favicon {
	width: 16px;
	height: 16px;
	border-radius: 3px;
	flex: 0 0 auto;
	opacity: 0.7;
	transition: opacity 0.15s ease;
}

.tab:hover .tab-favicon,
.tab.active .tab-favicon {
	opacity: 1;
}

.tab-title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 160px;
}

.tab-close {
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, 0.35);
	cursor: pointer;
	font-size: 0.75rem;
	transition: all 0.15s ease;
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	flex-shrink: 0;
	margin-left: auto;
	opacity: 0;
}

.tab:hover .tab-close {
	opacity: 1;
}

.tab-close:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.tab-add {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: var(--chrome-tabs-bg, var(--frosted-tabs-bg));
	color: var(--text);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
	margin-left: 0.2rem;
	font-weight: 500;
}

.tab-add:hover {
	background: var(--chrome-tabs-bg, var(--frosted-tabs-bg));
	color: var(--text);
	border-color: var(--border);
	transform: scale(1.15) rotate(90deg);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
	animation: pulse-glow 1.2s ease-in-out;
}

.shortcut-counter {
	font-size: 0.64rem;
	color: #f5f7ff;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	padding: 0;
	width: var(--frosted-button-size);
	height: var(--frosted-button-size);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(9, 13, 20, 0.82);
	white-space: nowrap;
}

.tab-metrics {
	flex: 0 0 auto;
}

.toolbar {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.6rem;
	padding: 0.5rem 0.75rem;
	width: 100%;
	background: rgba(10, 10, 10, 0.6);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	z-index: 15;
}

.toolbar-nav {
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.sidebar-actions-container {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 0;
}

.sidebar-actions {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.5rem 0.75rem;
	border-top: none;
	margin-top: auto;
}

.frosted-shell.collapsed .sidebar-actions {
	padding: 0.5rem 0;
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.toolbar-actions {
	position: relative;
}

.extension-icons-bar {
	display: flex;
	align-items: center;
	gap: 2px;
	flex-shrink: 0;
}

.ext-icon-btn {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	border: none;
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	filter: blur(0);
	transition: all 150ms ease, filter 150ms ease-out;
	position: relative;
	flex-shrink: 0;
}
.ext-icon-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	transform: translateY(-1px);
	filter: blur(0.3px);
}
.ext-icon-btn:active {
	transform: scale(0.9);
}

.ext-icon-img {
	width: 22px;
	height: 22px;
	border-radius: 4px;
	object-fit: cover;
	image-rendering: -webkit-optimize-contrast;
}

.ext-icon-fa {
	font-size: 16px;
	color: var(--muted, #888);
}

.ext-icon-pulse {
	display: none;
}

.extensions-badge {
	position: absolute;
	top: 2px;
	right: 2px;
	min-width: 14px;
	height: 14px;
	border-radius: 7px;
	background: var(--accent, #8b5cf6);
	color: #fff;
	font-size: 0.55rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 3px;
	line-height: 1;
	pointer-events: none;
}

.nav-btn,
.toolbar-btn {
	width: 30px;
	height: 30px;
	border-radius: 8px;
	border: none;
	background: transparent;
	color: var(--muted);
	font-family: inherit;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	filter: blur(0);
	transition: all 150ms ease, filter 150ms ease-out;
	position: relative;
	overflow: hidden;
}

.nav-btn svg,
.toolbar-btn svg {
	width: 16px;
	height: 16px;
	stroke-width: 2;
}

.nav-btn::before,
.toolbar-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: rgba(255, 255, 255, 0.06);
	opacity: 0;
	transition: opacity 0.15s ease;
	pointer-events: none;
}

.nav-btn:hover,
.toolbar-btn:hover {
	color: var(--text);
	background: rgba(255, 255, 255, 0.06);
}

.nav-btn:hover::before,
.toolbar-btn:hover::before {
	opacity: 1;
}

.nav-btn:active,
.toolbar-btn:active {
	transform: scale(0.93);
}

.eruda-btn {
	font-size: 0.63rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.01em;
}

.toolbar-btn-logo {
	width: 16px;
	height: 16px;
	display: block;
	margin: 0 auto;
}

.extension-pinned-btn {
	overflow: hidden;
}



.extensions-pinned {
	display: flex;
	align-items: center;
	gap: 2px;
}

.extensions-pinned:empty {
	display: none;
}

.ext-pinned-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: var(--text);
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
}

.ext-pinned-icon:hover {
	background: rgba(255, 255, 255, 0.08);
}

.ext-pinned-icon:active {
	transform: scale(0.93);
}

.ext-pinned-icon-img {
	width: 18px;
	height: 18px;
	object-fit: contain;
	border-radius: 4px;
	pointer-events: none;
}

.ext-pinned-badge {
	position: absolute;
	bottom: 3px;
	right: 2px;
	min-width: 13px;
	height: 13px;
	padding: 0 3px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 8px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	background: var(--accent, #8b5cf6);
	border-radius: 7px;
	border: 1.5px solid var(--surface, #1a1a1a);
	pointer-events: none;
}


.ext-popup-host {
	position: fixed;
	z-index: 3000;
	min-width: 240px;
	max-width: min(92vw, 480px);
	max-height: min(80vh, 640px);
	overflow: auto;
	background: var(--surface, #1a1a1a);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
	padding: 0;
}

.ext-popup-host iframe {
	display: block;
	border: none;
	width: 360px;
	height: 480px;
	max-width: 100%;
	border-radius: 12px;
	background: #fff;
}

.extension-pinned-logo {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	object-fit: cover;
}

.action-menu-wrap {
	position: relative;
}

.action-menu-btn {
	border-radius: 8px;
	background: var(--surface-2);
}

.action-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: 155px;
	padding: 0.38rem;
	border-radius: 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(12, 17, 25, 0.7);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	z-index: 10010;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(10px) scale(0.98);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-menu.open {
	opacity: 1;
	transform: translateY(0) scale(1);
	visibility: visible;
	pointer-events: auto;
	animation: scale-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.action-menu.open .action-menu-item:nth-child(1) { animation-delay: 20ms; }
.action-menu.open .action-menu-item:nth-child(2) { animation-delay: 40ms; }
.action-menu.open .action-menu-item:nth-child(3) { animation-delay: 60ms; }
.action-menu.open .action-menu-item:nth-child(4) { animation-delay: 80ms; }
.action-menu.open .action-menu-item:nth-child(5) { animation-delay: 100ms; }
.action-menu.open .action-menu-item:nth-child(6) { animation-delay: 120ms; }
.action-menu.open .action-menu-item:nth-child(7) { animation-delay: 140ms; }
.action-menu.open .action-menu-item:nth-child(8) { animation-delay: 160ms; }
.action-menu.open .action-menu-item:nth-child(9) { animation-delay: 180ms; }
.action-menu.open .action-menu-item:nth-child(10) { animation-delay: 200ms; }
.action-menu.open .action-menu-item:nth-child(11) { animation-delay: 220ms; }
.action-menu.open .action-menu-item:nth-child(12) { animation-delay: 240ms; }

.action-menu-toggle {
	position: absolute;
	right: -14px;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 30px;
	border-radius: 999px;
	border: 2px solid rgba(255, 255, 255, 0.24);
	background: rgba(15, 22, 33, 0.95);
	color: rgba(236, 244, 255, 0.94);
	font-family: "Nunito", var(--font-ui);
	font-size: 0;
	font-weight: 700;
	letter-spacing: 0;
	padding: 0;
	cursor: pointer;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
	filter: blur(0);
	transition:
		transform 200ms cubic-bezier(0.42, 0, 0.58, 1),
		filter 150ms ease-out,
		box-shadow 200ms ease-out,
		background 200ms ease-out;
}

.action-menu-toggle::before,
.action-menu-toggle::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	transition: transform var(--motion-fast) var(--motion-ease-soft);
}

.action-menu-toggle::before {
	display: none;
}

.action-menu-toggle::after {
	width: 12px;
	height: 12px;
	border-right: 3px solid currentColor;
	border-bottom: 3px solid currentColor;
	transform: translate(-46%, -50%) rotate(135deg);
	transform-origin: center;
}

.action-menu-toggle:hover {
	transform: translateY(calc(-50% - 3px)) scale(1.1);
	filter: brightness(1.15) drop-shadow(0 0 8px rgba(150, 200, 255, 0.4));
	box-shadow: 0 12px 28px rgba(100, 150, 255, 0.3), 0 0 20px rgba(150, 200, 255, 0.2);
	background: rgba(100, 150, 255, 0.15);
	animation: pulse-glow 1.2s ease-in-out infinite;
}

.action-menu-toggle:active {
	animation: button-press 0.3s ease;
}

.action-menu-item {
	width: 100%;
	height: 34px;
	padding: 0 0.75rem;
	border-radius: 6px;
	border: none;
	background: transparent;
	color: rgba(255, 255, 255, 0.55);
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 0.6rem;
	cursor: pointer;
	filter: blur(0);
	transition: all 150ms ease, filter 150ms ease-out;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 0.82rem;
	font-weight: 500;
}

.action-menu-item:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	transform: none;
	box-shadow: none;
	filter: none;
}

.action-menu-item:hover i,
.action-menu-item:hover svg {
	color: #fff;
}

.action-menu-item:active {
	transform: none;
	background: rgba(255, 255, 255, 0.08);
	filter: none;
}

.action-menu-item i,
.action-menu-item svg {
	width: 18px;
	height: 18px;
	text-align: center;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.5);
	transition: color 0.15s ease;
	flex-shrink: 0;
}

.action-menu-item:focus-visible {
	outline: none;
	box-shadow: none;
}

.action-menu-item img {
	width: 16px;
	height: 16px;
	display: block;
	object-fit: contain;
}

.action-menu.is-closed {
	opacity: 0;
	transform: translateY(10px) scale(0.98);
	pointer-events: none;
	visibility: hidden;
}

.action-menu-item-code {
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	margin-top: auto;
}

.action-menu-item.is-hidden {
	display: none !important;
}

.action-menu-item.active,
.action-menu-item.is-active {
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
}

.action-menu-item.active i,
.action-menu-item.is-active i {
	color: #fff;
}

#aiBtn.active,
#aiBtn.is-active {
	color: #ffffff;
}

#aiBtn.active i,
#aiBtn.is-active i {
	color: #ffffff;
}

.quick-context-menu {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 10011;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 200px;
	padding: 6px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(18, 18, 18, 0.95);
	backdrop-filter: blur(30px);
	-webkit-backdrop-filter: blur(30px);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.03);
	opacity: 0;
	transform: scale(0.95);
	transform-origin: top left;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.quick-context-menu.open {
	opacity: 1;
	transform: scale(1);
	visibility: visible;
	pointer-events: auto;
}

.quick-context-item {
	width: 100%;
	min-height: 32px;
	padding: 0 10px;
	border-radius: 8px;
	border: none;
	background: transparent;
	color: rgba(255, 255, 255, 0.7);
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	font-size: 0.8rem;
	font-weight: 500;
	line-height: 1;
	text-align: left;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	transition: background 0.1s ease, color 0.1s ease;
}

.quick-context-item i {
	width: 18px;
	text-align: center;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.4);
	transition: color 0.1s ease;
}

.quick-context-item:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.quick-context-item:hover i {
	color: #fff;
}

.quick-context-item:active {
	background: rgba(255, 255, 255, 0.12);
	transform: scale(0.98);
}

.quick-context-separator {
	height: 1px;
	background: rgba(255, 255, 255, 0.08);
	margin: 4px 8px;
}

.action-menu-item[aria-pressed="false"] {
	color: rgba(255, 226, 186, 0.96);
}

@media (max-width: 900px) {
	.action-menu {
		left: 0.4rem;
		top: 50%;
		width: 52px;
		padding: 0.62rem 0.24rem;
		gap: 0.4rem;
		min-height: 0;
	}

	.action-menu-toggle {
		right: -12px;
		width: 36px;
		height: 28px;
	}

	.action-menu.is-closed .action-menu-toggle {
		right: -12px;
		width: 36px;
		height: 28px;
	}

	.action-menu-item {
		height: 34px;
		font-size: 0.96rem;
	}
}

.address-bar {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 8px;
	padding: 0.4rem 0.75rem;
	width: 100%;
	margin: 0;
	transition: all 0.15s ease;
	position: relative;
	overflow: hidden;
}

.address-bar::before {
	content: "";
	position: absolute;
	inset: 0;
	background: none;
	pointer-events: none;
}

.address-bar:focus-within {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.12);
}

.address-bar input {
	flex: 1;
	background: transparent;
	border: none;
	color: var(--text);
	font-size: 0.8rem;
	outline: none;
	font-family: inherit;
}

.address-bar input::placeholder {
	color: var(--muted);
}

.address-bar-lock {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #60fe34;
	flex-shrink: 0;
	transition: color 0.3s ease;
}

.address-bar-lock svg {
	width: 13px;
	height: 13px;
}

.address-bar-lock.loading {
	color: #c7c7c7;
}

.address-bar button,
.home-search button {
	width: 26px;
	height: 26px;
	border-radius: 6px;
	border: none;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	transition: all 0.15s ease;
	position: relative;
	overflow: hidden;
	font-weight: 600;
}

.address-bar button svg,
.home-search button svg {
	width: 15px;
	height: 15px;
}

.address-bar button:hover,
.home-search button:hover {
	background: rgba(255, 255, 255, 0.06);
	color: var(--text);
}

.address-bar button:active,
.home-search button:active {
	transform: scale(0.93);
}

.browser-shell {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	background: rgba(12, 12, 12, 0.5);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 14px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
	overflow: hidden;
}

.browser-main {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.browser-stage {
	position: relative;
	border-radius: 0;
	background: transparent;
	flex: 1;
	overflow: hidden;
	border: none;
	animation: view-enter-smooth 540ms var(--motion-ease-soft) both 80ms;
}

#browserFrame {
	width: 100%;
	height: 100%;
	border: none;
	background: transparent;
	display: block;
	overflow: hidden;
}

.loading-banner {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.08);
	z-index: 9;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.loading-banner.show {
	opacity: 1;
	visibility: visible;
	pointer-events: none;
}

.loading-popup {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.2rem;
	text-align: center;
}

.loading-popup-spinner {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 3px solid var(--accent-soft, rgba(255, 255, 255, 0.15));
	border-top-color: var(--accent, #8b5cf6);
	animation: loading-spin 0.8s linear infinite;
	will-change: transform;
}

.loading-popup-url {
	font-size: 0.8rem;
	color: var(--muted);
	font-family: var(--font-ui);
	max-width: min(80vw, 400px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

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

@keyframes fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

.browser-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	z-index: 6;
}

body.matrix-theme-active .browser-overlay {
	background: radial-gradient(circle at top, rgba(2, 10, 6, 0.16), rgba(4, 17, 10, 0.24));
}

.internal-page {
	position: absolute;
	inset: 0;
	display: none;
	z-index: 7;
	background: transparent;
	padding: 120px 1rem 1rem;
	overflow-y: auto;
}

body.matrix-theme-active .internal-page {
	background: transparent;
}

body.matrix-theme-active #aiPage {
	background: transparent;
}

#aiPage {
	padding-top: 0;
}

#historyPage {
	padding-top: 0;
}

.internal-page.active {
	display: block;
}

#internalErrorPage.active {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.error-page-shell {
	max-width: 480px;
}
.error-page-shell h2 {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	opacity: 0.7;
}
.error-page-shell p {
	margin: 0.25rem 0;
	opacity: 0.5;
	font-size: 0.85rem;
}
.error-page-hint kbd {
	background: rgba(255,255,255,0.06);
	padding: 0.1em 0.4em;
	border-radius: 4px;
	font-family: inherit;
}

.view-anim-enter {
	animation: view-enter-smooth 440ms var(--motion-ease-soft) both;
	filter: blur(0);
}

.view-anim-enter * {
	filter: blur(0);
}

#partnersPage {
	background: transparent;
}

.partners-page-shell {
	max-width: 1100px;
	margin: 0 auto;
	padding: 1rem;
	animation: reveal-up-soft 520ms var(--motion-ease-soft) both;
}

.partners-header {
	padding: 0.5rem 0.5rem 1.5rem;
}

.partners-header h2 {
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-transform: none;
}

.partners-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 0.75rem;
}

.partner-card {
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.03);
	padding: 1.2rem 1rem 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	filter: blur(0);
	transition: all 0.3s var(--motion-ease-soft), filter 150ms ease-out;
}

.partner-card:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.12);
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
	filter: blur(0.5px);
}

.partner-card:active {
	transform: translateY(-1px) scale(0.98);
	filter: blur(1px);
}

.partner-logo-wrap {
	width: 72px;
	height: 72px;
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.85rem;
	position: relative;
	overflow: hidden;
}

.partner-logo-img {
	width: 48px !important;
	height: 48px !important;
	max-width: 48px !important;
	max-height: 48px !important;
	border-radius: 0.6rem;
	object-fit: contain !important;
	object-position: center;
	background: transparent;
	display: block;
	flex: 0 0 auto;
}

.partner-logo {
	width: 48px;
	height: 48px;
	border-radius: 0.6rem;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.9rem;
	letter-spacing: 0.05em;
	color: rgba(255, 255, 255, 0.6);
	display: none;
}

.partner-card h3 {
	font-size: 0.82rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 0.65rem;
	letter-spacing: 0.01em;
}

.partner-btn {
	display: inline-flex;
	width: 100%;
	height: 30px;
	border-radius: 0.5rem;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: all 0.25s var(--motion-ease-soft);
}

.partner-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.15);
	color: #fff;
	transform: translateY(-1px);
	filter: none;
	box-shadow: none;
}

.extension-list {
	display: grid;
	grid-template-columns: 1fr;
}

.extension-card {
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 0.8rem;
	background: rgba(6, 12, 22, 0.72);
	padding: 0.75rem;
	transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
	animation: slide-in-bottom 0.4s ease-out;
}

.extension-card:hover {
	border-color: rgba(150, 200, 255, 0.3);
	background: rgba(6, 12, 22, 0.9);
	transform: translateY(-4px) scale(1.02);
	box-shadow: 0 12px 28px rgba(100, 150, 255, 0.15);
	animation: none;
}

.extension-card-head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.extension-icon {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	object-fit: cover;
	border: 1px solid rgba(255, 255, 255, 0.1);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.extension-meta h3 {
	font-size: 0.9rem;
	font-weight: 600;
}

.extensions-page-shell {
	max-width: 980px;
	border: none;
	background: transparent;
}

.extensions-page-header {
	padding: 0.2rem 0.2rem 0.9rem;
	border-bottom: none;
}

.extensions-page-header h2 {
	font-size: 2.15rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #f3f8ff;
}

.extensions-header-copy {
	margin-top: 0.15rem;
	font-size: 0.9rem;
	color: rgba(213, 229, 255, 0.8);
}

.extensions-page-body {
	padding: 0;
}

.extensions-list {
	padding: 0;
	border-bottom: none;
	background: transparent;
}

.extension-tag-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.45rem;
}

.extension-tag {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 0.62rem;
	font-size: 0.73rem;
	font-weight: 600;
	color: #d5e9ff;
	border-radius: 999px;
	border: 1px solid rgba(191, 223, 255, 0.25);
	background: rgba(32, 66, 104, 0.42);
}

.extension-actions-row {
	align-items: center;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-bottom: 0.35rem;
}

.extension-actions-row .settings-btn {
	min-height: 38px;
	border-radius: 0.78rem;
	padding: 0.52rem 1rem;
	background: linear-gradient(160deg, rgba(16, 44, 76, 0.85), rgba(10, 27, 48, 0.72));
	border-color: rgba(175, 216, 255, 0.26);
	font-weight: 500;
}

.extension-actions-row .settings-btn:hover {
	border-color: rgba(186, 224, 255, 0.48);
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 8px 20px rgba(100, 150, 255, 0.15);
	animation: glow-pulse 1s ease-in-out;
}

.extension-enabled-row {
	font-size: 0.9rem;
	gap: 0.45rem;
	color: rgba(229, 239, 255, 0.92);
	background: rgba(12, 27, 49, 0.5);
	padding: 0.42rem 0.62rem;
	border-radius: 0.72rem;
	border: 1px solid rgba(194, 226, 255, 0.17);
}

.extension-enabled-row input {
	width: 16px;
	height: 16px;
}

.extension-installed-count {
	font-size: 0.9rem;
	color: rgba(235, 243, 255, 0.94);
	background: rgba(6, 20, 36, 0.58);
	padding: 0.4rem 0.64rem;
	border-radius: 0.72rem;
	border: 1px solid rgba(190, 223, 255, 0.13);
}

.extension-meta-line {
	font-size: 0.84rem;
	color: rgba(223, 235, 255, 0.84);
}

.extension-store-page-shell {
	max-width: min(1860px, calc(100vw - 0.2rem));
	width: min(1860px, calc(100vw - 0.2rem));
	border: none;
	background: transparent;
}

.settings-page-shell.extension-store-page-shell {
	max-width: calc(100vw - 2rem);
	width: calc(100vw - 2rem);
}

.extension-store-page-header {
	padding: 0.25rem 0.25rem 0.95rem;
	border-bottom: none;
}

.extension-store-page-header h2 {
	font-size: 2rem;
	color: #f2f7ff;
}

.extension-store-copy {
	margin-top: 0.18rem;
	font-size: 0.9rem;
	color: rgba(214, 230, 255, 0.78);
}

.extension-store-page-body {
	padding: 0;
}

.extension-store-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
	grid-auto-rows: max-content;
	align-items: start;
	gap: 1rem;
	margin-top: 0;
	align-content: start;
	padding: 0.2rem 0.05rem 0.5rem;
}

.extension-switch-row {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

@media (max-width: 720px) {
	.extensions-page-header h2 {
		font-size: 1.5rem;
	}

	.extension-actions-row .settings-btn {
		flex: 1 1 150px;
	}
}

.partners-header h2 {
	letter-spacing: 0.08em;
	text-transform: lowercase;
	font-size: 0.92rem;
}

.settings-page-shell {
	max-width: 620px;
	margin: 0 auto;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 1.25rem;
	background: var(--surface-1);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
	animation: reveal-up-soft 520ms var(--motion-ease-soft) both;
}

.settings-page-header {
	padding: 0.9rem 1rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-page-header h2 {
	font-size: 1rem;
	font-weight: 600;
}

.settings-page-body {
	padding: 0.2rem 0;
}

.home-shell {
	display: grid;
	gap: 0.7rem;
	text-align: center;
	justify-items: center;
	width: min(860px, 92%);
	position: relative;
	z-index: 1;
	animation: fade-slide-up var(--motion-slow) var(--motion-ease) both;
}

.home-logo {
	animation: reveal-up-soft 520ms var(--motion-ease-soft) both 40ms;
}

.home-logo {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: clamp(3rem, 7vw, 5rem);
	font-weight: 800;
	color: #e8e8e8;
	text-shadow: 0 0 18px var(--glow-color-1);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.2rem;
}

.home-logo .home-logo-text {
	display: block;
}

.home-logo .date-time-display {
	display: block;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: clamp(1rem, 2.2vw, 1.5rem);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: 0.04em;
	opacity: 0.82;
	text-shadow: 2px 2px 6px rgba(80, 80, 80, 0.35);
	white-space: nowrap;
}

.clock-seconds {
	font-size: 0.55em;
	font-weight: 800;
	opacity: 0.7;
}

.clock-ampm {
	font-size: 0.65em;
	font-weight: 600;
	opacity: 0.6;
}

.home-logo h6 {
	font-size: 0.6em;
	color: #a0c4ff;
	font-weight: 500;
	letter-spacing: 0.05em;
}

.home-search-row {
	display: flex;
	justify-content: center;
	width: min(100%, 900px);
	animation: reveal-up-soft 560ms var(--motion-ease-soft) both 180ms;
}

.search-engine-dropdown {
	position: relative;
	animation: reveal-side-soft 500ms var(--motion-ease-soft) both 200ms;
}

.search-engine-dropdown[open] .search-engine-trigger {
	background: rgba(155, 200, 255, 0.12);
	border-color: rgba(155, 200, 255, 0.24);
}

.search-engine-trigger {
	list-style: none;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	height: 2.8rem;
	padding: 0 0.8rem;
	border-radius: 999px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	cursor: pointer;
	user-select: none;
	transition: background 0.2s, border-color 0.2s;
}

.search-engine-trigger:hover {
	background: var(--surface-3);
	border-color: var(--border);
}

.search-engine-trigger::-webkit-details-marker {
	display: none;
}

.search-engine-trigger-logo {
	width: 1.1rem;
	height: 1.1rem;
	object-fit: contain;
	display: block;
}

.search-engine-menu {
	position: absolute;
	top: calc(100% + 0.45rem);
	left: 0;
	display: grid;
	gap: 0.3rem;
	padding: 0.38rem;
	border-radius: 1rem;
	background: var(--surface-1);
	border: 1px solid var(--border);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
	z-index: 20;
}

.home-search {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 0.5rem;
	align-items: center;
	padding: 0.55rem 0.85rem;
	width: min(100%, 520px);
	border-radius: 12px;
	background: var(--bg-input);
	border: 1px solid var(--border);
	animation: reveal-up-soft 520ms var(--motion-ease-soft) both 230ms;
}

.home-search-icon {
	color: var(--muted);
}

.home-search input {
	background: transparent;
	border: none;
	color: var(--text);
	font-size: 0.9rem;
	outline: none;
	font-family: inherit;
}

#homeSearchInput:focus-visible {
	outline: none;
}

#addressInput:focus-visible {
	outline: none;
}

.search-engine-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	border: 1px solid transparent;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	transition:
		background var(--motion-fast) var(--motion-ease-soft),
		border-color var(--motion-fast) var(--motion-ease-soft),
		color var(--motion-fast) var(--motion-ease-soft),
		transform var(--motion-fast) var(--motion-ease-soft);
}

.search-engine-chip:hover {
	color: var(--text);
	background: var(--surface-3);
}

.search-engine-chip[aria-pressed="true"] {
	background: var(--surface-2);
	border-color: var(--border);
	color: var(--text);
}

.search-engine-chip-icon {
	display: block;
	width: 1.2rem;
	height: 1.2rem;
	object-fit: contain;
}

.home-tiles {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	animation: reveal-up-soft 600ms var(--motion-ease-soft) both 240ms;
}

.home-shell {
	gap: 0.85rem;
	width: min(500px, 92vw);
	justify-items: center;
}

.home-logo {
	font-family: inherit;
	font-size: 0;
	line-height: 1;
	gap: 0.2rem;
}

.home-logo .home-logo-text {
	display: block;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: clamp(3rem, 7vw, 4rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	color: var(--text);
	text-shadow: none;
}

.home-logo .date-time-display {
	display: block;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 500;
	color: var(--text);
	text-shadow: none;
}

.home-search-row {
	display: flex;
	justify-content: center;
	width: 100%;
}

.home-search {
	margin-bottom: 0.75rem;
}

.home-tiles,
.shortcuts,
.bookmarks {
	gap: 8px;
}

.home-tile,
.shortcut-icon,
.shortcut-icon img {
	box-shadow: none;
}

.home-credits {
	position: fixed;
	left: 1.2rem;
	bottom: 1rem;
	margin-top: 0;
	z-index: 7;
}

.home-credits a {
	font-size: 0.78rem;
	color: var(--team-color-1);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.home-tile {
	min-width: 100px;
	padding: 0.4rem 0.5rem;
	border-radius: 0.7rem;
	border: 1px solid var(--border);
	background: var(--bg-card);
	color: var(--text);
	font-family: inherit;
	font-size: 0.65rem;
	font-weight: 500;
	display: grid;
	gap: 0.3rem;
	justify-items: center;
	cursor: pointer;
	filter: blur(0);
	transition:
		transform 200ms cubic-bezier(0.42, 0, 0.58, 1),
		border-color 200ms ease-out,
		background 200ms ease-out,
		box-shadow 200ms ease-out,
		filter 150ms ease-out;
}

.home-tile:nth-child(1) { animation-delay: 280ms; }
.home-tile:nth-child(2) { animation-delay: 340ms; }
.home-tile:nth-child(3) { animation-delay: 400ms; }
.home-tile:nth-child(4) { animation-delay: 460ms; }

.tile-icon {
	width: 26px;
	height: 26px;
	border-radius: 0.5rem;
	background: var(--surface-3);
	display: flex;
	align-items: center;
	justify-content: center;
}

.tile-icon i {
	font-size: 0.8rem;
}

.tile-label {
	font-size: 0.65rem;
	font-family: inherit;
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1.1;
}

.bookmarks {
	display: none;
}

.bookmark {
	min-width: 100px;
	padding: 0.4rem 0.5rem;
	border-radius: 0.7rem;
	border: 1px solid var(--border);
	background: var(--bg-card);
	color: var(--text);
	text-decoration: none;
	font-family: inherit;
	font-size: 0.65rem;
	font-weight: 500;
	display: grid;
	gap: 0.3rem;
	justify-items: center;
	cursor: pointer;
	opacity: 0;
	animation: reveal-up-soft var(--motion-slow) var(--motion-ease-soft) both;
	filter: blur(0);
	transition:
		transform 200ms cubic-bezier(0.42, 0, 0.58, 1),
		border-color 200ms ease-out,
		background 200ms ease-out,
		box-shadow 200ms ease-out,
		filter 150ms ease-out;
}

.bookmark:hover {
	border-color: rgba(255, 255, 255, 0.15);
	background: var(--bg-card);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.bookmark:active {
	transform: translateY(0) scale(0.97);
	box-shadow: none;
}

.bookmark-icon {
	width: 26px;
	height: 26px;
	border-radius: 0.5rem;
	background: var(--surface-3);
	display: flex;
	align-items: center;
	justify-content: center;
}

.bookmark-icon img {
	width: 16px;
	height: 16px;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.bookmark-icon i {
	font-size: 0.8rem;
}

.bookmark-label {
	line-height: 1.1;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 90px;
	white-space: nowrap;
}

#addBookmarkBtn {
	min-width: 100px;
	padding: 0.4rem 0.5rem;
	border-radius: 0.7rem;
	border: 1px dashed var(--border);
	background: transparent;
	color: var(--text-secondary);
	cursor: pointer;
	font-family: inherit;
	font-size: 0.65rem;
	font-weight: 500;
	display: grid;
	gap: 0.3rem;
	justify-items: center;
	opacity: 0;
	animation: reveal-up-soft var(--motion-slow) var(--motion-ease-soft) both;
	filter: blur(0);
	transition:
		transform 200ms cubic-bezier(0.42, 0, 0.58, 1),
		border-color 200ms ease-out,
		color 200ms ease-out,
		box-shadow 200ms ease-out,
		filter 150ms ease-out;
}

#addBookmarkBtn:hover {
	border-color: rgba(255, 255, 255, 0.15);
	color: var(--text);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

#addBookmarkBtn:active {
	transform: translateY(0) scale(0.97);
	box-shadow: none;
}

.popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.86);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
	padding: 1rem;
}

.popup-overlay.open {
	opacity: 1;
	pointer-events: all;
}

.modal-content {
	background: var(--surface-1);
	border: 1px solid var(--border);
	border-radius: 12px;
	width: min(92vw, 380px);
	max-height: 88vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.settings-content {
	width: min(92vw, 460px);
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.7rem 1rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-header-right {
	display: flex;
	gap: 0.4rem;
}

.modal-label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: lowercase;
	color: var(--muted);
}

.close-btn,
.clear-btn {
	border-radius: 0.7rem;
	border: 1px solid var(--border);
	background: var(--surface-3);
	color: var(--text);
	padding: 0.2rem 0.55rem;
	cursor: pointer;
}

.modal-body {
	overflow-y: auto;
	padding: 0.4rem 0;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.05);
}

.modal-body::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

.modal-body::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.04);
	border-radius: 999px;
}

.modal-body::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	border: 2px solid var(--surface-1);
}

.modal-body::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.3);
}

.update-popup-body {
	padding: 1rem;
	display: grid;
	gap: 0.65rem;
	text-align: center;
	justify-items: center;
}

.update-popup-title {
	font-size: 1.1rem;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.02em;
	text-transform: capitalize;
}

.update-popup-copy {
	font-size: 0.82rem;
	color: var(--muted);
	line-height: 1.5;
	max-width: 320px;
}

.update-popup-list {
	margin: 0.4rem 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.45rem;
	font-size: 0.8rem;
	color: #dfe8ff;
	text-align: left;
}

.update-popup-list li {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
}

.update-popup-list li::before {
	content: "•";
	color: var(--accent-soft, #4f46e5);
	font-weight: bold;
}

.update-popup-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 0.2rem;
}

.update-modal {
	background: var(--surface-1);
	border: 1px solid var(--border);
	border-radius: 16px;
	width: min(92vw, 400px);
	max-height: 80vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
	overflow: hidden;
	transform: scale(0.96) translateY(8px);
	opacity: 0;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.popup-overlay.visible .update-modal {
	transform: scale(1) translateY(0);
	opacity: 1;
}

.update-modal-header {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 1.2rem 1.25rem 0.8rem;
}

.update-modal-logo {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
	border: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.7);
	flex-shrink: 0;
}

.update-modal-header-text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.update-modal-header-title {
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.01em;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.update-modal-version-badge {
	font-size: 0.6rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.5);
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 6px;
	padding: 0.15rem 0.45rem;
	letter-spacing: 0.02em;
	text-transform: none;
	vertical-align: middle;
}

.update-modal-header-subtitle {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.35);
	font-weight: 400;
}

.update-modal-divider {
	height: 1px;
	background: rgba(255, 255, 255, 0.06);
	margin: 0 1.25rem;
}

.update-modal-body {
	padding: 0.9rem 1.25rem;
	overflow-y: auto;
	flex: 1;
	min-height: 0;
}

.update-modal-body::-webkit-scrollbar {
	width: 4px;
}

.update-modal-body::-webkit-scrollbar-track {
	background: transparent;
}

.update-modal-body::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.12);
	border-radius: 4px;
}

.update-modal-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.update-modal-list-item {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	padding: 0.4rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.72);
	line-height: 1.4;
}

.update-modal-list-item:last-child {
	border-bottom: none;
}

.update-modal-bullet {
	color: rgba(255, 255, 255, 0.2);
	font-size: 0.7rem;
	flex-shrink: 0;
	margin-top: 1px;
}

.update-modal-list-text {
	flex: 1;
	min-width: 0;
}

.update-modal-footer {
	padding: 0.8rem 1.25rem 1.1rem;
	display: flex;
	justify-content: flex-end;
}

.update-modal-btn {
	padding: 0.55rem 1.6rem;
	border: none;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.9);
	color: #000;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
	letter-spacing: 0.01em;
}

.update-modal-btn:hover {
	background: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.update-modal-btn:active {
	transform: translateY(0);
}

.bookmark-form {
	display: grid;
	gap: 0.6rem;
	padding: 0.6rem 1rem;
}

.bookmark-field {
	display: grid;
	gap: 0.25rem;
}

.bookmark-input {
	background: var(--bg-input);
	border: 1px solid var(--border);
	border-radius: 0.6rem;
	padding: 0.55rem 0.75rem;
	color: var(--text);
	font-family: inherit;
	font-size: 0.82rem;
	outline: none;
	transition: border-color var(--motion-fast) var(--motion-ease-soft);
}

.bookmark-input:focus {
	border-color: var(--accent);
}

.bookmark-input::placeholder {
	color: var(--muted);
}

.bookmark-form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
	margin-top: 0.3rem;
}

.bookmark-form-actions .settings-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1.2rem;
	border-radius: 0.6rem;
	border: 1px solid var(--accent);
	background: var(--accent);
	color: #fff;
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	min-width: 72px;
	margin: 0;
	width: auto;
	flex-direction: row;
	text-align: center;
	transition: opacity var(--motion-fast) var(--motion-ease-soft);
}

.bookmark-form-actions .settings-btn:hover {
	opacity: 0.85;
	transform: none;
	box-shadow: none;
	border-color: var(--accent);
	background: var(--accent);
}

.bookmark-form-actions .settings-btn-secondary {
	background: transparent;
	border-color: var(--border);
	color: var(--text);
}

.bookmark-form-actions .settings-btn-secondary:hover {
	background: var(--surface-2);
	border-color: var(--border);
	opacity: 1;
}

.history-item {
	padding: 0.55rem 0.75rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	font-size: 0.74rem;
	word-break: break-all;
}

.settings-section {
	padding: 0.45rem 0.8rem;
	display: grid;
	gap: 0.35rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.settings-label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: lowercase;
	color: var(--muted);
}

.settings-select {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	padding: 0.5rem 2.2rem 0.5rem 0.8rem;
	border-radius: 0.6rem;
	border: 1px solid var(--border);
	background-color: var(--surface-1);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.65rem center;
	background-size: 14px 14px;
	color: var(--text);
	font-family: inherit;
	font-size: 0.8rem;
	cursor: pointer;
	filter: blur(0);
	transition:
		background-color 200ms var(--motion-ease-soft),
		border-color 200ms var(--motion-ease-soft),
		box-shadow 200ms var(--motion-ease-soft),
		filter 150ms ease-out;
}

.settings-select:hover {
	background-color: var(--surface-2);
	border-color: var(--border);
	filter: blur(0.3px);
}

.settings-select:focus {
	outline: none;
	border-color: var(--accent-soft);
	background-color: var(--surface-2);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
	filter: blur(0);
}

.settings-select option {
	background: #111;
	color: var(--text);
	padding: 0.4rem;
}

.settings-input {
	width: 100%;
	padding: 0.45rem 0.75rem;
	border-radius: 0.5rem;
	border: 1px solid var(--border);
	background: var(--bg-input);
	color: #fff;
	font-family: inherit;
	font-size: 0.8rem;
}

.settings-row {
	display: flex;
	gap: 0.8rem;
}

.open-mode-row .open-mode-btn {
	flex: 1 1 220px;
}

.open-mode-btn.active {
	border-color: var(--accent-soft);
	box-shadow: 0 0 0 1px var(--accent-soft) inset;
	background: linear-gradient(135deg, var(--surface-3), var(--surface-2));
}

.settings-color {
	flex: 1;
	height: 36px;
	border-radius: 0.6rem;
	border: 1px solid var(--border);
	background: transparent;
}

.custom-dropdown {
	position: relative;
	width: calc(100% - 2.2rem);
	max-width: 400px;
	margin: 0.3rem 1.1rem;
}

.dropdown-trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.45rem 0.85rem;
	border-radius: 0.55rem;
	border: 1px solid var(--border);
	background: var(--surface-3);
	color: var(--text);
	font-family: inherit;
	font-size: 0.82rem;
	cursor: pointer;
	transition: all 0.2s var(--motion-ease-soft);
}

.dropdown-trigger:hover {
	background: var(--surface-2);
	border-color: rgba(255, 255, 255, 0.15);
	transform: translateY(-1px);
}

.dropdown-caret {
	width: 12px;
	height: 12px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	transition: transform 0.2s var(--motion-ease-soft);
	opacity: 0.8;
}

.custom-dropdown.open .dropdown-caret {
	transform: rotate(180deg);
}

.dropdown-menu {
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 0;
	width: 100%;
	background: rgba(15, 20, 28, 0.98);
	border: 1px solid var(--border);
	border-radius: 1rem;
	padding: 0.4rem;
	z-index: 1000000;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
	opacity: 0;
	pointer-events: none;
	transform: translateY(-10px) scale(0.98);
	transition: all 0.2s var(--motion-ease-soft);
}

.custom-dropdown.open .dropdown-menu {
	opacity: 1;
	pointer-events: all;
	transform: translateY(0) scale(1);
}

.dropdown-item {
	padding: 0.6rem 0.8rem;
	border-radius: 0.6rem;
	font-size: 0.82rem;
	color: var(--text);
	cursor: pointer;
	transition: background 0.2s;
}

.dropdown-item:hover {
	background: rgba(255, 255, 255, 0.06);
}

.dropdown-item.active {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-weight: 600;
}

.settings-btn {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	gap: 0.12rem;
	padding: 0.58rem 1.1rem;
	border-radius: 0.65rem;
	border: 1px solid var(--border);
	background: var(--surface-3);
	color: var(--text);
	font-family: "Poppins", system-ui, sans-serif;
	cursor: pointer;
	white-space: normal;
	width: calc(100% - 2.2rem);
	max-width: 420px;
	margin: 0.2rem 1.1rem;
	filter: blur(0);
	transition:
		transform 200ms cubic-bezier(0.42, 0, 0.58, 1),
		background 200ms ease-out,
		border-color 200ms ease-out,
		box-shadow 200ms ease-out,
		filter 150ms ease-out;
}

.settings-btn-label {
	display: block;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: lowercase;
	color: var(--muted);
	line-height: 1.1;
}

.settings-btn-hint {
	display: block;
	font-size: 0.68rem;
	color: var(--muted);
	line-height: 1.35;
	margin-bottom: 0.1rem;
}

.settings-btn-status {
	display: block;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--text);
}

.settings-btn.active {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
	border-color: rgba(255, 255, 255, 0.35);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.settings-btn.active .settings-btn-label {
	color: rgba(255, 255, 255, 0.65);
}

.settings-btn.active .settings-btn-hint {
	color: rgba(255, 255, 255, 0.75);
}

.settings-btn.active .settings-btn-status {
	color: #ffffff;
	text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.settings-btn:hover {
	background: var(--surface-2);
	transform: translateY(-1.5px);
	border-color: var(--accent-soft);
	box-shadow: 0 4px 15px var(--glow-color-1);
	filter: blur(0.4px);
}

.settings-btn:active {
	transform: translateY(0);
	filter: blur(0.8px);
}

.settings-group-header {
	padding: 0.9rem 1rem 0.4rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: lowercase;
	color: var(--muted);
	opacity: 0.8;
}

.settings-hint {
	display: block;
	font-size: 0.72rem;
	color: var(--muted);
	line-height: 1.4;
}

.panic-box {
	display: grid;
	gap: 0.6rem;
	padding: 0.9rem 1rem;
	border-radius: 0.8rem;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.panic-title {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--text);
}

.panic-key-pill {
	font-size: 1.2rem;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.12);
	padding: 0.25rem 0.8rem;
	border-radius: 0.5rem;
	min-width: 2.4rem;
	text-align: center;
}

.credits-page-shell {
	max-width: 760px;
	margin: 0 auto;
	border: 1px solid var(--border);
	border-radius: 1rem;
	background: var(--bg-card);
}

.games-page-shell-inner {
	max-width: none !important;
	width: 100% !important;
	display: flex;
	flex-direction: column;
}

#gamesPage {
	padding-top: 1rem;
}

.games-page-shell {
	max-width: none;
	width: 100%;
	margin: 0;
	min-height: calc(100vh - 120px);
	border: 1px solid var(--border);
	border-radius: 1.2rem;
	background: var(--bg-card);
	display: flex;
	flex-direction: column;
	padding-top: 0.5rem;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.games-toolbar {
	padding: 0.8rem 1.2rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	margin-bottom: 0.5rem;
}

.games-lib-btns {
	display: flex;
	gap: 0.4rem;
	flex-shrink: 0;
}

.games-lib-btn {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--text-secondary, #aaa);
	padding: 0.35rem 0.75rem;
	border-radius: 0.5rem;
	cursor: pointer;
	font-size: 0.8rem;
	transition: all 0.2s;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.games-lib-btn:hover {
	background: rgba(255, 255, 255, 0.12);
	color: var(--text-primary, #fff);
}

.games-lib-btn.active {
	background: var(--accent, #6ea8fe);
	color: #fff;
	border-color: var(--accent, #6ea8fe);
}

.games-source-select {
	min-width: 160px;
	flex-shrink: 0;
}

.games-search {
	flex: 1 1 280px;
}

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

.ai-shell {
	width: 100%;
	max-width: 100%;
	padding: 1.25rem 2rem;
	height: 100%;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.ai-shell-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.25rem 0 1rem;
	position: relative;
}

.ai-shell-top-left {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.ai-title {
	font-family: "Plus Jakarta Sans", var(--font-ui);
	font-weight: 700;
	font-size: 1.2rem;
	color: #fff;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.ai-title-icon {
	width: 1rem;
	height: 1rem;
	color: rgba(140, 180, 230, 0.8);
}

.ai-shell-top-actions {
	display: flex;
	gap: 0.4rem;
}

.ai-top-btn {
	width: 30px;
	height: 30px;
	padding: 0;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ai-top-btn svg {
	width: 15px;
	height: 15px;
}

.ai-top-btn:hover {
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.8);
	border-color: rgba(255, 255, 255, 0.12);
}

.ai-layout {
	display: flex;
	flex: 1;
	min-height: 0;
	position: relative;
}


.ai-sidebar {
	width: 260px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.96);
	z-index: 100;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.ai-sidebar.open {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, -50%) scale(1);
}

.ai-sidebar-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.ai-sidebar-overlay.open {
	display: block;
}

.ai-sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 0 0.5rem;
}

.ai-sidebar-title {
	font-size: 0.75rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.4);
	text-transform: lowercase;
	letter-spacing: 0.06em;
}

.ai-sidebar-close {
	width: 28px;
	height: 28px;
	padding: 0;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s ease;
}

.ai-sidebar-close svg {
	width: 14px;
	height: 14px;
}

.ai-sidebar-close:hover {
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.8);
}

.ai-sidebar-card {
	background: rgba(18, 18, 22, 0.95);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	padding: 0.85rem;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.ai-sidebar-section {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.ai-sidebar-label {
	font-size: 0.7rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.35);
	text-transform: lowercase;
	letter-spacing: 0.06em;
}

.ai-sidebar-divider {
	height: 1px;
	background: rgba(255, 255, 255, 0.05);
	margin: 0.6rem 0;
}

.ai-model-pill {
	appearance: none;
	-webkit-appearance: none;
	padding: 0.35rem 1.8rem 0.35rem 0.65rem;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.7);
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	outline: none;
	transition: all 0.2s ease;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.55rem center;
}

.ai-model-pill:hover {
	border-color: rgba(255, 255, 255, 0.15);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

.ai-model-pill:focus-visible {
	outline: 2px solid rgba(140, 180, 230, 0.3);
	outline-offset: 1px;
}

.ai-model-pill option {
	background: #111;
	color: rgba(255, 255, 255, 0.8);
}

.ai-cmd-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ai-cmd-item {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 0 0.75rem;
	height: 34px;
	border-radius: 6px;
	border: none;
	background: transparent;
	color: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	transition: all 150ms ease;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 0.82rem;
	font-weight: 500;
	text-align: left;
	width: 100%;
	gap: 0.6rem;
}

.ai-cmd-item i,
.ai-cmd-item svg {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.35);
	width: 16px;
	height: 16px;
	text-align: center;
	transition: color 0.15s;
	flex-shrink: 0;
}

.ai-cmd-item:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

.ai-cmd-item:hover i,
.ai-cmd-item:hover svg {
	color: #fff;
}

.ai-cmd-name {
	font-family: "Plus Jakarta Sans", monospace;
	font-size: 0.78rem;
	font-weight: 600;
	color: inherit;
	flex: 0 0 auto;
}

.ai-cmd-desc {
	font-size: 0.68rem;
	color: rgba(255, 255, 255, 0.25);
	margin-left: auto;
}

.ai-custom-textarea {
	width: 100%;
	padding: 0.55rem 0.65rem;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.8);
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 0.78rem;
	line-height: 1.5;
	resize: vertical;
	outline: none;
	transition: border-color 0.2s;
	min-height: 80px;
}

.ai-custom-textarea::placeholder {
	color: rgba(255, 255, 255, 0.25);
}

.ai-custom-textarea:focus {
	border-color: rgba(140, 180, 230, 0.3);
}

.ai-custom-actions {
	display: flex;
	gap: 0.4rem;
}

.ai-custom-btn {
	flex: 1;
	padding: 0.45rem 0.5rem;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.6);
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 0.75rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
}

.ai-custom-btn svg {
	width: 13px;
	height: 13px;
}

.ai-custom-save:hover {
	background: rgba(140, 180, 230, 0.12);
	border-color: rgba(140, 180, 230, 0.25);
	color: rgba(255, 255, 255, 0.85);
}

.ai-custom-clear:hover {
	background: rgba(255, 100, 100, 0.1);
	border-color: rgba(255, 100, 100, 0.2);
	color: rgba(255, 150, 150, 0.9);
}

.ai-sidebar-footer {
	text-align: center;
	padding: 0.25rem 0;
}

.ai-footer-text {
	font-size: 0.65rem;
	color: rgba(255, 255, 255, 0.2);
	margin: 0;
}


.ai-model-menu { position: relative; z-index: 110; }
.ai-model-trigger { min-width: 174px; height: 38px; padding: 0 0.7rem; border: 1px solid rgba(167, 210, 255, 0.2); border-radius: 10px; background: rgba(14, 17, 25, 0.82); color: rgba(255, 255, 255, 0.9); display: flex; align-items: center; gap: 0.45rem; font: 600 0.75rem "Plus Jakarta Sans", sans-serif; cursor: pointer; transition: 0.18s ease; }
.ai-model-trigger:hover, .ai-model-menu.open .ai-model-trigger { border-color: rgba(167, 210, 255, 0.55); background: rgba(27, 35, 49, 0.95); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }
.ai-model-trigger-label { color: rgba(255, 255, 255, 0.42); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.07em; }
.ai-model-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-model-trigger svg { width: 14px; height: 14px; margin-left: auto; color: rgba(255, 255, 255, 0.55); transition: transform 0.18s ease; }
.ai-model-menu.open .ai-model-trigger svg { transform: rotate(180deg); }
.ai-model-options { position: absolute; right: 0; top: calc(100% + 0.45rem); width: 216px; padding: 0.35rem; border: 1px solid rgba(167, 210, 255, 0.2); border-radius: 12px; background: rgba(13, 16, 24, 0.98); box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42); backdrop-filter: blur(18px); opacity: 0; visibility: hidden; transform: translateY(-5px); pointer-events: none; transition: 0.16s ease; }
.ai-model-menu.open .ai-model-options { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.ai-model-option { width: 100%; padding: 0.6rem 0.65rem; border: 0; border-radius: 8px; background: transparent; color: rgba(255, 255, 255, 0.82); display: grid; grid-template-columns: 1fr auto; align-items: center; text-align: left; cursor: pointer; font-family: "Plus Jakarta Sans", sans-serif; }
.ai-model-option span { font-size: 0.76rem; font-weight: 650; }.ai-model-option small { color: rgba(255, 255, 255, 0.38); font-size: 0.64rem; grid-column: 1; margin-top: 0.14rem; }.ai-model-option svg { display: none; grid-column: 2; grid-row: 1 / span 2; width: 15px; color: #9bc8ff; }.ai-model-option:hover { background: rgba(155, 200, 255, 0.1); }.ai-model-option.selected { background: rgba(155, 200, 255, 0.13); }.ai-model-option.selected svg { display: block; }
.ai-sidebar { width: 340px; gap: 0.65rem; }
.ai-sidebar-card { padding: 1.1rem; border-radius: 18px; border-color: rgba(167, 210, 255, 0.15); background: linear-gradient(145deg, rgba(27, 32, 45, 0.98), rgba(13, 15, 22, 0.98)); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5); }
.ai-sidebar-header { padding-bottom: 0.8rem; }.ai-sidebar-title { color: rgba(210, 229, 255, 0.8); font-size: 0.72rem; }.ai-sidebar-close { border-radius: 9px; }
.ai-sidebar-divider { margin: 0.9rem 0; background: rgba(167, 210, 255, 0.1); }.ai-sidebar-label { color: rgba(201, 222, 255, 0.6); }
.ai-personalization-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }.ai-personalization-heading p { margin: 0.22rem 0 0; color: rgba(255, 255, 255, 0.38); font-size: 0.7rem; }.ai-personalization-heading svg { width: 18px; height: 18px; color: #9bc8ff; }.ai-custom-label { color: rgba(255, 255, 255, 0.7); font-size: 0.69rem; font-weight: 650; margin-top: 0.35rem; }
.ai-custom-textarea { min-height: 118px; padding: 0.7rem 0.75rem; border-radius: 11px; border-color: rgba(167, 210, 255, 0.15); background: rgba(0, 0, 0, 0.18); font-size: 0.76rem; }.ai-custom-textarea:focus { border-color: rgba(155, 200, 255, 0.58); box-shadow: 0 0 0 3px rgba(155, 200, 255, 0.08); }.ai-custom-hint { color: rgba(255, 255, 255, 0.3); font-size: 0.64rem; margin-top: -0.15rem; }
.ai-custom-actions { gap: 0.55rem; margin-top: 0.15rem; }.ai-custom-btn { min-height: 36px; border-radius: 9px; }.ai-custom-save { background: rgba(155, 200, 255, 0.14); border-color: rgba(155, 200, 255, 0.28); color: rgba(225, 239, 255, 0.95); }.ai-custom-save:hover { background: rgba(155, 200, 255, 0.24); }


.native-control { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.minimal-dropdown { position: relative; min-width: 136px; }
.minimal-dropdown-trigger { width: 100%; height: 34px; padding: 0 0.65rem; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; background: #161616; color: rgba(255, 255, 255, 0.82); display: flex; align-items: center; justify-content: space-between; font: 600 0.73rem "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.minimal-dropdown-trigger:hover, .minimal-dropdown.open .minimal-dropdown-trigger { border-color: rgba(255, 255, 255, 0.28); background: #1c1c1c; }.minimal-dropdown-trigger svg { width: 14px; color: rgba(255, 255, 255, 0.42); transition: transform 0.15s ease; }.minimal-dropdown.open .minimal-dropdown-trigger svg { transform: rotate(180deg); }
.minimal-dropdown-options { position: absolute; z-index: 40; right: 0; top: calc(100% + 0.35rem); width: 100%; padding: 0.25rem; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; background: #121212; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); opacity: 0; visibility: hidden; transform: translateY(-4px); pointer-events: none; transition: 0.15s ease; }.minimal-dropdown.open .minimal-dropdown-options { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.minimal-dropdown-option { width: 100%; min-height: 31px; padding: 0 0.55rem; border: 0; border-radius: 5px; background: transparent; color: rgba(255, 255, 255, 0.68); display: flex; align-items: center; justify-content: space-between; font: 600 0.71rem "Plus Jakarta Sans", sans-serif; cursor: pointer; text-align: left; }.minimal-dropdown-option:hover, .minimal-dropdown-option.selected { background: #252525; color: #fff; }.minimal-dropdown-option svg { width: 13px; display: none; }.minimal-dropdown-option.selected svg { display: block; }


.ai-model-trigger { border-color: rgba(255, 255, 255, 0.16); background: #161616; color: rgba(255, 255, 255, 0.82); }.ai-model-trigger:hover, .ai-model-menu.open .ai-model-trigger { border-color: rgba(255, 255, 255, 0.3); background: #1c1c1c; box-shadow: none; }.ai-model-trigger-label { color: rgba(255, 255, 255, 0.4); }.ai-model-options { border-color: rgba(255, 255, 255, 0.14); background: #121212; box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55); }.ai-model-option:hover, .ai-model-option.selected { background: #252525; }.ai-model-option svg { color: rgba(255, 255, 255, 0.8); }


.ai-main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.ai-chat-card {
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 14px;
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}


.ai-welcome {
	margin: auto;
	text-align: center;
	padding: 2rem 1rem;
}

.ai-welcome-icon {
	font-size: 2.5rem;
	margin-bottom: 0.75rem;
	color: rgba(140, 180, 230, 0.4);
}

.ai-welcome-title {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 1.15rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.65);
	margin-bottom: 0.35rem;
}

.ai-welcome-sub {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.3);
}

.ai-welcome-sub code {
	padding: 0.1rem 0.35rem;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.06);
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.5);
}


.ai-result {
	flex: 1;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.1) rgba(255, 255, 255, 0.02);
}

.ai-result::-webkit-scrollbar { width: 6px; }
.ai-result::-webkit-scrollbar-track { background: transparent; }
.ai-result::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 999px; }
.ai-result::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); }

.ai-thread {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.ai-msg {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	max-width: 78%;
	animation: ai-msg-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-msg.user { align-self: flex-end; }
.ai-msg.ai { align-self: flex-start; }

.ai-msg-content {
	padding: 0.7rem 0.95rem;
	border-radius: 14px;
	font-size: 0.88rem;
	line-height: 1.55;
}

.ai-msg.user .ai-msg-content {
	background: rgba(140, 180, 230, 0.12);
	border: 1px solid rgba(140, 180, 230, 0.15);
	color: #d0e0f0;
	border-bottom-right-radius: 4px;
}

.ai-msg.ai .ai-msg-content {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.78);
	border-bottom-left-radius: 4px;
}

.ai-msg-prefix {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	margin-bottom: 0.2rem;
}

.ai-response-prefix-text {
	font-size: 0.72rem;
	font-weight: 600;
	color: rgba(140, 180, 230, 0.5);
}

.ai-response-body { display: block; }

@keyframes ai-msg-pop {
	from { opacity: 0; transform: translateY(8px) scale(0.97); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}


.ai-inline-code {
	display: inline-block;
	padding: 0.05rem 0.35rem;
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: rgba(140, 180, 230, 0.9);
	font-family: Consolas, "Courier New", monospace;
	font-size: 0.82em;
}

.ai-code-block {
	margin-top: 0.5rem;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(0, 0, 0, 0.25);
	overflow: hidden;
}

.ai-code-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.4rem 0.65rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	background: rgba(255, 255, 255, 0.02);
}

.ai-code-lang {
	font-size: 0.68rem;
	color: rgba(255, 255, 255, 0.3);
	text-transform: lowercase;
}

.ai-code-actions { display: flex; gap: 0.35rem; }

.ai-code-btn {
	padding: 0.2rem 0.5rem;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.68rem;
	cursor: pointer;
	transition: all 0.15s ease;
}

.ai-code-btn:hover {
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.7);
}

.ai-code-block pre {
	margin: 0;
	padding: 0.65rem 0.75rem;
	overflow: auto;
	font-size: 0.76rem;
	line-height: 1.4;
}

.ai-code-block code {
	font-family: Consolas, "Courier New", monospace;
	color: rgba(255, 255, 255, 0.7);
}

.ai-code-preview {
	display: none;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	padding: 0.5rem;
}

.ai-code-preview.is-visible { display: block; }

.ai-code-preview-frame {
	display: block;
	width: 100%;
	height: min(50vh, 360px);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 8px;
	background: #f5f0ea;
}


.ai-code-token-comment { color: rgba(255, 255, 255, 0.25); }
.ai-code-token-string { color: rgba(180, 200, 140, 0.8); }
.ai-code-token-keyword { color: rgba(140, 180, 230, 0.9); font-weight: 600; }
.ai-code-token-number { color: rgba(230, 180, 120, 0.85); }
.ai-code-token-literal { color: rgba(200, 170, 140, 0.8); }
.ai-code-token-property { color: rgba(160, 200, 160, 0.8); }
.ai-code-token-tag { color: rgba(140, 180, 230, 0.85); }
.ai-code-token-attr { color: rgba(200, 180, 140, 0.8); }
.ai-code-token-variable { color: rgba(230, 200, 140, 0.8); }
.ai-code-token-punctuation { color: rgba(255, 255, 255, 0.3); }


.ai-help-embed {
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(255, 255, 255, 0.03);
	padding: 0.65rem 0.8rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	border-left: 3px solid rgba(140, 180, 230, 0.4);
}

.ai-help-field {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	font-size: 0.82rem;
}

.ai-help-cmd {
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.7);
	padding: 0.12rem 0.4rem;
	border-radius: 4px;
	font-family: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	min-width: 4rem;
	text-align: center;
}

.ai-help-desc {
	color: rgba(255, 255, 255, 0.45);
	font-size: 0.78rem;
}


.ai-input-area {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 0.85rem;
	border-top: 1px solid rgba(255, 255, 255, 0.04);
	background: rgba(255, 255, 255, 0.015);
}

.ai-input-wrapper {
	flex: 1;
	position: relative;
}

.ai-slash-suggest[hidden] { display: none; }

.ai-slash-suggest {
	position: absolute;
	bottom: calc(100% + 6px);
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 0.35rem;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(40, 40, 40, 0.96);
	backdrop-filter: blur(12px);
	z-index: 10;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.ai-slash-item {
	width: 100%;
	padding: 0.4rem 0.6rem;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.78rem;
	text-align: left;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.15s;
}

.ai-slash-item:hover,
.ai-slash-item.is-highlighted {
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.8);
}

.ai-prompt-input {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.85);
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 0.88rem;
	outline: none;
	transition: border-color 0.2s;
}

.ai-prompt-input::placeholder {
	color: rgba(255, 255, 255, 0.25);
}

.ai-prompt-input:focus {
	border-color: rgba(140, 180, 230, 0.3);
}

.ai-send-btn {
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(140, 180, 230, 0.1);
	color: rgba(140, 180, 230, 0.7);
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ai-send-btn:hover {
	background: rgba(140, 180, 230, 0.18);
	border-color: rgba(140, 180, 230, 0.25);
	color: rgba(140, 180, 230, 0.95);
}

.ai-prompt-input:focus-visible,
.ai-send-btn:focus-visible {
	outline: 2px solid rgba(140, 180, 230, 0.3);
	outline-offset: 1px;
}

@media (max-width: 680px) {
	.ai-layout {
		flex-direction: column;
	}
	.ai-sidebar {
		width: calc(100% - 2rem);
	}
	.ai-sidebar-card {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.5rem;
	}
	.ai-sidebar-divider {
		display: none;
	}
	.ai-sidebar-section {
		min-width: 140px;
	}
}

.games-grid {
	padding: 1rem;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 0.75rem;
}

.game-card {
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	aspect-ratio: 9 / 14;
	border: 1px solid var(--border);
	border-radius: 0.8rem;
	background: var(--surface-2);
	overflow: hidden;
	text-align: left;
	color: var(--text);
	font-family: "Poppins", system-ui, sans-serif;
	font-weight: 400;
	cursor: pointer;
	filter: blur(0);
	transition:
		transform 200ms cubic-bezier(0.42, 0, 0.58, 1),
		border-color 200ms ease-out,
		box-shadow 200ms ease-out,
		background 200ms ease-out,
		filter 150ms ease-out;
	animation: card-reveal 420ms var(--motion-ease-soft) both;
}

.tab:hover,
.tab-add:hover,
.nav-btn:hover,
.toolbar-btn:hover,
.home-tile:hover,
.bookmark:hover,
.settings-btn:hover,
.game-card:hover,
.partner-card:hover,
.partner-btn:hover {
	transform: translateY(-1px);
	filter: blur(0.4px);
}

.home-tile:hover,
.bookmark:hover,
.game-card:hover,
.partner-card:hover {
	border-color: rgba(255, 255, 255, 0.15);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

button:active,
.tab:active,
.home-tile:active,
.bookmark:active,
.game-card:active,
.partner-btn:active {
	transform: translateY(0) scale(0.99);
	filter: blur(0.8px);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
.tab:focus-visible,
.home-tile:focus-visible,
.game-card:focus-visible,
.partner-card:focus-visible {
	outline: 2px solid rgba(159, 210, 255, 0.7);
	outline-offset: 2px;
	filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		animation: none !important;
		transition-duration: 0ms !important;
		scroll-behavior: auto !important;
	}
}

.game-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: var(--surface-3);
	opacity: 0;
	transition: opacity var(--motion-fast) var(--motion-ease-soft);
}

.game-thumb.is-loaded {
	opacity: 1;
}

.game-body {
	padding: 0.6rem 0.65rem 0.7rem;
	display: grid;
	gap: 0.28rem;
}

.game-title {
	font-size: 0.82rem;
	font-weight: 600;
}

.game-desc {
	font-size: 0.72rem;
	color: var(--muted);
}

.settings-loading {
	padding: 1.5rem;
	text-align: center;
	color: var(--muted);
	font-size: 0.85rem;
}

.game-player-container {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: calc(100vh - 180px);
	min-height: 400px;
	border: 1px solid var(--border);
	border-radius: 0.8rem;
	overflow: hidden;
	background: var(--surface-1);
}

.game-player-container:fullscreen {
	width: 100vw;
	height: 100vh;
	border: none;
	border-radius: 0;
	animation: none;
}

.game-player-bar {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.45rem 0.7rem;
	background: var(--surface-2);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	flex-shrink: 0;
}

.game-player-back {
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: var(--team-color-1);
	border-radius: 0.4rem;
	padding: 0.25rem 0.55rem;
	cursor: pointer;
	font-size: 0.72rem;
	font-family: inherit;
	transition: background 0.15s, border-color 0.15s;
}

.game-player-back:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.2);
}

.game-player-back svg,
.game-player-btn svg {
	width: 14px;
	height: 14px;
}

.game-player-title {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 1;
}

.game-player-bar-actions {
	display: flex;
	gap: 0.35rem;
}

.game-player-btn {
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--muted);
	border-radius: 0.4rem;
	padding: 0.25rem 0.45rem;
	cursor: pointer;
	font-size: 0.7rem;
	font-family: inherit;
	transition: background 0.15s, color 0.15s;
}

.game-player-btn:hover {
	background: rgba(255, 255, 255, 0.08);
	color: var(--text);
}

.game-player-frame {
	flex: 1;
	width: 100%;
	border: none;
	background: #000;
}

.game-player-loading {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--muted);
	font-size: 0.85rem;
	gap: 0.5rem;
}

.game-player-loading svg {
	width: 16px;
	height: 16px;
	animation: game-player-spin 0.8s linear infinite;
}

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

#gamesPage.game-active {
	padding: 0.6rem !important;
	overflow: hidden !important;
	display: flex !important;
	flex-direction: column !important;
}

#gamesPage.game-active .games-page-shell-inner {
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	min-height: 0 !important;
	padding-top: 0 !important;
	flex: 1 1 auto !important;
	display: flex !important;
	flex-direction: column !important;
}

#gamesPage.game-active .games-page-body {
	flex: 1 1 auto !important;
	min-height: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	padding: 0 !important;
}

#gamesPage.game-active .game-player-container {
	flex: 1 1 auto !important;
	min-height: 0 !important;
	height: auto !important;
	border: 1px solid var(--border) !important;
	border-radius: 0.9rem !important;
	overflow: hidden !important;
	animation: game-player-enter 380ms var(--motion-ease-soft, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

@keyframes game-player-enter {
	from { opacity: 0; transform: scale(0.99) translateY(4px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	#gamesPage.game-active .game-player-container {
		animation: none;
	}
}

.history-page-shell {
	max-width: none !important;
	width: 100% !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

.history-page-body {
	padding: 0 !important;
}

.history-toolbar {
	padding: 0.8rem 1.2rem;
}

.history-search-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.history-search-icon {
	position: absolute;
	left: 0.7rem;
	color: var(--muted);
	font-size: 0.75rem;
	pointer-events: none;
}

.history-search {
	width: 100%;
	padding-left: 2rem !important;
}

.history-content {
	padding: 0 1rem 1rem;
	overflow-y: auto;
	max-height: calc(100vh - 160px);
}

.history-group {
	margin-bottom: 1rem;
}

.history-group-header {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--text);
	padding: 0.5rem 0.3rem 0.35rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	margin-bottom: 0.25rem;
}

.history-item {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.45rem 0.5rem;
	border-radius: 0.5rem;
	cursor: pointer;
	transition: background 0.15s;
	font-size: 0.8rem;
}

.history-item:hover {
	background: rgba(255, 255, 255, 0.05);
}

.history-time {
	color: var(--muted);
	font-size: 0.72rem;
	min-width: 68px;
	flex-shrink: 0;
}

.history-favicon-wrap {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.history-favicon {
	width: 16px;
	height: 16px;
	border-radius: 2px;
	object-fit: contain;
}

.history-favicon-icon {
	font-size: 0.7rem;
	color: var(--muted);
}

.history-info {
	flex: 1;
	min-width: 0;
}

.history-link {
	display: block;
	color: var(--text);
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
}

.history-link:hover {
	text-decoration: underline;
}

.history-url-text {
	display: block;
	color: var(--muted);
	font-size: 0.72rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.credits-link {
	color: var(--team-color-1);
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (max-width: 760px) {
	html {
		font-size: 13px;
	}

	.app-shell {
		padding: 6px;
		gap: 6px;
		padding-bottom: 5.4rem;
	}

	.frosted-shell {
		width: calc(100vw - 0.7rem);
		bottom: 0.45rem;
		border-radius: 12px;
	}

	.toolbar {
		padding: 0.36rem 0.45rem;
	}

	.tabs-row {
		width: fit-content;
		max-width: 48vw;
	}

	.tabs {
		max-width: 34vw;
	}

	.address-bar {
		width: 100%;
		min-width: 0;
	}

	.home-search-row {
		justify-content: center;
		gap: 0.42rem;
	}

	.search-engine-dropdown {
		justify-self: center;
	}

	.toolbar-nav,
	.toolbar-actions {
		justify-content: flex-start;
	}

	.shortcut-counter {
		display: none;
	}
}

.custom-dropdown.open .dropdown-menu {
	box-shadow: 0 24px 52px rgba(54, 108, 191, 0.18);
}

.theme-circle {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	margin-bottom: 0.5rem;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.theme-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
}

.theme-preview-img {
	width: 100%;
	height: 88px;
	border-radius: 1rem;
	object-fit: cover;
	margin-bottom: 0.75rem;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	background: rgba(10, 14, 24, 0.45);
}

.engine-options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
	margin-top: 1.5rem;
}

.engine-option {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 1.25rem;
	padding: 1.5rem;
	cursor: pointer;
	transition: all 0.3s var(--motion-ease-soft);
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: flex-start;
	text-align: left;
}

.engine-option:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.2);
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.engine-option.active {
	background: rgba(255, 255, 255, 0.12);
	border-color: #fff;
	box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.engine-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	color: #fff;
}

.engine-option.active .engine-icon {
	background: #fff;
	color: #000;
}

.engine-info h4 {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 0.25rem;
	color: #fff;
}

.engine-info p {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.6);
	line-height: 1.4;
}

.engine-info h4 {
	margin: 0;
	font-size: 1rem;
}

.switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	filter: blur(0);
	transition: transform 200ms var(--motion-ease-soft), filter 150ms ease-out;
}

.switch:hover {
	transform: scale(1.05);
	filter: blur(0.3px);
}

.switch:active {
	transform: scale(0.95);
	filter: blur(0.6px);
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.06);
	transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
	            border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border-radius: 24px;
	border: 1.5px solid rgba(255, 255, 255, 0.1);
}

.slider:before {
	position: absolute;
	content: "";
	height: 16px;
	width: 16px;
	left: 3px;
	bottom: 2.5px;
	background: #fff;
	transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), 
	            background 0.3s ease,
	            width 0.3s ease,
	            left 0.3s ease;
	border-radius: 50%;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

input:checked + .slider {
	background: rgba(0, 255, 166, 0.15);
	border-color: rgba(0, 255, 166, 0.4);
	box-shadow: 0 0 12px rgba(0, 255, 166, 0.1);
}

input:checked + .slider:before {
	transform: translateX(20px);
	background: #00ffa6;
	box-shadow: 0 0 10px rgba(0, 255, 166, 0.5);
}

.switch:active .slider:before {
	width: 22px;
}

input:checked:active + .slider:before {
	left: -3px;
}

.engine-info p {
	margin: 0;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.6);
}

.settings-page-body {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	padding: 0.85rem !important;
}

.settings-card {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 1rem;
	overflow: visible;
	margin-bottom: 0.75rem;
	filter: blur(0);
	transition: filter 200ms ease-out, box-shadow 200ms ease-out;
}

.settings-card:hover {
	filter: blur(0.3px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.settings-group {
	animation: reveal-up-soft 460ms var(--motion-ease-soft) both;
}

.settings-group:nth-of-type(1) { animation-delay: 40ms; }
.settings-group:nth-of-type(2) { animation-delay: 90ms; }
.settings-group:nth-of-type(3) { animation-delay: 140ms; }
.settings-group:nth-of-type(4) { animation-delay: 190ms; }
.settings-group:nth-of-type(5) { animation-delay: 240ms; }

.settings-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1rem;
	gap: 1rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.settings-item:last-child {
	border-bottom: none;
}

.settings-item-info {
	display: flex;
	flex-direction: column;
	gap: 0.12rem;
	flex: 1;
}

.settings-item-title {
	font-size: 0.86rem;
	font-weight: 600;
	color: #fff;
}

.settings-item-desc {
	font-size: 0.72rem;
	color: rgba(255, 255, 255, 0.65); 
	line-height: 1.4;
	font-weight: 400;
}

.settings-item-desc.git-ok {
	color: #4ade80;
}

.settings-item-desc.git-outdated {
	color: #f59e0b;
}

.settings-item-desc.git-unknown {
	color: rgba(255, 255, 255, 0.65);
}

.settings-warning {
	font-size: 0.72rem;
	color: #d3d3d3;
	padding: 0.5rem 0.75rem;
	margin: -0.25rem 0 0.5rem;
	border-radius: 8px;
	background: rgba(224, 223, 223, 0.1);
	border: 1px solid rgba(236, 236, 236, 0.25);
	line-height: 1.4;
}

.settings-item-control {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.settings-range-wrap {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.settings-range {
	-webkit-appearance: none;
	appearance: none;
	width: 120px;
	height: 4px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.1);
	outline: none;
	cursor: pointer;
}

.settings-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.8);
	cursor: pointer;
	box-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
}

.settings-range::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.8);
	cursor: pointer;
	border: none;
	box-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
}

.settings-range-value {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.5);
	min-width: 28px;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.settings-refresh-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.6);
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 0.82rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.settings-refresh-btn i {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.4);
	transition: color 0.2s ease;
}

.settings-refresh-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.85);
	border-color: rgba(255, 255, 255, 0.2);
}

.settings-refresh-btn:hover i {
	color: rgba(255, 255, 255, 0.7);
}

.settings-refresh-btn:active {
	transform: scale(0.97);
}

.settings-group-title {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: lowercase;
	letter-spacing: 0.1em;
	color: var(--muted);
	margin-bottom: 0.35rem;
	padding-left: 0.5rem;
}

.custom-dropdown {
	position: relative;
	display: inline-block;
	user-select: none;
}

.dropdown-trigger {
	width: 100%;
	min-width: 180px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 0.75rem;
	padding: 0.6rem 1rem;
	color: #fff;
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	transition: all 0.2s var(--motion-ease-soft);
	gap: 1rem;
}

.dropdown-trigger:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.2);
}

.dropdown-caret {
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid rgba(255, 255, 255, 0.6);
	transition: transform 0.2s ease;
}

.custom-dropdown.open .dropdown-caret {
	transform: rotate(180deg);
}

.dropdown-menu {
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 0;
	right: 0;
	background: var(--surface-1);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	border: 1px solid var(--border);
	border-radius: 0.85rem;
	overflow: hidden;
	z-index: 10000;
	display: none;
	flex-direction: column;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65);
	animation: dropdown-pop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	max-height: 220px;
	overflow-y: auto;
}

.custom-dropdown.open .dropdown-menu {
	display: flex;
}

.dropdown-item {
	padding: 0.65rem 1rem;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.85rem;
	cursor: pointer;
	transition: all 0.15s ease;
}

.dropdown-item:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.dropdown-item.active {
	background: rgba(113, 184, 255, 0.15);
	color: #93c5ff;
}

@keyframes dropdown-pop {
	from { opacity: 0; transform: translateY(-10px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-menu::-webkit-scrollbar {
	width: 5px;
}
.dropdown-menu::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.18);
	border-radius: 10px;
}

.settings-shell {
	max-width: 780px;
	margin: 0 auto;
	padding: 1.5rem;
}

.settings-top {
	margin-bottom: 1.5rem;
	position: sticky;
	top: 0;
	z-index: 20;
	padding: 0.9rem 0 1rem;
	background: linear-gradient(to bottom, rgba(8, 8, 8, 0.98) 78%, rgba(8, 8, 8, 0));
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.settings-title {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 2rem;
	font-weight: 800;
	color: #fff;
	margin: 0;
}

.settings-subtitle {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.45);
	margin: 0.25rem 0 0;
}

.settings-body {
	display: flex;
	gap: 1.25rem;
	min-height: 400px;
}

.settings-tabs {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 160px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 12px;
	padding: 6px;
	align-self: flex-start;
	position: sticky;
	top: 5.4rem;
}


#settingsPage {
	padding-top: 1rem;
}

#settingsPage.active {
	display: block;
	overflow-y: auto;
	scrollbar-width: none;
}

#settingsPage.active::-webkit-scrollbar { display: none; }

#settingsPage .settings-shell {
	width: min(780px, 100%);
	height: auto;
	display: block;
	padding-top: 0;
}

#settingsPage .settings-top {
	position: static;
	margin-bottom: 1rem;
	padding: 0;
	background: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

#settingsPage .settings-body {
	min-height: 0;
	overflow: visible;
	padding: 0;
}

#settingsPage .settings-tabs {
	top: 1rem;
}

.settings-tab {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: rgba(255, 255, 255, 0.5);
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 0.85rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: left;
	width: 100%;
}

.settings-tab i {
	width: 18px;
	text-align: center;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.35);
	transition: color 0.2s ease;
}

.settings-tab:hover {
	background: rgba(255, 255, 255, 0.05);
	color: rgba(255, 255, 255, 0.8);
}

.settings-tab:hover i {
	color: rgba(255, 255, 255, 0.6);
}

.settings-tab.active {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.settings-tab.active i {
	color: #fff;
}

.settings-panels {
	flex: 1;
	min-width: 0;
}

.settings-panel {
	display: none;
	animation: settings-panel-in 0.3s ease both;
}

.settings-panel.active {
	display: block;
}

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

.settings-panel-header {
	margin-bottom: 0.75rem;
	padding-left: 0;
	border-left: 0;
}

.settings-panel-header h3 {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 1.1rem;
	font-weight: 700;
	color: #fff;
	margin: 0;
}

.settings-link {
	color: rgba(255, 255, 255, 0.4);
	text-decoration: none;
	font-size: 0.85rem;
	transition: color 0.15s ease;
}

.settings-link:hover {
	color: #fff;
}

.wisp-toggle-row {
	display: flex;
	gap: 6px;
}

.wisp-pill-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.5);
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 0.78rem;
	font-weight: 500;
	cursor: pointer;
	filter: blur(0);
	transition: all 150ms ease, filter 150ms ease-out;
	white-space: nowrap;
}

.wisp-pill-btn i {
	font-size: 0.75rem;
	transition: color 0.15s ease;
}

.wisp-pill-btn:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.15);
	color: rgba(255, 255, 255, 0.8);
	filter: blur(0.3px);
}

.wisp-pill-btn:active {
	filter: blur(0.6px);
}

.wisp-pill-btn:hover i {
	color: rgba(255, 255, 255, 0.7);
}

.wisp-pill-btn.active {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.wisp-pill-btn.active i {
	color: #fff;
}

.transport-section {
	padding: 0.75rem 1rem;
}

.transport-title {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	color: #e8e8e8;
	margin: 0 0 0.15rem 0;
}

.transport-desc {
	font-size: 0.7rem;
	color: #888;
	margin: 0 0 0.6rem 0;
}

.transport-options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
}

.transport-option {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 0.65rem;
	padding: 0.6rem 0.75rem;
	cursor: pointer;
	text-align: left;
	filter: blur(0);
	transition: all 200ms ease, filter 150ms ease-out;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.transport-option:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.12);
	filter: blur(0.3px);
}

.transport-option:active {
	filter: blur(0.6px);
}

.transport-option.active {
	background: rgba(168, 210, 255, 0.08);
	border-color: rgba(168, 210, 255, 0.3);
}

.transport-option-title {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	color: #e8e8e8;
}

.transport-option.active .transport-option-title {
	color: #a8d2ff;
}

.transport-option-desc {
	font-size: 0.6rem;
	color: #777;
	line-height: 1.3;
}

.transport-option.active .transport-option-desc {
	color: #999;
}

.error-overlay {
	position: absolute;
	inset: 0;
	z-index: 9999;
	background: rgba(10, 10, 10, 0.35);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	display: flex;
	align-items: center;
	justify-content: center;
	animation: error-fade-in 0.3s ease both;
}

@keyframes error-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

.error-overlay-content {
	text-align: center;
	max-width: 420px;
	padding: 2rem;
	background: rgba(10, 10, 10, 0.5);
	border-radius: 16px;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.error-overlay-icon {
	font-size: 2.5rem;
	color: #e84057;
	margin-bottom: 1rem;
}

.error-overlay-title {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 1.6rem;
	font-weight: 800;
	color: #fff;
	margin: 0 0 0.75rem;
}

.error-overlay-msg {
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.55);
	line-height: 1.6;
	margin: 0 0 0.75rem;
	word-break: break-all;
	max-height: 160px;
	overflow-y: auto;
	padding: 0.75rem;
	background: rgba(255, 255, 255, 0.04);
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	text-align: left;
	font-family: "Courier New", monospace;
}

.error-overlay-report {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.4);
	margin: 0 0 1.25rem;
}

.error-overlay-report strong {
	color: rgba(255, 255, 255, 0.7);
}

.error-overlay-btn {
	padding: 8px 24px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 0.82rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s ease;
}

.error-overlay-btn:hover {
	background: rgba(255, 255, 255, 0.12);
}

.wallpaper-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.75rem;
	padding: 0.75rem 1rem 1rem;
}

.wallpaper-option {
	position: relative;
	background: rgba(255, 255, 255, 0.03);
	border: 2px solid rgba(255, 255, 255, 0.08);
	border-radius: 0.75rem;
	padding: 0;
	cursor: pointer;
	overflow: hidden;
	transition: all 0.3s var(--motion-ease-soft);
	animation: wallpaper-card-enter 400ms var(--motion-ease-soft) both;
}

.wallpaper-option:nth-child(1) { animation-delay: 60ms; }
.wallpaper-option:nth-child(2) { animation-delay: 120ms; }
.wallpaper-option:nth-child(3) { animation-delay: 180ms; }
.wallpaper-option:nth-child(4) { animation-delay: 240ms; }
.wallpaper-option:nth-child(5) { animation-delay: 300ms; }

@keyframes wallpaper-card-enter {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.wallpaper-option::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 0.75rem;
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.1) 0%,
		rgba(255, 255, 255, 0) 50%,
		rgba(255, 255, 255, 0.05) 100%
	);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.wallpaper-option:hover {
	border-color: rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.06);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.wallpaper-option:hover::after {
	opacity: 1;
}

.wallpaper-option:active {
	transform: translateY(0) scale(0.98);
}

.wallpaper-option.active {
	border-color: rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 4px 16px rgba(0, 0, 0, 0.3);
}

.wallpaper-option.active::before {
	content: "";
	position: absolute;
	top: 6px;
	right: 6px;
	width: 18px;
	height: 18px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: check-pop 300ms var(--motion-ease-soft) both;
}

@keyframes check-pop {
	from {
		opacity: 0;
		transform: scale(0);
	}
	50% {
		transform: scale(1.2);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.wallpaper-option.active::after {
	content: "";
	position: absolute;
	top: 10px;
	right: 10px;
	width: 10px;
	height: 6px;
	border-left: 2px solid #111;
	border-bottom: 2px solid #111;
	transform: rotate(-45deg) scale(1);
	z-index: 4;
	background: transparent;
	border-radius: 0;
	opacity: 1;
}

.wallpaper-preview {
	width: 100%;
	aspect-ratio: 16 / 10;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 0.5rem 0.5rem 0 0;
	position: relative;
}

.wallpaper-preview::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.08) 0%,
		rgba(255, 255, 255, 0) 40%,
		rgba(0, 0, 0, 0.3) 100%
	);
	border-radius: 0.5rem 0.5rem 0 0;
	pointer-events: none;
}

.wallpaper-label {
	display: block;
	padding: 0.5rem 0.6rem;
	font-size: 0.72rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.7);
	text-align: center;
	letter-spacing: 0.02em;
	transition: color 0.2s ease;
}

.wallpaper-option:hover .wallpaper-label {
	color: #fff;
}

.wallpaper-option.active .wallpaper-label {
	color: #fff;
}

.settings-card-header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 1rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: lowercase;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.45);
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	border-radius: 1rem 1rem 0 0;
}

.settings-card-header i {
	font-size: 0.7rem;
	opacity: 0.6;
}

.settings-status-text {
	padding: 0.5rem 1rem;
	font-size: 0.72rem;
	color: rgba(255, 255, 255, 0.45);
	font-style: italic;
}

.extensions-badge {
	position: absolute;
	top: 4px;
	right: 4px;
	background: var(--accent, #3b82f6);
	color: #fff;
	font-size: 0.6rem;
	font-weight: 700;
	min-width: 16px;
	height: 16px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	line-height: 1;
}

.extensions-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999;
	display: none;
	backdrop-filter: blur(4px);
}
.extensions-overlay.active { display: block; }

.extensions-panel {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.95);
	z-index: 1000;
	width: 420px;
	max-width: 90vw;
	max-height: 70vh;
	background: rgba(18, 18, 18, 0.95);
	backdrop-filter: blur(30px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
	display: flex;
	flex-direction: column;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.extensions-panel.active {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, -50%) scale(1);
}

.extensions-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.extensions-panel-title {
	font-size: 0.85rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
	display: flex;
	align-items: center;
}
.extensions-panel-close {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.4);
	cursor: pointer;
	padding: 4px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, color 0.15s;
}
.extensions-panel-close:hover {
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.8);
}

.extensions-list {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
	min-height: 80px;
	max-height: 40vh;
}

.extensions-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 32px 16px;
	color: rgba(255, 255, 255, 0.4);
	text-align: center;
}
.extensions-empty p {
	margin: 0;
	font-size: 0.82rem;
}
.extensions-empty-hint {
	font-size: 0.72rem !important;
	opacity: 0.6;
	margin-top: 8px !important;
}

.extension-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 10px;
	transition: background 0.15s;
}
.extension-item:hover {
	background: rgba(255, 255, 255, 0.04);
}
.extension-info { flex: 1; min-width: 0; }
.extension-name {
	font-size: 0.8rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.85);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.extension-version {
	font-size: 0.68rem;
	color: rgba(255, 255, 255, 0.35);
	margin-top: 2px;
}
.extension-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.extension-toggle {
	position: relative;
	display: inline-block;
	width: 34px;
	height: 18px;
	cursor: pointer;
}
.extension-toggle input { opacity: 0; width: 0; height: 0; }
.extension-toggle-slider {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 18px;
	transition: background 0.2s;
}
.extension-toggle-slider::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 14px;
	height: 14px;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	transition: transform 0.2s, background 0.2s;
}
.extension-toggle input:checked + .extension-toggle-slider {
	background: var(--accent, #3b82f6);
}
.extension-toggle input:checked + .extension-toggle-slider::before {
	transform: translateX(16px);
	background: #fff;
}

.extension-pin-btn {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.25);
	cursor: pointer;
	padding: 4px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, color 0.15s;
}
.extension-pin-btn:hover {
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.7);
}
.extension-pin-btn.pinned {
	color: var(--accent, #888);
}
.extension-remove-btn {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.25);
	cursor: pointer;
	padding: 4px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, color 0.15s;
}
.extension-remove-btn:hover {
	background: rgba(239, 68, 68, 0.15);
	color: #ef4444;
}

.extensions-dropzone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px;
	margin: 0 12px 12px;
	border: 2px dashed rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	color: rgba(255, 255, 255, 0.35);
	font-size: 0.75rem;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
}
.extensions-dropzone:hover,
.extensions-dropzone.dragover {
	border-color: var(--accent, #3b82f6);
	background: rgba(59, 130, 246, 0.05);
	color: rgba(255, 255, 255, 0.6);
}


#musicPage {
	padding-top: 0;
}
#musicPage.active {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	scrollbar-width: none;
}
#musicPage.active::-webkit-scrollbar { display: none; }

.music-shell {
	width: 100%;
	margin: 0 auto;
	padding: 0 2rem 1rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}
.music-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: sticky;
	top: 0;
	z-index: 20;
	padding: 0.9rem 0 1rem;
	background: transparent;
}
.music-title {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 2rem;
	font-weight: 800;
	color: #fff;
	margin: 0;
}
.music-subtitle {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.45);
	margin: 0.25rem 0 0;
}
.music-search-row {
	margin-bottom: 1.2rem;
	max-width: 780px;
}
.music-search-wrap {
	position: relative;
	display: flex;
	align-items: center;
}
.music-search-icon {
	position: absolute;
	left: 0.9rem;
	color: rgba(255, 255, 255, 0.3);
	font-size: 0.82rem;
	pointer-events: none;
}
.music-search-input {
	width: 100%;
	padding: 0.7rem 1rem 0.7rem 2.5rem;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 6px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.88rem;
	font-family: var(--font-ui);
	outline: none;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.music-search-input:focus {
	border-color: rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.07);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}
.music-search-input::placeholder {
	color: rgba(255, 255, 255, 0.25);
}
.music-results {
	flex: 1;
	overflow-y: auto;
	min-height: 0;
	padding-bottom: 90px;
	scrollbar-width: none;
}
.music-results::-webkit-scrollbar { display: none; }
.music-empty {
	text-align: center;
	color: rgba(255, 255, 255, 0.3);
	padding: 4rem 1rem;
	font-size: 0.88rem;
	font-family: var(--font-ui);
}
.music-loading {
	display: flex;
	justify-content: center;
	padding: 3rem;
}
.music-spinner {
	width: 24px;
	height: 24px;
	border: 2px solid rgba(255, 255, 255, 0.08);
	border-top-color: rgba(255, 255, 255, 0.45);
	border-radius: 50%;
	animation: loading-spin 0.7s linear infinite;
}
.music-section-label {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: lowercase;
	letter-spacing: 0.08em;
	color: var(--muted);
	opacity: 0.8;
	margin: 1.4rem 0 0.6rem;
}
.music-tracks-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.music-track-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 0.65rem;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s, transform 0.15s;
	animation: card-reveal 420ms var(--motion-ease-soft) both;
}
.music-track-row:hover {
	background: rgba(255, 255, 255, 0.06);
	transform: translateY(-0.5px);
}
.music-track-row:active {
	transform: translateY(0) scale(0.995);
}
.music-track-art {
	width: 44px;
	height: 44px;
	border-radius: 4px;
	overflow: hidden;
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
}
.music-track-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.music-track-art-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.15);
}
.music-track-info {
	flex: 1;
	min-width: 0;
}
.music-track-title {
	font-size: 0.86rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.88);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-family: var(--font-ui);
}
.music-track-artist {
	font-size: 0.76rem;
	color: rgba(255, 255, 255, 0.38);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.music-track-duration {
	font-size: 0.76rem;
	color: rgba(255, 255, 255, 0.3);
	flex-shrink: 0;
	font-variant-numeric: tabular-nums;
}
.music-artists-row,
.music-albums-row {
	display: flex;
	gap: 0.8rem;
	overflow-x: auto;
	padding-bottom: 0.5rem;
	scrollbar-width: none;
}
.music-artists-row::-webkit-scrollbar,
.music-albums-row::-webkit-scrollbar { display: none; }
.music-artist-card,
.music-album-card {
	flex-shrink: 0;
	width: 120px;
	cursor: pointer;
	text-align: center;
	padding: 0.6rem;
	border-radius: 6px;
	border: 1px solid transparent;
	transition: background 0.15s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
	animation: card-reveal 420ms var(--motion-ease-soft) both;
}
.music-artist-card:hover,
.music-album-card:hover {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.1);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.music-artist-card:active,
.music-album-card:active {
	transform: translateY(0) scale(0.98);
}
.music-artist-pic {
	width: 76px;
	height: 76px;
	border-radius: 6px;
	overflow: hidden;
	margin: 0 auto 0.45rem;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.15);
}
.music-artist-pic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.music-artist-name {
	font-size: 0.78rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.75);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.music-album-cover {
	width: 108px;
	height: 108px;
	border-radius: 6px;
	overflow: hidden;
	margin: 0 auto 0.45rem;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.15);
}
.music-album-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.music-album-title {
	font-size: 0.78rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.75);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.music-album-artist {
	font-size: 0.7rem;
	color: rgba(255, 255, 255, 0.35);
}
.music-detail-header {
	display: flex;
	gap: 1.2rem;
	align-items: flex-end;
	margin-bottom: 1.4rem;
	padding: 1rem;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 8px;
}
.music-detail-cover {
	width: 130px;
	height: 130px;
	border-radius: 6px;
	overflow: hidden;
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.music-detail-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.music-artist-detail-pic {
	border-radius: 8px;
}
.music-detail-info h3 {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 1.25rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.92);
	margin: 0 0 0.2rem;
}
.music-detail-info p {
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.45);
	margin: 0;
}
.music-detail-meta {
	font-size: 0.76rem;
	color: rgba(255, 255, 255, 0.3);
}

.music-player {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: 90px;
	background: rgba(10, 10, 10, 0.88);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 1.2rem;
	z-index: 900;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}
.music-player-top {
	display: flex;
	align-items: center;
	width: 100%;
	gap: 1rem;
	position: relative;
}
.music-player-left {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	min-width: 0;
	flex: 1 1 0;
}
.music-player-center {
	flex: 0 0 auto;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
}
.music-player-right {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex: 1 1 0;
	justify-content: flex-end;
}
.music-player-art {
	width: 46px;
	height: 46px;
	border-radius: 4px;
	overflow: hidden;
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
}
.music-player-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.music-player-info {
	min-width: 0;
	flex-shrink: 0;
	max-width: 180px;
}
.music-player-title {
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.9);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: 600;
	font-family: var(--font-ui);
}
.music-player-artist {
	font-size: 0.72rem;
	color: rgba(255, 255, 255, 0.4);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.music-player-controls {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex-shrink: 0;
}
.music-ctrl-btn {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.6);
	cursor: pointer;
	padding: 0.35rem;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.15s, background 0.15s;
}
.music-ctrl-btn:hover {
	color: rgba(255, 255, 255, 0.95);
	background: rgba(255, 255, 255, 0.08);
}
.music-ctrl-btn.active {
	color: rgba(255, 255, 255, 0.95);
}
.music-ctrl-btn svg {
	width: 18px;
	height: 18px;
}
.music-play-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	color: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, transform 0.1s;
}
.music-play-btn:hover {
	background: #fff;
	transform: scale(1.06);
	color: #000;
}
.music-play-btn svg {
	width: 18px;
	height: 18px;
}
.music-player-progress {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
	width: 100%;
}
.music-time {
	font-size: 0.68rem;
	color: rgba(255, 255, 255, 0.3);
	font-variant-numeric: tabular-nums;
	flex-shrink: 0;
	min-width: 30px;
	text-align: center;
}
.music-progress-bar,
.music-volume-bar {
	-webkit-appearance: none;
	appearance: none;
	height: 3px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.1);
	outline: none;
	cursor: pointer;
	transition: height 0.15s;
}
.music-progress-bar:hover,
.music-volume-bar:hover {
	height: 5px;
}
.music-progress-bar {
	flex: 1;
	min-width: 0;
}
.music-volume-bar {
	width: 80px;
	flex-shrink: 0;
}
.music-progress-bar::-webkit-slider-thumb,
.music-volume-bar::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.8);
	cursor: pointer;
	box-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
}
.music-progress-bar::-moz-range-thumb,
.music-volume-bar::-moz-range-thumb {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.8);
	cursor: pointer;
	border: none;
	box-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
}
.music-player-volume {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	flex-shrink: 0;
}
.music-lyrics-panel {
	position: fixed;
	top: 97px;
	bottom: 100px;
	right: 8px;
	width: 430px;
	background: rgba(10, 10, 10, 0.92);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	border-radius: 14px;
	z-index: 800;
	display: flex;
	flex-direction: row;
	transform: translateX(calc(100% + 20px));
	transition: transform 0.3s ease, width 0.3s ease, top 0.3s ease, bottom 0.3s ease, left 0.3s ease;
	pointer-events: none;
	overflow: hidden;
}
.music-lyrics-panel.open {
	transform: translateX(0);
	pointer-events: auto;
}
.music-lyrics-panel.fullscreen {
	top: 8px;
	right: 8px;
	bottom: 100px;
	z-index: 950;
	background: rgba(10, 10, 10, 0.97);
	width: auto;
	left: auto;
}
.music-lyrics-resize-handle {
	width: 6px;
	cursor: ew-resize;
	background: transparent;
	flex-shrink: 0;
	transition: background 0.15s;
}
.music-lyrics-resize-handle:hover,
.music-lyrics-resize-handle.dragging {
	background: rgba(255, 255, 255, 0.12);
}
.music-lyrics-inner {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.music-lyrics-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1rem 0.75rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	flex-shrink: 0;
}
.music-lyrics-header-actions {
	display: flex;
	align-items: center;
	gap: 0.2rem;
}
.music-lyrics-label {
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: lowercase;
	color: rgba(255, 255, 255, 0.5);
	letter-spacing: 0.05em;
}
.music-lyrics-body {
	flex: 1;
	overflow-y: auto;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	scroll-behavior: smooth;
}
.music-lyrics-body::-webkit-scrollbar {
	width: 4px;
}
.music-lyrics-body::-webkit-scrollbar-track {
	background: transparent;
}
.music-lyrics-body::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 2px;
}
.music-lyrics-line {
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.3);
	padding: 0.4rem 0.6rem;
	border-radius: 6px;
	transition: color 0.3s, background 0.3s, transform 0.3s, text-shadow 0.3s;
	cursor: pointer;
	line-height: 1.5;
}
.music-lyrics-line:hover {
	color: rgba(255, 255, 255, 0.5);
	background: rgba(255, 255, 255, 0.04);
}
.music-lyrics-line.active {
	color: #fff;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.08);
	text-shadow: 0 0 12px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.2);
	transform: scale(1.03);
}
.music-lyrics-empty {
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.25);
	text-align: center;
	margin-top: 3rem;
}
.music-lyrics-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
}
.music-lyrics-spinner {
	width: 22px;
	height: 22px;
	border: 2px solid rgba(255, 255, 255, 0.08);
	border-top-color: rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	animation: loading-spin 0.7s linear infinite;
}
#musicPlayBtn .lucide-loader,
#musicPlayBtn svg.lucide-loader {
	animation: spin 1s linear infinite;
}
@media (max-width: 700px) {
	.music-player {
		height: 87px;
		padding: 0 0.8rem;
	}
	.music-player-top { gap: 0.5rem; }
	.music-player-left { max-width: 140px; gap: 0.5rem; }
	.music-player-info { max-width: 100px; }
	.music-player-volume { display: none; }
	.music-player-art { width: 38px; height: 38px; }
	.music-player-right { max-width: 100px; }
	.music-detail-cover { width: 100px; height: 100px; }
	.music-detail-info h3 { font-size: 1.1rem; }
	.music-detail-header { flex-direction: column; align-items: center; text-align: center; }
	.music-lyrics-panel { left: 8px; right: 8px; }
	.music-lyrics-panel.fullscreen { left: 8px; right: 8px; }
}

.music-featured-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
	padding: 0.5rem 0;
	width: 100%;
}
.music-featured-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 1.2rem 0.8rem;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
	animation: card-reveal 420ms var(--motion-ease-soft) both;
}
.music-featured-card:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.12);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.music-featured-card:active {
	transform: translateY(0) scale(0.97);
}
.music-featured-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.25);
	overflow: hidden;
}
.music-featured-icon svg {
	width: 22px;
	height: 22px;
}
.music-featured-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}
.music-featured-name {
	font-size: 0.8rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.75);
	text-align: center;
	font-family: var(--font-ui);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.music-pill {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 950;
	display: none;
	align-items: center;
	gap: 10px;
	padding: 8px 14px 8px 8px;
	background: rgba(10, 10, 10, 0.92);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	cursor: grab;
	transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
	width: auto;
	max-width: 260px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
	animation: card-reveal 420ms var(--motion-ease-soft) both;
	user-select: none;
	-webkit-user-select: none;
}
.music-pill.dragging {
	cursor: grabbing;
	transition: none;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
	transform: scale(1.02);
}
.music-pill:hover {
	background: rgba(20, 20, 20, 0.95);
	border-color: rgba(255, 255, 255, 0.18);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}
.music-pill:active {
	transform: scale(0.98);
}
.music-pill-art {
	width: 36px;
	height: 36px;
	border-radius: 4px;
	object-fit: cover;
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
}
.music-pill-info {
	min-width: 0;
	flex: 1;
	overflow: hidden;
}
.music-pill-title {
	font-size: 0.78rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-family: var(--font-ui);
	max-width: 150px;
}
.music-pill-artist {
	font-size: 0.68rem;
	color: rgba(255, 255, 255, 0.4);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 150px;
}
.music-pill-indicator {
	flex-shrink: 0;
	color: rgba(255, 255, 255, 0.5);
}
.music-pill-indicator svg {
	width: 14px;
	height: 14px;
}
.music-pill-expanded-panel {
	position: fixed;
	bottom: 70px;
	right: 20px;
	z-index: 951;
	width: 300px;
	background: rgba(10, 10, 10, 0.95);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	padding: 14px;
	display: none;
	flex-direction: column;
	gap: 10px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
	animation: pill-panel-in 0.25s cubic-bezier(0.4, 0, 0.2, 1) both;
	pointer-events: auto;
}
.music-pill-expanded-panel.visible {
	display: flex;
}
@keyframes pill-panel-in {
	from { opacity: 0; transform: translateY(8px) scale(0.96); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}
.music-pill-expanded-panel-top {
	display: flex;
	align-items: center;
	gap: 10px;
}
.music-pill-exp-panel-art {
	width: 44px;
	height: 44px;
	border-radius: 6px;
	object-fit: cover;
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
}
.music-pill-exp-panel-info {
	flex: 1;
	min-width: 0;
}
.music-pill-exp-panel-title {
	font-size: 0.82rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.92);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-family: var(--font-ui);
}
.music-pill-exp-panel-artist {
	font-size: 0.7rem;
	color: rgba(255, 255, 255, 0.4);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.music-pill-exp-panel-close {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.35);
	cursor: pointer;
	padding: 4px;
	border-radius: 4px;
	transition: color 0.15s, background 0.15s;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.music-pill-exp-panel-close:hover {
	color: rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.08);
}
.music-pill-exp-panel-close svg {
	width: 14px;
	height: 14px;
}
.music-pill-exp-panel-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}
.music-pill-exp-panel-btn {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.6);
	cursor: pointer;
	padding: 6px;
	border-radius: 50%;
	transition: color 0.15s, background 0.15s, transform 0.15s;
	display: flex;
	align-items: center;
	justify-content: center;
}
.music-pill-exp-panel-btn:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}
.music-pill-exp-panel-btn:active {
	transform: scale(0.9);
}
.music-pill-exp-panel-btn svg {
	width: 16px;
	height: 16px;
}
.music-pill-exp-panel-play {
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}
.music-pill-exp-panel-play:hover {
	background: rgba(255, 255, 255, 0.18);
}
.music-pill-exp-panel-progress {
	display: flex;
	align-items: center;
	gap: 8px;
}
.music-pill-exp-panel-time {
	font-size: 0.62rem;
	color: rgba(255, 255, 255, 0.35);
	font-variant-numeric: tabular-nums;
	flex-shrink: 0;
	min-width: 28px;
	text-align: center;
}
.music-pill-exp-panel-slider {
	flex: 1;
	height: 3px;
	-webkit-appearance: none;
	appearance: none;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 2px;
	outline: none;
	cursor: pointer;
}
.music-pill-exp-panel-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 10px;
	height: 10px;
	background: #fff;
	border-radius: 50%;
	cursor: pointer;
	transition: transform 0.15s;
}
.music-pill-exp-panel-slider::-webkit-slider-thumb:hover {
	transform: scale(1.3);
}
.music-pill-exp-panel-slider::-moz-range-thumb {
	width: 10px;
	height: 10px;
	background: #fff;
	border-radius: 50%;
	cursor: pointer;
	border: none;
}
.music-pill-exp-panel-lyrics {
	max-height: 48px;
	overflow: hidden;
	text-align: center;
	padding: 4px 0;
}
.music-pill-exp-panel-lyrics-line {
	font-size: 0.68rem;
	color: rgba(255, 255, 255, 0.3);
	font-style: italic;
	line-height: 1.4;
	transition: color 0.3s;
}
.music-pill-exp-panel-lyrics-line.active {
	color: rgba(255, 255, 255, 0.7);
	font-style: normal;
}
.music-pill-exp-panel-goto {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	padding: 6px 10px;
	border-radius: 6px;
	font-size: 0.68rem;
	font-family: var(--font-ui);
	transition: background 0.15s, color 0.15s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}
.music-pill-exp-panel-goto:hover {
	background: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.7);
}
.music-pill-exp-panel-goto svg {
	width: 12px;
	height: 12px;
}

