:root {
	--fg-bg: #f5f9ff;
	--fg-panel: #ffffff;
	--fg-text: #17212b;
	--fg-muted: #74839a;
	--fg-line: #e5edf7;
	--fg-primary: #2368ff;
	--fg-primary-dark: #174dc4;
	--fg-accent: #ff4f68;
	--fg-gold: #ffb13c;
	--fg-green: #22b68d;
	--fg-shadow: 0 14px 38px rgba(31, 73, 135, 0.09);
	--fg-shadow-hover: 0 20px 46px rgba(31, 73, 135, 0.15);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body.fg-theme {
	margin: 0;
	background: var(--fg-bg);
	color: var(--fg-text);
	font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	-webkit-font-smoothing: antialiased;
}

html {
	margin-top: 0 !important;
}

body.admin-bar {
	padding-top: 0 !important;
}

#wpadminbar {
	display: none !important;
}

body.fg-theme.fg-night {
	--fg-bg: #07101d;
	--fg-panel: #111c2b;
	--fg-text: #f5f8ff;
	--fg-muted: #a8b6c9;
	--fg-line: #26364b;
	--fg-shadow: 0 14px 38px rgba(0, 0, 0, 0.25);
	--fg-shadow-hover: 0 20px 46px rgba(0, 0, 0, 0.34);
}

body.fg-theme a {
	color: inherit;
	text-decoration: none;
}

body.fg-theme img {
	display: block;
	max-width: 100%;
}

body.fg-theme button,
body.fg-theme input {
	font: inherit;
}

.fg-shell {
	width: min(1120px, calc(100% - 32px));
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.fg-site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	border-bottom: 1px solid color-mix(in srgb, var(--fg-line) 80%, transparent);
	background: color-mix(in srgb, var(--fg-panel) 90%, transparent);
	backdrop-filter: blur(18px);
}

.admin-bar .fg-site-header {
	top: 0;
}

.fg-header-inner {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr) auto;
	align-items: center;
	gap: 20px;
	min-height: 72px;
}

.fg-brand {
	display: flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
}

.fg-brand-mark {
	display: grid;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	place-items: center;
	border-radius: 12px;
	color: #fff;
	background: linear-gradient(135deg, #2368ff, #55a4ff);
	box-shadow: 0 10px 24px rgba(35, 104, 255, 0.26);
	font-size: 22px;
	font-weight: 900;
}

.fg-brand-copy {
	display: grid;
	min-width: 0;
	line-height: 1.2;
}

.fg-brand-copy strong {
	overflow: hidden;
	color: var(--fg-text);
	font-size: 17px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fg-brand-copy small {
	margin-top: 4px;
	overflow: hidden;
	color: var(--fg-muted);
	font-size: 11px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fg-main-nav,
.fg-header-actions {
	display: flex;
	align-items: center;
}

.fg-main-nav {
	justify-content: center;
	gap: clamp(18px, 2.4vw, 32px);
}

.fg-main-nav a {
	color: var(--fg-muted);
	font-size: 14px;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.fg-main-nav a:hover,
.fg-main-nav a.is-active {
	color: var(--fg-primary);
}

.fg-header-actions {
	justify-content: flex-end;
	gap: 10px;
}

.fg-icon-button,
.fg-theme-toggle,
.fg-menu-button {
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border: 1px solid var(--fg-line);
	border-radius: 10px;
	color: var(--fg-text);
	background: var(--fg-panel);
	cursor: pointer;
}

.fg-icon-button svg,
.fg-theme-toggle svg,
.fg-menu-button svg,
.fg-search-button svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.fg-login-link,
.fg-register-link {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 0 14px;
	border: 0;
	border-radius: 10px;
	font-size: 13px;
	cursor: pointer;
}

.fg-login-link {
	border: 1px solid var(--fg-line);
	color: var(--fg-text);
	background: var(--fg-panel);
}

.fg-register-link {
	color: #fff;
	background: var(--fg-primary);
	box-shadow: 0 10px 20px rgba(35, 104, 255, 0.2);
}

.fg-user-menu {
	position: relative;
}

.fg-user-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 4px 10px 4px 5px;
	border: 1px solid var(--fg-line);
	border-radius: 10px;
	color: var(--fg-text);
	background: var(--fg-panel);
	cursor: pointer;
}

.fg-user-toggle span {
	max-width: 92px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fg-user-avatar {
	width: 30px;
	height: 30px;
	margin: 0;
	border-radius: 50%;
}

.fg-user-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 55;
	display: none;
	width: 150px;
	padding: 8px;
	border: 1px solid var(--fg-line);
	border-radius: 11px;
	background: var(--fg-panel);
	box-shadow: var(--fg-shadow);
}

.fg-user-menu.is-open .fg-user-dropdown {
	display: grid;
	gap: 3px;
}

.fg-user-dropdown a {
	padding: 9px 10px;
	border-radius: 7px;
	color: var(--fg-muted);
	font-size: 13px;
}

.fg-user-dropdown a:hover {
	color: var(--fg-primary);
	background: var(--fg-bg);
}

.fg-menu-button {
	display: none;
}

.fg-header-search {
	position: absolute;
	top: 68px;
	right: max(16px, calc((100vw - 1120px) / 2));
	z-index: 45;
	width: min(360px, calc(100vw - 32px));
	display: flex;
	gap: 8px;
	padding: 10px;
	border: 1px solid var(--fg-line);
	border-radius: 14px;
	background: var(--fg-panel);
	box-shadow: var(--fg-shadow);
}

.fg-header-search[hidden],
.fg-mobile-drawer[hidden] {
	display: none;
}

.fg-header-search input {
	min-width: 0;
	flex: 1;
	border: 0;
	outline: 0;
	color: var(--fg-text);
	background: transparent;
}

.fg-header-search button {
	border: 0;
	border-radius: 9px;
	padding: 8px 13px;
	color: #fff;
	background: var(--fg-primary);
	cursor: pointer;
}

.fg-mobile-drawer {
	position: fixed;
	inset: 72px 14px auto;
	z-index: 39;
	padding: 16px;
	border: 1px solid var(--fg-line);
	border-radius: 16px;
	background: var(--fg-panel);
	box-shadow: var(--fg-shadow-hover);
}

.fg-mobile-drawer nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.fg-mobile-drawer a {
	padding: 12px;
	border-radius: 10px;
	color: var(--fg-muted);
	background: var(--fg-bg);
	font-size: 14px;
}

.fg-mobile-drawer-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--fg-line);
}

.fg-mobile-drawer-actions a,
.fg-mobile-drawer-actions button {
	display: grid;
	min-height: 42px;
	place-items: center;
	border: 0;
	border-radius: 9px;
	color: var(--fg-primary);
	background: #eef4ff;
	font-size: 13px;
	cursor: pointer;
}

.fg-hero {
	padding: 46px 0 36px;
	background:
		linear-gradient(180deg, #f8fbff 0%, #f3f8ff 72%, #f5f9ff 100%);
}

body.fg-night .fg-hero {
	background: linear-gradient(180deg, #0b1727 0%, #07101d 100%);
}

.fg-hero-inner {
	display: flex;
	min-height: 280px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.fg-hero-badge {
	margin: 0 0 16px;
	padding: 8px 20px;
	border-radius: 999px;
	color: var(--fg-primary);
	background: #e9f1ff;
	font-size: 13px;
	font-weight: 800;
}

body.fg-night .fg-hero-badge {
	background: rgba(35, 104, 255, 0.16);
}

.fg-hero h1 {
	max-width: 820px;
	margin: 0;
	color: var(--fg-text);
	font-size: clamp(38px, 4.6vw, 60px);
	line-height: 1.13;
	letter-spacing: 0;
}

.fg-hero-subtitle {
	max-width: 720px;
	margin: 16px 0 25px;
	color: var(--fg-muted);
	font-size: 16px;
	line-height: 1.75;
}

.fg-hero-search {
	width: min(620px, calc(100% - 18px));
	height: 58px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 52px;
	align-items: center;
	padding: 0 6px 0 25px;
	border: 1px solid #e7eef9;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 18px 45px rgba(31, 73, 135, 0.14);
}

body.fg-night .fg-hero-search {
	border-color: var(--fg-line);
	background: var(--fg-panel);
}

.fg-hero-search input {
	min-width: 0;
	border: 0;
	outline: 0;
	color: var(--fg-text);
	background: transparent;
	font-size: 15px;
}

.fg-hero-search button {
	display: grid;
	width: 46px;
	height: 46px;
	place-items: center;
	border: 0;
	border-radius: 50%;
	color: #fff;
	background: linear-gradient(135deg, #1d73ff, #2354ff);
	box-shadow: 0 10px 22px rgba(35, 84, 255, 0.28);
	cursor: pointer;
}

.fg-quick-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 22px;
	margin-top: 18px;
	color: #8492a7;
	font-size: 12px;
}

.fg-quick-meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.fg-quick-meta span::before {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--fg-green);
	content: "";
}

.fg-category-shell {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) 34px;
	align-items: center;
	gap: 10px;
	padding: 16px 0 4px;
}

.fg-category-grid {
	display: flex;
	gap: 13px;
	overflow-x: auto;
	padding: 6px 0;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.fg-category-grid::-webkit-scrollbar {
	display: none;
}

.fg-rail-arrow {
	display: grid;
	width: 34px;
	height: 46px;
	place-items: center;
	border: 1px solid var(--fg-line);
	border-radius: 999px;
	color: var(--fg-primary);
	background: var(--fg-panel);
	box-shadow: 0 8px 22px rgba(33, 70, 120, 0.08);
	font-size: 24px;
	font-weight: 800;
	cursor: pointer;
}

.fg-category-card {
	flex: 0 0 calc((100% - 52px) / 5);
	min-width: 0;
	scroll-snap-align: start;
	display: grid;
	min-height: 82px;
	grid-template-columns: 42px minmax(0, 1fr);
	align-content: center;
	column-gap: 11px;
	padding: 13px;
	border: 1px solid #edf2fb;
	border-radius: 12px;
	background: var(--fg-panel);
	box-shadow: 0 10px 30px rgba(33, 70, 120, 0.07);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fg-category-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--fg-shadow);
}

.fg-category-icon {
	grid-row: span 2;
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 12px;
	color: #2368ff;
	background: #edf4ff;
	font-size: 13px;
	font-weight: 900;
}

.fg-category-card:nth-child(2) .fg-category-icon {
	color: #ff5269;
	background: #fff0f3;
}

.fg-category-card:nth-child(3) .fg-category-icon {
	color: #f5a700;
	background: #fff7e4;
}

.fg-category-card:nth-child(4) .fg-category-icon {
	color: #13a97e;
	background: #eafaf5;
}

.fg-category-card:nth-child(5) .fg-category-icon {
	color: #8556e8;
	background: #f3efff;
}

.fg-category-card:nth-child(6) .fg-category-icon {
	color: #ff3e82;
	background: #fff0f6;
}

.fg-category-card strong {
	align-self: end;
	overflow: hidden;
	color: var(--fg-text);
	font-size: 13px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fg-category-card small {
	align-self: start;
	overflow: hidden;
	color: var(--fg-muted);
	font-size: 11px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fg-mobile-category-rail {
	display: none;
}

.fg-keyword-shell {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) 34px;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
}

.fg-keyword-bar {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding: 12px 14px;
	border: 1px solid #edf2fb;
	border-radius: 12px;
	background: var(--fg-panel);
	box-shadow: 0 10px 30px rgba(33, 70, 120, 0.06);
	scrollbar-width: none;
}

.fg-keyword-bar::-webkit-scrollbar {
	display: none;
}

.fg-keyword-bar a {
	flex: 0 0 auto;
	padding: 8px 14px;
	border-radius: 9px;
	color: #56667e;
	background: #f7faff;
	font-size: 12px;
}

body.fg-night .fg-keyword-bar a {
	color: var(--fg-muted);
	background: var(--fg-bg);
}

.fg-keyword-bar a:hover {
	color: var(--fg-primary);
	background: #edf4ff;
}

.fg-keyword-arrow {
	display: grid;
	width: 34px;
	height: 46px;
	place-items: center;
	border: 0;
	border-radius: 999px;
	color: #94a2b8;
	background: var(--fg-panel);
	box-shadow: 0 8px 22px rgba(33, 70, 120, 0.08);
	font-size: 24px;
	cursor: pointer;
}

.fg-notice {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	min-height: 44px;
	margin-top: 14px;
	padding: 0 16px;
	border: 1px solid #e8f0fb;
	border-radius: 10px;
	background: var(--fg-panel);
	color: var(--fg-muted);
	font-size: 12px;
}

.fg-notice strong {
	color: var(--fg-primary);
}

.fg-notice p {
	overflow: hidden;
	margin: 0;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fg-notice a {
	color: var(--fg-primary);
}

.fg-blue-banner {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 84px;
	margin-top: 18px;
	padding: 18px 28px;
	border-radius: 12px;
	color: #fff;
	background:
		radial-gradient(circle at 80% 35%, rgba(255, 255, 255, 0.26), transparent 22%),
		linear-gradient(100deg, #0e4dff, #2c78ff);
	box-shadow: 0 18px 40px rgba(35, 104, 255, 0.2);
}

.fg-blue-banner strong {
	font-size: 24px;
}

.fg-blue-banner p {
	margin: 6px 0 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 13px;
}

.fg-blue-banner .fg-banner-link {
	position: relative;
	z-index: 2;
	flex: 0 0 auto;
	display: inline-grid !important;
	visibility: visible !important;
	opacity: 1 !important;
	min-width: 108px;
	min-height: 42px;
	place-items: center;
	padding: 10px 22px;
	border-radius: 999px;
	color: #175fe8 !important;
	-webkit-text-fill-color: #175fe8 !important;
	background: #fff;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 8px 20px rgba(7, 40, 126, 0.18);
}

.fg-banner-gift {
	position: absolute;
	right: 180px;
	top: 18px;
	color: #fff;
	font-size: 54px;
	opacity: 0.26;
	pointer-events: none;
}

.fg-collection-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(40px, 7vw, 78px) 30px;
	border-radius: 16px;
	color: #fff;
	background:
		radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.24), transparent 24%),
		linear-gradient(110deg, #0e4dff, #2c85ff);
	box-shadow: 0 20px 46px rgba(35, 104, 255, 0.22);
	text-align: center;
}

.fg-collection-hero > p {
	margin: 0 0 13px;
	color: rgba(255, 255, 255, 0.76);
	font-size: 13px;
	font-weight: 800;
}

.fg-collection-hero h1 {
	margin: 0 0 14px;
	font-size: clamp(36px, 5vw, 60px);
}

.fg-collection-hero > span {
	display: block;
	color: rgba(255, 255, 255, 0.84);
	font-size: 15px;
}

.fg-collection-hero > a {
	display: inline-grid;
	min-height: 44px;
	place-items: center;
	margin-top: 24px;
	padding: 0 22px;
	border-radius: 999px;
	color: #175fe8;
	background: #fff;
	font-size: 13px;
	font-weight: 800;
}

.fg-collection-benefits {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-top: 16px;
}

.fg-collection-benefits span {
	padding: 14px;
	border: 1px solid var(--fg-line);
	border-radius: 10px;
	color: var(--fg-muted);
	background: var(--fg-panel);
	font-size: 13px;
	text-align: center;
}

.fg-section {
	margin-top: 30px;
}

.fg-section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 16px;
}

.fg-section-heading h2 {
	position: relative;
	margin: 0;
	padding-left: 13px;
	color: var(--fg-text);
	font-size: 21px;
}

.fg-section-heading h2::before {
	position: absolute;
	inset: 4px auto 4px 0;
	width: 4px;
	border-radius: 999px;
	background: var(--fg-primary);
	content: "";
}

.fg-section-heading a {
	color: var(--fg-muted);
	font-size: 13px;
}

.fg-resource-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 15px;
}

.fg-resource-card {
	overflow: hidden;
	border: 1px solid #edf2fb;
	border-radius: 12px;
	background: var(--fg-panel);
	box-shadow: 0 12px 30px rgba(33, 70, 120, 0.07);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fg-resource-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--fg-shadow-hover);
}

.fg-resource-image {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, #102448, #226bb9);
}

.fg-resource-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.fg-resource-card:hover .fg-resource-image img {
	transform: scale(1.035);
}

.fg-resource-placeholder {
	display: grid;
	height: 100%;
	place-items: center;
	color: rgba(255, 255, 255, 0.82);
	font-size: 25px;
	font-weight: 900;
}

.fg-resource-tag {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 4px 8px;
	border-radius: 6px;
	color: #fff;
	background: rgba(17, 32, 59, 0.78);
	backdrop-filter: blur(8px);
	font-size: 11px;
}

.fg-resource-body {
	padding: 12px 13px 13px;
}

.fg-resource-card h3 {
	min-height: 42px;
	margin: 0;
	color: var(--fg-text);
	font-size: 15px;
	line-height: 1.45;
}

.fg-resource-card h3 a {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.fg-resource-card p {
	min-height: 38px;
	margin: 7px 0 11px;
	display: -webkit-box;
	overflow: hidden;
	color: var(--fg-muted);
	font-size: 12px;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.fg-resource-card footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.fg-resource-card footer strong {
	color: var(--fg-accent);
	font-size: 17px;
}

.fg-resource-card footer span {
	color: #9ba8ba;
	font-size: 11px;
}

.fg-view-all {
	display: grid;
	width: min(320px, 100%);
	height: 50px;
	place-items: center;
	margin: 22px auto 0;
	border-radius: 9px;
	color: #fff;
	background: var(--fg-primary);
	box-shadow: 0 12px 24px rgba(35, 104, 255, 0.22);
	font-size: 14px;
	font-weight: 800;
}

.fg-membership {
	padding: 6px 0 34px;
}

.fg-plan-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.fg-plan {
	position: relative;
	min-height: 330px;
	overflow: hidden;
	padding: 27px;
	border: 1px solid #dbe7ff;
	border-radius: 15px;
	background: linear-gradient(145deg, #fffdf8, var(--fg-panel));
	box-shadow: 0 14px 36px rgba(33, 70, 120, 0.08);
}

.fg-plan:nth-child(2) {
	border-color: #cfe0ff;
	background: linear-gradient(145deg, #f7faff, var(--fg-panel));
}

.fg-plan:nth-child(3) {
	border-color: #d5def9;
	background: linear-gradient(145deg, #f8f6ff, var(--fg-panel));
}

.fg-plan-badge {
	position: absolute;
	top: 0;
	left: 0;
	padding: 7px 13px;
	border-radius: 14px 0 13px;
	color: #fff;
	background: var(--fg-gold);
	font-size: 12px;
	font-weight: 800;
}

.fg-plan:nth-child(2) .fg-plan-badge {
	background: var(--fg-accent);
}

.fg-plan:nth-child(3) .fg-plan-badge {
	background: var(--fg-primary);
}

.fg-plan h3 {
	margin: 14px 0 8px;
	color: var(--fg-text);
	font-size: 22px;
}

.fg-plan-subline {
	margin: 0 0 14px;
	color: var(--fg-muted);
	font-size: 13px;
}

.fg-plan ul {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
	color: #53627a;
	font-size: 13px;
	line-height: 1.9;
}

body.fg-night .fg-plan ul {
	color: var(--fg-muted);
}

.fg-plan li::before {
	margin-right: 8px;
	color: var(--fg-green);
	content: "✓";
	font-weight: 900;
}

.fg-plan-price {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 22px;
}

.fg-plan-price strong {
	color: var(--fg-accent);
	font-size: 30px;
}

.fg-plan-price del {
	color: #a1abba;
	font-size: 12px;
}

.fg-plan-button {
	position: absolute;
	right: 27px;
	bottom: 2px;
	left: 27px;
	display: grid;
	height: 45px;
	place-items: center;
	border-radius: 9px;
	color: #fff;
	background: var(--fg-primary);
	font-size: 13px;
	font-weight: 800;
	box-shadow: 0 10px 22px rgba(35, 104, 255, 0.2);
}

.fg-footer {
	margin-top: 54px;
	padding: 34px 0 18px;
	border-top: 1px solid var(--fg-line);
	background: var(--fg-panel);
	color: var(--fg-muted);
}

.fg-footer-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr) 2fr;
	gap: 28px;
}

.fg-footer-links {
	display: grid;
	align-content: start;
	gap: 8px;
}

.fg-footer-links strong {
	color: var(--fg-text);
	font-size: 14px;
}

.fg-footer-links a {
	font-size: 12px;
}

.fg-footer-links a:hover {
	color: var(--fg-primary);
}

.fg-footer-qrcode {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.fg-footer-qr-card {
	display: grid;
	min-height: 142px;
	place-items: center;
	gap: 6px;
	padding: 10px;
	border: 1px solid var(--fg-line);
	border-radius: 12px;
	background: linear-gradient(135deg, var(--fg-panel), var(--fg-bg));
	color: var(--fg-muted);
	font-size: 13px;
	text-align: center;
}

.fg-footer-qr-card img {
	width: 92px;
	height: 92px;
	object-fit: contain;
	border-radius: 5px;
	background: #fff;
}

.fg-footer-qr-card:hover {
	border-color: #cfe0ff;
	color: var(--fg-primary);
}

.fg-copyright {
	margin: 28px 0 0;
	color: #9aa6b8;
	font-size: 13px;
	line-height: 1.7;
	text-align: center;
}

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

.fg-auth-modal {
	position: fixed;
	inset: 0;
	z-index: 130;
	display: grid;
	place-items: center;
	padding: 18px;
}

.fg-auth-mask {
	position: absolute;
	inset: 0;
	border: 0;
	background: rgba(10, 22, 40, 0.62);
	backdrop-filter: blur(5px);
	cursor: pointer;
}

.fg-auth-dialog {
	position: relative;
	z-index: 1;
	width: min(430px, 100%);
	max-height: calc(100vh - 36px);
	overflow-y: auto;
	padding: 28px;
	border-radius: 16px;
	background: var(--fg-panel);
	box-shadow: 0 30px 80px rgba(8, 26, 55, 0.28);
}

.fg-auth-close {
	position: absolute;
	top: 13px;
	right: 15px;
	display: grid;
	width: 30px;
	height: 30px;
	place-items: center;
	border: 0;
	border-radius: 50%;
	color: var(--fg-muted);
	background: var(--fg-bg);
	font-size: 20px;
	cursor: pointer;
}

.fg-auth-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 22px;
	color: var(--fg-text);
	font-size: 17px;
}

.fg-auth-tabs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 5px;
	margin-bottom: 23px;
	padding: 4px;
	border-radius: 10px;
	background: var(--fg-bg);
}

.fg-auth-tabs button {
	min-height: 37px;
	border: 0;
	border-radius: 8px;
	color: var(--fg-muted);
	background: transparent;
	cursor: pointer;
}

.fg-auth-tabs button.is-active {
	color: var(--fg-primary);
	background: var(--fg-panel);
	box-shadow: 0 5px 16px rgba(31, 73, 135, 0.08);
	font-weight: 800;
}

.fg-auth-form {
	display: none;
}

.fg-auth-form.is-active {
	display: grid;
	gap: 13px;
}

.fg-auth-form h2 {
	margin: 0;
	color: var(--fg-text);
	font-size: 23px;
}

.fg-auth-form p {
	margin: 0 0 4px;
	color: var(--fg-muted);
	font-size: 12px;
	line-height: 1.7;
}

.fg-auth-form > label {
	display: grid;
	gap: 7px;
	color: var(--fg-text);
	font-size: 12px;
}

.fg-auth-form input[type="text"],
.fg-auth-form input[type="password"],
.fg-auth-form input[type="email"] {
	width: 100%;
	height: 44px;
	padding: 0 13px;
	border: 1px solid var(--fg-line);
	border-radius: 9px;
	outline: 0;
	color: var(--fg-text);
	background: var(--fg-panel);
}

.fg-auth-form input:focus {
	border-color: var(--fg-primary);
	box-shadow: 0 0 0 3px rgba(35, 104, 255, 0.1);
}

.fg-auth-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	color: var(--fg-muted);
	font-size: 12px;
}

.fg-auth-meta label {
	display: flex;
	align-items: center;
	gap: 6px;
}

.fg-auth-meta button {
	border: 0;
	color: var(--fg-primary);
	background: transparent;
	font-size: 12px;
	cursor: pointer;
}

.fg-auth-submit {
	min-height: 45px;
	margin-top: 3px;
	border: 0;
	border-radius: 9px;
	color: #fff;
	background: var(--fg-primary);
	box-shadow: 0 10px 22px rgba(35, 104, 255, 0.2);
	font-weight: 800;
	cursor: pointer;
}

body.fg-auth-open {
	overflow: hidden;
}

.fg-mobile-tabbar {
	position: fixed;
	right: auto;
	bottom: var(--fg-visual-bottom, 0);
	left: var(--fg-visual-left, 0);
	z-index: 50;
	display: none;
	width: var(--fg-visual-width, 100%);
	max-width: 100%;
	min-height: calc(64px + env(safe-area-inset-bottom));
	grid-template-columns: repeat(4, 1fr);
	align-items: stretch;
	box-sizing: border-box;
	padding: 7px 10px calc(3px + env(safe-area-inset-bottom));
	border: 1px solid rgba(218, 228, 245, 0.95);
	border-width: 1px 0 0;
	border-radius: 20px 20px 0 0;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 -12px 30px rgba(30, 78, 138, 0.16);
	backdrop-filter: blur(16px);
}

body.fg-night .fg-mobile-tabbar {
	border-color: var(--fg-line);
	background: rgba(12, 22, 36, 0.96);
}

body .fg-mobile-tabbar a {
	display: grid;
	min-width: 0;
	min-height: 50px;
	box-sizing: border-box;
	align-content: start;
	grid-template-rows: 28px 18px;
	justify-items: center;
	gap: 2px;
	padding: 3px 2px 2px;
	border-radius: 0;
	color: #5d6a7d;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

.fg-mobile-tabbar b {
	display: grid;
	width: 28px;
	height: 28px;
	place-items: center;
	border-radius: 0;
	background: transparent;
	color: currentColor;
}

.fg-mobile-tabbar svg {
	display: block;
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.fg-mobile-tabbar a span {
	display: block;
	max-width: 100%;
	overflow: hidden;
	line-height: 18px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body .fg-mobile-tabbar a.is-active {
	border-radius: 16px;
	color: #17233d;
	background: transparent;
	box-shadow:
		inset 0 0 0 1px rgba(35, 104, 255, 0.12),
		0 8px 18px rgba(35, 104, 255, 0.12);
	font-weight: 900;
}

body.fg-night .fg-mobile-tabbar a {
	color: #aeb8ca;
}

body.fg-night .fg-mobile-tabbar a.is-active {
	color: #6fa4ff;
	background: rgba(35, 104, 255, 0.14);
}

.fg-page-shell {
	padding: 34px 0 70px;
}

.fg-page-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 26px;
	align-items: start;
}

.fg-page-card,
.fg-widget {
	border: 1px solid var(--fg-line);
	border-radius: 13px;
	background: var(--fg-panel);
	box-shadow: var(--fg-shadow);
}

.fg-page-card {
	padding: clamp(22px, 4vw, 42px);
}

.fg-register-page {
	width: min(560px, 100%);
	margin: 0 auto;
}

.fg-register-page .fg-auth-form h1 {
	font-size: 28px;
}

.fg-register-page .fg-auth-form > p button {
	border: 0;
	padding: 0;
	color: var(--fg-primary);
	background: transparent;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.fg-page-breadcrumb {
	margin-bottom: 18px;
	color: var(--fg-muted);
	font-size: 12px;
}

.fg-page-breadcrumb a {
	color: var(--fg-primary);
}

.fg-page-card h1 {
	margin: 0 0 16px;
	color: var(--fg-text);
	font-size: clamp(28px, 3.2vw, 42px);
	line-height: 1.25;
}

.fg-post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	margin-bottom: 24px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--fg-line);
	color: var(--fg-muted);
	font-size: 12px;
}

.fg-post-content {
	color: #34445c;
	font-size: 16px;
	line-height: 1.9;
}

body.fg-night .fg-post-content {
	color: #d6deea;
}

.fg-post-content h2,
.fg-post-content h3 {
	margin-top: 1.7em;
	color: var(--fg-text);
	line-height: 1.4;
}

.fg-post-content img {
	height: auto;
	margin: 18px auto;
	border-radius: 10px;
}

.fg-post-content a {
	color: var(--fg-primary);
}

.fg-post-content pre,
.fg-post-content code {
	border-radius: 8px;
	background: #eef3fb;
}

.fg-post-content pre {
	overflow-x: auto;
	padding: 16px;
}

.fg-sidebar {
	display: grid;
	gap: 16px;
	position: sticky;
	top: 96px;
}

.fg-widget {
	padding: 20px;
}

.fg-widget-title {
	margin: 0 0 12px;
	color: var(--fg-text);
	font-size: 17px;
}

.fg-widget ul {
	margin: 0;
	padding-left: 18px;
	color: var(--fg-muted);
	line-height: 1.8;
	font-size: 13px;
}

.fg-side-cta {
	padding: 24px;
	border-radius: 13px;
	color: #fff;
	background: linear-gradient(135deg, #2368ff, #5da4ff);
	box-shadow: 0 16px 38px rgba(35, 104, 255, 0.22);
}

.fg-side-cta strong {
	display: block;
	margin-bottom: 8px;
	font-size: 20px;
}

.fg-side-cta p {
	margin: 0 0 17px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 12px;
	line-height: 1.7;
}

.fg-side-cta a {
	display: grid;
	height: 42px;
	place-items: center;
	border-radius: 8px;
	color: #175fe8;
	background: #fff;
	font-weight: 800;
}

.fg-product-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 28px;
	padding: 22px;
	border: 1px solid var(--fg-line);
	border-radius: 15px;
	background: var(--fg-panel);
	box-shadow: var(--fg-shadow);
}

.fg-product-cover {
	overflow: hidden;
	align-self: start;
	border-radius: 12px;
	background: linear-gradient(135deg, #102448, #226bb9);
}

.fg-product-cover img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.fg-product-info {
	display: flex;
	min-width: 0;
	flex-direction: column;
	justify-content: center;
}

.fg-product-kicker {
	margin: 0 0 9px;
	color: var(--fg-primary);
	font-size: 12px;
	font-weight: 800;
}

.fg-product-info h1 {
	margin: 0 0 13px;
	color: var(--fg-text);
	font-size: clamp(27px, 3vw, 38px);
	line-height: 1.3;
}

.fg-product-excerpt {
	margin: 0 0 18px;
	color: var(--fg-muted);
	font-size: 14px;
	line-height: 1.8;
}

.fg-product-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 20px;
}

.fg-product-price strong {
	color: var(--fg-accent);
	font-size: 34px;
}

.fg-product-price span {
	color: var(--fg-muted);
	font-size: 12px;
}

.fg-product-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.fg-product-actions a {
	display: inline-grid;
	min-height: 46px;
	place-items: center;
	padding: 0 22px;
	border-radius: 9px;
	font-size: 13px;
	font-weight: 800;
}

.fg-product-buy {
	color: #fff;
	background: var(--fg-primary);
	box-shadow: 0 11px 24px rgba(35, 104, 255, 0.22);
}

.fg-product-member {
	border: 1px solid var(--fg-line);
	color: var(--fg-primary);
	background: var(--fg-panel);
}

.fg-favorite-toggle {
	min-height: 46px;
	padding: 0 18px;
	border: 1px solid var(--fg-line);
	border-radius: 9px;
	color: var(--fg-muted);
	background: var(--fg-panel);
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
}

.fg-favorite-toggle.is-active {
	border-color: #ffd1dc;
	color: var(--fg-accent);
	background: #fff0f4;
}

.fg-product-service {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-top: 16px;
}

.fg-product-service span {
	padding: 12px 10px;
	border-radius: 9px;
	color: var(--fg-muted);
	background: var(--fg-bg);
	font-size: 12px;
	text-align: center;
}

.fg-product-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 24px;
	align-items: start;
	margin-top: 24px;
}

.fg-related-section {
	margin-top: 30px;
}

.fg-related-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.fg-product-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 24px;
}

.fg-product-nav a {
	padding: 14px;
	border: 1px solid var(--fg-line);
	border-radius: 9px;
	color: var(--fg-muted);
	font-size: 13px;
	line-height: 1.6;
}

.fg-account-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 28px;
	border-radius: 15px;
	color: #fff;
	background: linear-gradient(120deg, #174fc3, #2d83ff);
	box-shadow: 0 16px 38px rgba(35, 104, 255, 0.22);
}

.fg-account-hero h1 {
	margin: 0 0 6px;
	font-size: 28px;
}

.fg-account-hero p {
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 13px;
}

.fg-account-membership {
	flex: 0 0 auto;
	padding: 13px 18px;
	border-radius: 10px;
	color: #175fe8;
	background: #fff;
	font-size: 13px;
	font-weight: 800;
}

.fg-account-content {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 22px;
	align-items: start;
	margin-top: 24px;
}

.fg-account-sidebar {
	display: grid;
	gap: 7px;
	padding: 14px;
	border: 1px solid var(--fg-line);
	border-radius: 12px;
	background: var(--fg-panel);
	box-shadow: var(--fg-shadow);
}

.fg-account-sidebar a {
	padding: 10px 12px;
	border-radius: 8px;
	color: var(--fg-muted);
	font-size: 13px;
}

.fg-account-sidebar a:hover,
.fg-account-sidebar a.is-active {
	color: var(--fg-primary);
	background: var(--fg-bg);
}

.fg-account-main {
	display: grid;
	gap: 20px;
}

.fg-account-card {
	padding: 22px;
	border: 1px solid var(--fg-line);
	border-radius: 12px;
	background: var(--fg-panel);
	box-shadow: var(--fg-shadow);
}

.fg-account-card h2 {
	margin: 0 0 16px;
	color: var(--fg-text);
	font-size: 19px;
}

.fg-account-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.fg-account-stat {
	padding: 15px;
	border-radius: 9px;
	background: var(--fg-bg);
}

.fg-account-stat span {
	display: block;
	margin-bottom: 7px;
	color: var(--fg-muted);
	font-size: 12px;
}

.fg-account-stat strong {
	color: var(--fg-text);
	font-size: 16px;
}

.fg-account-action {
	display: inline-grid;
	min-width: 160px;
	min-height: 42px;
	place-items: center;
	padding: 0 18px;
	border-radius: 8px;
	color: #fff;
	background: var(--fg-primary);
	font-size: 13px;
	font-weight: 800;
}

.fg-order-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.fg-order-table th,
.fg-order-table td {
	padding: 11px 8px;
	border-bottom: 1px solid var(--fg-line);
	text-align: left;
}

.fg-order-table th {
	color: var(--fg-muted);
	font-size: 12px;
	font-weight: 700;
}

.fg-status-paid {
	color: #13865f;
	font-weight: 800;
}

.fg-status-pending {
	color: #d68600;
	font-weight: 800;
}

.fg-free-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 30px;
	border-radius: 15px;
	color: #fff;
	background:
		radial-gradient(circle at 82% 32%, rgba(255, 255, 255, 0.22), transparent 22%),
		linear-gradient(110deg, #0e4dff, #2c85ff);
	box-shadow: 0 18px 42px rgba(35, 104, 255, 0.2);
}

.fg-free-hero p {
	margin: 0 0 8px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 12px;
}

.fg-free-hero h1 {
	margin: 0 0 9px;
	font-size: clamp(30px, 4vw, 44px);
}

.fg-free-hero span {
	color: rgba(255, 255, 255, 0.82);
	font-size: 13px;
}

.fg-free-hero > a {
	flex: 0 0 auto;
	padding: 12px 20px;
	border-radius: 999px;
	color: #175fe8;
	background: #fff;
	font-size: 13px;
	font-weight: 800;
}

.fg-free-panel {
	margin-top: 22px;
	padding: 22px;
	border: 1px solid var(--fg-line);
	border-radius: 13px;
	background: var(--fg-panel);
	box-shadow: var(--fg-shadow);
}

.fg-free-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.fg-free-toolbar label {
	width: min(460px, 100%);
}

.fg-free-toolbar input {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--fg-line);
	border-radius: 9px;
	outline: 0;
	color: var(--fg-text);
	background: var(--fg-bg);
}

.fg-free-toolbar input:focus {
	border-color: var(--fg-primary);
	box-shadow: 0 0 0 3px rgba(35, 104, 255, 0.1);
}

.fg-free-toolbar > span {
	color: var(--fg-muted);
	font-size: 12px;
	white-space: nowrap;
}

.fg-free-tabs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	margin: 16px 0;
	padding-bottom: 3px;
	scrollbar-width: none;
}

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

.fg-free-tabs button {
	flex: 0 0 auto;
	padding: 9px 15px;
	border: 1px solid var(--fg-line);
	border-radius: 999px;
	color: var(--fg-muted);
	background: var(--fg-panel);
	font-size: 12px;
	cursor: pointer;
}

.fg-free-tabs button.is-active {
	border-color: var(--fg-primary);
	color: #fff;
	background: var(--fg-primary);
}

.fg-free-table-wrap {
	overflow-x: auto;
}

.fg-free-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.fg-free-table th,
.fg-free-table td {
	padding: 12px 10px;
	border-bottom: 1px solid var(--fg-line);
	text-align: left;
	vertical-align: middle;
}

.fg-free-table th {
	color: var(--fg-muted);
	background: var(--fg-bg);
	font-size: 12px;
	font-weight: 800;
}

.fg-free-table td:first-child,
.fg-free-table th:first-child {
	width: 54px;
	text-align: center;
}

.fg-free-table td:nth-child(2) {
	min-width: 280px;
	color: var(--fg-text);
}

.fg-free-tag {
	display: inline-flex;
	padding: 4px 8px;
	border-radius: 6px;
	color: var(--fg-primary);
	background: #edf4ff;
	font-size: 11px;
	white-space: nowrap;
}

.fg-free-table a {
	display: inline-flex;
	padding: 6px 10px;
	border-radius: 6px;
	color: #fff;
	background: var(--fg-primary);
	font-size: 11px;
	white-space: nowrap;
}

.fg-free-pagination {
	display: flex;
	justify-content: center;
	gap: 7px;
	margin-top: 20px;
}

.fg-free-pagination button,
.fg-free-pagination span {
	display: grid;
	min-width: 34px;
	height: 34px;
	place-items: center;
	padding: 0 8px;
	border: 1px solid var(--fg-line);
	border-radius: 7px;
	color: var(--fg-muted);
	background: var(--fg-panel);
	font-size: 12px;
}

.fg-free-pagination button {
	cursor: pointer;
}

.fg-free-pagination button.is-active {
	border-color: var(--fg-primary);
	color: #fff;
	background: var(--fg-primary);
}

.fg-free-pagination button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.fg-free-empty {
	padding: 35px;
	color: var(--fg-muted);
	text-align: center;
}

.fg-free-source {
	margin: 18px 0 0;
	color: var(--fg-muted);
	font-size: 11px;
	line-height: 1.7;
	text-align: center;
}

.fg-archive-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.fg-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
}

.fg-pagination .page-numbers {
	display: grid;
	min-width: 34px;
	height: 34px;
	place-items: center;
	padding: 0 9px;
	border: 1px solid var(--fg-line);
	border-radius: 8px;
	background: var(--fg-panel);
	font-size: 12px;
}

.fg-pagination .current {
	border-color: var(--fg-primary);
	color: #fff;
	background: var(--fg-primary);
}

.fg-empty {
	padding: 48px 20px;
	border: 1px dashed var(--fg-line);
	border-radius: 12px;
	background: var(--fg-panel);
	color: var(--fg-muted);
	text-align: center;
}

@media (max-width: 1020px) {
	.fg-header-inner {
		display: flex;
	}

	.fg-brand {
		margin-right: auto;
	}

	.fg-main-nav {
		display: none;
	}

	.fg-menu-button {
		display: grid;
	}

	.fg-category-shell {
		grid-template-columns: 28px minmax(0, 1fr) 28px;
		gap: 8px;
	}

	.fg-category-card {
		flex-basis: calc((100% - 26px) / 3);
	}

	.fg-resource-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.fg-archive-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fg-page-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.fg-sidebar {
		position: static;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fg-product-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.fg-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fg-account-content {
		grid-template-columns: minmax(0, 1fr);
	}

	.fg-account-sidebar {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.admin-bar .fg-site-header {
		top: 0;
	}

	.fg-shell {
		width: min(100% - 22px, 1120px);
	}

	.fg-header-inner {
		min-height: 58px;
		gap: 8px;
	}

	.fg-brand-mark {
		width: 38px;
		height: 38px;
		flex-basis: 38px;
		border-radius: 10px;
		font-size: 19px;
	}

	.fg-brand-copy small,
	.fg-login-link {
		display: none;
	}

	.fg-user-toggle span {
		display: none;
	}

	.fg-register-link {
		padding: 0 12px;
	}

	.fg-theme-toggle {
		display: none;
	}

	.fg-header-search {
		top: 54px;
		right: 11px;
		left: 11px;
		width: auto;
	}

	.fg-mobile-drawer {
		top: 59px;
		right: 11px;
		left: 11px;
	}

	.fg-hero {
		padding: 0;
	}

	.fg-hero-inner {
		min-height: 238px;
	}

	.fg-hero h1 {
		font-size: clamp(33px, 10vw, 44px);
	}

	.fg-hero-subtitle {
		font-size: 14px;
	}

	.fg-hero-search {
		height: 54px;
		padding-left: 19px;
	}

	.fg-hero-search button {
		width: 42px;
		height: 42px;
	}

	.fg-quick-meta {
		display: none;
	}

	.fg-category-shell {
		display: block;
		padding: 16px 0 0;
	}

	.fg-rail-arrow {
		display: none;
	}

	.fg-category-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
		overflow: visible;
		padding: 0;
		scroll-snap-type: none;
	}

	.fg-category-card {
		width: auto;
		min-height: 66px;
		grid-template-columns: 36px minmax(0, 1fr);
		column-gap: 9px;
		padding: 7px 9px;
	}

	.fg-category-card:nth-child(n + 5) {
		display: none;
	}

	.fg-category-icon {
		width: 36px;
		height: 36px;
		border-radius: 10px;
		font-size: 12px;
	}

	.fg-category-card strong {
		font-size: 12px;
	}

	.fg-category-card small {
		display: block;
		font-size: 10px;
	}

	.fg-mobile-category-rail {
		display: flex;
		gap: 6px;
		box-sizing: border-box;
		overflow-x: auto;
		margin-top: 16px;
		padding: 10px 8px 9px;
		border: 1px solid #e8f0fb;
		border-radius: 15px;
		background: var(--fg-panel);
		box-shadow: 0 8px 24px rgba(33, 70, 120, 0.06);
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
	}

	.fg-mobile-category-rail::-webkit-scrollbar {
		display: none;
	}

	.fg-mobile-category-rail a {
		display: grid;
		min-width: 70px;
		grid-template-rows: 28px auto;
		flex: 0 0 70px;
		place-items: center;
		gap: 4px;
		padding: 2px;
		color: var(--fg-muted);
		font-size: 11px;
		line-height: 1.2;
		text-align: center;
		scroll-snap-align: start;
	}

	.fg-mobile-category-rail a span {
		display: grid;
		width: 28px;
		height: 28px;
		place-items: center;
		border-radius: 9px;
		color: var(--fg-primary);
		background: #edf4ff;
		font-size: 11px;
		font-weight: 900;
	}

	.fg-mobile-category-rail a strong {
		display: block;
		max-width: 100%;
		overflow: hidden;
		color: var(--fg-text);
		font-size: 11px;
		font-weight: 700;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.fg-keyword-shell {
		display: block;
	}

	.fg-keyword-arrow {
		display: none;
	}

	.fg-notice {
		grid-template-columns: auto minmax(0, 1fr);
		min-height: 40px;
		padding: 0 12px;
	}

	.fg-notice a {
		display: none;
	}

	.fg-blue-banner {
		align-items: center;
		flex-direction: row;
		gap: 10px;
		padding: 12px 14px;
	}

	.fg-blue-banner strong {
		font-size: 17px;
		line-height: 1.3;
	}

	.fg-blue-banner p {
		margin-top: 4px;
		font-size: 11px;
		line-height: 1.4;
	}

	.fg-blue-banner .fg-banner-link {
		width: auto;
		min-width: 86px;
		min-height: 36px;
		padding: 8px 13px;
		font-size: 12px;
	}

	.fg-banner-gift {
		display: none;
	}

	.fg-resource-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.fg-archive-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.fg-resource-card {
		display: grid;
		grid-template-columns: 46% minmax(0, 1fr);
		align-items: stretch;
		height: 150px;
		overflow: hidden;
	}

	.fg-resource-image {
		width: 100%;
		height: 150px;
		min-height: 0;
		aspect-ratio: auto;
	}

	.fg-resource-body {
		display: flex;
		min-width: 0;
		flex-direction: column;
		justify-content: center;
		height: 100%;
		overflow: hidden;
		padding: 12px;
	}

	.fg-resource-card h3 {
		min-height: 46px;
		font-size: 14px;
	}

	.fg-resource-card p {
		display: -webkit-box;
	}

	.fg-resource-grid .fg-resource-card {
		display: block;
		height: auto;
		padding: 7px;
	}

	.fg-resource-grid .fg-resource-image {
		width: 100%;
		height: auto;
		min-height: 0;
		aspect-ratio: 1.32 / 1;
		border-radius: 9px;
	}

	.fg-resource-grid .fg-resource-body {
		display: block;
		height: auto;
		overflow: visible;
		padding: 8px 1px 1px;
	}

	.fg-resource-grid .fg-resource-card h3 {
		min-height: calc(1.4em * 2);
		font-size: 12px;
		line-height: 1.4;
	}

	.fg-resource-grid .fg-resource-card p {
		min-height: calc(1.35em * 2);
		margin: 5px 0 7px;
		font-size: 11px;
		line-height: 1.35;
		-webkit-line-clamp: 2;
	}

	.fg-resource-grid .fg-resource-card footer {
		gap: 7px;
	}

	.fg-resource-grid .fg-resource-card footer strong {
		font-size: 15px;
	}

	.fg-resource-grid .fg-resource-card footer span {
		font-size: 10px;
	}

	.fg-plan-grid {
		grid-template-columns: 1fr;
	}

	.fg-plan {
		min-height: 315px;
	}

	.fg-product-hero {
		grid-template-columns: minmax(0, 1fr);
		padding: 14px;
	}

	.fg-product-service {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fg-related-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.fg-product-nav {
		grid-template-columns: minmax(0, 1fr);
	}

	.fg-account-hero {
		align-items: flex-start;
		flex-direction: column;
		padding: 22px;
	}

	.fg-account-sidebar {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fg-account-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.fg-order-table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}

	.fg-auth-dialog {
		padding: 24px 19px;
	}

	.fg-free-hero {
		align-items: flex-start;
		flex-direction: column;
		padding: 22px;
	}

	.fg-free-panel {
		padding: 15px;
	}

	.fg-free-toolbar {
		align-items: stretch;
		flex-direction: column;
		gap: 10px;
	}

	.fg-free-table {
		min-width: 760px;
	}

	.fg-collection-hero {
		padding: 38px 18px;
	}

	.fg-collection-benefits {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fg-footer {
		padding-bottom: 92px;
	}

	.fg-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 18px;
	}

	.fg-footer-qrcode {
		grid-column: 1 / -1;
	}

	.fg-mobile-tabbar {
		min-height: 66px;
		display: grid;
	}

	.fg-sidebar {
		grid-template-columns: 1fr;
	}

	.fg-page-shell {
		padding-top: 20px;
	}

	.fg-page-card {
		padding: 20px 17px;
	}
}

@media (max-width: 440px) {
	.fg-register-link {
		display: none;
	}

	.fg-resource-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.fg-resource-grid .fg-resource-card {
		padding: 6px;
	}

	.fg-resource-grid .fg-resource-card h3 {
		font-size: 11.5px;
	}

	.fg-resource-grid .fg-resource-card p {
		font-size: 10.5px;
	}
}

.fg-collection-directory-head {
	padding: 28px;
	border: 1px solid var(--fg-line);
	border-radius: 14px;
	background: var(--fg-panel);
	box-shadow: 0 12px 34px rgba(33, 70, 120, 0.06);
}

.fg-collection-eyebrow {
	margin: 0 0 8px;
	color: var(--fg-primary);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.fg-collection-title-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.fg-collection-title-row h1 {
	margin: 0;
	color: var(--fg-text);
	font-size: clamp(30px, 4vw, 44px);
	line-height: 1.15;
}

.fg-collection-title-row p {
	margin: 9px 0 0;
	color: var(--fg-muted);
	font-size: 14px;
	line-height: 1.7;
}

.fg-collection-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid var(--fg-line);
}

.fg-collection-filters a {
	display: inline-grid;
	min-height: 34px;
	place-items: center;
	padding: 0 14px;
	border: 1px solid var(--fg-line);
	border-radius: 8px;
	color: var(--fg-muted);
	background: #f7f9fd;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.fg-collection-filters a:hover,
.fg-collection-filters a.is-active {
	border-color: var(--fg-primary);
	color: #fff;
	background: var(--fg-primary);
}

.fg-collection-directory {
	margin-top: 24px;
}

.fg-collection-results-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.fg-collection-results-head h2 {
	margin: 0;
	color: var(--fg-text);
	font-size: 20px;
}

.fg-collection-results-head span {
	color: var(--fg-muted);
	font-size: 12px;
}

.fg-collection-pagination {
	flex-wrap: wrap;
}

@media (max-width: 760px) {
	.fg-collection-directory-head {
		padding: 21px 17px;
	}

	.fg-collection-title-row {
		align-items: flex-start;
	}

	.fg-collection-title-row h1 {
		font-size: 30px;
	}

	.fg-collection-filters {
		margin-top: 17px;
		padding-top: 16px;
	}

	.fg-collection-filters a {
		padding: 0 12px;
	}
}

.fg-auth-dialog {
	width: min(390px, calc(100% - 32px));
	padding: 27px 26px 24px;
	border-radius: 20px;
	background: #f8faff;
	box-shadow: 0 26px 80px rgba(15, 42, 86, 0.3);
}

.fg-auth-brand {
	justify-content: flex-start;
	gap: 11px;
	margin-bottom: 19px;
}

.fg-auth-brand .fg-brand-mark {
	width: 50px;
	height: 50px;
	border-radius: 16px;
	color: #fff;
	background: linear-gradient(135deg, #2368ff, #19b8a0);
	box-shadow: 0 12px 26px rgba(35, 104, 255, 0.24);
	font-size: 23px;
}

.fg-auth-brand div {
	display: grid;
	gap: 4px;
}

.fg-auth-brand strong {
	color: var(--fg-text);
	font-size: 19px;
	line-height: 1.15;
}

.fg-auth-brand small {
	color: var(--fg-muted);
	font-size: 11px;
	line-height: 1.45;
}

.fg-auth-tabs {
	display: flex;
	gap: 20px;
	margin-bottom: 17px;
	padding: 0;
	border: 0;
	background: transparent;
}

.fg-auth-tabs button {
	min-height: 34px;
	padding: 0 0 7px;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	color: #7d899d;
	background: transparent;
	font-size: 16px;
	font-weight: 800;
}

.fg-auth-tabs button.is-active {
	border-bottom-color: #2d8cff;
	color: var(--fg-text);
	background: transparent;
	box-shadow: none;
}

.fg-auth-form.is-active {
	gap: 10px;
}

.fg-auth-form h2 {
	font-size: 23px;
}

.fg-auth-form p {
	margin: -2px 0 3px;
	color: #8b96a8;
	font-size: 12px;
	line-height: 1.55;
}

.fg-auth-form > p button {
	border: 0;
	padding: 0;
	color: #2368ff;
	background: transparent;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.fg-auth-form > label:not(.fg-auth-meta label):not(.fg-auth-honeypot) {
	display: block;
}

.fg-auth-form input[type="text"],
.fg-auth-form input[type="password"],
.fg-auth-form input[type="email"] {
	width: 100%;
	height: 44px;
	border: 1px solid #e6edf7;
	border-radius: 12px;
	padding: 0 13px;
	background: #fff;
	font-size: 13px;
}

.fg-auth-form input::placeholder {
	color: #a0aabd;
}

.fg-auth-form input:focus {
	border-color: #6ba8ff;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(35, 104, 255, 0.1);
}

.fg-auth-meta {
	padding: 1px 2px 3px;
}

.fg-auth-submit {
	min-height: 44px;
	border-radius: 14px;
	background: linear-gradient(90deg, #32bff6, #1e7fff);
	box-shadow: 0 12px 26px rgba(30, 127, 255, 0.22);
	font-size: 14px;
}

.fg-auth-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.fg-auth-message {
	display: block;
	min-height: 18px;
	color: #e25555;
	font-size: 12px;
	line-height: 1.5;
}

.fg-auth-message:empty {
	display: none;
}

.fg-auth-message.is-valid {
	color: #159966;
}

.fg-user-shell-card {
	overflow: hidden;
	border: 1px solid rgba(221, 231, 245, 0.78);
	border-radius: 22px;
	padding: 14px;
	background: rgba(255, 255, 255, 0.82);
	box-shadow: 0 18px 48px rgba(31, 78, 145, 0.1);
}

.fg-user-profile-hero {
	display: grid;
	grid-template-columns: 1fr;
}

.fg-user-hero-panel {
	display: grid;
	min-height: 192px;
	align-content: center;
	justify-items: center;
	gap: 8px;
	padding: 20px;
	border: 1px solid rgba(221, 231, 245, 0.8);
	border-radius: 18px;
	color: #17233d;
	text-align: center;
	background:
		radial-gradient(circle at 20% 12%, rgba(35, 104, 255, 0.12), transparent 28%),
		rgba(255, 255, 255, 0.74);
}

.fg-user-hero-panel img {
	width: 92px;
	height: 92px;
	border: 3px solid rgba(255, 255, 255, 0.72);
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 10px 28px rgba(31, 78, 145, 0.14);
}

.fg-user-hero-panel strong {
	max-width: 100%;
	overflow: hidden;
	color: #17233d;
	font-size: 22px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fg-user-hero-panel span {
	max-width: 100%;
	overflow: hidden;
	color: #6f7e92;
	font-size: 12px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fg-user-hero-panel em {
	border: 1px solid rgba(35, 104, 255, 0.12);
	border-radius: 999px;
	padding: 5px 12px;
	color: #2368ff;
	background: rgba(35, 104, 255, 0.1);
	font-size: 12px;
	font-style: normal;
	font-weight: 800;
}

.fg-user-hero-panel em.is-ok {
	border-color: rgba(245, 158, 11, 0.2);
	color: #b77900;
	background: rgba(245, 158, 11, 0.11);
}

.fg-user-feature-grid,
.fg-user-stats-v3 {
	display: grid;
	gap: 10px;
}

.fg-user-feature-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding: 16px 4px 4px;
}

.fg-user-feature-grid button,
.fg-user-feature-grid a {
	display: inline-flex;
	min-height: 50px;
	align-items: center;
	justify-content: center;
	gap: 7px;
	border: 0;
	border-radius: 13px;
	padding: 0 10px;
	color: #344057;
	background: rgba(247, 250, 255, 0.82);
	font: inherit;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
}

.fg-user-feature-grid button b,
.fg-user-feature-grid a b {
	display: grid;
	width: 24px;
	height: 24px;
	place-items: center;
	border-radius: 8px;
	color: #2368ff;
	background: rgba(35, 104, 255, 0.1);
	font-size: 12px;
}

.fg-user-feature-grid button.is-active,
.fg-user-feature-grid button:hover,
.fg-user-feature-grid a:hover {
	color: #2368ff;
	background: rgba(35, 104, 255, 0.08);
}

.fg-user-feature-grid .fg-user-logout {
	color: #f04455;
	background: rgba(255, 82, 105, 0.08);
}

.fg-user-feature-grid .fg-user-logout b {
	color: #f04455;
	background: rgba(255, 82, 105, 0.12);
}

.fg-user-stats-v3 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 16px 0;
}

.fg-user-stats-v3 button {
	display: grid;
	min-height: 92px;
	align-content: center;
	gap: 6px;
	border: 1px solid #edf2fb;
	border-radius: 14px;
	padding: 16px;
	color: #17233d;
	background: #fff;
	text-align: left;
	cursor: pointer;
}

.fg-user-stats-v3 small,
.fg-user-stats-v3 span {
	color: #6b7890;
	font-size: 12px;
}

.fg-user-stats-v3 strong {
	color: #17233d;
	font-size: 26px;
	line-height: 1.1;
}

.fg-user-panels {
	border: 1px solid #edf2fb;
	border-radius: 18px;
	background: #fff;
}

.fg-user-section-v3 {
	padding: 22px;
}

.fg-user-section-v3[hidden] {
	display: none;
}

.fg-user-section-v3.is-active {
	display: block;
}

body.fg-night .fg-user-shell-card,
body.fg-night .fg-user-panels,
body.fg-night .fg-user-stats-v3 button,
body.fg-night .fg-user-feature-grid button,
body.fg-night .fg-user-feature-grid a {
	border-color: rgba(255, 255, 255, 0.1);
	background: rgba(21, 27, 39, 0.9);
}

body.fg-night .fg-user-hero-panel {
	color: #f4f7ff;
	background:
		radial-gradient(circle at 18% 16%, rgba(35, 104, 255, 0.22), transparent 34%),
		linear-gradient(135deg, rgba(16, 24, 39, 0.96), rgba(8, 12, 20, 0.94));
}

body.fg-night .fg-user-hero-panel strong,
body.fg-night .fg-user-stats-v3 strong {
	color: #f4f7ff;
}

body.fg-night .fg-user-hero-panel span {
	color: #dbeafe;
}

.fg-member-hero {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 20px;
	border-radius: 20px;
	padding: 27px 30px;
	color: #fff;
	background:
		radial-gradient(circle at 84% 10%, rgba(255, 255, 255, 0.2), transparent 24%),
		linear-gradient(135deg, #2368ff, #08b49b);
	box-shadow: 0 20px 46px rgba(25, 105, 186, 0.2);
}

.fg-user-login-empty {
	display: grid;
	justify-items: center;
	gap: 12px;
	max-width: 560px;
	margin: 36px auto 0;
	border: 1px solid #e7eef8;
	border-radius: 20px;
	padding: 42px 24px;
	text-align: center;
	background:
		radial-gradient(circle at 50% 0, rgba(35, 104, 255, 0.09), transparent 42%),
		#fff;
	box-shadow: 0 18px 44px rgba(33, 70, 120, 0.08);
}

.fg-user-login-empty > span {
	display: grid;
	width: 68px;
	height: 68px;
	place-items: center;
	border-radius: 22px;
	color: #fff;
	background: linear-gradient(135deg, #2368ff, #13b49b);
	box-shadow: 0 14px 30px rgba(35, 104, 255, 0.22);
	font-size: 25px;
	font-weight: 900;
}

.fg-user-login-empty h1 {
	margin: 2px 0 0;
	color: var(--fg-text);
	font-size: 26px;
}

.fg-user-login-empty p {
	max-width: 420px;
	margin: 0;
	color: var(--fg-muted);
	font-size: 13px;
	line-height: 1.75;
}

.fg-user-login-empty div {
	display: flex;
	gap: 10px;
	margin-top: 5px;
}

.fg-user-login-empty button {
	min-width: 128px;
	min-height: 42px;
	border: 1px solid rgba(35, 104, 255, 0.18);
	border-radius: 999px;
	padding: 0 18px;
	color: #2368ff;
	background: #eef5ff;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
}

.fg-user-login-empty button:last-child {
	border-color: #2368ff;
	color: #fff;
	background: linear-gradient(90deg, #32bff6, #1e7fff);
}

.fg-member-avatar {
	display: grid;
	width: 96px;
	height: 96px;
	place-items: center;
	overflow: hidden;
	border: 3px solid rgba(255, 255, 255, 0.72);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
}

.fg-member-avatar img,
.fg-member-avatar .avatar {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fg-member-details {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.fg-member-details > span {
	color: rgba(255, 255, 255, 0.72);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.fg-member-details h1 {
	margin: 0;
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.12;
}

.fg-member-details p {
	max-width: 100%;
	overflow: hidden;
	margin: 0;
	color: rgba(255, 255, 255, 0.8);
	font-size: 13px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fg-member-details em {
	width: max-content;
	max-width: 100%;
	overflow: hidden;
	margin-top: 3px;
	border-radius: 999px;
	padding: 5px 11px;
	color: #fff;
	background: rgba(255, 255, 255, 0.17);
	font-size: 12px;
	font-style: normal;
	font-weight: 800;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fg-member-details em.is-member {
	color: #fff7cf;
	background: rgba(255, 184, 35, 0.24);
}

.fg-member-hero-link {
	display: inline-grid;
	min-width: 132px;
	min-height: 40px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: 999px;
	padding: 0 18px;
	color: #fff;
	background: rgba(255, 255, 255, 0.14);
	font-size: 13px;
	font-weight: 800;
}

.fg-profile-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-top: 16px;
}

.fg-profile-stats a {
	display: grid;
	gap: 5px;
	min-height: 104px;
	align-content: center;
	border: 1px solid #e7eef8;
	border-radius: 16px;
	padding: 17px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(33, 70, 120, 0.06);
}

.fg-profile-stats span,
.fg-profile-stats small {
	color: var(--fg-muted);
	font-size: 12px;
}

.fg-profile-stats strong {
	color: var(--fg-text);
	font-size: 25px;
	line-height: 1.1;
}

.fg-user-function-panel {
	margin-top: 18px;
	border: 1px solid #e7eef8;
	border-radius: 18px;
	padding: 22px;
	background: #fff;
	box-shadow: 0 12px 34px rgba(33, 70, 120, 0.06);
}

.fg-user-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 15px;
}

.fg-user-section-head h2 {
	margin: 0;
	color: var(--fg-text);
	font-size: 19px;
}

.fg-user-section-head span {
	color: var(--fg-muted);
	font-size: 12px;
}

.fg-account-function-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.fg-account-function-grid a {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	align-items: center;
	gap: 3px 10px;
	min-height: 78px;
	border: 1px solid #edf2fa;
	border-radius: 14px;
	padding: 12px;
	background: #f9fbff;
}

.fg-account-function-grid a b {
	display: grid;
	grid-row: span 2;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 13px;
	color: #fff;
	background: linear-gradient(135deg, #2368ff, #31a4ff);
	font-size: 15px;
}

.fg-account-function-grid a strong {
	color: var(--fg-text);
	font-size: 14px;
	line-height: 1.3;
}

.fg-account-function-grid a small {
	overflow: hidden;
	color: var(--fg-muted);
	font-size: 11px;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fg-account-function-grid a:hover,
.fg-account-function-grid a.is-active {
	border-color: rgba(35, 104, 255, 0.22);
	background: #eef5ff;
}

.fg-account-function-grid a.is-danger b {
	background: linear-gradient(135deg, #ff6b6b, #e74055);
}

.fg-account-main {
	margin-top: 18px;
}

.fg-account-card {
	padding: 22px;
	border-radius: 16px;
	background: #fff;
}

.fg-profile-edit-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 18px;
}

.fg-profile-edit-form label {
	display: grid;
	gap: 7px;
	color: var(--fg-muted);
	font-size: 12px;
}

.fg-profile-edit-form input {
	width: 100%;
	min-height: 42px;
	border: 1px solid #e5edf8;
	border-radius: 12px;
	padding: 0 12px;
	color: var(--fg-text);
	background: #f9fbff;
}

.fg-profile-edit-form input:focus {
	border-color: #6ba8ff;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(35, 104, 255, 0.1);
}

.fg-profile-edit-form button {
	grid-column: 1 / -1;
	min-height: 42px;
	border: 0;
	border-radius: 12px;
	color: #fff;
	background: linear-gradient(90deg, #32bff6, #1e7fff);
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
}

.fg-profile-edit-form button:disabled {
	cursor: wait;
	opacity: 0.6;
}

.fg-profile-edit-form small {
	grid-column: 1 / -1;
	color: #e25555;
	font-size: 12px;
}

.fg-profile-edit-form small:empty {
	display: none;
}

.fg-profile-edit-form small.is-valid {
	color: #159966;
}

.fg-profile-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.fg-profile-grid div {
	display: grid;
	gap: 5px;
	border: 1px solid #edf2fa;
	border-radius: 12px;
	padding: 13px;
	background: #f9fbff;
}

.fg-profile-grid span {
	color: var(--fg-muted);
	font-size: 12px;
}

.fg-profile-grid strong {
	overflow: hidden;
	color: var(--fg-text);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fg-account-action-row {
	margin: 16px 0 0;
}

.fg-account-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.fg-account-table-scroll .fg-order-table {
	min-width: 720px;
}

body.fg-night .fg-profile-stats a,
body.fg-night .fg-user-function-panel,
body.fg-night .fg-account-card,
body.fg-night .fg-profile-grid div,
body.fg-night .fg-account-function-grid a {
	border-color: rgba(255, 255, 255, 0.1);
	background: #151b27;
}

body.fg-night .fg-profile-stats strong,
body.fg-night .fg-user-section-head h2,
body.fg-night .fg-account-function-grid a strong,
body.fg-night .fg-profile-grid strong {
	color: #f4f7ff;
}

body.fg-night .fg-account-function-grid a:hover,
body.fg-night .fg-account-function-grid a.is-active {
	border-color: rgba(96, 165, 250, 0.3);
	background: rgba(37, 99, 235, 0.16);
}

body.fg-night .fg-profile-edit-form input {
	border-color: rgba(255, 255, 255, 0.14);
	color: #f4f7ff;
	background: rgba(255, 255, 255, 0.06);
}

body.fg-night .fg-auth-dialog {
	background: #151b27;
}

body.fg-night .fg-auth-brand strong,
body.fg-night .fg-auth-tabs button.is-active,
body.fg-night .fg-auth-form h2 {
	color: #f4f7ff;
}

body.fg-night .fg-auth-form input {
	border-color: rgba(255, 255, 255, 0.14);
	color: #fff;
	background: rgba(255, 255, 255, 0.07);
}

@media (max-width: 760px) {
	.fg-auth-modal {
		align-items: center;
		padding: 14px;
		overflow-y: auto;
	}

	.fg-auth-dialog {
		width: min(100%, 360px);
		max-height: calc(100dvh - 28px);
		overflow-y: auto;
		padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
		border-radius: 20px;
	}

	.fg-auth-close {
		top: 10px;
		right: 10px;
		width: 34px;
		height: 34px;
		border-radius: 50%;
		color: #8d99ab;
		background: #f0f4fa;
		line-height: 34px;
	}

	.fg-auth-brand {
		justify-content: center;
		margin-bottom: 15px;
		text-align: left;
	}

	.fg-auth-brand .fg-brand-mark {
		width: 46px;
		height: 46px;
		flex-basis: 46px;
		font-size: 21px;
	}

	.fg-auth-brand strong {
		font-size: 17px;
	}

	.fg-auth-tabs {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
		border-radius: 0;
		padding: 0;
		background: transparent;
	}

	.fg-auth-tabs button {
		min-height: 35px;
		border-radius: 0;
		font-size: 16px;
	}

	.fg-auth-tabs button.is-active {
		border-bottom-color: #2d8cff;
		background: transparent;
		box-shadow: none;
	}

	.fg-auth-form.is-active {
		gap: 10px;
	}

	.fg-auth-form h2 {
		font-size: 21px;
	}

	.fg-auth-form input[type="text"],
	.fg-auth-form input[type="password"],
	.fg-auth-form input[type="email"],
	.fg-profile-edit-form input {
		min-height: 44px;
		font-size: 16px;
	}

	.fg-auth-submit {
		width: 100%;
		min-height: 44px;
		border-radius: 14px;
	}

	.fg-user-center-shell {
		width: calc(100% - 24px);
		max-width: 430px;
	}

	.fg-user-shell-card {
		padding: 12px;
		border-radius: 18px;
	}

	.fg-user-hero-panel {
		min-height: 192px;
		border-radius: 16px;
	}

	.fg-user-feature-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		padding: 12px 0 0;
	}

	.fg-user-feature-grid button,
	.fg-user-feature-grid a {
		min-height: 50px;
		font-size: 13px;
	}

	.fg-user-stats-v3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
		margin: 12px 0;
	}

	.fg-user-stats-v3 button {
		min-height: 82px;
		padding: 14px;
	}

	.fg-user-section-v3 {
		padding: 16px;
	}

	.fg-user-panels {
		border-radius: 16px;
	}

	.fg-member-hero {
		grid-template-columns: 76px minmax(0, 1fr);
		align-items: center;
		justify-items: stretch;
		gap: 12px;
		padding: 18px;
		text-align: left;
	}

	.fg-user-login-empty {
		margin-top: 18px;
		padding: 32px 18px;
		border-radius: 18px;
	}

	.fg-user-login-empty h1 {
		font-size: 23px;
	}

	.fg-user-login-empty div {
		width: 100%;
	}

	.fg-user-login-empty button {
		min-width: 0;
		flex: 1;
		padding: 0 12px;
	}

	.fg-member-avatar {
		width: 76px;
		height: 76px;
	}

	.fg-member-details {
		justify-items: start;
		align-content: center;
	}

	.fg-member-details h1 {
		font-size: 24px;
	}

	.fg-member-details p {
		max-width: calc(100vw - 70px);
		font-size: 12px;
	}

	.fg-member-hero-link {
		grid-column: 1 / -1;
		width: 100%;
		max-width: none;
	}

	.fg-profile-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
	}

	.fg-profile-stats a {
		min-height: 91px;
		padding: 14px;
	}

	.fg-profile-stats strong {
		font-size: 22px;
	}

	.fg-user-function-panel {
		padding: 16px;
		border-radius: 16px;
	}

	.fg-user-section-head {
		align-items: flex-start;
	}

	.fg-user-section-head h2 {
		font-size: 18px;
	}

	.fg-user-section-head span {
		max-width: 48%;
		text-align: right;
	}

	.fg-account-function-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.fg-account-function-grid a {
		grid-template-columns: 38px minmax(0, 1fr);
		min-height: 82px;
		padding: 10px;
	}

	.fg-account-function-grid a b {
		width: 38px;
		height: 38px;
		border-radius: 12px;
	}

	.fg-account-function-grid a strong {
		font-size: 13px;
	}

	.fg-account-function-grid a small {
		font-size: 11px;
	}

	.fg-account-main {
		gap: 14px;
	}

	.fg-account-card {
		padding: 17px;
		border-radius: 16px;
	}

	.fg-profile-edit-form,
	.fg-profile-grid {
		grid-template-columns: 1fr;
	}

	.fg-profile-edit-form button,
	.fg-profile-edit-form small {
		grid-column: auto;
	}

	.fg-account-table-scroll {
		margin: 0 -4px;
	}
}
