:root {
	--otp789-ink: #171717;
	--otp789-panel: #242424;
	--otp789-panel-light: #3c3c3c;
	--otp789-gold: #ead280;
	--otp789-gold-dark: #9f7838;
	--otp789-mint: #03c99b;
	--otp789-paper: #f6f1e5;
	--otp789-muted: #a9a397;
	--otp789-header-height: 108px;
}

html {
	scroll-padding-top: calc(var(--otp789-header-height) + 1rem);
}

body {
	margin: 0;
	background: #171717;
	color: var(--otp789-paper);
	font-family: "Noto Sans Thai", "Noto Sans", Tahoma, sans-serif;
}

body.modal-open {
	overflow: hidden;
}

.screen-reader-text,
.otp789-skip-link:not(:focus) {
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.otp789-skip-link:focus {
	background: #fff;
	color: #111;
	left: 1rem;
	padding: .75rem 1rem;
	position: fixed;
	top: 1rem;
	z-index: 10000;
}

/* ---------- Header (จำลองต้นฉบับ: แถบบน + แถบแท็บไอคอน, fixed สูง 108px) ---------- */

.otp789-site-header {
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 1000;
}

.otp789-anchor-target {
	display: block;
	height: 0;
}

.otp789-header__nav {
	background: linear-gradient(90deg, #242424 0%, #424242 100%, #242424 99.62%);
	box-shadow: 0 8px 24px rgb(0 0 0 / 22%);
	color: var(--otp789-paper);
	height: var(--otp789-header-height);
}

.otp789-header__top {
	display: flex;
	align-items: center;
}

.otp789-header__inner {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin: 0 auto;
	max-width: 1440px;
	padding: 8px 1rem;
	width: 100%;
}

.otp789-header__left {
	align-items: center;
	display: flex;
	gap: 10px;
	max-height: 53px;
	min-width: 0;
	width: 100%;
}

.otp789-brand {
	display: inline-flex;
	flex: 0 0 auto;
}

.otp789-brand img {
	display: block;
	height: auto;
	width: 140px;
}

.otp789-lang,
.otp789-search {
	align-items: center;
	background: #242424;
	border-radius: 999px;
	display: inline-flex;
	flex: 0 0 auto;
	justify-content: center;
	padding: 8px;
}

.otp789-lang img {
	border-radius: 999px;
	height: 20px;
	object-fit: cover;
	width: 20px;
}

.otp789-search {
	color: var(--otp789-paper);
	font-size: 20px;
	line-height: 1;
}

.otp789-promo-pill {
	background: linear-gradient(#d9a39d, #eacec8, #9f7838);
	border-radius: 8px;
	cursor: pointer;
	flex: 0 0 auto;
	height: 40px;
	padding: 1px;
	text-decoration: none;
}

.otp789-promo-pill__inner {
	align-items: center;
	background: linear-gradient(107deg, #383838 -33.89%, #8f702f 80.56%);
	border-radius: 7px;
	display: flex;
	gap: 4px;
	height: 38px;
	padding: 0 8px;
}

.otp789-promo-pill__icon {
	align-items: center;
	display: flex;
	height: 44px;
	justify-content: center;
	margin-left: -8px;
	position: relative;
	width: 44px;
}

.otp789-promo-pill__icon img {
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.otp789-promo-pill__label {
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.otp789-header__actions {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	width: 100%;
}

/* ปุ่มเข้าสู่ระบบ/สมัครสมาชิก — ลอกสไตล์ปุ่มต้นฉบับ (radial gradient + ภาพผิวปุ่ม) */

.otp789-cta {
	align-items: center;
	border-radius: 12px;
	cursor: pointer;
	display: inline-flex;
	font-size: 16px;
	font-weight: 600;
	height: 44px;
	justify-content: center;
	padding: 0 20px;
	position: relative;
	text-decoration: none;
	transition: filter .18s ease;
	white-space: nowrap;
}

.otp789-cta:hover {
	filter: brightness(1.08);
}

.otp789-cta::after {
	background-size: 100% 100%;
	border-radius: 10px;
	content: "";
	inset: 0;
	position: absolute;
}

.otp789-cta__label {
	position: relative;
}

.otp789-cta--login {
	background: radial-gradient(#a16c29, #fad478);
}

.otp789-cta--login::after {
	background-image: url("../images/ui/button-style-11.webp");
}

.otp789-cta--register {
	background: radial-gradient(#049584, #03e29f);
}

.otp789-cta--register::after {
	background-image: url("../images/ui/button-style-9.webp");
}

/* แถบแท็บไอคอนใต้แถบบน */

.otp789-header__tabs {
	background: #242424;
	min-height: 49px;
	position: relative;
	z-index: 30;
}

.otp789-header__tabs-inner {
	align-items: center;
	display: flex;
	gap: 16px;
	margin: 0 auto;
	max-width: 1440px;
	overflow-x: auto;
	padding: 0 1rem;
	scrollbar-width: none;
	white-space: nowrap;
	width: 100%;
}

.otp789-header__tabs-inner::-webkit-scrollbar {
	display: none;
}

.otp789-tab {
	color: var(--otp789-paper);
	display: inline-block;
	flex: 0 0 auto;
	position: relative;
	text-decoration: none;
}

.otp789-tab__underline {
	background: #f1e9bb;
	bottom: -4px;
	box-shadow: 0 -4px 9px #ddd39e;
	height: 8px;
	left: 10px;
	opacity: 0;
	position: absolute;
	right: 10px;
}

.otp789-tab.is-current .otp789-tab__underline {
	opacity: 1;
}

.otp789-tab__face {
	align-items: center;
	display: inline-flex;
	gap: 8px;
	height: 49px;
	justify-content: center;
	min-width: 80px;
	padding: 0 12px;
}

.otp789-tab__icon {
	display: block;
	height: 32px;
	transition: transform .5s ease;
	width: 32px;
}

.otp789-tab:hover .otp789-tab__icon,
.otp789-tab.is-current .otp789-tab__icon {
	transform: scale(1.1);
}

.otp789-tab__label {
	font-size: 16px;
	font-weight: 700;
}

/* ---------- ปุ่มทั่วไป (ใช้ใน 404 ฯลฯ) ---------- */

.otp789-button {
	align-items: center;
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 700;
	justify-content: center;
	min-height: 42px;
	padding: .65rem 1.15rem;
	text-decoration: none;
	transition: filter .18s ease, transform .18s ease;
}

.otp789-button:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.otp789-button--register {
	background: radial-gradient(circle at 25% 0%, #f4d684 0%, #c39542 56%, #8e642e 100%);
	box-shadow: inset 0 1px rgb(255 255 255 / 35%), 0 3px 12px rgb(0 0 0 / 25%);
	color: #1b1710;
}

/* ---------- เมนู (footer / แถบล่าง) ---------- */

.otp789-menu {
	align-items: stretch;
	display: flex;
	flex-wrap: wrap;
	gap: .25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.otp789-menu__item {
	flex: 0 0 auto;
}

.otp789-menu__item a {
	align-items: center;
	color: #eee9dc;
	display: flex;
	font-size: .96rem;
	font-weight: 700;
	min-height: 47px;
	padding: 0 1rem;
	position: relative;
	text-decoration: none;
	white-space: nowrap;
}

.otp789-menu__item a:hover,
.otp789-menu__item.is-current a {
	color: var(--otp789-gold);
}

.otp789-menu__item.is-current a::after {
	background: var(--otp789-gold);
	box-shadow: 0 -3px 10px rgb(234 210 128 / 55%);
	content: "";
	height: 3px;
	left: 12px;
	position: absolute;
	right: 12px;
	top: 0;
}

.otp789-bottom-nav {
	display: none;
}

/* ---------- Footer ธีม (เฉพาะหน้า blog/หน้าใหม่ — หน้า saved page ใช้ footer ต้นฉบับใน content) ---------- */

.otp789-site-footer {
	background:
		radial-gradient(ellipse at 50% 0%, rgb(126 92 42 / 18%), transparent 58%),
		#1b1b1b;
	border-top: 1px solid rgb(234 210 128 / 24%);
	color: var(--otp789-paper);
	padding: 2rem 1.25rem 5rem;
}

.otp789-footer__inner {
	align-items: center;
	display: grid;
	gap: 1.2rem;
	grid-template-columns: auto 1fr auto;
	margin: 0 auto;
	max-width: 1440px;
}

.otp789-footer__brand {
	color: var(--otp789-gold);
	font-size: 1.15rem;
	font-weight: 900;
	letter-spacing: .12em;
	text-decoration: none;
}

.otp789-menu--footer {
	justify-content: center;
}

.otp789-menu--footer .otp789-menu__item a {
	font-size: .88rem;
	min-height: 36px;
	padding: 0 .7rem;
}

.otp789-footer__copyright {
	color: var(--otp789-muted);
	font-size: .8rem;
	margin: 0;
}

/* ---------- Modal สมัครสมาชิก ---------- */

.otp789-modal[hidden] {
	display: none !important;
}

.otp789-modal {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 1.25rem;
	position: fixed;
	z-index: 2000;
}

.otp789-modal__backdrop {
	background: rgb(0 0 0 / 76%);
	inset: 0;
	position: absolute;
}

.otp789-modal__panel {
	background:
		radial-gradient(ellipse at 50% -15%, rgb(234 210 128 / 24%), transparent 68%),
		linear-gradient(145deg, #30302d, #181818 70%);
	border: 1px solid rgb(234 210 128 / 52%);
	border-radius: 18px;
	box-shadow: 0 24px 90px rgb(0 0 0 / 60%);
	max-width: 440px;
	padding: 2.5rem 2rem 2rem;
	position: relative;
	text-align: center;
	width: 100%;
}

.otp789-modal__close {
	background: transparent;
	border: 0;
	color: #eee;
	cursor: pointer;
	font-size: 2rem;
	line-height: 1;
	padding: .25rem .55rem;
	position: absolute;
	right: .65rem;
	top: .5rem;
}

.otp789-modal__eyebrow,
.otp789-kicker {
	color: var(--otp789-gold);
	font-size: .76rem;
	font-weight: 800;
	letter-spacing: .18em;
	margin: 0 0 .7rem;
	text-transform: uppercase;
}

.otp789-modal h2 {
	color: var(--otp789-paper);
	font-size: clamp(1.35rem, 4vw, 1.8rem);
	line-height: 1.35;
	margin: 0 0 .65rem;
}

.otp789-modal__panel > p:not(.otp789-modal__eyebrow) {
	color: #c9c2b5;
	margin: 0 0 1.5rem;
}

.otp789-modal__action {
	min-width: 190px;
}

/* ---------- เนื้อหามาตรฐาน (blog / หน้าใหม่) ---------- */

.otp789-standard-content {
	box-sizing: border-box;
	color: var(--otp789-paper);
	margin: 0 auto;
	max-width: 1120px;
	min-height: 55vh;
	padding: calc(var(--otp789-header-height) + 3rem) 1.25rem 4rem;
}

.otp789-archive-header {
	border-bottom: 1px solid rgb(234 210 128 / 26%);
	margin-bottom: 2rem;
	padding-bottom: 1.2rem;
}

.otp789-archive-header h1,
.otp789-article__header h1,
.otp789-not-found h1 {
	font-size: clamp(2rem, 5vw, 3.6rem);
	line-height: 1.12;
	margin: 0;
}

.otp789-post-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.otp789-post-card {
	background: linear-gradient(150deg, #292929, #1d1d1d);
	border: 1px solid rgb(234 210 128 / 17%);
	border-radius: 14px;
	overflow: hidden;
}

.otp789-post-card > a {
	color: inherit;
	display: block;
	height: 100%;
	padding: 1.2rem;
	text-decoration: none;
}

.otp789-post-card img,
.otp789-article__image img {
	display: block;
	height: auto;
	max-width: 100%;
}

.otp789-post-card h2 {
	color: var(--otp789-paper);
	font-size: 1.2rem;
	line-height: 1.45;
	margin: .4rem 0;
}

.otp789-post-card p,
.otp789-article__content {
	color: #d1cbbc;
	line-height: 1.85;
}

.otp789-post-card__date {
	color: var(--otp789-gold);
	font-size: .8rem;
	margin: 1rem 0 0;
}

.otp789-article {
	margin: 0 auto;
	max-width: 820px;
}

.otp789-article__header {
	margin-bottom: 1.5rem;
}

.otp789-article__content {
	font-size: 1.05rem;
	margin: 1.5rem 0 2rem;
}

.otp789-article__content a {
	color: var(--otp789-gold);
}

.otp789-article__content img {
	height: auto;
	max-width: 100%;
}

.otp789-post-navigation {
	border-top: 1px solid rgb(234 210 128 / 25%);
	display: flex;
	justify-content: space-between;
	margin-top: 2rem;
	padding-top: 1rem;
}

.otp789-post-navigation a,
.nav-links a {
	color: var(--otp789-gold);
}

.otp789-not-found {
	align-content: center;
	text-align: center;
}

/* ---------- เนื้อหา saved page (มาจากหน้าจริง) ---------- */

.otp789-page-root {
	min-height: 50vh;
}

.otp789-page-root img {
	height: auto;
	max-width: 100%;
}

.otp789-page-root [class*="w-[1455px]"],
.otp789-page-root [class*="w-[1440px]"] {
	max-width: 100%;
}

.otp789-page-root .mySwiper {
	overflow: hidden;
	width: 100% !important;
}

.otp789-page-root .mySwiper > .swiper-wrapper {
	transform: translate3d(0, 0, 0);
	will-change: transform;
}

.otp789-page-root .mySwiper .swiper-slide {
	flex: 0 0 33.333%;
	max-width: 33.333%;
}

.otp789-page-root .mySwiper [class*="w-[710.5px]"] {
	width: 100%;
}

.otp789-bottom-nav__register {
	align-items: center;
	background: linear-gradient(135deg, #f4d684, #bd8e3d);
	border-radius: 8px;
	color: #1b1710;
	display: inline-flex;
	flex: 0 0 auto;
	font-size: .75rem;
	font-weight: 900;
	justify-content: center;
	margin: .2rem;
	min-width: 54px;
	padding: 0 .55rem;
	text-decoration: none;
}

@media (max-width: 900px) {
	.otp789-footer__inner {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.otp789-menu--footer {
		justify-content: center;
	}

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

@media (max-width: 680px) {
	:root {
		--otp789-header-height: 100px;
	}

	.otp789-header__inner {
		gap: .5rem;
		padding: 6px .6rem;
	}

	.otp789-header__left {
		gap: 6px;
	}

	.otp789-brand img {
		width: 102px;
	}

	.otp789-search,
	.otp789-promo-pill {
		display: none;
	}

	.otp789-header__actions {
		gap: 6px;
	}

	.otp789-cta {
		border-radius: 10px;
		font-size: 13px;
		height: 36px;
		padding: 0 10px;
	}

	.otp789-header__tabs-inner {
		gap: 4px;
		padding: 0 .5rem;
	}

	.otp789-tab__face {
		gap: 6px;
		height: 44px;
		min-width: 64px;
		padding: 0 8px;
	}

	.otp789-tab__icon {
		height: 24px;
		width: 24px;
	}

	.otp789-tab__label {
		font-size: 13px;
	}

	.otp789-page-root [class*="pt-[114px]"] {
		padding-top: calc(var(--otp789-header-height) + 4px) !important;
	}

	.otp789-site-footer {
		padding-bottom: 5rem;
	}

	.otp789-menu--footer {
		flex-wrap: wrap;
		padding: 0;
	}

	.otp789-menu--footer .otp789-menu__item a {
		padding: .25rem .55rem;
	}

	.otp789-bottom-nav {
		background: rgb(28 28 28 / 97%);
		border-top: 1px solid rgb(234 210 128 / 36%);
		bottom: 0;
		display: flex;
		left: 0;
		padding: .25rem .4rem calc(.25rem + env(safe-area-inset-bottom));
		position: fixed;
		right: 0;
		z-index: 1100;
	}

	.otp789-menu--bottom {
		gap: 0;
		overflow-x: auto;
		padding: 0;
		width: auto;
	}

	.otp789-menu--bottom .otp789-menu__item {
		flex: 1 0 auto;
	}

	.otp789-menu--bottom .otp789-menu__item a {
		font-size: .76rem;
		justify-content: center;
		min-height: 42px;
		padding: 0 .65rem;
	}

	.otp789-menu--bottom .otp789-menu__item.is-current a::after {
		bottom: 0;
		height: 2px;
		left: 20%;
		right: 20%;
		top: auto;
		width: auto;
	}

	.otp789-page-root .mySwiper .swiper-slide {
		flex-basis: 92%;
		max-width: 92%;
	}

	.otp789-standard-content {
		padding-top: calc(var(--otp789-header-height) + 2rem);
	}

	.otp789-post-grid {
		grid-template-columns: 1fr;
	}

	.otp789-post-navigation {
		gap: 1rem;
	}

	.otp789-page-root [class*="w-[1455px]"],
	.otp789-page-root [class*="w-[1440px]"] {
		box-sizing: border-box;
		padding-left: 1rem;
		padding-right: 1rem;
		width: 100% !important;
	}
}
