/* ==========================================================================
   هوية — نظام التصميم
   ========================================================================== */

:root {
	--c-primary: #0f5257;
	--c-accent: #e8a33d;
	--c-verified: #1d9bf0;

	--bg: #f6f5f1;
	--surface: #ffffff;
	--surface-2: #f0eee8;
	--text: #14201f;
	--muted: #5d6b6a;
	--border: #e6e2d9;
	--link: var(--c-primary);
	--primary-ink: color-mix(in srgb, var(--c-primary) 78%, #000);
	--primary-soft: color-mix(in srgb, var(--c-primary) 9%, transparent);
	--accent-soft: color-mix(in srgb, var(--c-accent) 16%, transparent);
	--hero-bg: color-mix(in srgb, var(--c-primary) 82%, #021012);

	--font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
	--font-head: "Readex Pro", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;

	--r-sm: 10px;
	--r: 16px;
	--r-lg: 24px;
	--shadow-sm: 0 1px 2px rgba(16, 24, 24, .05), 0 1px 1px rgba(16, 24, 24, .03);
	--shadow: 0 10px 30px -12px rgba(15, 40, 40, .18), 0 2px 6px rgba(15, 40, 40, .05);
	--shadow-lg: 0 30px 60px -20px rgba(10, 40, 40, .35);
	--container: 1240px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

[data-mode="dark"] {
	--bg: #0a1212;
	--surface: #101c1c;
	--surface-2: #162525;
	--text: #e8eeed;
	--muted: #93a4a2;
	--border: #1f3131;
	--link: color-mix(in srgb, var(--c-primary) 45%, #fff);
	--primary-soft: color-mix(in srgb, var(--c-primary) 28%, transparent);
	--accent-soft: color-mix(in srgb, var(--c-accent) 18%, transparent);
	--hero-bg: color-mix(in srgb, var(--c-primary) 45%, #030909);
	--shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
	--shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.75;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	transition: background .3s, color .3s;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-accent); }
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.35; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
mark { background: none; color: var(--c-accent); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--c-accent); color: #111; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 999;
	inset-inline-start: 12px; top: 12px; padding: 10px 16px; background: var(--surface); border-radius: 8px;
}
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container.narrow, .narrow { max-width: 860px; }
.center { text-align: center; }
.mt { margin-top: 28px; }
.empty { color: var(--muted); }

.hw-icon { width: 1.15em; height: 1.15em; flex: none; }
.hw-icon.flip { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .72em 1.35em; border-radius: 999px; border: 1.5px solid transparent;
	font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer; white-space: nowrap;
	transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--c-primary); color: #fff; box-shadow: 0 6px 18px -8px var(--c-primary); }
.btn-primary:hover { background: var(--primary-ink); color: #fff; }
.btn-accent { background: var(--c-accent); color: #1b1406; box-shadow: 0 8px 20px -10px var(--c-accent); }
.btn-accent:hover { color: #1b1406; filter: brightness(1.05); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--c-primary); color: var(--link); }
.btn-sm { padding: .55em 1.05em; font-size: .88rem; }
.btn-lg { padding: .95em 1.8em; font-size: 1.02rem; }
.btn-block { width: 100%; }

.icon-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
	border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
	transition: background .2s, border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--c-primary); color: var(--link); }

/* ---------- Chips ---------- */
.chip {
	display: inline-flex; align-items: center; gap: .4em; padding: .32em .9em; border-radius: 999px;
	background: var(--primary-soft); color: var(--link); font-size: .85rem; font-weight: 500;
	border: 1px solid transparent; transition: all .2s;
}
.chip:hover { background: var(--c-primary); color: #fff; }
.chip-soft { background: var(--accent-soft); color: color-mix(in srgb, var(--c-accent) 60%, var(--text)); }
.chip-soft:hover { background: var(--c-accent); color: #1b1406; }
.chip-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .16); }
.chip-ghost:hover { background: #fff; color: var(--c-primary); }
.chip-lg { padding: .6em 1.15em; font-size: .95rem; background: var(--surface); border-color: var(--border); color: var(--text); }
.chip-lg small { color: var(--muted); font-size: .8em; }
.chip-lg .hw-icon { color: var(--c-accent); }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Verified badge ---------- */
.verified { display: inline-flex; color: var(--c-verified); vertical-align: middle; margin-inline-start: .3em; }
.verified svg { width: 1.05em; height: 1.05em; }
.verified.lg svg { width: .8em; height: .8em; }

/* ---------- Card ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-sm); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { border-color: var(--border); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .35); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark svg { width: 40px; height: 40px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; letter-spacing: -.02em; }
.custom-logo { max-height: 46px; width: auto; }

.main-nav { flex: 1; }
.main-nav .menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav .menu > li { position: relative; }
.main-nav .menu a { display: block; padding: 8px 14px; border-radius: 10px; color: var(--text); font-weight: 500; font-size: .96rem; }
.main-nav .menu a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--link); background: var(--primary-soft); }
.main-nav .sub-menu {
	position: absolute; top: 100%; inset-inline-start: 0; min-width: 210px; list-style: none; margin: 0; padding: 8px;
	background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.js-mode .i-sun, [data-mode="dark"] .js-mode .i-moon { display: none; }
[data-mode="dark"] .js-mode .i-sun { display: inline; }
.menu-toggle { display: none; }
.menu-toggle .i-close, .nav-open .menu-toggle .i-open { display: none; }
.nav-open .menu-toggle .i-close { display: inline; }

/* ---------- Search overlay ---------- */
.search-overlay {
	position: fixed; inset: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 70%, transparent);
	backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); padding-top: 14vh;
	animation: fade .25s var(--ease);
}
.search-overlay-inner { max-width: 820px; position: relative; }
.search-close { position: absolute; top: -64px; inset-inline-end: 24px; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Search box ---------- */
.search-box { position: relative; width: 100%; }
.search-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.search-tab input { position: absolute; opacity: 0; pointer-events: none; }
.search-tab span {
	display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: .88rem; font-weight: 500; cursor: pointer;
	color: var(--muted); border: 1px solid var(--border); background: var(--surface); transition: all .2s;
}
.search-tab input:checked + span { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.search-tab input:focus-visible + span { outline: 2px solid var(--c-accent); }
.search-field {
	display: flex; align-items: center; gap: 10px; padding: 7px; padding-inline-start: 18px;
	background: var(--surface); border: 1.5px solid var(--border); border-radius: 999px; box-shadow: var(--shadow);
	transition: border-color .2s, box-shadow .2s;
}
.search-field:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 5px var(--primary-soft), var(--shadow); }
.search-field .search-icon { color: var(--muted); }
.search-field input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; padding: 8px 0; font-size: 1rem; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-box.lg .search-field { padding: 9px; padding-inline-start: 22px; }
.search-box.lg .search-field input { font-size: 1.08rem; padding: 10px 0; }
.search-box.lg .btn { padding: .9em 1.8em; }

.live-results {
	position: absolute; top: calc(100% + 10px); inset-inline: 0; z-index: 30; padding: 8px;
	background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg);
	max-height: 440px; overflow: auto; text-align: start;
}
.live-results a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text); }
.live-results a:hover, .live-results a.is-focus { background: var(--surface-2); }
.live-results .lr-thumb { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.live-results .lr-thumb.sq { border-radius: 10px; }
.live-results .lr-text { min-width: 0; flex: 1; }
.live-results strong { display: block; font-weight: 600; font-size: .95rem; }
.live-results small { display: block; color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-results .lr-type { font-size: .72rem; padding: 2px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--link); flex: none; }
.live-results .lr-all { justify-content: center; color: var(--link); font-weight: 600; border-top: 1px solid var(--border); border-radius: 0 0 12px 12px; margin-top: 4px; }
.live-results .lr-empty { padding: 18px; text-align: center; color: var(--muted); }
.live-results .lr-loading { height: 3px; margin: 6px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--c-accent), transparent); background-size: 200% 100%; animation: load 1s linear infinite; }
@keyframes load { to { background-position: -200% 0; } }

/* ---------- Decorative backgrounds ---------- */
.hero-bg, .page-hero-bg, .profile-cover { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.orb.o1 { width: 520px; height: 520px; background: var(--c-accent); top: -260px; inset-inline-start: -120px; opacity: .28; }
.orb.o2 { width: 460px; height: 460px; background: color-mix(in srgb, var(--c-primary) 50%, #4fd1c5); bottom: -240px; inset-inline-end: -80px; opacity: .45; }
.grid-lines {
	position: absolute; inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--hero-bg); color: #fff; overflow: hidden; padding: 84px 0 120px; }
.hero-inner > * { min-width: 0; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.kicker {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 500;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; margin-bottom: 22px;
}
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 4px rgba(232, 163, 61, .25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(232, 163, 61, 0); } }
.hero-title { font-size: clamp(2.2rem, 4.6vw, 3.7rem); font-weight: 700; line-height: 1.2; margin-bottom: 18px; }
.hero-title mark { position: relative; color: var(--c-accent); }
.hero-title mark::after { content: ""; position: absolute; inset-inline: 0; bottom: .06em; height: .14em; border-radius: 4px; background: currentColor; opacity: .35; }
.hero-text { font-size: 1.12rem; color: rgba(255, 255, 255, .78); max-width: 560px; margin-bottom: 30px; }
.hero .search-tab span { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .85); }
.hero .search-tab input:checked + span { background: #fff; color: var(--c-primary); border-color: #fff; }
.hero .search-field { border-color: transparent; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .55); }
.hero .search-field input { color: var(--text); }
.trending { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; font-size: .9rem; color: rgba(255, 255, 255, .65); }

.hero-visual { position: relative; height: 430px; }
.id-card {
	position: absolute; inset-inline-start: 50%; top: 50%; width: 290px; transform: translate(50%, -50%) rotate(-4deg);
	background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
	border: 1px solid rgba(255, 255, 255, .22); border-radius: 26px; padding: 22px; backdrop-filter: blur(8px);
	box-shadow: var(--shadow-lg);
}
[dir="ltr"] .id-card { transform: translate(-50%, -50%) rotate(-4deg); }
.id-card-head { display: flex; gap: 6px; margin-bottom: 22px; }
.id-card-head span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.id-card-avatar { width: 86px; height: 86px; border-radius: 24px; display: grid; place-items: center; background: linear-gradient(135deg, var(--c-accent), #f6c77a); color: #3a2604; margin-bottom: 18px; }
.id-card-avatar .hw-icon { width: 44px; height: 44px; }
.id-line { height: 11px; border-radius: 6px; background: rgba(255, 255, 255, .3); margin-bottom: 10px; }
.id-line.w70 { width: 70%; background: rgba(255, 255, 255, .55); }
.id-line.w45 { width: 45%; }
.id-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.id-grid i { height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .1); }
.id-stamp {
	position: absolute; inset-inline-end: -18px; top: 26px; display: inline-flex; align-items: center; gap: 6px;
	padding: 7px 13px; border-radius: 999px; background: var(--c-verified); color: #fff; font-size: .8rem; font-weight: 600; transform: rotate(6deg);
	box-shadow: 0 10px 24px -8px var(--c-verified);
}
.float-card {
	position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; min-width: 230px;
	background: var(--surface); color: var(--text); border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
	animation: float 6s ease-in-out infinite;
}
.float-card .avatar { width: 46px; height: 46px; font-size: .9rem; }
.float-card strong { display: block; font-size: .92rem; font-weight: 600; }
.float-card span:not(.avatar):not(.verified) { display: block; font-size: .78rem; color: var(--muted); }
.fc-1 { top: 6px; inset-inline-start: 0; }
.fc-2 { top: 44%; inset-inline-end: -30px; animation-delay: -2s; }
.fc-3 { bottom: 0; inset-inline-start: 40px; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Stats ---------- */
.stats-wrap { position: relative; margin-top: -58px; z-index: 3; }
.stats {
	display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden;
}
.stat { display: flex; align-items: center; gap: 16px; padding: 26px 28px; }
.stat + .stat { border-inline-start: 1px solid var(--border); }
.stat-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); color: var(--link); flex: none; }
.stat-icon .hw-icon { width: 24px; height: 24px; }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-tint { background: var(--surface-2); }
[data-mode="dark"] .section-tint { background: color-mix(in srgb, var(--surface) 60%, var(--bg)); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-title { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; margin: 0; position: relative; }
.section-sub { color: var(--muted); margin: 6px 0 0; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link-more .hw-icon { transition: transform .2s; }
.link-more:hover .hw-icon { transform: translateX(-4px); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.list-rows { gap: 14px; }

/* ---------- Avatar ---------- */
.avatar { position: relative; display: inline-grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--surface-2); flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.is-company { border-radius: 22%; }
.avatar.is-company img { object-fit: contain; padding: 12%; background: #fff; }
.avatar.is-initials {
	background: linear-gradient(135deg, hsl(var(--h) 45% 42%), hsl(calc(var(--h) + 40) 55% 32%));
	color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.6rem;
}
.avatar.is-initials span { letter-spacing: .02em; }

/* ---------- Profile card ---------- */
.profile-card {
	position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 20px 22px;
	transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.profile-card::before {
	content: ""; position: absolute; inset: 0 0 auto; height: 74px; border-radius: var(--r-lg) var(--r-lg) 0 0;
	background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft)); opacity: .9;
}
.profile-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c-primary) 35%, var(--border)); }
.stretched { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.pc-media { position: relative; width: 96px; margin-bottom: 14px; }
.pc-media .avatar { box-shadow: 0 0 0 4px var(--surface), 0 8px 20px -8px rgba(0, 0, 0, .3); }
.pc-body { position: relative; min-width: 0; width: 100%; }
.pc-title { font-size: 1.05rem; margin: 0 0 4px; font-weight: 600; }
.pc-sub { color: var(--muted); font-size: .88rem; line-height: 1.6; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.pc-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.pc-meta > span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); }
.pc-meta .pc-type { background: var(--primary-soft); color: var(--link); }
.pc-meta .pc-type.is-co { background: var(--accent-soft); color: color-mix(in srgb, var(--c-accent) 55%, var(--text)); }
.pc-meta .hw-icon { width: 13px; height: 13px; }

.profile-card.style-row { flex-direction: row; text-align: start; align-items: center; gap: 16px; padding: 16px; border-radius: var(--r); }
.profile-card.style-row::before { display: none; }
.profile-card.style-row .pc-media { width: 64px; margin: 0; }
.profile-card.style-row .pc-media .avatar { box-shadow: none; font-size: 1.1rem; }
.profile-card.style-row .pc-sub { min-height: 0; -webkit-line-clamp: 1; margin-bottom: 6px; }
.profile-card.style-row .pc-meta { justify-content: flex-start; }

.profile-card.style-mini { padding: 16px 12px; border-radius: var(--r); }
.profile-card.style-mini::before { height: 44px; border-radius: var(--r) var(--r) 0 0; }
.profile-card.style-mini .pc-media { width: 64px; margin-bottom: 8px; }
.profile-card.style-mini .avatar { font-size: 1.1rem; }
.profile-card.style-mini .pc-title { font-size: .95rem; }
.profile-card.style-mini .pc-sub { min-height: 0; margin: 0; font-size: .8rem; }

/* ---------- Fields ---------- */
.fields-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.field-card {
	position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--r-lg);
	background: var(--surface); border: 1px solid var(--border); color: var(--text); overflow: hidden; transition: all .3s var(--ease);
}
.field-card::after {
	content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; inset-inline-end: -40px; bottom: -50px;
	background: var(--primary-soft); transition: transform .4s var(--ease);
}
.field-card:hover { color: var(--text); transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.field-card:hover::after { transform: scale(1.8); }
.field-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--c-primary); color: #fff; margin-bottom: 10px; position: relative; z-index: 1; }
.field-card:nth-child(3n+2) .field-icon { background: var(--c-accent); color: #2b1d05; }
.field-card:nth-child(3n+3) .field-icon { background: color-mix(in srgb, var(--c-primary) 55%, #3fb6a8); }
.field-card strong { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; position: relative; z-index: 1; }
.field-count { color: var(--muted); font-size: .85rem; position: relative; z-index: 1; }

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.tab { border: 0; background: none; padding: 8px 20px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--muted); transition: all .2s; }
.tab.is-active { background: var(--c-primary); color: #fff; }
.tab-panel { display: none; animation: fade .3s; }
.tab-panel.is-active { display: block; }

/* ---------- Split / Born today ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
.born-today { padding: 0; overflow: hidden; }
.born-head { display: flex; align-items: center; gap: 14px; padding: 22px 24px; background: linear-gradient(135deg, var(--c-accent), color-mix(in srgb, var(--c-accent) 60%, #f05d5e)); color: #2a1a04; }
.born-head h3 { margin: 0; font-size: 1.08rem; }
.born-head span { font-size: .88rem; opacity: .8; }
.born-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .35); }
.born-icon .hw-icon { width: 26px; height: 26px; }
.born-list, .rank-list { list-style: none; margin: 0; padding: 10px; }
.born-list a, .rank-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text); }
.born-list a:hover, .rank-list a:hover { background: var(--surface-2); }
.born-list .avatar, .rank-list .avatar { width: 46px; font-size: .9rem; }
.born-list strong, .rank-list strong { display: block; font-weight: 600; font-size: .95rem; }
.born-list em, .rank-list em { display: block; font-style: normal; color: var(--muted); font-size: .82rem; }
.rank-list { counter-reset: r; padding: 0; }
.rank-list li { counter-increment: r; position: relative; }
.rank-list li::before { content: counter(r); position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--border); }

/* ---------- Post card ---------- */
.post-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.05); }
.post-ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .7); background: linear-gradient(135deg, hsl(var(--h) 40% 35%), hsl(calc(var(--h) + 50) 50% 25%)); }
.post-ph .hw-icon { width: 42px; height: 42px; }
.post-cat { position: absolute; top: 14px; inset-inline-start: 14px; padding: 4px 12px; border-radius: 999px; background: var(--surface); font-size: .78rem; font-weight: 600; color: var(--link); z-index: 1; }
.post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-title { font-size: 1.08rem; line-height: 1.55; margin-bottom: 8px; }
.post-excerpt { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.post-meta { margin-top: auto; display: flex; gap: 16px; color: var(--muted); font-size: .8rem; }
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-meta .hw-icon { width: 14px; height: 14px; }
.post-card.style-row { flex-direction: row; border-radius: var(--r); }
.post-card.style-row .post-media { width: 150px; aspect-ratio: auto; flex: none; }
.post-card.style-row .post-cat { display: none; }
.post-card.style-row .post-body { padding: 14px 18px; }
.post-card.style-row .post-title { font-size: .98rem; }
.news-layout { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: repeat(3, auto); gap: 14px; }
.news-layout .style-lead { grid-row: span 3; }
.news-layout .style-lead .post-media { aspect-ratio: 16 / 11; }
.news-layout .style-lead .post-title { font-size: 1.3rem; }

/* ---------- CTA ---------- */
.cta {
	position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center; overflow: hidden;
	padding: 48px 52px; border-radius: 32px; color: #fff; background: var(--hero-bg);
	box-shadow: var(--shadow-lg);
}
.cta::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--c-accent); filter: blur(90px); opacity: .25; inset-inline-end: -100px; top: -160px; }
.cta-art { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.cta-art .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .25); animation: spin 22s linear infinite; }
.cta-art .ring.r2 { inset: 16px; border-style: solid; border-color: rgba(255, 255, 255, .12); animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta-badge { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--c-verified); box-shadow: 0 12px 30px -10px var(--c-verified); }
.cta-badge .hw-icon { width: 32px; height: 32px; }
.cta-copy { position: relative; }
.cta h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 8px; }
.cta p { color: rgba(255, 255, 255, .75); margin-bottom: 14px; max-width: 620px; }
.cta-points { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.cta-points li { display: inline-flex; align-items: center; gap: 6px; }
.cta-points .hw-icon { color: var(--c-accent); }
.cta .btn { position: relative; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; background: var(--hero-bg); color: #fff; padding: 36px 0 56px; overflow: hidden; }
.page-hero.compact { padding-bottom: 40px; }
.page-hero .container { position: relative; }
.page-title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 700; margin: 0 0 8px; }
.page-desc { color: rgba(255, 255, 255, .75); max-width: 680px; font-size: 1.05rem; }
.page-desc p { margin: 0; }
.center .page-desc { margin-inline: auto; }
.page-count { display: inline-block; margin: 10px 0 0; padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: .88rem; }
.kicker.light { margin-bottom: 12px; }
.page-search { margin-top: 24px; max-width: 760px; }
.page-search .search-tab span { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
.page-search .search-tab input:checked + span { background: #fff; color: var(--c-primary); }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; margin-bottom: 22px; color: rgba(255, 255, 255, .6); }
.breadcrumbs a { color: rgba(255, 255, 255, .85); }
.breadcrumbs a:hover { color: var(--c-accent); }
.breadcrumbs i { font-style: normal; opacity: .4; }
.article-head .breadcrumbs { color: var(--muted); }
.article-head .breadcrumbs a { color: var(--muted); }

/* ---------- Archive / filters ---------- */
.archive-wrap { padding-bottom: 80px; }
.filters { position: relative; z-index: 4; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-top: -28px; padding: 18px 22px; box-shadow: var(--shadow); border-radius: var(--r-lg); }
.f-item { display: flex; flex-direction: column; gap: 4px; min-width: 180px; flex: 1; }
.f-item > span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.filters select {
	appearance: none; -webkit-appearance: none; width: 100%; padding: 10px 14px; padding-inline-end: 36px; border-radius: 12px; border: 1px solid var(--border);
	background: var(--surface-2) 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='%23888' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 14px center;
	cursor: pointer;
}
[dir="ltr"] .filters select { background-position: right 14px center; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; padding: 10px 4px; font-weight: 500; font-size: .92rem; }
.switch input { position: absolute; opacity: 0; }
.switch-ui { position: relative; width: 44px; height: 24px; border-radius: 999px; background: var(--border); transition: background .2s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s var(--ease); }
.switch input:checked + .switch-ui { background: var(--c-verified); }
.switch input:checked + .switch-ui::after { transform: translateX(-20px); }
[dir="ltr"] .switch input:checked + .switch-ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.link-small { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 500; }
.filters .reset { padding: 10px 0; color: #d9534f; }

.letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 28px; }
.letters a {
	min-width: 38px; height: 38px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 11px;
	background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: .92rem;
}
.letters a:hover { border-color: var(--c-primary); color: var(--link); }
.letters a.is-active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

.pagination { margin-top: 44px; }
.pagination .nav-links, .pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; }
.pagination .page-numbers.current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--c-primary); color: var(--link); }

.empty-state { text-align: center; padding: 56px 24px; max-width: 640px; margin: 20px auto; }
.empty-icon { width: 72px; height: 72px; border-radius: 22px; display: inline-grid; place-items: center; background: var(--primary-soft); color: var(--link); margin-bottom: 18px; }
.empty-icon .hw-icon { width: 34px; height: 34px; }
.empty-state p { color: var(--muted); }
.empty-state .search-tabs { justify-content: center; }

/* ---------- Profile single ---------- */
.profile-hero { position: relative; padding-top: 30px; }
.profile-cover { height: 250px; bottom: auto; background: var(--hero-bg); }
.profile-hero .container { position: relative; }
.profile-head { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; margin-top: 74px; padding: 30px 34px; border-radius: 28px; box-shadow: var(--shadow); }
.profile-avatar { width: 160px; margin-top: -84px; align-self: start; }
.profile-avatar .avatar { box-shadow: 0 0 0 6px var(--surface), 0 18px 40px -16px rgba(0, 0, 0, .45); font-size: 2.6rem; }
.profile-type { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .86rem; font-weight: 500; margin-bottom: 4px; }
.tag-verified { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: .78rem; background: color-mix(in srgb, var(--c-verified) 12%, transparent); color: var(--c-verified); }
.tag-verified .hw-icon { width: 14px; height: 14px; }
.profile-name { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; margin: 0; }
.profile-en { color: var(--muted); margin: 0 0 6px; font-size: .98rem; text-align: right; letter-spacing: .01em; }
.profile-headline { font-size: 1.06rem; margin: 6px 0 14px; }
.profile-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: 190px; }
.profile-views { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: .86rem; }

.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; padding-top: 28px; padding-bottom: 70px; }
.profile-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.profile-nav {
	position: sticky; top: 86px; z-index: 5; display: flex; gap: 4px; overflow-x: auto; padding: 6px; border-radius: 999px;
	background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--border); scrollbar-width: none;
}
.admin-bar .profile-nav { top: 118px; }
.profile-nav a { padding: 7px 18px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.profile-nav a.is-active { background: var(--c-primary); color: #fff; }
.block { scroll-margin-top: 150px; }
.card.block { padding: 28px 30px; border-radius: var(--r-lg); }
.block-title { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin-bottom: 18px; }
.block-title .hw-icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--primary-soft); color: var(--link); }
.block-title.plain { margin-top: 6px; }
.updated { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .82rem; margin: 18px 0 0; padding-top: 16px; border-top: 1px dashed var(--border); }
.updated .hw-icon { width: 15px; height: 15px; }

.profile-quote { position: relative; margin: 22px 0 0; padding: 24px 28px; border-radius: var(--r); background: linear-gradient(135deg, var(--accent-soft), var(--primary-soft)); }
.profile-quote .hw-icon { width: 34px; height: 34px; color: var(--c-accent); margin-bottom: 6px; }
.profile-quote p { font-family: var(--font-head); font-size: 1.18rem; line-height: 1.7; margin-bottom: 8px; }
.profile-quote cite { font-style: normal; color: var(--muted); font-size: .9rem; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 19px; width: 2px; background: linear-gradient(var(--c-primary), var(--border)); opacity: .35; }
.timeline li { position: relative; display: flex; gap: 18px; padding-bottom: 22px; }
.timeline li:last-child { padding-bottom: 0; }
.tl-dot { position: relative; z-index: 1; flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--border); color: var(--link); }
.tl-dot .hw-icon { width: 18px; height: 18px; }
.timeline li:first-child .tl-dot { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.tl-body { display: flex; flex-direction: column; padding-top: 2px; }
.tl-when { font-size: .8rem; font-weight: 600; color: color-mix(in srgb, var(--c-accent) 70%, var(--text)); }
.tl-title { font-size: 1.02rem; font-weight: 600; }
.tl-where { color: var(--muted); font-size: .9rem; }

.profile-side { display: flex; flex-direction: column; gap: 20px; }
.sticky { position: sticky; top: 96px; }
.widget-title { font-size: 1.05rem; margin-bottom: 14px; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.info-list li:last-child { border-bottom: 0; }
.info-list .k { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); white-space: nowrap; }
.info-list .k .hw-icon { width: 16px; height: 16px; color: var(--link); opacity: .8; }
.info-list .v { font-weight: 500; text-align: end; }
.info-list small { color: var(--muted); font-weight: 400; }
.info-socials { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--border); }
.info-socials > span { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 10px; }

.socials, .share { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a, .share a, .share button {
	width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--border);
	background: var(--surface); color: var(--text); cursor: pointer; transition: all .2s;
}
.socials a:hover, .share a:hover, .share button:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; transform: translateY(-2px); }
.socials .hw-icon, .share .hw-icon { width: 18px; height: 18px; }

.claim-card { text-align: center; background: linear-gradient(160deg, var(--surface), var(--surface-2)); }
.claim-icon { width: 56px; height: 56px; border-radius: 18px; display: inline-grid; place-items: center; background: var(--c-verified); color: #fff; margin-bottom: 12px; box-shadow: 0 12px 26px -12px var(--c-verified); }
.claim-icon .hw-icon { width: 28px; height: 28px; }
.claim-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.claim-card p { color: var(--muted); font-size: .9rem; }
.claim-card .link-small { margin-top: 12px; color: var(--muted); }
.claim-card.dark { background: var(--hero-bg); color: #fff; border-color: transparent; }
.claim-card.dark p { color: rgba(255, 255, 255, .7); }

/* ---------- Article ---------- */
.article-head { padding-top: 36px; padding-bottom: 20px; }
.article-title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; margin: 14px 0 12px; }
.article-lead { font-size: 1.15rem; color: var(--muted); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; color: var(--muted); font-size: .88rem; margin-top: 16px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .author img { border-radius: 50%; }
.article-meta .author { color: var(--text); font-weight: 600; }
.article-cover { margin: 16px auto 30px; }
.article-cover img { width: 100%; border-radius: var(--r-lg); }
.article-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0 36px; margin-top: 30px; border-top: 1px solid var(--border); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .85rem; }

.entry-content { font-size: 1.06rem; line-height: 1.95; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content img { border-radius: var(--r); }
.entry-content blockquote { margin: 1.5em 0; padding: 16px 24px; border-inline-start: 4px solid var(--c-accent); background: var(--surface-2); border-radius: 0 var(--r) var(--r) 0; }
.entry-content a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); text-underline-offset: 4px; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 10px; }
.page-card { padding: 36px 40px; }
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 6px 0; }
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; margin-inline: calc(50% - 50vw); }
.wp-caption-text, figcaption { color: var(--muted); font-size: .85rem; text-align: center; }

/* Comments */
.comments { margin-bottom: 40px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-inline-start: 28px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-author img { border-radius: 50%; float: right; margin-inline-end: 12px; }
.comment-meta { font-size: .85rem; color: var(--muted); }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea {
	width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2);
}
.comment-form p { margin-bottom: 14px; }

/* ---------- Pricing ---------- */
.pricing-hero { padding-bottom: 150px; }
.claim-for { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 8px 18px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.claim-for .avatar { width: 38px; font-size: .8rem; }
.pricing-section { padding-top: 0; margin-top: -110px; position: relative; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 34px 30px; border-radius: 28px; box-shadow: var(--shadow); }
.plan.is-highlight { background: var(--hero-bg); color: #fff; border-color: transparent; transform: translateY(-14px); box-shadow: var(--shadow-lg); }
.plan-flag { position: absolute; top: -14px; inset-inline-start: 30px; padding: 5px 14px; border-radius: 999px; background: var(--c-accent); color: #2a1a04; font-size: .8rem; font-weight: 700; }
.plan-name { font-size: 1.3rem; margin-bottom: 4px; }
.plan-desc { color: var(--muted); font-size: .92rem; }
.plan.is-highlight .plan-desc { color: rgba(255, 255, 255, .7); }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.plan.is-highlight .plan-price { border-color: rgba(255, 255, 255, .15); }
.plan-price strong { font-family: var(--font-head); font-size: 3rem; line-height: 1; font-weight: 700; }
.plan-price span { color: var(--muted); }
.plan.is-highlight .plan-price span { color: rgba(255, 255, 255, .7); }
.plan-features { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.plan-features .hw-icon { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--primary-soft); color: var(--link); margin-top: 2px; }
.plan.is-highlight .plan-features .hw-icon { background: var(--c-accent); color: #2a1a04; }
.plan.is-highlight .btn-outline { border-color: rgba(255, 255, 255, .3); color: #fff; }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); transition: transform .3s var(--ease), box-shadow .3s; }
.benefit:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.benefit-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); color: var(--link); margin-bottom: 16px; }
.benefit-icon .hw-icon { width: 26px; height: 26px; }
.benefit h3 { font-size: 1.1rem; }
.benefit p { color: var(--muted); margin: 0; font-size: .93rem; }

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { padding: 0; border-radius: var(--r); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--primary-soft); }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; background: var(--link); transform: translate(-50%, -50%); transition: transform .25s; }
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .faq-plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* ---------- 404 ---------- */
.not-found { padding: 90px 0 110px; }
.nf-code { display: flex; justify-content: center; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 8rem; font-weight: 700; line-height: 1; color: var(--c-primary); margin-bottom: 20px; }
.nf-code span { width: 110px; height: 110px; border-radius: 34px; display: grid; place-items: center; background: var(--c-accent); color: #2a1a04; transform: rotate(-8deg); }
.nf-code span .hw-icon { width: 56px; height: 56px; }
.not-found p { color: var(--muted); }
.not-found .search-tabs { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: color-mix(in srgb, var(--hero-bg) 92%, #000); color: rgba(255, 255, 255, .72); padding: 70px 0 26px; margin-top: 0; }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand p { margin: 16px 0 18px; font-size: .93rem; max-width: 340px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer .menu { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer .menu a { color: rgba(255, 255, 255, .72); font-size: .93rem; }
.site-footer .menu a:hover { color: var(--c-accent); }
.site-footer .menu.inline { flex-direction: row; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
.site-footer .socials a { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); color: #fff; }
.footer-news p { font-size: .92rem; }
.newsletter { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.newsletter input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; padding: 8px 14px; }
.newsletter input::placeholder { color: rgba(255, 255, 255, .5); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: .86rem; }
.to-top { color: rgba(255, 255, 255, .72); }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 30px); z-index: 200; padding: 12px 22px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; font-size: .92rem; opacity: 0; pointer-events: none; transition: all .3s var(--ease); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hero-inner { grid-template-columns: minmax(0, 1fr); }
	.hero-visual { display: none; }
	.split, .profile-layout, .with-sidebar { grid-template-columns: 1fr; }
	.footer-top { grid-template-columns: 1fr 1fr; }
	.cta { grid-template-columns: 1fr; text-align: center; justify-items: center; }
	.cta-points { justify-content: center; }
	.sticky { position: static; }
}

@media (max-width: 900px) {
	.menu-toggle { display: inline-grid; }
	.main-nav {
		position: fixed; inset: 74px 0 auto; background: var(--surface); border-bottom: 1px solid var(--border);
		padding: 12px 20px 20px; box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s var(--ease);
	}
	.admin-bar .main-nav { top: 120px; }
	.nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
	.main-nav .menu { flex-direction: column; }
	.main-nav .menu a { padding: 12px 14px; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 16px; }
	.header-inner { justify-content: space-between; }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.stat:nth-child(3) { border-inline-start: 0; }
	.stat:nth-child(n+3) { border-top: 1px solid var(--border); }
	.grid-3, .plans, .benefits { grid-template-columns: 1fr 1fr; }
	.plan.is-highlight { transform: none; }
	.profile-head { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 26px 22px; }
	.profile-avatar { width: 140px; margin-top: -96px; align-self: center; }
	.profile-type, .profile-chips { justify-content: center; }
	.profile-en { text-align: center; }
	.profile-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; min-width: 0; }
	.news-layout { grid-template-columns: 1fr; }
	.news-layout .style-lead { grid-row: auto; }
}

@media (max-width: 640px) {
	body { font-size: 15px; }
	.container { padding-inline: 16px; }
	.hide-sm { display: none !important; }
	.hero { padding: 56px 0 96px; }
	.section { padding: 56px 0; }
	.grid-2, .grid-3, .grid-4, .plans, .benefits { grid-template-columns: 1fr; }
	.grid-4:not(.list-rows) { grid-template-columns: 1fr 1fr; gap: 12px; }
	.grid-4 .profile-card { padding: 22px 12px 16px; }
	.grid-4 .pc-media { width: 76px; }
	.grid-4 .pc-meta > span:not(.pc-type) { display: none; }
	.stat { padding: 18px 16px; gap: 10px; }
	.stat-icon { width: 40px; height: 40px; border-radius: 12px; }
	.stat strong { font-size: 1.35rem; }
	.stat span { font-size: .8rem; }
	.search-field .btn { padding: .7em 1em; }
	.search-box.lg .btn { padding: .8em 1.2em; }
	.footer-top { grid-template-columns: 1fr; }
	.fields-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	html, body { overflow-x: hidden; }
	.cta { padding: 36px 24px; border-radius: 24px; }
	.filters { flex-direction: column; align-items: stretch; }
	.post-card.style-row .post-media { width: 110px; }
	.card.block, .page-card { padding: 22px 18px; }
	.nf-code { font-size: 5rem; }
	.nf-code span { width: 76px; height: 76px; border-radius: 24px; }
	.admin-bar .site-header { top: 0; }
}
