: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);
	}
	to {
		opacity: 1;
		transform: translateX(0) scale(1);
	}
}

@keyframes tab-new-pop {
	from {
		opacity: 0;
		transform: translateY(-10px) scale(0.82);
	}
	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: 36px;
}

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

.frosted-shell.collapsed .action-menu-item i {
  width: auto;
  font-size: 1rem;
}

.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);
}

.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;
	transition: background 0.15s ease, color 0.15s ease;
	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;
	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;
}

.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;
	transition: all 0.15s ease;
	position: relative;
	flex-shrink: 0;
}
.ext-icon-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	transform: translateY(-1px);
}
.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;
	transition: all 0.15s ease;
	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;
}

.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);
	transition:
		transform var(--motion-fast) var(--motion-ease-soft),
		filter var(--motion-fast) var(--motion-ease-soft),
		box-shadow var(--motion-fast) var(--motion-ease-soft),
		background var(--motion-fast) var(--motion-ease-soft);
}

.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;
	transition: all 0.15s ease;
	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;
}

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

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

.action-menu-item i {
	width: 20px;
	text-align: center;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.5);
	transition: color 0.15s ease;
}

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

.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: #c9956b;
	background: rgba(201, 149, 107, 0.1);
}

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

.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 {
	display: none;
}

.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;
}

#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;
	transition: all 0.3s var(--motion-ease-soft);
}

.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);
}

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

.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;
	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: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.6rem;
	align-items: 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.45rem 0.7rem;
	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: 600;
	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: grid;
	grid-template-columns: auto 1fr;
	gap: 0.6rem;
	align-items: 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;
	transition:
		transform var(--motion-fast) var(--motion-ease-soft),
		border-color var(--motion-fast) var(--motion-ease-soft),
		background var(--motion-fast) var(--motion-ease-soft),
		box-shadow var(--motion-fast) var(--motion-ease-soft);
}

.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: flex;
	flex-wrap: wrap;
	justify-content: center;
	width: 100%;
}

.bookmark {
	min-width: 84px;
	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;
	transition: transform var(--motion-fast) var(--motion-ease-soft),
		border-color var(--motion-fast) var(--motion-ease-soft),
		background var(--motion-fast) var(--motion-ease-soft);
}

.bookmark:hover {
	border-color: var(--accent);
	background: var(--surface-3);
	transform: translateY(-2px);
}

.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: 74px;
	white-space: nowrap;
}

#addBookmarkBtn {
	min-width: 84px;
	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;
	transition: border-color var(--motion-fast) var(--motion-ease-soft),
		color var(--motion-fast) var(--motion-ease-soft);
}

#addBookmarkBtn:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.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;
	transition:
		background-color 0.2s var(--motion-ease-soft),
		border-color 0.2s var(--motion-ease-soft),
		box-shadow 0.2s var(--motion-ease-soft);
}

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

.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);
}

.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;
	transition:
		transform var(--motion-fast) var(--motion-ease-soft),
		background var(--motion-fast) var(--motion-ease-soft),
		border-color var(--motion-fast) var(--motion-ease-soft),
		box-shadow var(--motion-fast) var(--motion-ease-soft),
		filter var(--motion-fast) var(--motion-ease-soft);
}

.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);
}

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

.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-source-select {
	min-width: 160px;
	flex-shrink: 0;
}

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

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

.ai-page-shell {
	max-width: none;
	width: 100%;
	margin: 0;
	border: 1px solid rgba(200, 168, 124, 0.15);
	border-radius: 1rem;
	background: linear-gradient(170deg, rgba(30, 20, 14, 0.95), rgba(20, 14, 10, 0.98));
	height: 100%;
	position: relative;
	display: flex;
	flex-direction: column;
	box-shadow: inset 0 1px 0 rgba(200, 168, 124, 0.06);
}

.ai-page-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	position: relative;
	z-index: 2;
	padding: 0.6rem 1.25rem 0;
}

.ai-page-header h2 {
	font-family: "Plus Jakarta Sans", var(--font-ui);
	font-weight: 700;
	font-size: 1.25rem;
	letter-spacing: 0.02em;
	color: #e0d0c0;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.ai-page-header h2::before {
	content: "☕ ";
	font-size: 1.1rem;
}

.ai-customization-btn {
	width: 38px;
	height: 38px;
	padding: 0;
	border-radius: 10px;
	flex: 0 0 auto;
	font-size: 0.95rem;
	background: rgba(60, 45, 35, 0.5);
	border: 1px solid rgba(200, 168, 124, 0.15);
	color: #d4c4b4;
	transition: all 0.25s ease;
}

.ai-customization-btn:hover {
	background: rgba(80, 55, 38, 0.6);
	border-color: rgba(200, 168, 124, 0.3);
}

.ai-customization-panel {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	margin: 0;
	width: min(92vw, 520px);
	max-height: min(78vh, 640px);
	overflow-y: auto;
	padding: 1rem;
	border-radius: 1.2rem;
	border: 1px solid rgba(200, 168, 124, 0.2);
	background: rgba(25, 18, 12, 0.98);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
	display: none;
	flex-direction: column;
	gap: 0.9rem;
	z-index: 9999;
}

.ai-customization-panel {
	scrollbar-width: thin;
	scrollbar-color: rgba(200, 168, 124, 0.25) rgba(200, 168, 124, 0.04);
}

.ai-customization-panel::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

.ai-customization-panel::-webkit-scrollbar-track {
	background: rgba(200, 168, 124, 0.04);
	border-radius: 999px;
}

.ai-customization-panel::-webkit-scrollbar-thumb {
	background: rgba(200, 168, 124, 0.22);
	border-radius: 999px;
	border: 2px solid transparent;
	background-clip: padding-box;
}

.ai-customization-panel::-webkit-scrollbar-thumb:hover {
	background: rgba(200, 168, 124, 0.35);
	background-clip: padding-box;
}

.ai-customization-panel.open {
	display: flex;
}

body.ui-dialog-open {
	overflow: hidden;
}

.ui-dialog-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	pointer-events: auto;
	opacity: 0;
	transition: opacity 0.18s ease;
	z-index: 9998;
}

.ui-dialog-backdrop.open {
	opacity: 1;
}

.ai-customization-content {
	gap: 0.75rem;
}

.ai-customization-textarea {
	width: 100%;
	min-height: 160px;
	resize: vertical;
	padding: 0.8rem 0.9rem;
	border-radius: 0.8rem;
	border: 1px solid rgba(200, 168, 124, 0.2);
	background: rgba(30, 20, 14, 0.72);
	color: #d4c4b4;
	outline: none;
}

.ai-customization-textarea::placeholder {
	color: rgba(200, 180, 160, 0.4);
}

.ai-customization-hint {
	margin-top: -0.1rem;
	font-size: 0.78rem;
	color: rgba(200, 180, 160, 0.5);
}

.ai-customization-actions {
	display: flex;
	gap: 0.6rem;
	justify-content: flex-end;
	flex-wrap: wrap;
}

.ai-body {
	padding: 0.2rem 0;
	flex: 1;
	min-height: 0;
}

.ai-chat {
	padding: 0.4rem 1.15rem 0.6rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	height: 100%;
}

.ai-speed-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.45rem 0.9rem;
	background: rgba(60, 45, 35, 0.3);
	border-radius: 0.8rem;
	border: 1px solid rgba(200, 168, 124, 0.1);
}

.ai-speed-select {
	appearance: none;
	-webkit-appearance: none;
	background: rgba(200, 168, 124, 0.06);
	border: 1px solid rgba(200, 168, 124, 0.1);
	color: #d4c4b4;
	font-size: 0.78rem;
	padding: 0.3rem 0.6rem;
	cursor: pointer;
	outline: none;
	border-radius: 0.4rem;
	font-family: inherit;
	transition: background 0.2s, border-color 0.2s;
	min-width: 80px;
}

.ai-speed-select:hover {
	background: rgba(200, 168, 124, 0.1);
	border-color: rgba(200, 168, 124, 0.18);
}

.ai-speed-select:focus-visible {
	outline: 2px solid rgba(200, 168, 124, 0.3);
	outline-offset: 1px;
}

.ai-speed-select option {
	background: #1a120c;
	color: #d4c4b4;
}

.ai-result {
	flex: 1;
	padding: 0.8rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(200, 168, 124, 0.25) rgba(200, 168, 124, 0.04);
}

.ai-result::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

.ai-result::-webkit-scrollbar-track {
	background: rgba(200, 168, 124, 0.04);
	border-radius: 999px;
}

.ai-result::-webkit-scrollbar-thumb {
	background: rgba(200, 168, 124, 0.22);
	border-radius: 999px;
	border: 2px solid transparent;
	background-clip: padding-box;
}

.ai-result::-webkit-scrollbar-thumb:hover {
	background: rgba(200, 168, 124, 0.35);
	background-clip: padding-box;
}

.ai-welcome-msg {
	margin: auto;
	text-align: center;
	color: rgba(200, 180, 160, 0.4);
	font-size: 1rem;
	max-width: 360px;
	line-height: 1.6;
}

.ai-text-block {
	white-space: normal;
}

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

.ai-response-prefix-text {
	font-size: 0.78rem;
	color: rgba(200, 180, 160, 0.5);
}

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

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

.ai-msg {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	max-width: 82%;
	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.75rem 1rem;
	border-radius: 1rem;
	font-size: 0.9rem;
	line-height: 1.55;
	position: relative;
}

.ai-msg.user .ai-msg-content {
	background: linear-gradient(135deg, #6b4c3b, #4d3528);
	color: #f0e3d5;
	border-bottom-right-radius: 0.25rem;
	box-shadow: 0 4px 12px rgba(60, 40, 28, 0.25);
}

.ai-msg.ai .ai-msg-content {
	background: rgba(60, 45, 35, 0.4);
	border: 1px solid rgba(200, 168, 124, 0.12);
	color: #d4c4b4;
	border-bottom-left-radius: 0.25rem;
}

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

.ai-inline-code {
	display: inline-block;
	padding: 0.03rem 0.35rem;
	margin: 0 0.08rem;
	border-radius: 0.35rem;
	border: 1px solid rgba(200, 168, 124, 0.2);
	background: rgba(35, 25, 18, 0.82);
	color: #d4a574;
	font-family: Consolas, "Courier New", monospace;
	font-size: 0.84em;
	line-height: 1.35;
	vertical-align: baseline;
}

.ai-code-block {
	margin-top: 0.6rem;
	border: 1px solid rgba(200, 168, 124, 0.12);
	border-radius: 0.65rem;
	background: rgba(20, 14, 10, 0.8);
	overflow: hidden;
}

.ai-code-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.45rem 0.55rem;
	border-bottom: 1px solid rgba(200, 168, 124, 0.1);
	background: rgba(40, 30, 22, 0.5);
}

.ai-code-lang {
	font-size: 0.7rem;
	color: rgba(200, 180, 160, 0.5);
	text-transform: lowercase;
	letter-spacing: 0.03em;
}

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

.ai-code-btn {
	padding: 0.22rem 0.5rem;
	border: 1px solid rgba(200, 168, 124, 0.15);
	border-radius: 0.42rem;
	background: rgba(60, 45, 35, 0.4);
	color: #d4c4b4;
	font-size: 0.7rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ai-code-btn:hover {
	background: rgba(80, 55, 38, 0.5);
	border-color: rgba(200, 168, 124, 0.25);
}

.ai-code-block pre {
	margin: 0;
	padding: 0.7rem 0.75rem;
	overflow: auto;
	font-size: 0.74rem;
	line-height: 1.35;
}

.ai-code-block code {
	font-family: Consolas, "Courier New", monospace;
}

.ai-code-preview {
	display: none;
	margin: 0;
	border-top: 1px solid rgba(200, 168, 124, 0.1);
	background: rgba(25, 18, 12, 0.82);
	padding: 0.55rem;
}

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

.ai-code-preview-frame {
	display: block;
	width: 100%;
	height: min(52vh, 380px);
	border: 1px solid rgba(200, 168, 124, 0.12);
	border-radius: 0.55rem;
	background: #f5f0ea;
}

.ai-code-content {
	color: #d4c4b4;
}

.ai-code-token-comment {
	color: #8a7a6a;
}

.ai-code-token-string {
	color: #b8a68a;
}

.ai-code-token-keyword {
	color: #d4a574;
	font-weight: 600;
}

.ai-code-token-number {
	color: #e8c88a;
}

.ai-code-token-literal {
	color: #c8a87c;
}

.ai-code-token-property {
	color: #a8b89a;
}

.ai-code-token-tag {
	color: #d4a574;
}

.ai-code-token-attr {
	color: #c8b89a;
}

.ai-code-token-variable {
	color: #e0c8a0;
}

.ai-code-token-punctuation {
	color: #9a8a7a;
}

.ai-prompt-wrap {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-top: auto;
	padding: 0.6rem 0 0.4rem;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

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

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

.ai-slash-suggest {
	position: absolute;
	bottom: calc(100% + 4px);
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 0.3rem;
	border-radius: 0.6rem;
	border: 1px solid rgba(200, 168, 124, 0.15);
	background: rgba(25, 18, 12, 0.96);
	backdrop-filter: blur(8px);
	z-index: 10;
}

.ai-slash-item {
	width: 100%;
	padding: 0.4rem 0.6rem;
	border: none;
	border-radius: 0.4rem;
	background: transparent;
	color: #d4c4b4;
	font-size: 0.8rem;
	text-align: left;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.15s;
}

.ai-slash-item:hover,
.ai-slash-item.is-highlighted {
	background: rgba(80, 55, 38, 0.5);
}

.ai-prompt {
	flex: 1;
	min-height: 52px;
	padding: 0.8rem 1rem;
	border: 1px solid rgba(200, 168, 124, 0.18);
	border-radius: 0.7rem;
	background: rgba(25, 18, 12, 0.7);
	outline: none;
	box-shadow: none;
	color: #d4c4b4;
	font-size: 0.9rem;
}

.ai-prompt::placeholder {
	color: rgba(200, 180, 160, 0.35);
}

#aiSolveBtn {
	height: 44px;
	width: 44px;
	padding: 0;
	border-radius: 0.4rem;
	border: 1px solid rgba(200, 168, 124, 0.12);
	background: rgba(60, 45, 35, 0.35);
	color: #d4c4b4;
	font-size: 1rem;
	line-height: 1;
	box-shadow: none;
	cursor: pointer;
	transition: all 0.25s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

#aiSolveBtn:hover {
	background: rgba(80, 55, 38, 0.45);
	border-color: rgba(200, 168, 124, 0.25);
}

.ai-prompt:focus-visible,
#aiSolveBtn:focus-visible {
	outline: 2px solid rgba(200, 168, 124, 0.4);
	outline-offset: 1px;
}

@media (max-height: 720px) {
	.ai-chat {
		padding-bottom: 4.8rem;
	}

.ai-help-embed {
	border-radius: 0.6rem;
	border: 1px solid rgba(200, 168, 124, 0.2);
	background: rgba(25, 18, 12, 0.6);
	padding: 0.6rem 0.8rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	border-left: 3px solid #c8a87c;
}

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

.ai-help-cmd {
	background: rgba(200, 168, 124, 0.12);
	color: #e8d8b8;
	padding: 0.15rem 0.4rem;
	border-radius: 0.3rem;
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	min-width: 4.2rem;
	text-align: center;
}

.ai-help-desc {
	color: #c8b8a8;
	font-size: 0.8rem;
}

.ai-prompt-wrap {
		bottom: 4.4rem;
	}
}

.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;
	transition:
		transform var(--motion-fast) var(--motion-ease-soft),
		border-color var(--motion-fast) var(--motion-ease-soft),
		box-shadow var(--motion-fast) var(--motion-ease-soft),
		background var(--motion-fast) var(--motion-ease-soft);
	animation: card-reveal 420ms var(--motion-ease-soft) both;
}

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

.home-tile: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,
.game-card:active,
.partner-btn:active {
	transform: translateY(0) scale(0.99);
}

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;
}

@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-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); }
}

.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) {
	.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 {
		grid-template-columns: 1fr;
		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;
	transition: transform 0.2s var(--motion-ease-soft);
}

.switch:hover {
	transform: scale(1.05);
}

.switch:active {
	transform: scale(0.95);
}

.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;
}

.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-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-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;
}

.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: 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: 12px;
	border-left: 3px solid rgba(255, 255, 255, 0.15);
}

.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;
	transition: all 0.15s ease;
	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);
}

.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;
	transition: all 0.2s ease;
	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);
}

.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-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);
}

.vpn-wrapper {
	position: relative;
}

#vpnBtn {
	transition: background 0.2s ease, color 0.2s ease;
}

#vpnBtn.vpn-active {
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
}

#vpnBtn.vpn-active i {
	color: #fff;
}

.vpn-flyout {
	position: absolute;
	left: calc(100% + 8px);
	top: 50%;
	transform: translateY(-50%) translateX(-8px) scale(0.95);
	transform-origin: left center;
	width: 0;
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
	transition:
		width 0.3s var(--motion-ease),
		opacity 0.25s ease,
		transform 0.3s var(--motion-ease),
		visibility 0s 0.3s;
	z-index: 9999;
}

.vpn-flyout.vpn-flyout-open {
	width: 210px;
	opacity: 1;
	pointer-events: auto;
	visibility: visible;
	transform: translateY(-50%) translateX(0) scale(1);
	transition:
		width 0.3s var(--motion-ease),
		opacity 0.25s ease 0.05s,
		transform 0.3s var(--motion-ease),
		visibility 0s 0s;
}

.vpn-flyout-inner {
	background: #0f0f0f;
	border: 1px solid #1f1f1f;
	border-radius: 10px;
	padding: 12px 14px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
	white-space: nowrap;
}

.vpn-flyout-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}

.vpn-flyout-cf-icon {
	width: 20px;
	height: 20px;
	color: #fff;
	flex-shrink: 0;
}

.vpn-flyout-title {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 0.82rem;
	font-weight: 500;
	color: #fff;
}

.vpn-flyout-status {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 0.72rem;
	color: rgba(255, 255, 255, 0.4);
	margin-bottom: 10px;
	text-transform: lowercase;
}

.vpn-flyout-toggle {
	width: 100%;
	height: 34px;
	border: none;
	border-radius: 8px;
	background: #1a1a1a;
	color: #e4e4e7;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 0.78rem;
	font-weight: 500;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: background 0.15s ease, color 0.15s ease;
	position: relative;
	overflow: hidden;
}

.vpn-flyout-toggle:hover {
	background: #252525;
	color: #fff;
}

.vpn-flyout-toggle:active {
	background: #1f1f1f;
}

.vpn-flyout-spinner-ring {
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.15);
	border-top-color: #fff;
	border-radius: 50%;
	opacity: 0;
	transition: opacity 0.2s ease;
	flex-shrink: 0;
}

.vpn-flyout-toggle.vpn-flyout-working .vpn-flyout-spinner-ring {
	opacity: 1;
	animation: vpn-spin 0.7s linear infinite;
}

.vpn-flyout-toggle.vpn-flyout-working .vpn-flyout-toggle-text {
	opacity: 0.5;
}

.vpn-flyout-toggle.vpn-flyout-toggle-on {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

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

.frosted-shell.collapsed .vpn-flyout {
	display: none;
}