/* =========================================================================
   Phong Thủy Cát Tường – main.css v1.0.0
   Đỏ son · Vàng kim · Mực đen · Giấy dó
   ========================================================================= */

:root {
	--ink: #140203;
	--ink-2: #1f0405;
	--lacquer: #2a0506;
	--lacquer-2: #45090b;
	--red: #a3121a;
	--red-2: #c81e26;
	--red-deep: #7a0f12;
	--gold: #d4af37;
	--gold-2: #f3d98b;
	--gold-3: #9c7a1f;
	--paper: #f8efdc;
	--paper-2: #f2e4c6;
	--cream: #fffaf0;
	--text: #2b1a12;
	--text-soft: #6b5446;
	--on-dark: #f5e9c8;
	--on-dark-soft: #cdb98f;
	--el-kim: #e9e4d8;
	--el-thuy: #3f7fd8;
	--el-moc: #3fae66;
	--el-hoa: #e0473f;
	--el-tho: #c99a3c;
	--radius: 14px;
	--radius-lg: 22px;
	--shadow: 0 20px 50px -20px rgba(20, 2, 3, .55);
	--gold-grad: linear-gradient(135deg, #fff1bf 0%, #f3d98b 22%, #d4af37 52%, #a17d1d 78%, #e9cb72 100%);
	--font-display: "Playfair Display", "Times New Roman", serif;
	--font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.7;
	color: var(--text);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-2); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; margin: 0 0 .6em; color: inherit; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 999; top: 8px; left: 8px; padding: 8px 14px; background: var(--gold); color: var(--ink); }

.ptct-container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.ptct-container--narrow { width: min(860px, 100% - 40px); }
.ptct-ico { flex: 0 0 auto; vertical-align: middle; }
.ptct-muted { color: var(--on-dark-soft); font-size: .9rem; }

/* ---------------------------------------------------------------- Buttons */
.ptct-btn {
	--bg: var(--red);
	position: relative;
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .85em 1.6em;
	border: 0; border-radius: 999px;
	font-weight: 700; letter-spacing: .02em; line-height: 1.2; white-space: nowrap;
	color: #fff; background: var(--bg);
	cursor: pointer; overflow: hidden; isolation: isolate;
	transition: transform .25s, box-shadow .25s, filter .25s;
}
.ptct-btn:hover { transform: translateY(-2px); color: #fff; }
.ptct-btn--gold {
	background: var(--gold-grad); background-size: 200% 200%;
	color: #3a0b06 !important;
	box-shadow: 0 10px 30px -10px rgba(212, 175, 55, .7), inset 0 1px 0 rgba(255, 255, 255, .6);
	animation: ptct-gold-shift 6s ease infinite;
}
.ptct-btn--gold::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%);
	transform: translateX(-120%);
	animation: ptct-shine 3.2s ease-in-out infinite;
}
.ptct-btn--red { background: linear-gradient(135deg, var(--red-2), var(--red-deep)); box-shadow: 0 10px 24px -10px rgba(163, 18, 26, .8); }
.ptct-btn--ghost { background: transparent; color: var(--gold-2); box-shadow: inset 0 0 0 1px rgba(212, 175, 55, .6); }
.ptct-btn--ghost:hover { color: var(--ink); background: var(--gold); }
.ptct-btn--sm { padding: .6em 1.15em; font-size: .9rem; }
.ptct-btn--lg { padding: 1.05em 2.2em; font-size: 1.08rem; }
.ptct-btn--block { width: 100%; }
@keyframes ptct-shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes ptct-gold-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------------------------------------------------------------- Header */
.ptct-header {
	position: sticky; top: 0; z-index: 100;
	height: var(--header-h);
	background: rgba(26, 3, 4, .92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(212, 175, 55, .22);
	transition: background .3s, box-shadow .3s;
}
.ptct-home .ptct-header { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; }
.ptct-home .ptct-header.is-scrolled,
.ptct-header.is-scrolled { background: rgba(22, 3, 4, .94); backdrop-filter: blur(12px); border-color: rgba(212, 175, 55, .25); box-shadow: 0 10px 30px -15px #000; }
.admin-bar .ptct-header { top: 32px; }
.ptct-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.ptct-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--on-dark); }
.ptct-logo:hover { color: var(--gold-2); }
.ptct-logo__seal {
	display: grid; place-items: center;
	width: 46px; height: 46px; border-radius: 10px;
	font-family: "Noto Serif SC", "SimSun", serif; font-size: 28px; font-weight: 700;
	color: #fff4d0;
	background: radial-gradient(circle at 30% 25%, #e0353d, #8a0f14 70%);
	box-shadow: inset 0 0 0 2px rgba(255, 220, 140, .55), 0 6px 18px -6px rgba(200, 30, 38, .9);
	transform: rotate(-4deg);
}
.ptct-logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.ptct-logo__text strong { white-space: nowrap; font-family: var(--font-display); font-size: 1.22rem; letter-spacing: .01em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ptct-logo__text small { font-size: .72rem; color: var(--on-dark-soft); letter-spacing: .04em; }
.custom-logo { max-height: 56px; width: auto; }

.ptct-nav { display: flex; align-items: center; gap: 26px; }
.ptct-menu { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.ptct-menu li { position: relative; }
.ptct-menu a { display: block; white-space: nowrap; padding: 10px 14px; color: var(--on-dark); font-weight: 500; font-size: .95rem; border-radius: 8px; }
.ptct-menu a:hover, .ptct-menu .current-menu-item > a { color: var(--gold-2); }
.ptct-menu > li > a::after { content: ""; display: block; height: 2px; margin-top: 4px; background: var(--gold-grad); transform: scaleX(0); transition: transform .3s; }
.ptct-menu > li > a:hover::after, .ptct-menu > .current-menu-item > a::after { transform: scaleX(1); }
.ptct-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 230px; list-style: none; margin: 0; padding: 8px; background: var(--ink-2); border: 1px solid rgba(212, 175, 55, .25); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s; }
.ptct-menu li:hover > .sub-menu, .ptct-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.ptct-burger { display: none; width: 44px; height: 44px; border: 1px solid rgba(212, 175, 55, .4); border-radius: 10px; background: transparent; color: var(--gold-2); cursor: pointer; }

/* ---------------------------------------------------------------- Hero */
.ptct-hero {
	position: relative; overflow: hidden;
	min-height: 100vh;
	display: flex; flex-direction: column; justify-content: center;
	padding: calc(var(--header-h) + 60px) 0 120px;
	color: var(--on-dark);
	background:
		radial-gradient(ellipse 80% 60% at 70% 40%, #6d0d10 0%, transparent 60%),
		radial-gradient(ellipse 60% 50% at 10% 90%, #4a080a 0%, transparent 60%),
		linear-gradient(180deg, #170203 0%, #2a0506 50%, #1a0304 100%);
}
.ptct-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.ptct-hero__glow { position: absolute; width: 900px; height: 900px; right: -200px; top: 50%; transform: translateY(-50%); background: radial-gradient(circle, rgba(212, 175, 55, .22), transparent 62%); filter: blur(10px); animation: ptct-pulse 6s ease-in-out infinite; }
.ptct-hero__clouds {
	position: absolute; inset: 0; opacity: .08;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='80' viewBox='0 0 160 80'%3E%3Cg fill='none' stroke='%23d4af37' stroke-width='1.5'%3E%3Cpath d='M0 60c10-20 30-20 40 0 10-20 30-20 40 0 10-20 30-20 40 0 10-20 30-20 40 0'/%3E%3Cpath d='M20 60c0-11 9-20 20-20M100 60c0-11 9-20 20-20' /%3E%3Ccircle cx='40' cy='60' r='6'/%3E%3Ccircle cx='120' cy='60' r='6'/%3E%3Cpath d='M-20 20c10-20 30-20 40 0 10-20 30-20 40 0 10-20 30-20 40 0 10-20 30-20 40 0 10-20 30-20 40 0'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 220px 110px;
	mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
}
.ptct-hero__bagua {
	position: absolute; right: -6vw; top: 50%;
	width: min(980px, 95vw); height: auto;
	transform: translateY(-50%);
	opacity: .2;
	filter: drop-shadow(0 0 30px rgba(212, 175, 55, .4));
}
.ptct-bagua__ring, .ptct-bagua__tris, .ptct-bagua__labels { transform-origin: center; transform-box: view-box; }
.ptct-hero__bagua .ptct-bagua__ring { animation: ptct-spin 120s linear infinite; }
.ptct-hero__bagua .ptct-bagua__tris, .ptct-hero__bagua .ptct-bagua__labels { animation: ptct-spin 90s linear infinite reverse; }
.ptct-bagua__taiji { transform-origin: center; transform-box: view-box; animation: ptct-spin 40s linear infinite; }
.ptct-bagua__labels text { font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: .08em; }
@keyframes ptct-spin { to { transform: rotate(360deg); } }
@keyframes ptct-pulse { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }

.ptct-sparks i {
	position: absolute; bottom: -10px;
	width: 4px; height: 4px; border-radius: 50%;
	background: #ffd977; box-shadow: 0 0 10px 2px rgba(255, 210, 110, .8);
	opacity: 0; animation: ptct-rise 9s linear infinite;
}
.ptct-sparks i:nth-child(odd) { width: 3px; height: 3px; }
.ptct-sparks i:nth-child(1) { left: 5%; animation-delay: 0s; }
.ptct-sparks i:nth-child(2) { left: 12%; animation-delay: 2.1s; animation-duration: 11s; }
.ptct-sparks i:nth-child(3) { left: 19%; animation-delay: 4.4s; }
.ptct-sparks i:nth-child(4) { left: 26%; animation-delay: 1.2s; animation-duration: 12s; }
.ptct-sparks i:nth-child(5) { left: 33%; animation-delay: 6.3s; }
.ptct-sparks i:nth-child(6) { left: 40%; animation-delay: 3.5s; animation-duration: 10s; }
.ptct-sparks i:nth-child(7) { left: 47%; animation-delay: 7.7s; }
.ptct-sparks i:nth-child(8) { left: 54%; animation-delay: .6s; animation-duration: 13s; }
.ptct-sparks i:nth-child(9) { left: 61%; animation-delay: 5.2s; }
.ptct-sparks i:nth-child(10) { left: 68%; animation-delay: 2.8s; animation-duration: 11s; }
.ptct-sparks i:nth-child(11) { left: 75%; animation-delay: 8.1s; }
.ptct-sparks i:nth-child(12) { left: 82%; animation-delay: 1.9s; animation-duration: 12s; }
.ptct-sparks i:nth-child(13) { left: 89%; animation-delay: 4.9s; }
.ptct-sparks i:nth-child(14) { left: 95%; animation-delay: 6.9s; animation-duration: 10s; }
.ptct-sparks i:nth-child(15) { left: 8%; animation-delay: 9s; }
.ptct-sparks i:nth-child(16) { left: 44%; animation-delay: 10s; animation-duration: 14s; }
.ptct-sparks i:nth-child(17) { left: 72%; animation-delay: 11s; }
.ptct-sparks i:nth-child(18) { left: 58%; animation-delay: 12.5s; animation-duration: 12s; }
@keyframes ptct-rise {
	0% { transform: translate(0, 0); opacity: 0; }
	10% { opacity: 1; }
	80% { opacity: .8; }
	100% { transform: translate(40px, -95vh); opacity: 0; }
}

.ptct-hero__grid { position: relative; width: min(1200px, 100% - 40px); display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.ptct-kicker {
	display: inline-flex; align-items: center; gap: 12px;
	margin-bottom: 18px;
	font-size: .82rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
	color: var(--gold-2);
}
.ptct-kicker::before, .ptct-kicker::after { content: ""; width: 34px; height: 1px; background: var(--gold-grad); }
.ptct-kicker--red { color: var(--red); }
.ptct-hero__title {
	font-size: clamp(2.5rem, 5.6vw, 4.6rem);
	font-weight: 800; line-height: 1.08; letter-spacing: -.01em;
	background: var(--gold-grad); background-size: 200% 200%;
	-webkit-background-clip: text; background-clip: text; color: transparent;
	filter: drop-shadow(0 6px 24px rgba(212, 175, 55, .25));
	animation: ptct-gold-shift 8s ease infinite;
}
.ptct-hero__sub { max-width: 560px; font-size: 1.1rem; color: var(--on-dark-soft); }
.ptct-hero__facts { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 34px 0 0; padding: 0; max-width: 580px; }
.ptct-hero__facts li { padding: 14px 10px; text-align: center; border: 1px solid rgba(212, 175, 55, .25); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.ptct-hero__facts strong { display: block; font-family: var(--font-display); font-size: 1.8rem; line-height: 1.1; color: var(--gold-2); }
.ptct-hero__facts span { font-size: .78rem; color: var(--on-dark-soft); }
.ptct-hero__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(180deg, transparent, rgba(20, 2, 3, .9)); pointer-events: none; }

/* ---------------------------------------------------------------- Tool card */
.ptct-tool {
	position: relative;
	padding: 30px;
	border-radius: var(--radius-lg);
	color: var(--on-dark);
	background:
		linear-gradient(160deg, rgba(74, 9, 11, .92), rgba(24, 3, 4, .95)) padding-box,
		var(--gold-grad) border-box;
	border: 1.5px solid transparent;
	box-shadow: 0 30px 80px -30px #000, 0 0 0 8px rgba(212, 175, 55, .06), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.ptct-tool__corner { position: absolute; width: 38px; height: 38px; border: 2px solid var(--gold); pointer-events: none; }
.ptct-tool__corner--tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.ptct-tool__corner--br { right: 10px; bottom: 10px; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.ptct-tool__title { margin-bottom: 18px; text-align: center; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--gold-2); }
.ptct-tool__title::after { content: "✦ ✦ ✦"; display: block; font-size: .7rem; letter-spacing: .5em; color: var(--gold); margin-top: 2px; }

.ptct-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 5px; margin-bottom: 22px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(212, 175, 55, .2); }
.ptct-tab { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--on-dark-soft); font-weight: 600; font-size: .92rem; cursor: pointer; transition: .25s; }
.ptct-tab:hover { color: var(--gold-2); }
.ptct-tab.is-active { color: #3a0b06; background: var(--gold-grad); box-shadow: 0 6px 18px -8px rgba(212, 175, 55, .8); }

.ptct-form { display: none; }
.ptct-form.is-active { display: block; animation: ptct-fade .4s ease; }
@keyframes ptct-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ptct-field { margin-bottom: 16px; }
.ptct-field label { display: block; margin-bottom: 7px; font-size: .9rem; font-weight: 600; color: var(--gold-2); }
.ptct-field label em { color: #ff7b6e; font-style: normal; }
.ptct-field label small { font-weight: 400; color: var(--on-dark-soft); }
.ptct-input { position: relative; }
.ptct-input .ptct-ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--gold); opacity: .85; }
.ptct-input input {
	width: 100%; padding: 15px 16px 15px 46px;
	border: 1px solid rgba(212, 175, 55, .35); border-radius: 12px;
	background: rgba(0, 0, 0, .35); color: #fff7e0;
	font-size: 1.02rem; letter-spacing: .02em;
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.ptct-input input::placeholder { color: rgba(245, 233, 200, .38); }
.ptct-input input:focus { outline: 0; border-color: var(--gold); background: rgba(0, 0, 0, .5); box-shadow: 0 0 0 4px rgba(212, 175, 55, .18); }
.ptct-input input::-webkit-outer-spin-button, .ptct-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ptct-input input[type=number] { -moz-appearance: textfield; }
.ptct-error { margin: -4px 0 14px; padding: 9px 12px; border-radius: 10px; font-size: .9rem; color: #ffd9d4; background: rgba(224, 71, 63, .18); border: 1px solid rgba(224, 71, 63, .45); }
.ptct-btn__spin { display: none; width: 18px; height: 18px; border: 2px solid rgba(58, 11, 6, .3); border-top-color: #3a0b06; border-radius: 50%; animation: ptct-spin .8s linear infinite; }
.is-loading .ptct-btn__spin { display: inline-block; }
.is-loading .ptct-btn__text { opacity: .7; }
.ptct-tool__note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; font-size: .8rem; color: var(--on-dark-soft); }
.ptct-tool__note .ptct-ico { width: 16px; color: var(--gold); }

/* ---------------------------------------------------------------- Result */
.ptct-result-section { position: relative; background: linear-gradient(180deg, #140203, #200405); }
.ptct-result-section:empty { display: none; }
.ptct-result-section > .ptct-res { width: min(1100px, 100% - 40px); margin: 0 auto; padding: 60px 0 80px; }
.ptct-tool .ptct-result:not(:empty) { margin-top: 24px; }

.ptct-res { color: var(--on-dark); animation: ptct-fade .6s ease; }
.ptct-res__head {
	display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center;
	padding: 34px; border-radius: var(--radius-lg);
	background: radial-gradient(ellipse at 0% 0%, rgba(212, 175, 55, .16), transparent 55%), linear-gradient(160deg, #3a0709, #1a0304);
	border: 1px solid rgba(212, 175, 55, .35);
	box-shadow: var(--shadow);
}
.ptct-gauge {
	--p: 0; --c: var(--gold);
	position: relative; width: 190px; height: 190px; border-radius: 50%;
	background:
		radial-gradient(closest-side, #1c0304 79%, transparent 80% 100%),
		conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255, 255, 255, .08) 0);
	display: grid; place-items: center; text-align: center;
	box-shadow: 0 0 0 6px rgba(212, 175, 55, .08), 0 0 60px -10px var(--c);
}
.ptct-gauge::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 1px dashed rgba(212, 175, 55, .35); animation: ptct-spin 30s linear infinite; }
.ptct-gauge__num { font-family: var(--font-display); font-size: 3.4rem; font-weight: 800; line-height: 1; color: #fff4d0; }
.ptct-gauge__num small { font-size: 1.1rem; color: var(--on-dark-soft); font-weight: 600; }
.ptct-gauge__lbl { margin-top: 6px; font-weight: 700; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.ptct-res--dai-cat .ptct-gauge { --c: #f3d98b; }
.ptct-res--cat .ptct-gauge { --c: #5fd08a; }
.ptct-res--binh .ptct-gauge { --c: #7fb2ff; }
.ptct-res--kem .ptct-gauge { --c: #f0a24a; }
.ptct-res--hung .ptct-gauge { --c: #ff6b5f; }
.ptct-res__type { font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.ptct-res__input { margin: 4px 0 10px; font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: .03em; color: #fff4d0; word-break: break-word; }
.ptct-res__summary { color: var(--on-dark-soft); margin-bottom: 14px; }
.ptct-res__menh { display: flex; flex-wrap: wrap; gap: 8px; }
.ptct-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .84rem; font-weight: 600; background: rgba(255, 255, 255, .06); border: 1px solid rgba(212, 175, 55, .3); color: var(--on-dark); }
.ptct-chip b { color: var(--gold-2); }

.ptct-res__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 22px; }
.ptct-box {
	position: relative; padding: 26px;
	border-radius: var(--radius);
	background: linear-gradient(170deg, rgba(58, 7, 9, .75), rgba(22, 3, 4, .9));
	border: 1px solid rgba(212, 175, 55, .22);
}
.ptct-box--wide { grid-column: 1 / -1; }
.ptct-box h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; color: var(--gold-2); margin-bottom: 14px; }
.ptct-box h3::before { content: "◆"; font-size: .7rem; color: var(--gold); }
.ptct-box p { color: var(--on-dark-soft); }
.ptct-box strong { color: var(--on-dark); }

.ptct-hexes { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.ptct-hex { text-align: center; }
.ptct-hex__lines { display: inline-flex; flex-direction: column-reverse; gap: 7px; padding: 16px 18px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(212, 175, 55, .18); }
.ptct-hex__line { position: relative; display: flex; justify-content: space-between; width: 96px; height: 11px; }
.ptct-hex__line span { height: 100%; border-radius: 3px; background: var(--gold-grad); }
.ptct-hex__line--yang span { width: 100%; }
.ptct-hex__line--yin span { width: 42%; }
.ptct-hex__line.is-moving::after { content: "●"; position: absolute; right: -20px; top: 50%; transform: translateY(-50%); font-size: .7rem; color: #ff6b5f; }
.ptct-hex__name { margin-top: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: #fff4d0; }
.ptct-hex__sub { font-size: .82rem; color: var(--on-dark-soft); }
.ptct-hex__tag { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.ptct-hexes__arrow { font-size: 1.6rem; color: var(--gold); }
.ptct-hex__meaning { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; background: rgba(212, 175, 55, .07); font-size: .94rem; }
.ptct-calc { margin-top: 10px; font-size: .78rem; color: var(--on-dark-soft); opacity: .8; }
.r-1 { background: rgba(255, 107, 95, .18); color: #ff8f85; }
.r-2 { background: rgba(240, 162, 74, .18); color: #ffbd70; }
.r-3 { background: rgba(127, 178, 255, .16); color: #a9cbff; }
.r-4 { background: rgba(95, 208, 138, .16); color: #84e3a7; }
.r-5 { background: rgba(243, 217, 139, .2); color: #fbe39b; }

.ptct-bars { display: grid; gap: 14px; }
.ptct-bar__top { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 6px; }
.ptct-bar__top b { color: var(--gold-2); }
.ptct-bar__track { height: 9px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ptct-bar__fill { height: 100%; width: 0; border-radius: inherit; background: var(--gold-grad); transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }

.ptct-yy { display: flex; height: 38px; border-radius: 10px; overflow: hidden; margin-bottom: 12px; font-weight: 700; font-size: .85rem; }
.ptct-yy__yang { background: linear-gradient(90deg, #c81e26, #e0473f); color: #fff; display: grid; place-items: center; transition: flex 1s; }
.ptct-yy__yin { background: linear-gradient(90deg, #1b1b22, #34343f); color: #e8e3d6; display: grid; place-items: center; transition: flex 1s; }

.ptct-els { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.ptct-el { text-align: center; padding: 12px 6px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .06); }
.ptct-el b { display: block; font-size: 1.5rem; font-family: var(--font-display); line-height: 1.1; }
.ptct-el span { font-size: .78rem; color: var(--on-dark-soft); }
.ptct-el.is-dominant { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .15); }
.el-kim b, .el.el-kim { color: var(--el-kim); }
.el-thuy b, .el.el-thuy { color: var(--el-thuy); }
.el-moc b, .el.el-moc { color: var(--el-moc); }
.el-hoa b, .el.el-hoa { color: var(--el-hoa); }
.el-tho b, .el.el-tho { color: var(--el-tho); }

.ptct-badge-el { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: #1a0304; }
.bg-kim { background: var(--el-kim); }
.bg-thuy { background: var(--el-thuy); color: #fff; }
.bg-moc { background: var(--el-moc); color: #fff; }
.bg-hoa { background: var(--el-hoa); color: #fff; }
.bg-tho { background: var(--el-tho); }

.ptct-words { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.ptct-word { padding: 18px 14px; text-align: center; border-radius: 14px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(212, 175, 55, .2); }
.ptct-word__w { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: #fff4d0; line-height: 1.2; }
.ptct-word__role { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.ptct-word__meta { margin-top: 8px; font-size: .8rem; color: var(--on-dark-soft); line-height: 1.5; }
.ptct-word__mean { margin-top: 6px; font-size: .84rem; font-style: italic; color: var(--gold-2); }

.ptct-chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ptct-chain li { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; background: rgba(0, 0, 0, .22); font-size: .92rem; }
.ptct-chain .k-sinh, .ptct-chain .k-sinh-nguoc { color: #84e3a7; }
.ptct-chain .k-hoa { color: #a9cbff; }
.ptct-chain .k-xuat, .ptct-chain .k-che { color: #ffbd70; }
.ptct-chain .k-khac { color: #ff8f85; }

.ptct-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ptct-list li { position: relative; padding-left: 28px; color: var(--on-dark); }
.ptct-list li::before { content: "✦"; position: absolute; left: 4px; top: 0; color: var(--gold); }
.ptct-list li.is-bad::before { content: "✕"; color: #ff8f85; }
.ptct-list li.is-good::before { content: "✓"; color: #84e3a7; }

.ptct-res__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.ptct-res__note { margin-top: 18px; text-align: center; font-size: .82rem; color: var(--on-dark-soft); }

/* Chống style nội dung bài viết đè lên khung kết quả */
.ptct-content .ptct-tool h3, .ptct-res .ptct-box h3 { color: var(--gold-2); margin: 0 0 14px; padding: 0; border: 0; font-size: 1.2rem; }
.ptct-content .ptct-tool p { font-size: 1rem; }
.ptct-content .ptct-tool ul { padding: 0; }

/* Kết quả hiển thị trong khung tool hẹp (sidebar, trang công cụ) */
.ptct-tool .ptct-res__head { grid-template-columns: 1fr; text-align: center; padding: 24px; }
.ptct-tool .ptct-gauge { margin: 0 auto; width: 160px; height: 160px; }
.ptct-tool .ptct-res__menh { justify-content: center; }
.ptct-toolpage .ptct-tool .ptct-res__head { grid-template-columns: auto 1fr; text-align: left; }
.ptct-toolpage .ptct-tool .ptct-res__menh { justify-content: flex-start; }
.ptct-sidebar .ptct-res__grid { grid-template-columns: 1fr; }
.ptct-sidebar .ptct-hexes { grid-template-columns: 1fr; }
.ptct-sidebar .ptct-hexes__arrow { transform: rotate(90deg); }

/* ---------------------------------------------------------------- Sections */
.ptct-section { position: relative; padding: 100px 0; }
.ptct-section--paper {
	background-color: var(--paper);
	background-image:
		radial-gradient(rgba(122, 15, 18, .05) 1px, transparent 1px),
		radial-gradient(rgba(122, 15, 18, .035) 1px, transparent 1px);
	background-size: 22px 22px, 37px 37px;
	background-position: 0 0, 11px 17px;
}
.ptct-section--cream { background: var(--cream); }
.ptct-section--dark { color: var(--on-dark); background: radial-gradient(ellipse at 20% 50%, #4a080a, transparent 60%), linear-gradient(180deg, #1a0304, #2a0506); }

.ptct-heading { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.ptct-heading h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; color: var(--red-deep); }
.ptct-heading p:last-child { color: var(--text-soft); font-size: 1.05rem; }
.ptct-heading__orn { display: block; margin-bottom: 6px; font-size: 1.4rem; color: var(--gold-3); }

.ptct-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ptct-feature {
	position: relative; overflow: hidden;
	display: flex; flex-direction: column;
	padding: 38px 30px 30px;
	border-radius: var(--radius-lg);
	color: var(--text);
	background: linear-gradient(180deg, #fffdf6, #fbf1db);
	border: 1px solid rgba(156, 122, 31, .3);
	box-shadow: 0 18px 40px -25px rgba(122, 15, 18, .5);
	transition: transform .35s, box-shadow .35s;
}
.ptct-feature::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--red), var(--gold), var(--red)); }
.ptct-feature:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -25px rgba(122, 15, 18, .6); color: var(--text); }
.ptct-feature__char { position: absolute; right: -8px; bottom: -36px; font-family: "Noto Serif SC", "SimSun", serif; font-size: 170px; line-height: 1; color: rgba(163, 18, 26, .06); transition: transform .5s; }
.ptct-feature:hover .ptct-feature__char { transform: scale(1.08) rotate(-6deg); }
.ptct-feature__icon { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 20px; border-radius: 16px; color: #fff4d0; background: radial-gradient(circle at 30% 25%, #e0353d, #8a0f14 70%); box-shadow: 0 10px 24px -10px rgba(163, 18, 26, .9), inset 0 0 0 2px rgba(255, 220, 140, .4); }
.ptct-feature__icon .ptct-ico { width: 28px; height: 28px; }
.ptct-feature h3 { font-size: 1.4rem; color: var(--red-deep); }
.ptct-feature p { color: var(--text-soft); flex: 1; }
.ptct-feature__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--red); }
.ptct-feature__more .ptct-ico { transition: transform .3s; }
.ptct-feature:hover .ptct-feature__more .ptct-ico { transform: translateX(5px); }

.ptct-wuxing__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ptct-wuxing__svg { width: 100%; max-width: 480px; display: block; margin: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5)); }
.ptct-wuxing__svg .s { fill: none; stroke: #d4af37; stroke-width: 3; }
.ptct-wuxing__svg .k { stroke: #e0473f; stroke-width: 1.6; stroke-dasharray: 5 5; opacity: .8; animation: ptct-dash 2s linear infinite; }
.ptct-wuxing__svg .node circle { stroke: rgba(255, 244, 208, .8); stroke-width: 2.5; }
.ptct-wuxing__svg .node:hover circle { stroke: #fff; stroke-width: 4; }
.ptct-wuxing__svg text { text-anchor: middle; font-weight: 700; fill: #1a0304; }
.ptct-wuxing__svg .c { font-family: "Noto Serif SC", "SimSun", serif; font-size: 20px; }
.ptct-wuxing__svg .n { font-size: 10px; font-family: var(--font-body); }
@keyframes ptct-dash { to { stroke-dashoffset: -20; } }
.ptct-wuxing__copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ptct-wuxing__copy p { color: var(--on-dark-soft); font-size: 1.05rem; }
.ptct-wuxing__copy strong { color: var(--gold-2); }
.ptct-wuxing__legend { display: grid; gap: 8px; margin: 22px 0; font-size: .95rem; }
.ptct-wuxing__legend .dot { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 50%; vertical-align: middle; }
.dot--gold { background: var(--gold); }
.dot--red { background: #e0473f; }
.ptct-digits { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ptct-digit { padding: 14px 6px; text-align: center; border-radius: 12px; border: 1px solid rgba(212, 175, 55, .25); background: rgba(0, 0, 0, .25); }
.ptct-digit b { display: block; font-family: var(--font-display); font-size: 1.3rem; }
.ptct-digit span { font-size: .8rem; color: var(--on-dark-soft); }

.ptct-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.ptct-steps li { position: relative; padding: 34px 24px 26px; text-align: center; border-radius: var(--radius-lg); background: #fffdf6; border: 1px solid rgba(156, 122, 31, .28); }
.ptct-steps li:not(:last-child)::after { content: ""; position: absolute; top: 62px; right: -24px; width: 24px; height: 2px; background: repeating-linear-gradient(90deg, var(--gold-3) 0 4px, transparent 4px 8px); }
.ptct-steps__no { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; font-family: "Noto Serif SC", "SimSun", serif; font-size: 1.7rem; color: #fff4d0; background: radial-gradient(circle at 30% 25%, #e0353d, #7a0f12 72%); box-shadow: 0 0 0 5px rgba(212, 175, 55, .3); }
.ptct-steps h3 { font-size: 1.15rem; color: var(--red-deep); }
.ptct-steps p { margin: 0; color: var(--text-soft); font-size: .94rem; }

.ptct-grid { display: grid; gap: 28px; }
.ptct-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ptct-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: #fff; border: 1px solid rgba(156, 122, 31, .2); box-shadow: 0 14px 30px -22px rgba(122, 15, 18, .55); transition: transform .3s, box-shadow .3s; }
.ptct-card:hover { transform: translateY(-5px); box-shadow: 0 24px 44px -24px rgba(122, 15, 18, .65); }
.ptct-card__thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--lacquer); }
.ptct-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ptct-card:hover .ptct-card__thumb img { transform: scale(1.06); }
.ptct-card__ph { display: grid; place-items: center; height: 100%; color: var(--gold); background: radial-gradient(circle, #4a080a, #1a0304); }
.ptct-card__ph .ptct-ico { width: 64px; height: 64px; opacity: .6; }
.ptct-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.ptct-card__cat { align-self: flex-start; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; color: var(--red); background: rgba(163, 18, 26, .08); }
.ptct-card__title { font-size: 1.18rem; margin-bottom: 8px; }
.ptct-card__title a { color: var(--text); }
.ptct-card__title a:hover { color: var(--red); }
.ptct-card__excerpt { flex: 1; color: var(--text-soft); font-size: .93rem; }
.ptct-card__meta { font-size: .8rem; color: var(--gold-3); }

.ptct-faq { display: grid; gap: 14px; }
.ptct-faq__item { border-radius: var(--radius); background: #fffdf6; border: 1px solid rgba(156, 122, 31, .3); overflow: hidden; }
.ptct-faq__item summary { position: relative; list-style: none; padding: 20px 56px 20px 24px; font-weight: 700; font-size: 1.04rem; cursor: pointer; color: var(--red-deep); }
.ptct-faq__item summary::-webkit-details-marker { display: none; }
.ptct-faq__item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff4d0; background: var(--red); font-weight: 400; font-size: 1.2rem; transition: transform .3s; }
.ptct-faq__item[open] summary::after { content: "–"; transform: translateY(-50%) rotate(180deg); }
.ptct-faq__a { padding: 0 24px 20px; color: var(--text-soft); }
.ptct-faq__a p { margin: 0; }

.ptct-cta { position: relative; overflow: hidden; padding: 110px 0; text-align: center; color: var(--on-dark); background: radial-gradient(ellipse at center, #7a0f12, #2a0506 70%); }
.ptct-cta__bg { position: absolute; inset: 0; display: grid; place-items: center; opacity: .14; pointer-events: none; }
.ptct-cta__bagua { width: 760px; max-width: 140vw; }
.ptct-cta__bagua .ptct-bagua__ring { animation: ptct-spin 100s linear infinite; }
.ptct-cta__inner { position: relative; }
.ptct-cta h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ptct-cta p { max-width: 620px; margin: 0 auto 30px; color: var(--on-dark-soft); font-size: 1.1rem; }

/* ---------------------------------------------------------------- Inner pages */
.ptct-pagehead { position: relative; overflow: hidden; padding: 70px 0 60px; color: var(--on-dark); background: radial-gradient(ellipse at 80% 20%, #6d0d10, transparent 60%), linear-gradient(180deg, #1a0304, #2a0506); border-bottom: 1px solid rgba(212, 175, 55, .3); }
.ptct-pagehead h1 { position: relative; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.ptct-pagehead__desc, .ptct-pagehead__meta { position: relative; max-width: 680px; color: var(--on-dark-soft); }
.ptct-pagehead--tool { padding: 90px 0 80px; text-align: center; }
.ptct-pagehead--tool .ptct-pagehead__desc { margin-inline: auto; }
.ptct-pagehead__bg { position: absolute; inset: 0; display: grid; place-items: center; opacity: .13; pointer-events: none; }
.ptct-pagehead__bagua { width: 620px; }
.ptct-pagehead__bagua .ptct-bagua__ring { animation: ptct-spin 100s linear infinite; }
.ptct-breadcrumbs { position: relative; margin-bottom: 14px; font-size: .86rem; color: var(--on-dark-soft); }
.ptct-breadcrumbs a { color: var(--gold-2); }
.ptct-breadcrumbs span { margin: 0 4px; }
.ptct-pagehead--tool .ptct-breadcrumbs { display: flex; justify-content: center; }

.ptct-toolpage { padding-top: 0; }
.ptct-toolpage .ptct-tool { margin-top: -50px; margin-bottom: 40px; }

.ptct-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
.ptct-sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 24px; }
.ptct-sidebar .widget { padding: 22px; border-radius: var(--radius); background: #fffdf6; border: 1px solid rgba(156, 122, 31, .25); }
.ptct-sidebar .ptct-sidebar__tool { padding: 0; background: none; border: 0; }
.ptct-sidebar .ptct-tool { padding: 22px; }
.ptct-sidebar .widget-title { font-size: 1.1rem; color: var(--red-deep); padding-bottom: 10px; border-bottom: 2px solid var(--gold); }
.ptct-sidebar ul { list-style: none; margin: 0; padding: 0; }
.ptct-sidebar li { padding: 7px 0; border-bottom: 1px dashed rgba(156, 122, 31, .25); }

.ptct-entry { min-width: 0; }
.ptct-entry__thumb { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; }
.ptct-content { font-size: 1.05rem; }
.ptct-content h2 { font-size: 1.7rem; color: var(--red-deep); margin-top: 1.6em; padding-left: 14px; border-left: 4px solid var(--gold); }
.ptct-content h3 { font-size: 1.35rem; color: var(--red-deep); margin-top: 1.4em; }
.ptct-content img { border-radius: 10px; }
.ptct-content blockquote { margin: 1.5em 0; padding: 18px 24px; border-left: 4px solid var(--red); border-radius: 0 12px 12px 0; background: rgba(212, 175, 55, .1); font-style: italic; }
.ptct-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.ptct-content th, .ptct-content td { padding: 10px 12px; border: 1px solid rgba(156, 122, 31, .3); }
.ptct-content th { background: var(--red-deep); color: #fff4d0; }
.ptct-content ul li::marker { color: var(--red); }
.ptct-entry__tags a { display: inline-block; margin: 4px 6px 0 0; padding: 4px 12px; border-radius: 999px; font-size: .82rem; background: rgba(163, 18, 26, .07); }
.ptct-inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 36px 0; padding: 22px 26px; border-radius: var(--radius); color: var(--on-dark); background: linear-gradient(135deg, #4a080a, #1a0304); border: 1px solid rgba(212, 175, 55, .35); }
.ptct-inline-cta strong { color: var(--gold-2); font-family: var(--font-display); font-size: 1.15rem; }
.ptct-inline-cta div { display: flex; gap: 8px; flex-wrap: wrap; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0; }
.post-navigation a { display: block; height: 100%; padding: 16px 18px; border-radius: 12px; background: #fffdf6; border: 1px solid rgba(156, 122, 31, .25); color: var(--text); }
.post-navigation small { display: block; color: var(--gold-3); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.post-navigation .nav-next { text-align: right; }

.ptct-othertools { margin-top: 50px; text-align: center; }
.ptct-othertools h2 { font-size: 1.5rem; color: var(--red-deep); }
.ptct-othertools__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ptct-othertools__list a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; color: var(--red-deep); background: #fffdf6; border: 1px solid rgba(156, 122, 31, .35); transition: .25s; }
.ptct-othertools__list a:hover { color: #fff4d0; background: var(--red); border-color: var(--red); }

.ptct-pagination { margin-top: 44px; }
.ptct-pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.ptct-pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; font-weight: 700; color: var(--red-deep); background: #fffdf6; border: 1px solid rgba(156, 122, 31, .3); }
.ptct-pagination .page-numbers.current, .ptct-pagination .page-numbers:hover { color: #fff4d0; background: var(--red); border-color: var(--red); }
.ptct-empty { text-align: center; }

.search-form { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: 12px 16px; border: 1px solid rgba(156, 122, 31, .4); border-radius: 999px; background: #fff; }
.search-submit { padding: 12px 22px; border: 0; border-radius: 999px; color: #fff; background: var(--red); font-weight: 700; cursor: pointer; }

.ptct-comments { margin-top: 40px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 16px 18px; margin-bottom: 14px; border-radius: 12px; background: #fffdf6; border: 1px solid rgba(156, 122, 31, .2); }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid rgba(156, 122, 31, .4); border-radius: 10px; background: #fff; }

.ptct-404__code { position: relative; font-family: var(--font-display); font-size: clamp(5rem, 16vw, 10rem); font-weight: 800; line-height: 1; margin: 0; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- Footer */
.ptct-footer { position: relative; overflow: hidden; color: var(--on-dark-soft); background: linear-gradient(180deg, #170203, #0e0102); border-top: 3px solid; border-image: linear-gradient(90deg, transparent, var(--gold), transparent) 1; }
.ptct-footer__pattern { position: absolute; inset: 0; opacity: .05; background-image: repeating-linear-gradient(45deg, var(--gold) 0 1px, transparent 1px 16px), repeating-linear-gradient(-45deg, var(--gold) 0 1px, transparent 1px 16px); }
.ptct-footer__grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 76px 0 50px; }
.ptct-footer .ptct-logo { margin-bottom: 18px; }
.ptct-footer p { font-size: .94rem; }
.ptct-footer .widget-title { font-size: 1.1rem; color: var(--gold-2); margin-bottom: 16px; }
.ptct-footer ul { list-style: none; margin: 0; padding: 0; }
.ptct-footer li { padding: 5px 0; }
.ptct-footer a { color: var(--on-dark-soft); }
.ptct-footer a:hover { color: var(--gold-2); }
.ptct-footer .ptct-menu { display: block; }
.ptct-footer .ptct-menu a { padding: 5px 0; font-size: .94rem; }
.ptct-footer .ptct-menu > li > a::after { display: none; }
.ptct-footer__contact li { display: flex; align-items: center; gap: 8px; }
.ptct-footer__contact .ptct-ico { width: 16px; color: var(--gold); }
.ptct-footer__cycle { line-height: 2; }
.ptct-footer__cycle .el { font-weight: 700; }
.ptct-footer__bottom { position: relative; padding: 22px 0; border-top: 1px solid rgba(212, 175, 55, .15); text-align: center; font-size: .85rem; }
.ptct-footer__bottom p { margin: 4px 0; }
.ptct-footer__disclaimer { opacity: .75; font-style: italic; }

.ptct-float { position: fixed; right: 18px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.ptct-float__btn { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; font-size: 1.3rem; font-weight: 700; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6); transition: transform .25s; }
.ptct-float__btn:hover { transform: scale(1.08); color: #fff; }
.ptct-float__btn .ptct-ico { width: 26px; height: 26px; }
.ptct-float__btn--zalo { background: #0068ff; }
.ptct-float__btn--call { background: linear-gradient(135deg, #e0353d, #8a0f14); animation: ptct-ring 2s infinite; }
.ptct-float__btn--top { color: #3a0b06; background: var(--gold-grad); opacity: 0; visibility: hidden; transform: translateY(10px); }
.ptct-float__btn--top.is-visible { opacity: 1; visibility: visible; transform: none; }
.ptct-float__btn--top:hover { color: #3a0b06; }
@keyframes ptct-ring { 0% { box-shadow: 0 0 0 0 rgba(224, 53, 61, .6); } 100% { box-shadow: 0 0 0 18px rgba(224, 53, 61, 0); } }

/* ---------------------------------------------------------------- Reveal */
.ptct-reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.ptct-reveal.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1100px) {
	.ptct-hero__grid { grid-template-columns: 1fr; gap: 40px; }
	.ptct-hero__copy { text-align: center; }
	.ptct-hero__sub, .ptct-hero__facts { margin-inline: auto; }
	.ptct-hero__tool { max-width: 560px; width: 100%; margin: 0 auto; }
	.ptct-hero__bagua { right: 50%; transform: translate(50%, -50%); top: 30%; }
	.ptct-footer__grid { grid-template-columns: 1fr 1fr; }
	.ptct-layout { grid-template-columns: 1fr; }
	.ptct-sidebar { position: static; }
}
@media (max-width: 960px) {
	:root { --header-h: 66px; }
	.ptct-burger { display: grid; place-items: center; }
	.ptct-nav {
		position: fixed; inset: var(--header-h) 0 auto 0;
		flex-direction: column; align-items: stretch; gap: 14px;
		padding: 20px;
		background: rgba(18, 2, 3, .98);
		border-bottom: 1px solid rgba(212, 175, 55, .3);
		transform: translateY(-120%); transition: transform .35s ease;
		max-height: calc(100vh - var(--header-h)); overflow: auto;
	}
	.admin-bar .ptct-nav { top: calc(var(--header-h) + 46px); }
	.ptct-nav.is-open { transform: none; }
	.ptct-menu { flex-direction: column; }
	.ptct-menu > li > a::after { display: none; }
	.ptct-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding-left: 14px; }
	.ptct-features, .ptct-grid--3 { grid-template-columns: 1fr 1fr; }
	.ptct-wuxing__grid { grid-template-columns: 1fr; gap: 30px; }
	.ptct-steps { grid-template-columns: 1fr 1fr; }
	.ptct-steps li::after { display: none; }
	.ptct-res__grid { grid-template-columns: 1fr; }
}
@media (max-width: 782px) { .admin-bar .ptct-header { top: 46px; } }
@media (max-width: 640px) {
	body { font-size: 15px; }
	.ptct-hero { padding: calc(var(--header-h) + 34px) 0 80px; min-height: auto; }
	.ptct-hero__facts { display: none; }
	.ptct-hero__grid { gap: 26px; }
	.ptct-kicker { font-size: .7rem; letter-spacing: .14em; margin-bottom: 12px; }
	.ptct-kicker::before, .ptct-kicker::after { width: 18px; }
	.ptct-hero__title { font-size: 2.3rem; }
	.ptct-hero__sub { font-size: .98rem; margin-bottom: 0; }
	.ptct-float__btn { width: 46px; height: 46px; }
	.ptct-tool { padding: 22px 18px; }
	.ptct-tab span { font-size: .82rem; }
	.ptct-tab .ptct-ico { display: none; }
	.ptct-section { padding: 70px 0; }
	.ptct-features, .ptct-grid--3, .ptct-steps { grid-template-columns: 1fr; }
	.ptct-res__head, .ptct-toolpage .ptct-tool .ptct-res__head { grid-template-columns: 1fr; text-align: center; padding: 24px 18px; }
	.ptct-res__menh, .ptct-toolpage .ptct-tool .ptct-res__menh { justify-content: center; }
	.ptct-gauge { margin: 0 auto; width: 160px; height: 160px; }
	.ptct-hexes { grid-template-columns: 1fr; }
	.ptct-hexes__arrow { transform: rotate(90deg); }
	.ptct-els, .ptct-digits { grid-template-columns: repeat(5, 1fr); gap: 6px; }
	.ptct-el b { font-size: 1.2rem; }
	.ptct-footer__grid { grid-template-columns: 1fr; gap: 30px; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.ptct-logo__text small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.ptct-reveal { opacity: 1; transform: none; }
}
