/* Shared gold UI for the savings app */
.ui-mobile,
.ui-mobile body,
.ui-overlay-a,
.ui-page,
.ui-body-a,
.ui-content {
	background: #fff8e6 !important;
	text-shadow: none !important;
	font-family: 'Sarabun', sans-serif !important;
}

.ui-page,
.ui-page * {
	font-family: 'Sarabun', sans-serif;
	text-shadow: none !important;
}

.flatpickr-calendar,
.flatpickr-calendar * {
	font-family: 'Sarabun', sans-serif !important;
}

.flatpickr-calendar {
	z-index: 20000 !important;
}

.ui-header,
.ui-header.jqm-header,
.ui-bar-inherit.ui-header {
	background: linear-gradient(180deg, #ffe27a 0%, #ffc107 100%) !important;
	background-image: none !important;
	border: 0 !important;
	border-bottom: 1px solid rgba(255, 236, 179, 0.9) !important;
	color: #5c3d12 !important;
	text-shadow: none !important;
	box-shadow: 0 8px 18px rgba(255, 179, 0, 0.22);
	min-height: 56px;
}

.ui-header .ui-title,
.ui-header h1,
.ui-header h4 {
	color: #5c3d12 !important;
	text-shadow: none !important;
	font-weight: 700 !important;
	font-size: 18px !important;
}

.ui-header .ui-btn {
	background: rgba(255, 255, 255, 0.45) !important;
	border: 0 !important;
	color: #6b4a12 !important;
	text-shadow: none !important;
	box-shadow: none !important;
}

.ui-header .ui-btn:after {
	background-color: #6b4a12 !important;
}

.ui-header img.ui-btn-right {
	height: 32px;
	width: auto;
	margin-top: 4px;
}

.ui-footer,
.ui-footer .ui-bar,
.ui-navbar {
	background: linear-gradient(180deg, #ffe27a 0%, #ffc107 100%) !important;
	background-image: none !important;
	border: 0 !important;
	color: #5c3d12 !important;
}

.ui-navbar li .ui-btn {
	background: transparent !important;
	border: 0 !important;
	color: #5c3d12 !important;
	text-shadow: none !important;
	font-weight: 700 !important;
}

.ui-navbar li .ui-btn-active {
	background: rgba(255, 255, 255, 0.4) !important;
	color: #5c3d12 !important;
}

.gold-btn,
.gold-btn-primary,
.gold-btn-outline,
.gold-btn-accent,
.gold-btn-login,
.ui-content > .ui-btn,
.ui-content form > .ui-btn,
.ui-content form > .ui-input-btn,
.ui-content .ui-grid-a .ui-btn,
.ui-content .ui-grid-b .ui-btn,
.ui-content .ui-grid-c .ui-btn,
.ui-content button:not(.gold-tab):not(.gold-menu-item):not(.gold-logout-btn),
.ui-listview > li > button,
.ui-listview > .ui-li-has-alt > a.ui-btn.ui-btn-icon-notext,
.gold-login-page .ui-navbar li .ui-btn,
.gold-login-page .ui-grid-a .ui-btn,
.gold-login-page .ui-grid-b .ui-btn,
.gold-login-page .ui-grid-c .ui-btn,
.gold-login-page a#go,
.gold-login-page #go.ui-btn,
.gold-login-page a#del,
.gold-login-page #del.ui-btn {
	background: linear-gradient(180deg, #ffe27a 0%, #ffc107 100%) !important;
	background-image: linear-gradient(180deg, #ffe27a 0%, #ffc107 100%) !important;
	color: #5c3d12 !important;
	border: 0 !important;
	border-radius: 14px !important;
	text-shadow: none !important;
	font-weight: 700 !important;
	box-shadow: 0 8px 16px rgba(255, 179, 0, 0.28) !important;
}

.gold-btn:hover,
.gold-btn:active,
.gold-btn-primary:hover,
.ui-content > .ui-btn:hover,
.ui-content form > .ui-btn:hover,
.ui-content .ui-grid-a .ui-btn:hover,
.ui-content .ui-grid-b .ui-btn:hover,
.ui-content .ui-grid-c .ui-btn:hover,
.ui-content .ui-grid-a .ui-btn:active,
.ui-content .ui-grid-b .ui-btn:active,
.ui-content .ui-grid-c .ui-btn:active,
.gold-login-page .ui-navbar li .ui-btn:hover,
.gold-login-page .ui-navbar li .ui-btn-active {
	background: linear-gradient(180deg, #ffd54f 0%, #ffb300 100%) !important;
	color: #5c3d12 !important;
	text-shadow: none !important;
}

.ui-content button:disabled,
.ui-btn.ui-state-disabled {
	opacity: 0.45 !important;
}

.ui-input-text,
.ui-input-search {
	border: 1px solid #ffe082 !important;
	border-radius: 12px !important;
	background: #fffdf5 !important;
	box-shadow: none !important;
}

.ui-input-text input,
.ui-input-search input {
	color: #5c3d12 !important;
	font-family: 'Sarabun', sans-serif !important;
}

.ui-content {
	padding: 16px 16px 24px !important;
}

.gold-page,
.ui-content {
	max-width: 1100px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	padding-left: 16px !important;
	padding-right: 16px !important;
}

.ui-page > .ui-listview,
.ui-page > ul.ui-listview,
.ui-page > .ui-filterable,
.ui-page > form.ui-filterable {
	max-width: 1100px;
	width: 100%;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 0 16px 16px !important;
	box-sizing: border-box;
}

.ui-content .ui-listview,
.ui-panel-inner > .ui-listview,
.ui-page > .ui-listview {
	margin: 0 !important;
}

.ui-listview > li,
.ui-listview > li.ui-li-static,
.ui-listview > li.ui-field-contain,
.ui-listview > .ui-li-has-alt {
	background: #fff !important;
	border: 1px solid #ffe082 !important;
	margin: 0 0 10px !important;
	border-radius: 16px !important;
	overflow: hidden;
	padding: 14px 110px 14px 16px !important;
	box-sizing: border-box;
}

.ui-listview > li h1,
.ui-listview > li h2,
.ui-listview > li .ui-li-heading {
	color: #5c3d12 !important;
	text-shadow: none !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	margin: 0 0 6px !important;
	line-height: 1.35 !important;
	white-space: normal !important;
}

.ui-listview > li p,
.ui-listview > li .ui-li-desc {
	color: #8a6a20 !important;
	font-size: 13px !important;
	margin: 0 !important;
	line-height: 1.45 !important;
	white-space: normal !important;
}

.ui-listview .ui-li-aside {
	color: #e65100 !important;
	text-shadow: none !important;
	font-weight: 700;
	top: 14px !important;
	right: 14px !important;
	margin: 0 !important;
	width: 96px;
	text-align: right;
	font-size: 15px !important;
	line-height: 1.3 !important;
}

.ui-listview .ui-li-aside p {
	margin: 4px 0 0 !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	color: #c09212 !important;
	white-space: normal !important;
}

.ui-checkbox label,
.ui-radio label {
	background: #fff !important;
	border-color: #ffe082 !important;
	color: #5c3d12 !important;
	text-shadow: none !important;
	border-radius: 12px !important;
}

.ui-bar-a,
.ui-body-a,
.ui-page-theme-a .ui-panel-wrapper {
	text-shadow: none !important;
}

.gold-appbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 11000;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 56px;
	padding: 0 12px;
	box-sizing: border-box;
	overflow: visible;
	background: linear-gradient(180deg, #ffe27a 0%, #ffc107 100%);
	border-bottom: 1px solid rgba(255, 236, 179, 0.9);
	box-shadow: 0 8px 18px rgba(255, 179, 0, 0.22);
}

.ui-mobile .ui-page,
.ui-page {
	padding-top: 56px !important;
}

.gold-appbar-btn {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.45);
	color: #6b4a12 !important;
	text-decoration: none !important;
	border: 0;
	padding: 0;
}

.gold-appbar-title {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #5c3d12;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.85 !important;
	white-space: nowrap;
	overflow: visible;
	padding: 0 8px;
	box-sizing: border-box;
}

.gold-appbar-logo {
	height: 40px;
	width: auto;
	object-fit: contain;
	flex-shrink: 0;
	display: block;
}

.gold-page {
	padding: 16px 16px 28px;
	box-sizing: border-box;
	max-width: 1100px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.gold-dash,
.gold-dash *,
.gold-page,
.gold-page *,
.gold-menu,
.gold-menu * {
	box-sizing: border-box;
}

.gold-heading {
	text-align: center;
	margin: 2px 0 14px;
}

.gold-heading-title {
	font-size: 18px;
	font-weight: 700;
	color: #5c3d12;
	line-height: 1.3;
}

.gold-heading-date {
	font-size: 13px;
	color: #c09212;
	margin-top: 2px;
}

.gold-price-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 14px;
}

.gold-price-card,
.gold-stat,
.gold-trade {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 18px rgba(255, 179, 0, 0.12);
	border: 1px solid #ffe082;
}

.gold-price-card {
	padding: 12px 14px 10px;
}

.gold-price-card .lbl,
.gold-stat .t,
.gold-label {
	font-size: 12px;
	color: #c09212;
	font-weight: 500;
}

.gold-price-card .val {
	font-size: 20px;
	font-weight: 700;
	color: #5c3d12;
	line-height: 1.2;
}

.gold-price-card .val.ask {
	color: #e65100;
}

.gold-hero {
	background: linear-gradient(165deg, #ffe27a 0%, #ffc107 48%, #ffb300 100%);
	border-radius: 20px;
	padding: 18px 16px 16px;
	color: #5c3d12;
	box-shadow: 0 14px 28px rgba(255, 179, 0, 0.28);
	margin-bottom: 14px;
}

.gold-hero-title {
	text-align: center;
	font-size: 13px;
	letter-spacing: 0.4px;
	color: #7a5608;
	margin-bottom: 8px;
}

.gold-hero-item {
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	color: #4a3208;
	margin-bottom: 10px;
}

.gold-ring-wrap {
	position: relative;
	width: 180px;
	height: 180px;
	margin: 0 auto 12px;
}

.gold-ring-wrap svg {
	width: 180px;
	height: 180px;
	transform: rotate(-90deg);
}

.gold-ring-center {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.gold-ring-pct {
	font-size: 34px;
	font-weight: 700;
	color: #4a3208;
	line-height: 1;
}

.gold-ring-pct span {
	font-size: 16px;
}

.gold-ring-label {
	font-size: 11px;
	color: #7a5608;
	margin-top: 4px;
}

.gold-bar {
	height: 10px;
	background: rgba(255, 255, 255, 0.45);
	border-radius: 99px;
	overflow: hidden;
	display: flex;
	margin: 8px 0 10px;
}

.gold-bar span {
	display: block;
	height: 100%;
}

.gold-bar .saved {
	background: linear-gradient(90deg, #fff8e1, #fff59d);
}

.gold-bar .pending {
	background: #ff9800;
}

.gold-legend {
	display: flex;
	justify-content: space-between;
	gap: 6px;
	font-size: 11px;
	color: #7a5608;
}

.gold-legend i {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 4px;
}

.gold-hero-nums {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 14px;
}

.gold-hero-num {
	background: rgba(255, 255, 255, 0.42);
	border-radius: 12px;
	padding: 10px 8px;
	text-align: center;
}

.gold-hero-num .n {
	font-size: 18px;
	font-weight: 700;
	color: #4a3208;
}

.gold-hero-num .t {
	font-size: 11px;
	color: #7a5608;
	margin-top: 2px;
}

.gold-hero-num.remain .n {
	color: #d32f2f;
}

.gold-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 14px;
}

.gold-stat {
	padding: 12px;
}

.gold-stat .n {
	font-size: 16px;
	font-weight: 700;
	color: #5c3d12;
	margin-top: 2px;
}

.gold-stat .n.up {
	color: #15803d;
}

.gold-stat .n.down {
	color: #b45309;
}

.gold-banner {
	border-radius: 14px;
	padding: 12px 14px;
	margin: 0 0 14px;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.gold-banner.warn {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.gold-banner.info {
	background: #fff7ed;
	color: #9a3412;
	border: 1px solid #fed7aa;
}

.gold-banner .sub {
	display: block;
	font-size: 12px;
	font-weight: 400;
	margin-top: 4px;
}

.gold-closed {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: linear-gradient(180deg, #fff8dc 0%, #ffe082 100%);
	border: 2px solid #ffc107;
	border-radius: 18px;
	padding: 18px 16px 16px;
	margin: 0 0 14px;
	box-shadow: 0 10px 20px rgba(255, 179, 0, 0.18);
	color: #5c3d12;
}

.gold-closed-icon {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #ffc107;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
	color: #b8860b;
}

.gold-closed-icon svg {
	width: 26px;
	height: 26px;
}

.gold-closed-title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.gold-closed-sub {
	margin-top: 6px;
	font-size: 14px;
	font-weight: 500;
	color: #8a6a20;
}

.gold-trade {
	overflow: hidden;
	margin: 0 0 14px;
	padding: 0;
}

.gold-tabbar {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: #fff3c4;
	padding: 6px;
	gap: 6px;
}

.gold-tab {
	display: block;
	width: 100%;
	text-align: center;
	border: 0;
	border-radius: 12px;
	padding: 11px 8px;
	font-size: 16px;
	font-weight: 700;
	color: #b8860b !important;
	background: transparent;
	text-decoration: none !important;
	cursor: pointer;
}

.gold-tab.is-active {
	background: linear-gradient(180deg, #ffe27a 0%, #ffc107 100%);
	color: #5c3d12 !important;
	box-shadow: 0 6px 12px rgba(255, 179, 0, 0.28);
}

.gold-tabpanel {
	padding: 14px;
	background: #fff;
}

.gold-label {
	display: block;
	margin: 8px 0 6px;
}

.gold-input {
	width: 100%;
	height: 46px;
	border: 1px solid #ffe082;
	border-radius: 12px;
	padding: 0 14px;
	font-size: 16px;
	color: #5c3d12;
	background: #fffdf5;
	margin: 0 0 8px;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
}

.gold-input:focus {
	outline: none;
	border-color: #ffc107;
	box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.28);
	background: #fff;
}

select.gold-input {
	height: 46px;
	-webkit-appearance: none;
	appearance: none;
	background-color: #fffdf5;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23c09212' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 18px;
	padding-right: 38px;
	cursor: pointer;
}

select.gold-input:focus {
	background-color: #fff;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23c09212' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 18px;
}

.gold-input[readonly] {
	background: #fff8e6;
	color: #8a6a20;
}

.gold-check {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0 14px;
	color: #5c3d12;
	font-size: 15px;
}

.gold-check input {
	width: 18px;
	height: 18px;
	accent-color: #ffc107;
}

.gold-privacy {
	font-size: 13px;
	line-height: 1.55;
	color: #8a6a20;
	margin: 0 0 10px;
}

.gold-privacy a {
	color: #5c3d12;
	font-weight: 700;
}

.gold-hint {
	display: block;
	text-align: center;
	font-size: 12px;
	color: #c09212;
	margin: 8px 0 16px;
}

.gold-policy h3:first-child {
	margin-top: 0;
}

.gold-settings .gold-card .gold-check {
	margin-bottom: 6px;
}

.gold-policy p,
.gold-policy li,
.gold-policy div {
	font-size: 14px;
	line-height: 1.65;
	color: #6b4a12;
}

.gold-btn-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.gold-btn-row .gold-btn {
	margin: 0;
}

.gold-btn {
	display: block;
	width: 100%;
	border: 0;
	border-radius: 14px;
	padding: 13px 12px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	margin: 0 0 10px;
	text-align: center;
	text-decoration: none !important;
	box-sizing: border-box;
}

.gold-btn-primary,
.gold-btn-outline,
.gold-btn-accent,
.gold-btn-login {
	background: linear-gradient(180deg, #ffe27a 0%, #ffc107 100%);
	color: #5c3d12;
	box-shadow: 0 8px 16px rgba(255, 179, 0, 0.28);
}

.gold-settings .gold-profile {
	text-align: center;
	margin: 6px 0 18px;
}

.gold-profile-avatar {
	position: relative;
	width: 118px;
	height: 118px;
	margin: 0 auto 10px;
}

.gold-profile-avatar img,
.gold-profile-avatar .gold-user-icon {
	position: absolute;
	left: 0;
	top: 0;
	width: 118px;
	height: 118px;
	box-sizing: border-box;
}

.gold-profile-avatar img {
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #ffc107;
	background: #fff;
	box-shadow: 0 10px 22px rgba(255, 179, 0, 0.22);
	display: block;
	z-index: 1;
}

.gold-profile-edit {
	position: absolute;
	right: 2px;
	bottom: 2px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: linear-gradient(180deg, #ffe27a 0%, #ffc107 100%);
	border: 2px solid #fff;
	box-shadow: 0 4px 10px rgba(92, 61, 18, 0.22);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #5c3d12;
	z-index: 2;
}

.gold-profile-edit input {
	display: none;
}

.gold-profile-name {
	font-size: 20px;
	font-weight: 700;
	color: #5c3d12;
	line-height: 1.3;
}

.gold-profile-sub {
	font-size: 13px;
	color: #c09212;
	margin-top: 2px;
}

.gold-card {
	background: #fff;
	border: 1px solid #ffe082;
	border-radius: 16px;
	box-shadow: 0 8px 16px rgba(255, 179, 0, 0.1);
	padding: 14px 14px 8px;
	margin: 0 0 12px;
}

.gold-card-title {
	font-size: 13px;
	font-weight: 700;
	color: #c09212;
	letter-spacing: 0.3px;
	margin: 0 0 10px;
}

.gold-settings .gold-label {
	margin-top: 10px;
}

.gold-settings .gold-card > .gold-label:first-of-type {
	margin-top: 0;
}

.gold-settings .gold-card {
	padding: 16px 14px 12px;
}

.gold-settings .gold-btn {
	margin-top: 4px;
}

.gold-req {
	color: #e53935;
	font-weight: 700;
}

.gold-settings textarea.gold-input {
	height: auto;
	min-height: 84px;
	padding: 12px 14px;
	resize: vertical;
}

.gold-settings select.gold-input {
	height: 46px;
}

.gold-birth {
	display: grid;
	grid-template-columns: 1fr 1fr 1.2fr;
	gap: 8px;
}

.gold-settings .ui-select {
	margin: 0 0 8px;
}

.gold-settings .ui-select .ui-btn,
.gold-page .ui-select .ui-btn {
	margin: 0;
	border-radius: 12px !important;
	background: #fffdf5 !important;
	background-image: none !important;
	color: #5c3d12 !important;
	border: 1px solid #ffe082 !important;
	box-shadow: none !important;
	font-weight: 600 !important;
	text-shadow: none !important;
	font-family: 'Sarabun', sans-serif !important;
}

.ui-selectmenu.ui-popup,
.ui-selectmenu.ui-popup .ui-overlay-shadow {
	border-radius: 16px !important;
	border: 1px solid #ffe082 !important;
	box-shadow: 0 12px 24px rgba(255, 179, 0, 0.18) !important;
}

.ui-selectmenu .ui-header {
	background: linear-gradient(180deg, #ffe27a 0%, #ffc107 100%) !important;
	color: #5c3d12 !important;
	border: 0 !important;
	text-shadow: none !important;
}

.ui-selectmenu .ui-header .ui-title {
	color: #5c3d12 !important;
	text-shadow: none !important;
}

.ui-selectmenu .ui-listview > li {
	margin: 0 0 0 !important;
	border-radius: 0 !important;
	border: 0 !important;
	border-bottom: 1px solid #ffe082 !important;
	padding: 0 !important;
}

.ui-selectmenu .ui-listview > li > a.ui-btn {
	background: #fffdf6 !important;
	color: #5c3d12 !important;
	text-shadow: none !important;
	font-family: 'Sarabun', sans-serif !important;
	font-weight: 600 !important;
	border: 0 !important;
	box-shadow: none !important;
}

.ui-selectmenu .ui-listview > li > a.ui-btn.ui-btn-active,
.ui-selectmenu .ui-listview > li > a.ui-checkbox-on {
	background: #fff8e1 !important;
	color: #5c3d12 !important;
}

.gold-menu {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.gold-menu-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 108px;
	padding: 14px 8px;
	border: 1px solid #ffe082;
	border-radius: 16px;
	background: #fff;
	color: #5c3d12;
	font-size: 14px;
	font-weight: 700;
	box-shadow: 0 8px 16px rgba(255, 179, 0, 0.12);
	cursor: pointer;
}

.gold-menu-item img {
	height: 42px;
	width: auto;
}

.gold-menu-item.wide {
	grid-column: 1 / -1;
}

.gold-dbd {
	text-align: center;
	margin-top: 16px;
}

.gold-login-hero {
	text-align: center;
	margin: 0 0 16px;
	color: #5c3d12;
}

.gold-login-hero img {
	height: 88px;
	width: 88px;
	object-fit: cover;
	border-radius: 50%;
	border: 3px solid #ffc107;
	background: #fff;
	margin-bottom: 8px;
}

.gold-user-icon {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	margin: 0 auto 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, #fff8dc 0%, #ffe082 100%);
	border: 3px solid #ffc107;
	box-shadow: 0 8px 18px rgba(255, 179, 0, 0.22);
	color: #8a6a20;
}

.gold-user-icon svg {
	width: 42px;
	height: 42px;
}

.gold-profile-avatar .gold-user-icon {
	margin: 0;
	z-index: 0;
	box-shadow: 0 10px 22px rgba(255, 179, 0, 0.22);
}

.gold-profile-avatar .gold-user-icon svg {
	width: 54px;
	height: 54px;
}

.gold-user-icon.is-hidden,
.gold-login-hero img.is-hidden,
.gold-profile-avatar img.is-hidden {
	display: none !important;
}

.gold-login-hero .t {
	font-size: 20px;
	font-weight: 700;
}

.gold-login-hero .s {
	font-size: 14px;
	color: #c09212;
	margin-top: 4px;
}

.gold-pin-dots {
	display: flex;
	justify-content: center;
	gap: 14px;
	margin: 8px 0 16px;
}

.gold-pin-dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	box-sizing: border-box;
	border: 2px solid #ffc107;
	background: transparent;
}

.gold-pin-dot.on {
	background: #ffc107;
	box-shadow: 0 4px 10px rgba(255, 179, 0, 0.35);
}

.gold-login-card {
	background: #fff;
	border: 1px solid #ffe082;
	border-radius: 20px;
	box-shadow: 0 12px 24px rgba(92, 61, 18, 0.1);
	padding: 22px 18px 18px;
	width: 100%;
	max-width: 420px;
	margin: 0 auto;
	flex: 0 0 auto;
	box-sizing: border-box;
}

.gold-login-page .gold-btn-login,
.gold-login-page .gold-btn-outline,
.gold-login-page .gold-btn-primary {
	margin-top: 8px;
}

.gold-login-page,
.gold-login-page.ui-page,
.gold-login-page .gold-page {
	background: #fff8e6 !important;
}

.gold-login-page .gold-page {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100dvh;
	width: 100%;
	max-width: 1100px;
	box-sizing: border-box;
	padding-top: 24px;
	padding-bottom: 24px;
}

.gold-login-page:has(.gold-appbar) .gold-page {
	min-height: calc(100vh - 56px);
	min-height: calc(100dvh - 56px);
	padding-top: 12px;
}

.gold-login-page:has(.ui-footer) .gold-page {
	padding-bottom: 110px;
}

.gold-login-page .gold-appbar {
	border-bottom: 1px solid rgba(255, 236, 179, 0.9);
	box-shadow: 0 8px 18px rgba(255, 179, 0, 0.22);
}

.gold-login-page .ui-footer,
.gold-login-page .ui-footer.ui-bar-inherit,
.gold-login-page .ui-footer .ui-bar,
.gold-login-page .ui-navbar {
	background: linear-gradient(180deg, #ffe27a 0%, #ffc107 100%) !important;
	background-image: none !important;
	border: 0 !important;
	border-top: 0 !important;
	box-shadow: none !important;
	color: #5c3d12 !important;
}

.gold-login-page .ui-footer-fixed,
.gold-login-page .ui-footer.ui-footer-fixed {
	border: 0 !important;
}

.gold-login-page .ui-navbar ul {
	background: transparent !important;
	padding: 6px 4px 8px;
}

.gold-login-page .ui-navbar li .ui-btn {
	background: linear-gradient(180deg, #ffe27a 0%, #ffc107 100%) !important;
	background-image: linear-gradient(180deg, #ffe27a 0%, #ffc107 100%) !important;
	color: #5c3d12 !important;
	font-size: 12px !important;
	margin: 4px !important;
	padding-top: 8px !important;
	padding-bottom: 8px !important;
	box-shadow: 0 6px 12px rgba(92, 61, 18, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

.ui-listview > li > a.ui-btn {
	background: #fff !important;
	background-image: none !important;
	box-shadow: none !important;
	border: 0 !important;
	color: inherit !important;
}

.ui-listview > .ui-li-has-alt > a.ui-btn.ui-btn-icon-notext {
	background: linear-gradient(180deg, #ffe27a 0%, #ffc107 100%) !important;
	background-image: linear-gradient(180deg, #ffe27a 0%, #ffc107 100%) !important;
	box-shadow: none !important;
	color: #5c3d12 !important;
}

.ui-grid-a .gold-btn,
.ui-grid-b .gold-btn,
.ui-grid-c .gold-btn {
	margin-bottom: 8px;
}

@keyframes gold-draw {
	from {
		stroke-dasharray: 0 999;
	}
}

.gold-ring-saved,
.gold-ring-pending {
	animation: gold-draw 1.1s ease-out;
}

.swal2-container {
	z-index: 12000 !important;
	font-family: 'Sarabun', sans-serif !important;
}

.swal2-container.swal2-shown {
	background-color: rgba(92, 61, 18, 0.38) !important;
}

.swal2-popup {
	background: #fffdf6 !important;
	border-radius: 20px !important;
	border: 1px solid #ffe082 !important;
	box-shadow: 0 18px 40px rgba(255, 179, 0, 0.28) !important;
	padding: 1.4em 1.2em 1.25em !important;
	font-family: 'Sarabun', sans-serif !important;
	color: #5c3d12 !important;
}

.swal2-title {
	color: #5c3d12 !important;
	font-family: 'Sarabun', sans-serif !important;
	font-size: 1.35em !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
}

.swal2-content,
#swal2-content {
	color: #8a6a20 !important;
	font-family: 'Sarabun', sans-serif !important;
	font-size: 1em !important;
	font-weight: 400 !important;
}

.swal2-actions {
	margin-top: 1.1em !important;
}

.swal2-styled {
	font-family: 'Sarabun', sans-serif !important;
	font-weight: 700 !important;
	border-radius: 14px !important;
	padding: 0.7em 1.6em !important;
	box-shadow: none !important;
}

.swal2-actions:not(.swal2-loading) .swal2-styled:hover,
.swal2-actions:not(.swal2-loading) .swal2-styled:active {
	background-image: none !important;
	filter: brightness(1.04);
}

.swal2-styled.swal2-confirm {
	background: linear-gradient(180deg, #ffe27a 0%, #ffc107 100%) !important;
	background-color: #ffc107 !important;
	color: #5c3d12 !important;
	border: 0 !important;
	box-shadow: 0 8px 16px rgba(255, 179, 0, 0.28) !important;
}

.swal2-styled.swal2-cancel {
	background: #fff !important;
	background-color: #fff !important;
	color: #5c3d12 !important;
	border: 1px solid #ffc107 !important;
}

.swal2-styled:focus {
	box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.35) !important;
}

.swal2-icon {
	margin: 0.9em auto 0.7em !important;
}

.swal2-icon.swal2-success {
	border-color: #ffc107 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
	border-color: rgba(255, 193, 7, 0.45) !important;
}

.swal2-icon.swal2-success [class^=swal2-success-line] {
	background-color: #e6a800 !important;
}

.swal2-icon.swal2-warning {
	border-color: #ffc107 !important;
	color: #e65100 !important;
}

.swal2-icon.swal2-info {
	border-color: #ffd54f !important;
	color: #c09212 !important;
}

.swal2-icon.swal2-question {
	border-color: #ffc107 !important;
	color: #8a6a20 !important;
}

.swal2-icon.swal2-error {
	border-color: #ef9a9a !important;
}

.swal2-icon.swal2-error [class^=swal2-x-mark-line] {
	background-color: #e53935 !important;
}

.swal2-input,
.swal2-textarea,
.swal2-file,
.swal2-select {
	border: 1px solid #ffe082 !important;
	border-radius: 12px !important;
	background: #fffdf5 !important;
	color: #5c3d12 !important;
	font-family: 'Sarabun', sans-serif !important;
	box-shadow: none !important;
}

.swal2-input:focus,
.swal2-textarea:focus,
.swal2-file:focus {
	border-color: #ffc107 !important;
	box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.28) !important;
}

.swal2-validation-message {
	background: #fff7ed !important;
	color: #9a3412 !important;
	border-radius: 10px !important;
	font-family: 'Sarabun', sans-serif !important;
}

.swal2-footer {
	border-top-color: #ffe082 !important;
	color: #8a6a20 !important;
	font-family: 'Sarabun', sans-serif !important;
}

.swal2-image {
	border-radius: 12px;
}

.gold-order-card {
	background: #fff;
	border: 1px solid #ffe082;
	border-radius: 16px;
	box-shadow: 0 8px 16px rgba(255, 179, 0, 0.1);
	padding: 16px;
	margin: 0 0 12px;
}

.gold-order-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.gold-order-date {
	font-size: 13px;
	color: #c09212;
	font-weight: 600;
}

.gold-order-doc {
	font-size: 16px;
	font-weight: 700;
	color: #5c3d12;
	margin-top: 2px;
	line-height: 1.35;
}

.gold-order-meta {
	font-size: 13px;
	color: #8a6a20;
	margin-top: 4px;
}

.gold-order-amt {
	text-align: right;
	flex-shrink: 0;
}

.gold-order-amt .n {
	font-size: 20px;
	font-weight: 700;
	color: #e65100;
	line-height: 1.2;
}

.gold-order-amt .u {
	font-size: 11px;
	color: #c09212;
	margin-bottom: 4px;
}

.gold-badge {
	display: inline-block;
	margin-top: 6px;
	padding: 3px 8px;
	border-radius: 99px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
}

.gold-badge.wait {
	background: #fff7ed;
	color: #c2410c;
}

.gold-badge.pending {
	background: #fff8e1;
	color: #b8860b;
}

.gold-badge.ok {
	background: #ecfdf3;
	color: #15803d;
}

.gold-badge.off {
	background: #fef2f2;
	color: #b91c1c;
}

.gold-order-card .gold-btn {
	margin-bottom: 0;
}

.gold-order-del {
	display: block;
	width: 100%;
	margin-top: 8px;
	border: 0;
	background: transparent;
	color: #9a3412;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	padding: 8px;
	cursor: pointer;
	font-family: inherit;
}

.gold-logout-btn {
	display: block;
	width: 100%;
	margin: 8px 0 18px;
	border: 1px solid #e6c36a !important;
	background: #fff !important;
	background-image: none !important;
	color: #9a3412 !important;
	box-shadow: none !important;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	padding: 12px;
	border-radius: 14px;
	cursor: pointer;
	font-family: inherit;
}

.gold-transfer-hint {
	padding: 12px;
	text-align: center;
}

.gold-transfer-hint img {
	width: 100%;
	max-width: 420px;
	border-radius: 12px;
	display: block;
	margin: 0 auto 8px;
}

.gold-transfer-hint img + img {
	margin-top: 10px;
}

.gold-transfer-hint p {
	margin: 0;
	font-size: 13px;
	color: #8a6a20;
	line-height: 1.45;
}

.gold-empty {
	background: #fff;
	border: 1px solid #ffe082;
	border-radius: 16px;
	box-shadow: 0 8px 16px rgba(255, 179, 0, 0.1);
	padding: 28px 18px 20px;
	text-align: center;
}

.gold-empty .t {
	font-size: 18px;
	font-weight: 700;
	color: #5c3d12;
}

.gold-empty .s {
	font-size: 14px;
	color: #8a6a20;
	margin: 8px 0 16px;
	line-height: 1.45;
}

.gold-filter {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 0 0 12px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.gold-filter::-webkit-scrollbar {
	display: none;
}

.gold-chip {
	flex-shrink: 0;
	border: 1px solid #ffe082;
	background: #fff;
	color: #5c3d12;
	border-radius: 99px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
}

.gold-chip.is-active {
	background: linear-gradient(180deg, #ffe27a 0%, #ffc107 100%);
	border-color: #ffc107;
	box-shadow: 0 6px 12px rgba(255, 179, 0, 0.22);
}

.gold-date-label {
	font-size: 13px;
	font-weight: 700;
	color: #c09212;
	margin: 4px 2px 8px;
}

.gold-hist-card {
	margin-bottom: 10px;
}

.gold-hist-card .gold-order-top {
	margin-bottom: 0;
}

.gold-type-pill {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 99px;
	margin-bottom: 4px;
	line-height: 1.3;
}

.gold-type-pill.t0 {
	background: #ecfdf3;
	color: #15803d;
}

.gold-type-pill.t1 {
	background: #fff8e1;
	color: #b8860b;
}

.gold-type-pill.t2 {
	background: #fff7ed;
	color: #c2410c;
}

.gold-type-pill.t3 {
	background: #eff6ff;
	color: #1d4ed8;
}

.gold-type-pill.t4 {
	background: #f5f0e6;
	color: #5c3d12;
}

.gold-order-amt .n.in {
	color: #15803d;
}

.gold-order-amt .n.out {
	color: #e65100;
}

.gold-receive-note {
	font-size: 13px;
	color: #8a6a20;
	margin: 10px 0 0;
	line-height: 1.45;
}

.gold-price-item {
	padding: 12px 14px;
	margin-bottom: 8px;
	cursor: pointer;
}

.gold-price-item .gold-order-top {
	margin-bottom: 0;
	align-items: center;
}

.gold-price-item .gold-order-doc {
	font-size: 15px;
}

.gold-price-item .gold-order-amt .n {
	font-size: 18px;
}

.gold-pick-item {
	cursor: default;
}

.gold-pick-item .gold-btn {
	margin: 12px 0 0;
}

.gold-sort-radios {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 12px;
}

.gold-radio {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid #ffe082;
	border-radius: 99px;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 700;
	color: #5c3d12;
	cursor: pointer;
}

.gold-radio input {
	accent-color: #ffc107;
	width: 16px;
	height: 16px;
	margin: 0;
}

.gold-radio.is-active {
	background: linear-gradient(180deg, #ffe27a 0%, #ffc107 100%);
	border-color: #ffc107;
}

.gold-kv {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid #e6c36a;
	font-size: 14px;
}

.gold-kv:last-child {
	border-bottom: 0;
}

.gold-kv .k {
	color: #8a6a20;
	font-weight: 600;
}

.gold-kv .v {
	color: #5c3d12;
	font-weight: 700;
	text-align: right;
}

.gold-kv.total .k,
.gold-kv.total .v {
	color: #e65100;
	font-size: 16px;
}

.gold-kv.warn .k,
.gold-kv.warn .v {
	color: #c2410c;
}

.gold-loan-note {
	font-size: 12px;
	color: #c2410c;
	margin: 2px 0 8px;
	line-height: 1.4;
}

.gold-loan-card .gold-btn {
	margin: 12px 0 0;
}

.gold-tx {
	display: grid;
	grid-template-columns: 82px 1fr auto;
	gap: 8px;
	padding: 10px 0;
	border-bottom: 1px solid #e6c36a;
	align-items: start;
}

.gold-tx:last-child {
	border-bottom: 0;
}

.gold-tx .d {
	font-size: 12px;
	color: #c09212;
	font-weight: 600;
}

.gold-tx .t {
	font-size: 14px;
	color: #5c3d12;
	font-weight: 700;
	line-height: 1.35;
}

.gold-tx .a {
	font-size: 14px;
	color: #5c3d12;
	font-weight: 700;
	text-align: right;
	white-space: nowrap;
}

.gold-tx .note {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: #c2410c;
	font-weight: 600;
}

.gold-tx.int .t,
.gold-tx.int .a {
	color: #b8860b;
}

.gold-loan-pic {
	text-align: center;
	padding: 10px;
}

.gold-loan-pic img {
	max-width: 100%;
	height: auto;
	max-height: 220px;
	border-radius: 12px;
}

.gold-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin: 0 0 12px;
}

.gold-actions .gold-btn {
	margin: 0;
}

.gold-actions .wide {
	grid-column: 1 / -1;
}

.home-index-page.ui-page,
.ui-mobile .ui-page.home-index-page {
	padding-top: 0 !important;
}

.home-landing {
	padding: 22px 16px 28px;
}

.home-brand {
	text-align: center;
	margin-bottom: 8px;
}

.home-brand .logo {
	height: 140px;
	width: auto;
}

.home-brand .t {
	margin-top: 10px;
	font-size: 22px;
	font-weight: 700;
	color: #5c3d12;
}

.home-brand .s {
	color: #8a6a20;
	font-size: 14px;
}

.home-choice {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 18px;
}

.home-choice-card {
	display: flex;
	align-items: center;
	gap: 14px;
	border-radius: 18px;
	padding: 16px 18px;
	border: 0;
	width: 100%;
	text-align: left;
	cursor: pointer;
	font-family: 'Sarabun', sans-serif;
}

.home-choice-card img {
	height: 56px;
	width: 56px;
	object-fit: contain;
	flex-shrink: 0;
}

.home-choice-card .t {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.home-choice-card .s {
	font-size: 13px;
	opacity: 0.88;
	margin-top: 2px;
}

.home-choice-pink {
	background: linear-gradient(180deg, #fce4ec 0%, #f8bbd0 100%);
	color: #6a1b3a;
	box-shadow: 0 10px 22px rgba(244, 143, 177, 0.18);
}

.home-choice-gold {
	background: linear-gradient(180deg, #ffe27a 0%, #ffc107 100%);
	color: #5c3d12;
	box-shadow: 0 10px 22px rgba(255, 179, 0, 0.22);
}

.home-company {
	margin-top: 12px;
	text-align: center;
	color: #8a6a20;
	font-size: 13px;
	line-height: 1.55;
}

.home-brand .home-company {
	margin-top: 10px;
	margin-bottom: 4px;
}

.home-dbd {
	text-align: center;
	margin-top: 12px;
}

.gold-hero-amount {
	text-align: center;
	font-size: 32px;
	font-weight: 700;
	color: #4a3208;
	line-height: 1.2;
	margin: 4px 0 10px;
}

.gold-slip-box {
	display: block;
	text-align: center;
	border: 1.5px dashed #ffc107;
	border-radius: 14px;
	padding: 16px 12px;
	background: #fffdf5;
	cursor: pointer;
	margin-bottom: 8px;
}

.gold-slip-box img {
	display: block;
	margin: 0 auto;
	max-width: 100%;
	max-height: 240px;
	width: auto;
	border-radius: 12px;
	object-fit: contain;
}

.gold-slip-hint {
	margin-top: 10px;
	font-size: 13px;
	font-weight: 600;
	color: #c09212;
}

.gold-slip-input {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}
